Atmel Software Framework

AltPollQ.c File Reference
#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 )
#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 )
#define pollqSTACK_SIZE   configMINIMAL_STACK_SIZE
#define pollqVALUES_TO_PRODUCE   ( ( signed portBASE_TYPE ) 3 )

Referenced by portTASK_FUNCTION().

static portTASK_FUNCTION_PROTO ( vPolledQueueProducer  ,
pvParameters   
)
static
static portTASK_FUNCTION_PROTO ( vPolledQueueConsumer  ,
pvParameters   
)
static
void vStartAltPolledQueueTasks ( unsigned portBASE_TYPE  uxPriority)
portBASE_TYPE xAreAltPollingQueuesStillRunning ( void  )

volatile signed portBASE_TYPE xPollingConsumerCount = pollqINITIAL_VALUE
static
volatile signed portBASE_TYPE xPollingProducerCount = pollqINITIAL_VALUE
static