]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_STM32F103_GCC_Rowley/main.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / CORTEX_STM32F103_GCC_Rowley / main.c
index 32d964e716735272168641695ca329d38d8462f7..8b54bd439d8e602aab47add6aff589431cc1bcec 100644 (file)
 \r
 /* The time between cycles of the 'check' task - which depends on whether the\r
 check task has detected an error or not. */\r
-#define mainCHECK_DELAY_NO_ERROR                       ( ( portTickType ) 5000 / portTICK_RATE_MS )\r
-#define mainCHECK_DELAY_ERROR                          ( ( portTickType ) 500 / portTICK_RATE_MS )\r
+#define mainCHECK_DELAY_NO_ERROR                       ( ( TickType_t ) 5000 / portTICK_PERIOD_MS )\r
+#define mainCHECK_DELAY_ERROR                          ( ( TickType_t ) 500 / portTICK_PERIOD_MS )\r
 \r
 /* The LED controlled by the 'check' task. */\r
 #define mainCHECK_LED                                          ( 3 )\r
@@ -198,7 +198,7 @@ int main( void )
 /* Described at the top of this file. */\r
 static void prvCheckTask( void *pvParameters )\r
 {\r
-portTickType xLastExecutionTime;\r
+TickType_t xLastExecutionTime;\r
 unsigned long ulTicksToWait = mainCHECK_DELAY_NO_ERROR;\r
 \r
        /* Just to remove the compiler warning about the unused parameter. */\r
@@ -351,7 +351,7 @@ static void prvSetupHardware( void )
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-void vApplicationStackOverflowHook( xTaskHandle pxTask, char *pcTaskName )\r
+void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName )\r
 {\r
        /* This function will get called if a task overflows its stack.   If the\r
        parameters are corrupt then inspect pxCurrentTCB to find which was the\r