osMailAlloc() function
Allocate a memory block from a mail
Arguments
queue_id
mail queue ID obtained with osMailCreate.
millisec
timeout value or 0 in case of no time-out.
Return value
pointer to memory block that can be filled with mail or NULL in case error.
Notes
MUST REMAIN UNCHANGED: \b osMailAlloc shall be consistent in every CMSIS-RTOS.
Examples
osMailAlloc() is referenced by 2 libraries and example projects: