osMailCreate() function
Create and Initialize mail queue
Arguments
queue_def
reference to the mail queue definition obtain with
osMailQ
thread_id
thread ID (obtained by osThreadCreate or osThreadGetId) or NULL.
Return value
mail queue ID for reference by other functions or NULL in case of error.
Notes
MUST REMAIN UNCHANGED: \b osMailCreate shall be consistent in every CMSIS-RTOS.
osMailCreate() calls 4 functions:
![]()
osMailCreate()
osMailCreate() reads 5 variables and writes 3 variables:
![]()
osMailCreate()
osMailCreate() allocates 1 types and frees 1 types:
![]()
osMailCreate()