#include <stdlib.h>
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "semphr.h"
#include "QPeek.h"
Macros | |
#define | qpeekHIGH_PRIORITY ( tskIDLE_PRIORITY + 2 ) |
#define | qpeekHIGHEST_PRIORITY ( tskIDLE_PRIORITY + 3 ) |
#define | qpeekLOW_PRIORITY ( tskIDLE_PRIORITY + 0 ) |
#define | qpeekMEDIUM_PRIORITY ( tskIDLE_PRIORITY + 1 ) |
#define | qpeekNO_BLOCK ( 0 ) |
#define | qpeekQUEUE_LENGTH ( 5 ) |
#define | qpeekSHORT_DELAY ( 10 ) |
Functions | |
static void | prvHighestPriorityPeekTask (void *pvParameters) |
static void | prvHighPriorityPeekTask (void *pvParameters) |
static void | prvLowPriorityPeekTask (void *pvParameters) |
static void | prvMediumPriorityPeekTask (void *pvParameters) |
void | vStartQueuePeekTasks (void) |
portBASE_TYPE | xAreQueuePeekTasksStillRunning (void) |
Variables | |
static volatile unsigned portLONG | ulLoopCounter = 0 |
static volatile portBASE_TYPE | xErrorDetected = pdFALSE |
xTaskHandle | xHighestPriorityTask |
xTaskHandle | xHighPriorityTask |
xTaskHandle | xMediumPriorityTask |
#define qpeekHIGH_PRIORITY ( tskIDLE_PRIORITY + 2 ) |
Referenced by vStartQueuePeekTasks().
#define qpeekHIGHEST_PRIORITY ( tskIDLE_PRIORITY + 3 ) |
Referenced by vStartQueuePeekTasks().
#define qpeekLOW_PRIORITY ( tskIDLE_PRIORITY + 0 ) |
Referenced by vStartQueuePeekTasks().
#define qpeekMEDIUM_PRIORITY ( tskIDLE_PRIORITY + 1 ) |
Referenced by vStartQueuePeekTasks().
#define qpeekNO_BLOCK ( 0 ) |
Referenced by prvHighestPriorityPeekTask(), and prvLowPriorityPeekTask().
#define qpeekQUEUE_LENGTH ( 5 ) |
Referenced by vStartQueuePeekTasks().
#define qpeekSHORT_DELAY ( 10 ) |
Referenced by prvLowPriorityPeekTask().
|
static |
References NULL, pdPASS, pdTRUE, qpeekNO_BLOCK, uxQueueMessagesWaiting(), vPrintDisplayMessage(), vTaskSuspend(), xErrorDetected, xQueueHandle, xQueuePeek, and xQueueReceive.
Referenced by vStartQueuePeekTasks().
|
static |
References NULL, pdPASS, pdTRUE, uxQueueMessagesWaiting(), vTaskSuspend(), xErrorDetected, xQueueHandle, xQueuePeek, and xQueueReceive.
Referenced by vStartQueuePeekTasks().
|
static |
References errQUEUE_EMPTY, pdPASS, pdTRUE, qpeekNO_BLOCK, qpeekSHORT_DELAY, uxQueueMessagesWaiting(), vTaskDelay(), vTaskResume(), xErrorDetected, xHighestPriorityTask, xHighPriorityTask, xMediumPriorityTask, xQueueHandle, xQueuePeek, xQueueReceive, xQueueSendToBack, and xQueueSendToFront.
Referenced by vStartQueuePeekTasks().
|
static |
References NULL, pdPASS, pdTRUE, ulLoopCounter, uxQueueMessagesWaiting(), vTaskSuspend(), xErrorDetected, xQueueHandle, and xQueuePeek.
Referenced by vStartQueuePeekTasks().
void vStartQueuePeekTasks | ( | void | ) |
References NULL, prvHighestPriorityPeekTask(), prvHighPriorityPeekTask(), prvLowPriorityPeekTask(), prvMediumPriorityPeekTask(), qpeekHIGH_PRIORITY, qpeekHIGHEST_PRIORITY, qpeekLOW_PRIORITY, qpeekMEDIUM_PRIORITY, qpeekQUEUE_LENGTH, vQueueAddToRegistry, xHighestPriorityTask, xHighPriorityTask, xMediumPriorityTask, xQueueCreate, and xTaskCreate.
portBASE_TYPE xAreQueuePeekTasksStillRunning | ( | void | ) |
References pdTRUE, ulLoopCounter, and xErrorDetected.
|
static |
Referenced by prvMediumPriorityPeekTask(), and xAreQueuePeekTasksStillRunning().
|
static |
xTaskHandle xHighestPriorityTask |
Referenced by prvLowPriorityPeekTask(), and vStartQueuePeekTasks().
xTaskHandle xHighPriorityTask |
Referenced by prvLowPriorityPeekTask(), and vStartQueuePeekTasks().
xTaskHandle xMediumPriorityTask |
Referenced by prvLowPriorityPeekTask(), and vStartQueuePeekTasks().