]> git.sur5r.net Git - freertos/blobdiff - Demo/RX600_RX62N-RDK_Renesas/RTOSDemo/main-blinky.c
Prepare RX RDK project for release.
[freertos] / Demo / RX600_RX62N-RDK_Renesas / RTOSDemo / main-blinky.c
index 8fea457d29c2151de1325831a0ace3f42d056cac..658152183dfa96f61b2ceefc32cfc331ef9de7ab 100644 (file)
 #include "queue.h"\r
 \r
 /* Priorities at which the tasks are created. */\r
-#define        configQUEUE_RECEIVE_TASK_PRIORITY       ( tskIDLE_PRIORITY + 1 )\r
-#define                configQUEUE_SEND_TASK_PRIORITY          ( tskIDLE_PRIORITY + 2 )\r
+#define configQUEUE_RECEIVE_TASK_PRIORITY      ( tskIDLE_PRIORITY + 1 )\r
+#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_FREQUENCY_MS                            ( 500 / portTICK_RATE_MS )\r
+#define mainQUEUE_SEND_FREQUENCY_MS                    ( 500 / portTICK_RATE_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
 queue empty. */\r
-#define mainQUEUE_LENGTH                                               ( 1 )\r
+#define mainQUEUE_LENGTH                                       ( 1 )\r
 \r
 /*\r
  * The tasks as defined at the top of this file.\r
@@ -91,6 +91,9 @@ static void prvQueueSendTask( void *pvParameters );
 /* The queue used by both tasks. */\r
 static xQueueHandle 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
+volatile unsigned long ulHighFrequencyTickCount = 0UL;\r
 /*-----------------------------------------------------------*/\r
 \r
 void main(void)\r
@@ -213,5 +216,7 @@ void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName
 of this file. */\r
 void vApplicationIdleHook( void )\r
 {\r
+       /* Just to prevent the variable getting optimised away. */\r
+       ( void ) ulHighFrequencyTickCount;\r
 }\r
 /*-----------------------------------------------------------*/\r