Macros | |
#define | pollqCONSUMER_DELAY ( pollqPRODUCER_DELAY - ( portTickType ) ( 20 / portTICK_RATE_MS ) ) |
#define | pollqINITIAL_VALUE ( ( signed portBASE_TYPE ) 0 ) |
#define | pollqNO_DELAY ( ( portTickType ) 0 ) |
#define | pollqPRODUCER_DELAY ( ( portTickType ) 200 / portTICK_RATE_MS ) |
#define | pollqQUEUE_SIZE ( 10 ) |
#define | pollqSTACK_SIZE configMINIMAL_STACK_SIZE |
#define | pollqVALUES_TO_PRODUCE ( ( signed portBASE_TYPE ) 3 ) |
Functions | |
static | portTASK_FUNCTION (vPolledQueueProducer, pvParameters) |
static | portTASK_FUNCTION (vPolledQueueConsumer, pvParameters) |
static | portTASK_FUNCTION_PROTO (vPolledQueueProducer, pvParameters) |
static | portTASK_FUNCTION_PROTO (vPolledQueueConsumer, pvParameters) |
void | vStartPolledQueueTasks (unsigned portBASE_TYPE uxPriority) |
portBASE_TYPE | xArePollingQueuesStillRunning (void) |
Variables | |
static volatile signed portBASE_TYPE | xPollingConsumerCount = pollqINITIAL_VALUE |
static volatile signed portBASE_TYPE | xPollingProducerCount = pollqINITIAL_VALUE |
#define pollqCONSUMER_DELAY ( pollqPRODUCER_DELAY - ( portTickType ) ( 20 / portTICK_RATE_MS ) ) |
Referenced by portTASK_FUNCTION().
#define pollqINITIAL_VALUE ( ( signed portBASE_TYPE ) 0 ) |
Referenced by xArePollingQueuesStillRunning().
#define pollqNO_DELAY ( ( portTickType ) 0 ) |
Referenced by portTASK_FUNCTION().
#define pollqPRODUCER_DELAY ( ( portTickType ) 200 / portTICK_RATE_MS ) |
Referenced by portTASK_FUNCTION().
#define pollqQUEUE_SIZE ( 10 ) |
Referenced by vStartPolledQueueTasks().
#define pollqSTACK_SIZE configMINIMAL_STACK_SIZE |
Referenced by vStartPolledQueueTasks().
#define pollqVALUES_TO_PRODUCE ( ( signed portBASE_TYPE ) 3 ) |
Referenced by portTASK_FUNCTION().
|
static |
References pdFALSE, pdPASS, pdTRUE, pollqNO_DELAY, pollqPRODUCER_DELAY, pollqVALUES_TO_PRODUCE, vTaskDelay(), xPollingProducerCount, and xQueueSend.
|
static |
References pdFALSE, pdPASS, pdTRUE, pollqCONSUMER_DELAY, pollqNO_DELAY, uxQueueMessagesWaiting(), vTaskDelay(), xPollingConsumerCount, and xQueueReceive.
|
static |
|
static |
void vStartPolledQueueTasks | ( | unsigned portBASE_TYPE | uxPriority | ) |
References NULL, pollqQUEUE_SIZE, pollqSTACK_SIZE, vQueueAddToRegistry, xQueueCreate, and xTaskCreate.
portBASE_TYPE xArePollingQueuesStillRunning | ( | void | ) |
References pdFALSE, pdTRUE, pollqINITIAL_VALUE, xPollingConsumerCount, and xPollingProducerCount.
|
static |
Referenced by portTASK_FUNCTION(), and xArePollingQueuesStillRunning().
|
static |
Referenced by portTASK_FUNCTION(), and xArePollingQueuesStillRunning().