#include <stdlib.h>
#include <string.h>
#include "include/FreeRTOS.h"
#include "include/task.h"
#include "include/croutine.h"
Data Structures | |
struct | QueueDefinition |
Macros | |
#define | MPU_WRAPPERS_INCLUDED_FROM_API_FILE |
#define | prvLockQueue(pxQueue) |
#define | pxMutexHolder pcTail |
#define | queueDONT_BLOCK ( ( portTickType ) 0 ) |
#define | queueERRONEOUS_UNBLOCK ( -1 ) |
#define | queueLOCKED_UNMODIFIED ( ( signed portBASE_TYPE ) 0 ) |
#define | queueMUTEX_GIVE_BLOCK_TIME ( ( portTickType ) 0 ) |
#define | queueQUEUE_IS_MUTEX NULL |
#define | queueSEMAPHORE_QUEUE_ITEM_LENGTH ( 0 ) |
#define | queueSEND_TO_BACK ( 0 ) |
#define | queueSEND_TO_FRONT ( 1 ) |
#define | queueUNLOCKED ( ( signed portBASE_TYPE ) -1 ) |
#define | uxQueueType pcHead |
#define | uxRecursiveCallCount pcReadFrom |
Typedefs | |
typedef struct QueueDefinition | xQUEUE |
typedef xQUEUE * | xQueueHandle |
Functions | |
static void | prvCopyDataFromQueue (xQUEUE *const pxQueue, const void *pvBuffer) |
static void | prvCopyDataToQueue (xQUEUE *pxQueue, const void *pvItemToQueue, portBASE_TYPE xPosition) |
static signed portBASE_TYPE | prvIsQueueEmpty (const xQueueHandle pxQueue) |
static signed portBASE_TYPE | prvIsQueueFull (const xQueueHandle pxQueue) |
static void | prvUnlockQueue (xQueueHandle pxQueue) |
unsigned portBASE_TYPE | uxQueueMessagesWaiting (const xQueueHandle pxQueue) PRIVILEGED_FUNCTION |
unsigned portBASE_TYPE | uxQueueMessagesWaitingFromISR (const xQueueHandle pxQueue) |
void | vQueueDelete (xQueueHandle xQueue) PRIVILEGED_FUNCTION |
xQueueHandle | xQueueCreate (unsigned portBASE_TYPE uxQueueLength, unsigned portBASE_TYPE uxItemSize) PRIVILEGED_FUNCTION |
xQueueHandle | xQueueCreateMutex (void) |
signed portBASE_TYPE | xQueueGenericReceive (xQueueHandle pxQueue, void *const pvBuffer, portTickType xTicksToWait, portBASE_TYPE xJustPeeking) PRIVILEGED_FUNCTION |
signed portBASE_TYPE | xQueueGenericSend (xQueueHandle xQueue, const void *const pvItemToQueue, portTickType xTicksToWait, portBASE_TYPE xCopyPosition) PRIVILEGED_FUNCTION |
signed portBASE_TYPE | xQueueGenericSendFromISR (xQueueHandle pxQueue, const void *const pvItemToQueue, signed portBASE_TYPE *pxHigherPriorityTaskWoken, portBASE_TYPE xCopyPosition) PRIVILEGED_FUNCTION |
signed portBASE_TYPE | xQueueIsQueueEmptyFromISR (const xQueueHandle pxQueue) |
signed portBASE_TYPE | xQueueIsQueueFullFromISR (const xQueueHandle pxQueue) |
signed portBASE_TYPE | xQueueReceiveFromISR (xQueueHandle pxQueue, void *const pvBuffer, signed portBASE_TYPE *pxTaskWoken) PRIVILEGED_FUNCTION |
#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE |
#define prvLockQueue | ( | pxQueue | ) |
#define pxMutexHolder pcTail |
#define queueDONT_BLOCK ( ( portTickType ) 0 ) |
#define queueERRONEOUS_UNBLOCK ( -1 ) |
#define queueLOCKED_UNMODIFIED ( ( signed portBASE_TYPE ) 0 ) |
Referenced by prvUnlockQueue().
#define queueMUTEX_GIVE_BLOCK_TIME ( ( portTickType ) 0 ) |
#define queueQUEUE_IS_MUTEX NULL |
Referenced by prvCopyDataFromQueue(), and prvCopyDataToQueue().
#define queueSEMAPHORE_QUEUE_ITEM_LENGTH ( 0 ) |
#define queueSEND_TO_BACK ( 0 ) |
Referenced by prvCopyDataToQueue().
#define queueSEND_TO_FRONT ( 1 ) |
#define queueUNLOCKED ( ( signed portBASE_TYPE ) -1 ) |
Referenced by prvUnlockQueue().
#define uxQueueType pcHead |
#define uxRecursiveCallCount pcReadFrom |
typedef struct QueueDefinition xQUEUE |
typedef xQUEUE* xQueueHandle |
|
static |
|
static |
|
static |
References taskENTER_CRITICAL, taskEXIT_CRITICAL, and QueueDefinition::uxMessagesWaiting.
|
static |
|
static |
unsigned portBASE_TYPE uxQueueMessagesWaiting | ( | const xQueueHandle | pxQueue | ) |
References configASSERT, taskENTER_CRITICAL, taskEXIT_CRITICAL, and QueueDefinition::uxMessagesWaiting.
unsigned portBASE_TYPE uxQueueMessagesWaitingFromISR | ( | const xQueueHandle | pxQueue | ) |
References configASSERT, and QueueDefinition::uxMessagesWaiting.
void vQueueDelete | ( | xQueueHandle | xQueue | ) |
References configASSERT, QueueDefinition::pcHead, traceQUEUE_DELETE, vPortFree(), and vQueueUnregisterQueue.
xQueueHandle xQueueCreate | ( | unsigned portBASE_TYPE | uxQueueLength, |
unsigned portBASE_TYPE | uxItemSize | ||
) |
xQueueHandle xQueueCreateMutex | ( | void | ) |
signed portBASE_TYPE xQueueGenericReceive | ( | xQueueHandle | pxQueue, |
void *const | pvBuffer, | ||
portTickType | xTicksToWait, | ||
portBASE_TYPE | xJustPeeking | ||
) |
References configASSERT, errQUEUE_EMPTY, listLIST_IS_EMPTY, NULL, QueueDefinition::pcReadFrom, pdFALSE, pdPASS, pdTRUE, portTickType, portYIELD_WITHIN_API, prvCopyDataFromQueue(), prvIsQueueEmpty(), prvLockQueue, prvUnlockQueue(), queueQUEUE_IS_MUTEX, taskENTER_CRITICAL, taskEXIT_CRITICAL, traceBLOCKING_ON_QUEUE_RECEIVE, traceQUEUE_PEEK, traceQUEUE_RECEIVE, traceQUEUE_RECEIVE_FAILED, QueueDefinition::uxItemSize, QueueDefinition::uxMessagesWaiting, vTaskPlaceOnEventList(), vTaskPriorityInherit(), vTaskSetTimeOutState(), vTaskSuspendAll(), xTaskCheckForTimeOut(), xTaskGetCurrentTaskHandle(), xTaskRemoveFromEventList(), xTaskResumeAll(), QueueDefinition::xTasksWaitingToReceive, and QueueDefinition::xTasksWaitingToSend.
signed portBASE_TYPE xQueueGenericSend | ( | xQueueHandle | xQueue, |
const void *const | pvItemToQueue, | ||
portTickType | xTicksToWait, | ||
portBASE_TYPE | xCopyPosition | ||
) |
References configASSERT, errQUEUE_FULL, listLIST_IS_EMPTY, NULL, pdFALSE, pdPASS, pdTRUE, portTickType, portYIELD_WITHIN_API, prvCopyDataToQueue(), prvIsQueueFull(), prvLockQueue, prvUnlockQueue(), taskENTER_CRITICAL, taskEXIT_CRITICAL, traceBLOCKING_ON_QUEUE_SEND, traceQUEUE_SEND, traceQUEUE_SEND_FAILED, QueueDefinition::uxItemSize, QueueDefinition::uxLength, QueueDefinition::uxMessagesWaiting, vTaskPlaceOnEventList(), vTaskSetTimeOutState(), vTaskSuspendAll(), xTaskCheckForTimeOut(), xTaskRemoveFromEventList(), xTaskResumeAll(), QueueDefinition::xTasksWaitingToReceive, and QueueDefinition::xTasksWaitingToSend.
signed portBASE_TYPE xQueueGenericSendFromISR | ( | xQueueHandle | pxQueue, |
const void *const | pvItemToQueue, | ||
signed portBASE_TYPE * | pxHigherPriorityTaskWoken, | ||
portBASE_TYPE | xCopyPosition | ||
) |
References configASSERT, errQUEUE_FULL, listLIST_IS_EMPTY, NULL, pdFALSE, pdPASS, pdTRUE, portCLEAR_INTERRUPT_MASK_FROM_ISR, portSET_INTERRUPT_MASK_FROM_ISR, prvCopyDataToQueue(), queueUNLOCKED, traceQUEUE_SEND_FROM_ISR, traceQUEUE_SEND_FROM_ISR_FAILED, QueueDefinition::uxItemSize, QueueDefinition::uxLength, QueueDefinition::uxMessagesWaiting, xTaskRemoveFromEventList(), QueueDefinition::xTasksWaitingToReceive, and QueueDefinition::xTxLock.
signed portBASE_TYPE xQueueIsQueueEmptyFromISR | ( | const xQueueHandle | pxQueue | ) |
References configASSERT, and QueueDefinition::uxMessagesWaiting.
signed portBASE_TYPE xQueueIsQueueFullFromISR | ( | const xQueueHandle | pxQueue | ) |
References configASSERT, QueueDefinition::uxLength, and QueueDefinition::uxMessagesWaiting.
signed portBASE_TYPE xQueueReceiveFromISR | ( | xQueueHandle | pxQueue, |
void *const | pvBuffer, | ||
signed portBASE_TYPE * | pxTaskWoken | ||
) |
References configASSERT, listLIST_IS_EMPTY, NULL, pdFAIL, pdFALSE, pdPASS, pdTRUE, portCLEAR_INTERRUPT_MASK_FROM_ISR, portSET_INTERRUPT_MASK_FROM_ISR, prvCopyDataFromQueue(), queueUNLOCKED, traceQUEUE_RECEIVE_FROM_ISR, traceQUEUE_RECEIVE_FROM_ISR_FAILED, QueueDefinition::uxItemSize, QueueDefinition::uxMessagesWaiting, QueueDefinition::xRxLock, xTaskRemoveFromEventList(), and QueueDefinition::xTasksWaitingToSend.