semphr.h File Reference

#include "queue.h"

Go to the source code of this file.

Defines

#define semBINARY_SEMAPHORE_QUEUE_LENGTH   ( ( unsigned char ) 1 )
#define semGIVE_BLOCK_TIME   ( ( portTickType ) 0 )
#define semSEMAPHORE_QUEUE_ITEM_LENGTH   ( ( unsigned char ) 0 )
#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 Documentation

#define semBINARY_SEMAPHORE_QUEUE_LENGTH   ( ( unsigned char ) 1 )

Definition at line 65 of file semphr.h.

#define semGIVE_BLOCK_TIME   ( ( portTickType ) 0 )

Definition at line 67 of file semphr.h.

#define semSEMAPHORE_QUEUE_ITEM_LENGTH   ( ( unsigned char ) 0 )

Definition at line 66 of file semphr.h.

#define vSemaphoreCreateBinary ( xSemaphore   ) 

Value:

{                                                                                               \
                                                        xSemaphore = xQueueCreate( ( unsigned portBASE_TYPE ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH );  \
                                                        if( xSemaphore != NULL )                                                                    \
                                                        {                                                                                           \
                                                            xSemaphoreGive( xSemaphore );                                                           \
                                                        }                                                                                           \
                                                    }

Definition at line 108 of file semphr.h.

Referenced by vStartSemaphoreTasks().

#define xSemaphoreAltGive ( xSemaphore   )     xQueueAltGenericSend( ( xQueueHandle ) xSemaphore, NULL, semGIVE_BLOCK_TIME, queueSEND_TO_BACK )

Definition at line 450 of file semphr.h.

Referenced by prvHighPriorityMutexTask(), and prvLowPriorityMutexTask().

#define xSemaphoreAltTake ( xSemaphore,
xBlockTime   )     xQueueAltGenericReceive( ( xQueueHandle ) xSemaphore, NULL, xBlockTime, pdFALSE )

Definition at line 289 of file semphr.h.

Referenced by prvHighPriorityMutexTask(), and prvLowPriorityMutexTask().

#define xSemaphoreCreateCounting ( uxMaxCount,
uxInitialCount   )     xQueueCreateCountingSemaphore( uxMaxCount, uxInitialCount )

Definition at line 706 of file semphr.h.

Referenced by vStartCountingSemaphoreTasks().

 
#define xSemaphoreCreateMutex (  )     xQueueCreateMutex()

Definition at line 588 of file semphr.h.

Referenced by vStartAltGenericQueueTasks(), and vStartGenericQueueTasks().

 
#define xSemaphoreCreateRecursiveMutex (  )     xQueueCreateMutex()

Definition at line 643 of file semphr.h.

Referenced by vStartRecursiveMutexTasks().

#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 )

Definition at line 541 of file semphr.h.

#define xSemaphoreGiveRecursive ( xMutex   )     xQueueGiveMutexRecursive( xMutex )

#define xSemaphoreTake ( xSemaphore,
xBlockTime   )     xQueueGenericReceive( ( xQueueHandle ) xSemaphore, NULL, xBlockTime, pdFALSE )

#define xSemaphoreTakeRecursive ( xMutex,
xBlockTime   )     xQueueTakeMutexRecursive( xMutex, xBlockTime )


Typedef Documentation

Definition at line 63 of file semphr.h.


Generated on Thu Dec 17 20:02:01 2009 for AVR32 UC3 - FreeRTOS Real Time Kernel by  doxygen 1.5.5