Microchip® Advanced Software Framework

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

Macros

#define bktALLOWABLE_MARGIN   ( 15 )
 
#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 vCreateBlockTimeTasks (void)
 
static void vPrimaryBlockTimeTestTask (void *pvParameters)
 
static void vSecondaryBlockTimeTestTask (void *pvParameters)
 
portBASE_TYPE xAreBlockTimeTestTasksStillRunning (void)
 

Variables

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

#define bktALLOWABLE_MARGIN   ( 15 )
#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 xAreBlockTimeTestTasksStillRunning ( void  )

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