]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/Common/Full/comtest.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / Common / Full / comtest.c
index 53aebb832cbf97059148c94b47a7633038668c1e..63ac20b442f76562b0df1d3bfcd698b75a223c80 100644 (file)
@@ -120,7 +120,7 @@ Changed from V1.2.5
 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
@@ -139,8 +139,8 @@ Changes from V2.0.0
 \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
@@ -169,7 +169,7 @@ check that both tasks are still executing. */
 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
@@ -188,7 +188,7 @@ const unsigned portBASE_TYPE uxBufferLength = 255;
 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
@@ -228,7 +228,7 @@ const char * const pcTaskStartMsg = "COM Rx task started.\r\n";
 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