/*\r
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V8.0.0 - Copyright (C) 2014 Real Time Engineers Ltd. \r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
Changes from V2.0.0\r
\r
+ Delay periods are now specified using variables and constants of\r
- portTickType rather than unsigned long.\r
+ TickType_t rather than unsigned long.\r
+ Slight modification to task priorities.\r
\r
*/\r
\r
/* The Tx task will transmit the sequence of characters at a pseudo random\r
interval. This is the maximum and minimum block time between sends. */\r
-#define comTX_MAX_BLOCK_TIME ( ( portTickType ) 0x15e )\r
-#define comTX_MIN_BLOCK_TIME ( ( portTickType ) 0xc8 )\r
+#define comTX_MAX_BLOCK_TIME ( ( TickType_t ) 0x15e )\r
+#define comTX_MIN_BLOCK_TIME ( ( TickType_t ) 0xc8 )\r
\r
#define comMAX_CONSECUTIVE_ERRORS ( 2 )\r
\r
volatile short sTxCount = 0, sRxCount = 0, sSemCount = 0;\r
\r
/* The handle to the semaphore test task. */\r
-static xTaskHandle xSemTestTaskHandle = NULL;\r
+static TaskHandle_t xSemTestTaskHandle = NULL;\r
\r
/*-----------------------------------------------------------*/\r
\r
static void vComTxTask( void *pvParameters )\r
{\r
const char * const pcTaskStartMsg = "COM Tx task started.\r\n";\r
-portTickType xTimeToWait;\r
+TickType_t xTimeToWait;\r
\r
/* Stop warnings. */\r
( void ) pvParameters;\r
const char * const pcTaskErrorMsg = "COM read error\r\n";\r
const char * const pcTaskRestartMsg = "COM resynced\r\n";\r
const char * const pcTaskTimeoutMsg = "COM Rx timed out\r\n";\r
-const portTickType xBlockTime = ( portTickType ) 0xffff / portTICK_RATE_MS;\r
+const TickType_t xBlockTime = ( TickType_t ) 0xffff / portTICK_PERIOD_MS;\r
const char *pcExpectedChar;\r
portBASE_TYPE xGotChar;\r
char cRxedChar;\r