Go to the documentation of this file.
   32 #ifndef INC_FREERTOS_H 
   33 #error "include FreeRTOS.h" must appear in source files before "include semphr.h" 
   40 #define semBINARY_SEMAPHORE_QUEUE_LENGTH    ( ( uint8_t ) 1U ) 
   41 #define semSEMAPHORE_QUEUE_ITEM_LENGTH      ( ( uint8_t ) 0U ) 
   42 #define semGIVE_BLOCK_TIME                  ( ( TickType_t ) 0U ) 
   94 #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) 
   95 #define vSemaphoreCreateBinary( xSemaphore )                                                                                            \ 
   97             ( xSemaphore ) = xQueueGenericCreate( ( UBaseType_t ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_BINARY_SEMAPHORE );    \ 
   98             if( ( xSemaphore ) != NULL )                                                                                                    \ 
  100                 ( void ) xSemaphoreGive( ( xSemaphore ) );                                                                                  \ 
  162 #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) 
  163 #define xSemaphoreCreateBinary() xQueueGenericCreate( ( UBaseType_t ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_BINARY_SEMAPHORE ) 
  221 #if( configSUPPORT_STATIC_ALLOCATION == 1 ) 
  222 #define xSemaphoreCreateBinaryStatic( pxStaticSemaphore ) xQueueGenericCreateStatic( ( UBaseType_t ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH, NULL, pxStaticSemaphore, queueQUEUE_TYPE_BINARY_SEMAPHORE ) 
  290 #define xSemaphoreTake( xSemaphore, xBlockTime )        xQueueSemaphoreTake( ( xSemaphore ), ( xBlockTime ) ) 
  383 #if( configUSE_RECURSIVE_MUTEXES == 1 ) 
  384 #define xSemaphoreTakeRecursive( xMutex, xBlockTime )   xQueueTakeMutexRecursive( ( xMutex ), ( xBlockTime ) ) 
  448 #define xSemaphoreGive( xSemaphore )        xQueueGenericSend( ( QueueHandle_t ) ( xSemaphore ), NULL, semGIVE_BLOCK_TIME, queueSEND_TO_BACK ) 
  532 #if( configUSE_RECURSIVE_MUTEXES == 1 ) 
  533 #define xSemaphoreGiveRecursive( xMutex )   xQueueGiveMutexRecursive( ( xMutex ) ) 
  625 #define xSemaphoreGiveFromISR( xSemaphore, pxHigherPriorityTaskWoken )  xQueueGiveFromISR( ( QueueHandle_t ) ( xSemaphore ), ( pxHigherPriorityTaskWoken ) ) 
  659 #define xSemaphoreTakeFromISR( xSemaphore, pxHigherPriorityTaskWoken )  xQueueReceiveFromISR( ( QueueHandle_t ) ( xSemaphore ), NULL, ( pxHigherPriorityTaskWoken ) ) 
  716 #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) 
  717 #define xSemaphoreCreateMutex() xQueueCreateMutex( queueQUEUE_TYPE_MUTEX ) 
  777 #if( configSUPPORT_STATIC_ALLOCATION == 1 ) 
  778 #define xSemaphoreCreateMutexStatic( pxMutexBuffer ) xQueueCreateMutexStatic( queueQUEUE_TYPE_MUTEX, ( pxMutexBuffer ) ) 
  845 #if( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) ) 
  846 #define xSemaphoreCreateRecursiveMutex() xQueueCreateMutex( queueQUEUE_TYPE_RECURSIVE_MUTEX ) 
  918 #if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) ) 
  919 #define xSemaphoreCreateRecursiveMutexStatic( pxStaticSemaphore ) xQueueCreateMutexStatic( queueQUEUE_TYPE_RECURSIVE_MUTEX, pxStaticSemaphore ) 
  998 #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) 
  999 #define xSemaphoreCreateCounting( uxMaxCount, uxInitialCount ) xQueueCreateCountingSemaphore( ( uxMaxCount ), ( uxInitialCount ) ) 
 1083 #if( configSUPPORT_STATIC_ALLOCATION == 1 ) 
 1084 #define xSemaphoreCreateCountingStatic( uxMaxCount, uxInitialCount, pxSemaphoreBuffer ) xQueueCreateCountingSemaphoreStatic( ( uxMaxCount ), ( uxInitialCount ), ( pxSemaphoreBuffer ) ) 
 1099 #define vSemaphoreDelete( xSemaphore ) vQueueDelete( ( QueueHandle_t ) ( xSemaphore ) ) 
 1114 #define xSemaphoreGetMutexHolder( xSemaphore ) xQueueGetMutexHolder( ( xSemaphore ) ) 
 1125 #define xSemaphoreGetMutexHolderFromISR( xSemaphore ) xQueueGetMutexHolderFromISR( ( xSemaphore ) ) 
 1137 #define uxSemaphoreGetCount( xSemaphore ) uxQueueMessagesWaiting( ( QueueHandle_t ) ( xSemaphore ) ) 
  
 
#define CLKSRCSEL_Val
Definition: system_LPC17xx.c:297
 
#define __CORE_CLK
Definition: system_LPC17xx.c:410
 
#define CLKOUTCFG_Val
Definition: system_LPC17xx.c:307
 
#define OSC_CLK
Definition: system_LPC17xx.c:396
 
#define CCLKCFG_Val
Definition: system_LPC17xx.c:302
 
#define PLL1CFG_Val
Definition: system_LPC17xx.c:301
 
#define PCLKSEL1_Val
Definition: system_LPC17xx.c:305
 
#define PLL0CFG_Val
Definition: system_LPC17xx.c:299
 
#define USBCLKCFG_Val
Definition: system_LPC17xx.c:303
 
void SystemCoreClockUpdate(void)
Definition: system_LPC17xx.c:437
 
#define SCS_Val
Definition: system_LPC17xx.c:296
 
void SystemInit(void)
Definition: system_LPC17xx.c:482
 
QueueHandle_t SemaphoreHandle_t
Definition: semphr.h:38
 
#define PCLKSEL0_Val
Definition: system_LPC17xx.c:304
 
#define RTC_CLK
Definition: system_LPC17xx.c:397
 
#define PCONP_Val
Definition: system_LPC17xx.c:306
 
#define IRC_OSC
Definition: system_LPC17xx.c:398
 
uint32_t SystemCoreClock
Definition: system_LPC17xx.c:431
 
void * QueueHandle_t
Definition: queue.h:47
 
#define FLASHCFG_Val
Definition: system_LPC17xx.c:323