Atmel Software Framework

semphr.h File Reference
#include "queue.h"

Macros

#define semBINARY_SEMAPHORE_QUEUE_LENGTH   ( ( unsigned char ) 1U )
 
#define semGIVE_BLOCK_TIME   ( ( portTickType ) 0U )
 
#define semSEMAPHORE_QUEUE_ITEM_LENGTH   ( ( unsigned char ) 0U )
 
#define vSemaphoreCreateBinary(xSemaphore)
 
#define xSemaphoreAltGive(xSemaphore)   xQueueAltGenericSend( ( xQueueHandle ) ( xSemaphore ), NULL, semGIVE_BLOCK_TIME, queueSEND_TO_BACK )
 
#define xSemaphoreAltTake(xSemaphore, xBlockTime)   xQueueAltGenericReceive( ( xQueueHandle ) ( xSemaphore ), NULL, ( xBlockTime ), pdFALSE )
 
#define xSemaphoreCreateCounting(uxMaxCount, uxInitialCount)   xQueueCreateCountingSemaphore( ( uxMaxCount ), ( uxInitialCount ) )
 
#define xSemaphoreCreateMutex()   xQueueCreateMutex()
 
#define xSemaphoreCreateRecursiveMutex()   xQueueCreateMutex()
 
#define xSemaphoreGive(xSemaphore)   xQueueGenericSend( ( xQueueHandle ) ( xSemaphore ), NULL, semGIVE_BLOCK_TIME, queueSEND_TO_BACK )
 
#define xSemaphoreGiveFromISR(xSemaphore, pxHigherPriorityTaskWoken)   xQueueGenericSendFromISR( ( xQueueHandle ) ( xSemaphore ), NULL, ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK )
 
#define xSemaphoreGiveRecursive(xMutex)   xQueueGiveMutexRecursive( ( xMutex ) )
 
#define xSemaphoreTake(xSemaphore, xBlockTime)   xQueueGenericReceive( ( xQueueHandle ) ( xSemaphore ), NULL, ( xBlockTime ), pdFALSE )
 
#define xSemaphoreTakeRecursive(xMutex, xBlockTime)   xQueueTakeMutexRecursive( ( xMutex ), ( xBlockTime ) )
 

Typedefs

typedef xQueueHandle xSemaphoreHandle
 

#define semBINARY_SEMAPHORE_QUEUE_LENGTH   ( ( unsigned char ) 1U )
#define semGIVE_BLOCK_TIME   ( ( portTickType ) 0U )
#define semSEMAPHORE_QUEUE_ITEM_LENGTH   ( ( unsigned char ) 0U )
#define vSemaphoreCreateBinary (   xSemaphore)
Value:
{ \
( xSemaphore ) = xQueueCreate( ( unsigned portBASE_TYPE ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH ); \
if( ( xSemaphore ) != NULL ) \
{ \
xSemaphoreGive( ( xSemaphore ) ); \
} \
}
#define NULL
Definition: lwip-1.4.0/src/include/lwip/def.h:47
#define semSEMAPHORE_QUEUE_ITEM_LENGTH
Definition: semphr.h:72
if(Is_usb_id_transition()&&Is_usb_id_interrupt_enabled())
Definition: applications/uc3-audio-player/usb_task.c:395
#define xSemaphoreGive(xSemaphore)
Definition: semphr.h:358
xQueueHandle xQueueCreate(unsigned portBASE_TYPE uxQueueLength, unsigned portBASE_TYPE uxItemSize) PRIVILEGED_FUNCTION

Referenced by b_fsaccess_init(), low_level_input(), low_level_output(), main(), portTASK_FUNCTION(), prvSetupMACBInterrupt(), spi_master_setup_device(), spi_setupChipReg(), sys_sem_new(), usb_task_init(), and vStartSemaphoreTasks().

#define xSemaphoreAltGive (   xSemaphore)    xQueueAltGenericSend( ( xQueueHandle ) ( xSemaphore ), NULL, semGIVE_BLOCK_TIME, queueSEND_TO_BACK )
#define xSemaphoreAltTake (   xSemaphore,
  xBlockTime 
)    xQueueAltGenericReceive( ( xQueueHandle ) ( xSemaphore ), NULL, ( xBlockTime ), pdFALSE )
#define xSemaphoreCreateCounting (   uxMaxCount,
  uxInitialCount 
)    xQueueCreateCountingSemaphore( ( uxMaxCount ), ( uxInitialCount ) )
#define xSemaphoreCreateMutex ( )    xQueueCreateMutex()
#define xSemaphoreCreateRecursiveMutex ( )    xQueueCreateMutex()
#define xSemaphoreGiveFromISR (   xSemaphore,
  pxHigherPriorityTaskWoken 
)    xQueueGenericSendFromISR( ( xQueueHandle ) ( xSemaphore ), NULL, ( pxHigherPriorityTaskWoken ), queueSEND_TO_BACK )
#define xSemaphoreTakeRecursive (   xMutex,
  xBlockTime 
)    xQueueTakeMutexRecursive( ( xMutex ), ( xBlockTime ) )