27 #ifndef PIOS_SEMAPHORE_H_
28 #define PIOS_SEMAPHORE_H_
30 #define PIOS_SEMAPHORE_TIMEOUT_MAX 0xffffffff
bool PIOS_Semaphore_Give_FromISR(struct pios_semaphore *sema, bool *woken)
struct pios_semaphore * PIOS_Semaphore_Create(void)
Creates a binary semaphore.
bool PIOS_Semaphore_Take_FromISR(struct pios_semaphore *sema, bool *woken)
bool PIOS_Semaphore_Give(struct pios_semaphore *sema)
Gives binary semaphore.
bool PIOS_Semaphore_Take(struct pios_semaphore *sema, uint32_t timeout_ms)
Takes binary semaphore.