78 #ifndef INC_FREERTOS_H 
   79 #error "include FreeRTOS.h" must appear in source files before "include semphr.h" 
   91 #define semBINARY_SEMAPHORE_QUEUE_LENGTH    ( ( uint8_t ) 1U ) 
   92 #define semSEMAPHORE_QUEUE_ITEM_LENGTH      ( ( uint8_t ) 0U ) 
   93 #define semGIVE_BLOCK_TIME                  ( ( TickType_t ) 0U ) 
  145 #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) 
  146 #define vSemaphoreCreateBinary( xSemaphore )                                                                                            \ 
  148         ( xSemaphore ) = xQueueGenericCreate( ( UBaseType_t ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_BINARY_SEMAPHORE );    \ 
  149         if( ( xSemaphore ) != NULL )                                                                                                    \ 
  151             ( void ) xSemaphoreGive( ( xSemaphore ) );                                                                                  \ 
  213 #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) 
  214 #define xSemaphoreCreateBinary() xQueueGenericCreate( ( UBaseType_t ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_BINARY_SEMAPHORE ) 
  272 #if( configSUPPORT_STATIC_ALLOCATION == 1 ) 
  273 #define xSemaphoreCreateBinaryStatic( pxStaticSemaphore ) xQueueGenericCreateStatic( ( UBaseType_t ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH, NULL, pxStaticSemaphore, queueQUEUE_TYPE_BINARY_SEMAPHORE ) 
  341 #define xSemaphoreTake( xSemaphore, xBlockTime )        xQueueGenericReceive( ( QueueHandle_t ) ( xSemaphore ), NULL, ( xBlockTime ), pdFALSE ) 
  434 #if( configUSE_RECURSIVE_MUTEXES == 1 ) 
  435 #define xSemaphoreTakeRecursive( xMutex, xBlockTime )   xQueueTakeMutexRecursive( ( xMutex ), ( xBlockTime ) ) 
  499 #define xSemaphoreGive( xSemaphore )        xQueueGenericSend( ( QueueHandle_t ) ( xSemaphore ), NULL, semGIVE_BLOCK_TIME, queueSEND_TO_BACK ) 
  583 #if( configUSE_RECURSIVE_MUTEXES == 1 ) 
  584 #define xSemaphoreGiveRecursive( xMutex )   xQueueGiveMutexRecursive( ( xMutex ) ) 
  676 #define xSemaphoreGiveFromISR( xSemaphore, pxHigherPriorityTaskWoken )  xQueueGiveFromISR( ( QueueHandle_t ) ( xSemaphore ), ( pxHigherPriorityTaskWoken ) ) 
  710 #define xSemaphoreTakeFromISR( xSemaphore, pxHigherPriorityTaskWoken )  xQueueReceiveFromISR( ( QueueHandle_t ) ( xSemaphore ), NULL, ( pxHigherPriorityTaskWoken ) ) 
  767 #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) 
  768 #define xSemaphoreCreateMutex() xQueueCreateMutex( queueQUEUE_TYPE_MUTEX ) 
  828 #if( configSUPPORT_STATIC_ALLOCATION == 1 ) 
  829 #define xSemaphoreCreateMutexStatic( pxMutexBuffer ) xQueueCreateMutexStatic( queueQUEUE_TYPE_MUTEX, ( pxMutexBuffer ) ) 
  896 #if( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) ) 
  897 #define xSemaphoreCreateRecursiveMutex() xQueueCreateMutex( queueQUEUE_TYPE_RECURSIVE_MUTEX ) 
  969 #if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) ) 
  970 #define xSemaphoreCreateRecursiveMutexStatic( pxStaticSemaphore ) xQueueCreateMutexStatic( queueQUEUE_TYPE_RECURSIVE_MUTEX, pxStaticSemaphore ) 
 1049 #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) 
 1050 #define xSemaphoreCreateCounting( uxMaxCount, uxInitialCount ) xQueueCreateCountingSemaphore( ( uxMaxCount ), ( uxInitialCount ) ) 
 1134 #if( configSUPPORT_STATIC_ALLOCATION == 1 ) 
 1135 #define xSemaphoreCreateCountingStatic( uxMaxCount, uxInitialCount, pxSemaphoreBuffer ) xQueueCreateCountingSemaphoreStatic( ( uxMaxCount ), ( uxInitialCount ), ( pxSemaphoreBuffer ) ) 
 1150 #define vSemaphoreDelete( xSemaphore ) vQueueDelete( ( QueueHandle_t ) ( xSemaphore ) ) 
 1165 #define xSemaphoreGetMutexHolder( xSemaphore ) xQueueGetMutexHolder( ( xSemaphore ) ) 
 1177 #define uxSemaphoreGetCount( xSemaphore ) uxQueueMessagesWaiting( ( QueueHandle_t ) ( xSemaphore ) ) 
  
void * QueueHandle_t
Definition: queue.h:135