osSemaphoreCreate() function
Semaphore Management Functions ************************* Create and Initialize a Semaphore object used for managing resources
Arguments
count
number of available resources.
Return value
semaphore ID for reference by other functions or NULL in case of error.
Notes
MUST REMAIN UNCHANGED: \b osSemaphoreCreate shall be consistent in every CMSIS-RTOS.
Examples
osSemaphoreCreate() is referenced by 35 libraries and example projects: