29 #if !defined(PIOS_INCLUDE_RTOS)
30 #error "pios_mutex.c requires an RTOS"
33 #if defined(PIOS_INCLUDE_CHIBIOS)
115 chMtxInit(&mtx->mtx);
137 if (chThdSelf() != mtx->mtx.m_owner)
138 chMtxLockS(&mtx->mtx);
Main PiOS header to include all the compiled in PiOS options.
void * PIOS_malloc_no_dma(size_t size)
bool PIOS_Mutex_Unlock(struct pios_mutex *mtx)
struct pios_mutex * PIOS_Mutex_Create(void)
struct pios_recursive_mutex * PIOS_Recursive_Mutex_Create(void)
bool PIOS_Recursive_Mutex_Lock(struct pios_recursive_mutex *mtx, uint32_t timeout_ms)
#define PIOS_Assert(test)
bool PIOS_Recursive_Mutex_Unlock(struct pios_recursive_mutex *mtx)
bool PIOS_Mutex_Lock(struct pios_mutex *mtx, uint32_t timeout_ms)