nxp-mcuxpresso / rpmsg-lite

RPMsg implementation for small MCUs
BSD 3-Clause "New" or "Revised" License
235 stars 74 forks source link

Wrong function name or function implementation (env_create_mutex behave as semaphore) #15

Open Hadatko opened 3 years ago

Hadatko commented 3 years ago

env_create_mutex for freertos has semaphore implementation: https://www.geeksforgeeks.org/mutex-vs-semaphore/ This can consufe users during new ports or debugging.

MichalPrincNXP commented 3 years ago

@Hadatko , you are right, it would be better to use the xSemaphoreCreateMutex API to be accurate. I guess the xSemaphoreCreateCounting usage has been chosen because of the smaller footprint at the time this project has been created.