]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_STM32L152_IAR/main.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / CORTEX_STM32L152_IAR / main.c
index d707fdd7ae40d53078a35009c74d139272197626..dfecd5abdc01c94b8e345b30f20344a8f9babfdd 100644 (file)
@@ -221,7 +221,7 @@ unsigned long ulTIM6_OverflowCount = 0UL;
 \r
 /* The handle of the queue used to send messages from tasks and interrupts to\r
 the LCD task. */\r
-static xQueueHandle xLCDQueue = NULL;\r
+static QueueHandle_t xLCDQueue = NULL;\r
 \r
 /* The definition of each message sent from tasks and interrupts to the LCD\r
 task. */\r
@@ -411,7 +411,7 @@ long lHigherPriorityTaskWoken = pdFALSE;
 void vApplicationTickHook( void )\r
 {\r
 static unsigned long ulCounter = 0;\r
-static const unsigned long ulCheckFrequency = 5000UL / portTICK_RATE_MS;\r
+static const unsigned long ulCheckFrequency = 5000UL / portTICK_PERIOD_MS;\r
 long lHigherPriorityTaskWoken = pdFALSE;\r
 \r
 /* Define the status message that is sent to the LCD task.  By default the\r
@@ -475,7 +475,7 @@ xQueueMessage xMessage;
 \r
                /* Block for 10 milliseconds so this task does not utilise all the CPU\r
                time and debouncing of the button is not necessary. */\r
-               vTaskDelay( 10 / portTICK_RATE_MS );\r
+               vTaskDelay( 10 / portTICK_PERIOD_MS );\r
        }\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -578,7 +578,7 @@ void TIM6_IRQHandler( void )
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-void vApplicationStackOverflowHook( xTaskHandle pxTask, char *pcTaskName )\r
+void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName )\r
 {\r
        ( void ) pcTaskName;\r
        ( void ) pxTask;\r