![]() |
Morse Micro IoT SDK
2.9.7
|
Provides binary semaphore support for task synchronization.
Functions | |
| struct mmosal_semb * | mmosal_semb_create (const char *name) |
| Create a new binary semaphore. More... | |
| void | mmosal_semb_delete (struct mmosal_semb *semb) |
| Delete the given binary semaphore. More... | |
| bool | mmosal_semb_give (struct mmosal_semb *semb) |
| Give a binary semaphore. More... | |
| bool | mmosal_semb_give_from_isr (struct mmosal_semb *semb) |
| Give a binary semaphore (from ISR context). More... | |
| bool | mmosal_semb_wait (struct mmosal_semb *semb, uint32_t timeout_ms) |
| Wait for a counting semaphore. More... | |
| struct mmosal_semb * mmosal_semb_create | ( | const char * | name | ) |
Create a new binary semaphore.
| name | The name of the semaphore. |
NULL on failure. Definition at line 76 of file mmosal_shim_bootloader.c.
| void mmosal_semb_delete | ( | struct mmosal_semb * | semb | ) |
Delete the given binary semaphore.
| semb | Semaphore to delete. |
Definition at line 82 of file mmosal_shim_bootloader.c.
| bool mmosal_semb_give | ( | struct mmosal_semb * | semb | ) |
Give a binary semaphore.
| semb | The semaphore to give. |
true on success, else false. Definition at line 87 of file mmosal_shim_bootloader.c.
| bool mmosal_semb_give_from_isr | ( | struct mmosal_semb * | semb | ) |
Give a binary semaphore (from ISR context).
| semb | The semaphore to give. |
true on success, else false. Definition at line 93 of file mmosal_shim_bootloader.c.
| bool mmosal_semb_wait | ( | struct mmosal_semb * | semb, |
| uint32_t | timeout_ms | ||
| ) |
Wait for a counting semaphore.
| semb | The semaphore to wait for. |
| timeout_ms | Timeout after which to give up waiting (in milliseconds). |
true if the the semaphore was taken successfully, else false. Definition at line 99 of file mmosal_shim_bootloader.c.