Atmel Software Framework

AltBlock.c File Reference
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "AltBlock.h"

Macros

#define bktALLOWABLE_MARGIN   ( 12 )
 
#define bktDONT_BLOCK   ( ( portTickType ) 0 )
 
#define bktPRIMARY_BLOCK_TIME   ( 10 )
 
#define bktPRIMARY_PRIORITY   ( 3 )
 
#define bktQUEUE_LENGTH   ( 5 )
 
#define bktRUN_INDICATOR   ( ( unsigned portBASE_TYPE ) 0x55 )
 
#define bktSECONDARY_PRIORITY   ( 2 )
 
#define bktSHORT_WAIT   ( ( ( portTickType ) 20 ) / portTICK_RATE_MS )
 
#define bktTIME_TO_BLOCK   ( 175 )
 

Functions

void vCreateAltBlockTimeTasks (void)
 
static void vPrimaryBlockTimeTestTask (void *pvParameters)
 
static void vSecondaryBlockTimeTestTask (void *pvParameters)
 
portBASE_TYPE xAreAltBlockTimeTestTasksStillRunning (void)
 

Variables

static portBASE_TYPE xErrorOccurred = pdFALSE
 
static portBASE_TYPE xPrimaryCycles = 0
 
static volatile unsigned
portBASE_TYPE 
xRunIndicator
 
static xTaskHandle xSecondary
 
static portBASE_TYPE xSecondaryCycles = 0
 
static xQueueHandle xTestQueue
 

#define bktALLOWABLE_MARGIN   ( 12 )
#define bktDONT_BLOCK   ( ( portTickType ) 0 )
#define bktPRIMARY_BLOCK_TIME   ( 10 )
#define bktPRIMARY_PRIORITY   ( 3 )
#define bktQUEUE_LENGTH   ( 5 )
#define bktRUN_INDICATOR   ( ( unsigned portBASE_TYPE ) 0x55 )
#define bktSECONDARY_PRIORITY   ( 2 )
#define bktSHORT_WAIT   ( ( ( portTickType ) 20 ) / portTICK_RATE_MS )
#define bktTIME_TO_BLOCK   ( 175 )

portBASE_TYPE xAreAltBlockTimeTestTasksStillRunning ( void  )

portBASE_TYPE xPrimaryCycles = 0
static
volatile unsigned portBASE_TYPE xRunIndicator
static
portBASE_TYPE xSecondaryCycles = 0
static
xQueueHandle xTestQueue
static