#include <stdlib.h>
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "AltPollQ.h"
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 | vStartAltPolledQueueTasks (unsigned portBASE_TYPE uxPriority) |
portBASE_TYPE | xAreAltPollingQueuesStillRunning (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 xAreAltPollingQueuesStillRunning().
#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 vStartAltPolledQueueTasks().
#define pollqSTACK_SIZE configMINIMAL_STACK_SIZE |
Referenced by vStartAltPolledQueueTasks().
#define pollqVALUES_TO_PRODUCE ( ( signed portBASE_TYPE ) 3 ) |
Referenced by portTASK_FUNCTION().
|
static |
|
static |
|
static |
|
static |
void vStartAltPolledQueueTasks | ( | unsigned portBASE_TYPE | uxPriority | ) |
References NULL, pollqQUEUE_SIZE, pollqSTACK_SIZE, vQueueAddToRegistry, xQueueCreate, and xTaskCreate.
portBASE_TYPE xAreAltPollingQueuesStillRunning | ( | void | ) |
References pdFALSE, pdTRUE, pollqINITIAL_VALUE, xPollingConsumerCount, and xPollingProducerCount.
|
static |
Referenced by portTASK_FUNCTION(), and xAreAltPollingQueuesStillRunning().
|
static |
Referenced by portTASK_FUNCTION(), and xAreAltPollingQueuesStillRunning().