]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/MB91460_Softune/SRC/main.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / MB91460_Softune / SRC / main.c
index 4ddf5881008c250fd9e0f32ecedd3e3d5a1ec990..7a9e75f2e34d26938fc249504abe739f62e916f7 100644 (file)
@@ -137,8 +137,8 @@ top of the page.  When the system is operating error free the 'Check' task
 toggles an LED every three seconds.  If an error is discovered in any task the\r
 rate is increased to 500 milliseconds.  [in this case the '*' characters on the\r
 LCD represent LEDs]*/\r
-#define mainNO_ERROR_CHECK_DELAY               ( ( portTickType ) 3000 / portTICK_RATE_MS  )\r
-#define mainERROR_CHECK_DELAY                  ( ( portTickType ) 500 / portTICK_RATE_MS  )\r
+#define mainNO_ERROR_CHECK_DELAY               ( ( TickType_t ) 3000 / portTICK_PERIOD_MS  )\r
+#define mainERROR_CHECK_DELAY                  ( ( TickType_t ) 500 / portTICK_PERIOD_MS  )\r
 \r
 /* The total number of LEDs available. */\r
 #define mainNO_CO_ROUTINE_LEDs ( 8 )\r
@@ -243,7 +243,7 @@ void main(void)
 \r
 static void prvErrorChecks( void *pvParameters )\r
 {\r
-portTickType xDelayPeriod = mainNO_ERROR_CHECK_DELAY, xLastExecutionTime;\r
+TickType_t xDelayPeriod = mainNO_ERROR_CHECK_DELAY, xLastExecutionTime;\r
 \r
        /* Initialise xLastExecutionTime so the first call to vTaskDelayUntil()\r
        works correctly. */\r