#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 semBINARY_SEMAPHORE_QUEUE_LENGTH ( ( unsigned char ) 1 ) |
#define semGIVE_BLOCK_TIME ( ( portTickType ) 0 ) |
#define semSEMAPHORE_QUEUE_ITEM_LENGTH ( ( unsigned char ) 0 ) |
#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 ) |
#define xSemaphoreCreateMutex | ( | ) | xQueueCreateMutex() |
Definition at line 588 of file semphr.h.
Referenced by vStartAltGenericQueueTasks(), and vStartGenericQueueTasks().
#define xSemaphoreCreateRecursiveMutex | ( | ) | xQueueCreateMutex() |
#define xSemaphoreGive | ( | xSemaphore | ) | xQueueGenericSend( ( xQueueHandle ) xSemaphore, NULL, semGIVE_BLOCK_TIME, queueSEND_TO_BACK ) |
Definition at line 352 of file semphr.h.
Referenced by portTASK_FUNCTION(), prvDecrementSemaphoreCount(), prvHighPriorityMutexTask(), prvIncrementSemaphoreCount(), and prvLowPriorityMutexTask().
#define xSemaphoreGiveFromISR | ( | xSemaphore, | |||
pxHigherPriorityTaskWoken | ) | xQueueGenericSendFromISR( ( xQueueHandle ) xSemaphore, NULL, pxHigherPriorityTaskWoken, queueSEND_TO_BACK ) |
Definition at line 436 of file semphr.h.
Referenced by prvRecursiveMutexBlockingTask(), prvRecursiveMutexControllingTask(), and prvRecursiveMutexPollingTask().
#define xSemaphoreTake | ( | xSemaphore, | |||
xBlockTime | ) | xQueueGenericReceive( ( xQueueHandle ) xSemaphore, NULL, xBlockTime, pdFALSE ) |
Definition at line 181 of file semphr.h.
Referenced by portTASK_FUNCTION(), prvCountingSemaphoreTask(), prvDecrementSemaphoreCount(), prvHighPriorityMutexTask(), prvIncrementSemaphoreCount(), and prvLowPriorityMutexTask().
#define xSemaphoreTakeRecursive | ( | xMutex, | |||
xBlockTime | ) | xQueueTakeMutexRecursive( xMutex, xBlockTime ) |
Definition at line 274 of file semphr.h.
Referenced by prvRecursiveMutexBlockingTask(), prvRecursiveMutexControllingTask(), and prvRecursiveMutexPollingTask().
typedef xQueueHandle xSemaphoreHandle |