]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/main-blinky.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / RX600_RX63N-RSK_Renesas / RTOSDemo / main-blinky.c
index c99b61cb0d64ecc4b2332919a30e4619437888f6..2008b2c927b91f02bd0952e7b68295a9136be995 100644 (file)
 #define        configQUEUE_SEND_TASK_PRIORITY          ( tskIDLE_PRIORITY + 2 )\r
 \r
 /* The rate at which data is sent to the queue, specified in milliseconds. */\r
-#define mainQUEUE_SEND_PERIOD_MS                       ( 500 / portTICK_RATE_MS )\r
+#define mainQUEUE_SEND_PERIOD_MS                       ( 500 / portTICK_PERIOD_MS )\r
 \r
 /* The period of the software timer, specified in milliseconds. */\r
-#define mainSOFTWARE_TIMER_PERIOD_MS           ( 150 / portTICK_RATE_MS )\r
+#define mainSOFTWARE_TIMER_PERIOD_MS           ( 150 / portTICK_PERIOD_MS )\r
 \r
 /* The number of items the queue can hold.  This is 1 as the receive task\r
 will remove items as they are added so the send task should always find the\r
@@ -124,10 +124,10 @@ static void prvQueueSendTask( void *pvParameters );
 /*\r
  * The callback function used by the software timer.\r
  */\r
-static void prvBlinkyTimerCallback( xTimerHandle xTimer );\r
+static void prvBlinkyTimerCallback( TimerHandle_t xTimer );\r
 \r
 /* The queue used by both tasks. */\r
-static xQueueHandle xQueue = NULL;\r
+static QueueHandle_t xQueue = NULL;\r
 \r
 /* This variable is not used by this simple Blinky example.  It is defined \r
 purely to allow the project to link as it is used by the full project. */\r
@@ -136,7 +136,7 @@ volatile unsigned long ulHighFrequencyTickCount = 0UL;
 \r
 void main(void)\r
 {\r
-xTimerHandle xTimer;\r
+TimerHandle_t xTimer;\r
 \r
        /* Turn all LEDs off. */\r
        vParTestInitialise();\r
@@ -185,7 +185,7 @@ xTimerHandle xTimer;
 \r
 static void prvQueueSendTask( void *pvParameters )\r
 {\r
-portTickType xNextWakeTime;\r
+TickType_t xNextWakeTime;\r
 const unsigned long ulValueToSend = 100UL;\r
 \r
        /* Initialise xNextWakeTime - this only needs to be done once. */\r
@@ -227,7 +227,7 @@ unsigned long ulReceivedValue;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-static void prvBlinkyTimerCallback( xTimerHandle xTimer )\r
+static void prvBlinkyTimerCallback( TimerHandle_t xTimer )\r
 {\r
        /* The software timer does nothing but toggle an LED. */\r
        vParTestToggleLED( mainTIMER_LED );\r
@@ -269,7 +269,7 @@ void vApplicationMallocFailedHook( void )
 \r
 /* This function is explained by the comments above its prototype at the top\r
 of this file. */\r
-void vApplicationStackOverflowHook( xTaskHandle pxTask, char *pcTaskName )\r
+void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName )\r
 {\r
        for( ;; );\r
 }\r