Microchip® Advanced Software Framework

comtest.c File Reference
#include <stdlib.h>
#include "FreeRTOS.h"
#include "task.h"
#include "serial.h"
#include "comtest.h"
#include "partest.h"

Macros

#define comBUFFER_LEN   ( ( unsigned portBASE_TYPE ) ( comLAST_BYTE - comFIRST_BYTE ) + ( unsigned portBASE_TYPE ) 1 )
 
#define comFIRST_BYTE   ( 'A' )
 
#define comINITIAL_RX_COUNT_VALUE   ( 0 )
 
#define comLAST_BYTE   ( 'X' )
 
#define comNO_BLOCK   ( ( portTickType ) 0 )
 
#define comOFFSET_TIME   ( ( portTickType ) 3 )
 
#define comRX_BLOCK_TIME   ( ( portTickType ) 0xffff )
 
#define comRX_LED_OFFSET   ( 1 )
 
#define comSTACK_SIZE   configMINIMAL_STACK_SIZE
 
#define comTOTAL_PERMISSIBLE_ERRORS   ( 2 )
 
#define comTX_LED_OFFSET   ( 0 )
 
#define comTX_MAX_BLOCK_TIME   ( ( portTickType ) 0x96 )
 
#define comTX_MIN_BLOCK_TIME   ( ( portTickType ) 0x32 )
 

Functions

static portTASK_FUNCTION (vComTxTask, pvParameters)
 
static portTASK_FUNCTION (vComRxTask, pvParameters)
 
static portTASK_FUNCTION_PROTO (vComTxTask, pvParameters)
 
static portTASK_FUNCTION_PROTO (vComRxTask, pvParameters)
 
void vAltStartComTestTasks (unsigned portBASE_TYPE uxPriority, unsigned long ulBaudRate, unsigned portBASE_TYPE uxLED)
 
portBASE_TYPE xAreComTestTasksStillRunning (void)
 

Variables

static unsigned portBASE_TYPE uxBaseLED = 0
 
static volatile unsigned
portBASE_TYPE 
uxRxLoops = comINITIAL_RX_COUNT_VALUE
 
static xComPortHandle xPort = NULL
 

#define comBUFFER_LEN   ( ( unsigned portBASE_TYPE ) ( comLAST_BYTE - comFIRST_BYTE ) + ( unsigned portBASE_TYPE ) 1 )

Referenced by vAltStartComTestTasks().

#define comFIRST_BYTE   ( 'A' )

Referenced by portTASK_FUNCTION().

#define comINITIAL_RX_COUNT_VALUE   ( 0 )
#define comLAST_BYTE   ( 'X' )

Referenced by portTASK_FUNCTION().

#define comNO_BLOCK   ( ( portTickType ) 0 )

Referenced by portTASK_FUNCTION().

#define comOFFSET_TIME   ( ( portTickType ) 3 )

Referenced by portTASK_FUNCTION().

#define comRX_BLOCK_TIME   ( ( portTickType ) 0xffff )

Referenced by portTASK_FUNCTION().

#define comRX_LED_OFFSET   ( 1 )

Referenced by portTASK_FUNCTION().

#define comSTACK_SIZE   configMINIMAL_STACK_SIZE

Referenced by vAltStartComTestTasks().

#define comTOTAL_PERMISSIBLE_ERRORS   ( 2 )

Referenced by portTASK_FUNCTION().

#define comTX_LED_OFFSET   ( 0 )

Referenced by portTASK_FUNCTION().

#define comTX_MAX_BLOCK_TIME   ( ( portTickType ) 0x96 )

Referenced by portTASK_FUNCTION().

#define comTX_MIN_BLOCK_TIME   ( ( portTickType ) 0x32 )

Referenced by portTASK_FUNCTION().

static portTASK_FUNCTION_PROTO ( vComTxTask  ,
pvParameters   
)
static
static portTASK_FUNCTION_PROTO ( vComRxTask  ,
pvParameters   
)
static
void vAltStartComTestTasks ( unsigned portBASE_TYPE  uxPriority,
unsigned long  ulBaudRate,
unsigned portBASE_TYPE  uxLED 
)
portBASE_TYPE xAreComTestTasksStillRunning ( void  )

unsigned portBASE_TYPE uxBaseLED = 0
static
volatile unsigned portBASE_TYPE uxRxLoops = comINITIAL_RX_COUNT_VALUE
static
xComPortHandle xPort = NULL
static

Referenced by portTASK_FUNCTION().