32 #error "include FreeRTOS.h" must appear in source files before "include semphr.h"
41#define semBINARY_SEMAPHORE_QUEUE_LENGTH ( ( uint8_t ) 1U )
42#define semSEMAPHORE_QUEUE_ITEM_LENGTH ( ( uint8_t ) 0U )
43#define semGIVE_BLOCK_TIME ( ( uint32_t ) 0U )
95#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
96 #define vSemaphoreCreateBinary( xSemaphore ) \
98 ( xSemaphore ) = xQueueGenericCreate( ( uint32_t ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_BINARY_SEMAPHORE ); \
99 if( ( xSemaphore ) != NULL ) \
101 ( void ) sem_post( ( xSemaphore ) ); \
163#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
222#if( configSUPPORT_STATIC_ALLOCATION == 1 )
223 #define xSemaphoreCreateBinaryStatic( pxStaticSemaphore ) xQueueGenericCreateStatic( ( uint32_t ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH, NULL, pxStaticSemaphore, queueQUEUE_TYPE_BINARY_SEMAPHORE )
291uint8_t
sem_wait(sem_t sem, uint32_t block_time);
384#if( configUSE_RECURSIVE_MUTEXES == 1 )
533#if( configUSE_RECURSIVE_MUTEXES == 1 )
626#define xSemaphoreGiveFromISR( xSemaphore, pxHigherPriorityTaskWoken ) xQueueGiveFromISR( ( queue_t ) ( xSemaphore ), ( pxHigherPriorityTaskWoken ) )
660#define xSemaphoreTakeFromISR( xSemaphore, pxHigherPriorityTaskWoken ) xQueueReceiveFromISR( ( queue_t ) ( xSemaphore ), NULL, ( pxHigherPriorityTaskWoken ) )
717#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
778 #if( configSUPPORT_STATIC_ALLOCATION == 1 )
846#if( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) )
919#if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) )
920 #define xSemaphoreCreateRecursiveMutexStatic( pxStaticSemaphore ) xQueueCreateMutexStatic( queueQUEUE_TYPE_RECURSIVE_MUTEX, pxStaticSemaphore )
999#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
1000 sem_t
sem_create(uint32_t uxMaxCount, uint32_t uxInitialCount);
1084#if( configSUPPORT_STATIC_ALLOCATION == 1 )
1085 sem_t
sem_create_static(uint32_t uxMaxCount, uint32_t uxInitialCount, static_sem_s_t* pxSemaphoreBuffer);
1126#define xSemaphoreGetMutexHolderFromISR( xSemaphore ) xQueueGetMutexHolderFromISR( ( xSemaphore ) )
void sem_delete(sem_t sem)
task_t mutex_get_owner(mutex_t mutex)
sem_t sem_create(uint32_t max_count, uint32_t init_count)
uint32_t sem_get_count(sem_t sem)
sem_t sem_binary_create(void)
bool sem_wait(sem_t sem, uint32_t timeout)
void * task_t
Definition rtos.h:100
mutex_t mutex_create(void)
bool mutex_recursive_take(mutex_t mutex, uint32_t timeout)
bool mutex_recursive_give(mutex_t mutex)
void * mutex_t
Definition rtos.h:184
mutex_t mutex_recursive_create(void)
sem_t sem_create_static(uint32_t max_count, uint32_t init_count, static_sem_s_t *semaphore_buffer)
mutex_t mutex_create_static(static_sem_s_t *mutex_buffer)