]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/RX100-RSK_IAR/main_low_power.c
Update version number ready for release.
[freertos] / FreeRTOS / Demo / RX100-RSK_IAR / main_low_power.c
index 6b265ba570186b0386d70c57812b2cffd62e2266..7b3d9d4df68bd0efd42a17c5337c740dc0e7dde1 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V8.0.1 - Copyright (C) 2014 Real Time Engineers Ltd. \r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
     the terms of the GNU General Public License (version 2) as published by the\r
     Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.\r
 \r
-    >>! NOTE: The modification to the GPL is included to allow you to distribute\r
-    >>! a combined work that includes FreeRTOS without being obliged to provide\r
-    >>! the source code for proprietary components outside of the FreeRTOS\r
-    >>! kernel.\r
+    >>!   NOTE: The modification to the GPL is included to allow you to     !<<\r
+    >>!   distribute a combined work that includes FreeRTOS without being   !<<\r
+    >>!   obliged to provide the source code for proprietary components     !<<\r
+    >>!   outside of the FreeRTOS kernel.                                   !<<\r
 \r
     FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
@@ -213,10 +213,10 @@ __interrupt void vButtonInterrupt( void );
 /*-----------------------------------------------------------*/\r
 \r
 /* The queue to pass data from the Tx task to the Rx task. */\r
-static xQueueHandle xQueue = NULL;\r
+static QueueHandle_t xQueue = NULL;\r
 \r
 /* The semaphore that is 'given' by interrupts generated from button pushes. */\r
-static xSemaphoreHandle xSemaphore = NULL;\r
+static SemaphoreHandle_t xSemaphore = NULL;\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
@@ -257,7 +257,7 @@ void main_low_power( void )
 \r
 static void prvQueueSendTask( void *pvParameters )\r
 {\r
-portTickType xDelay;\r
+TickType_t xDelay;\r
 const unsigned long ulValueToSend = mainQUEUED_VALUE;\r
 \r
        /* Remove compiler warning about unused parameter. */\r
@@ -267,7 +267,7 @@ const unsigned long ulValueToSend = mainQUEUED_VALUE;
        {\r
                /* The delay period between successive sends to the queue is set by\r
                the potentiometer reading. */\r
-               xDelay = ( portTickType ) prvReadPOT();\r
+               xDelay = ( TickType_t ) prvReadPOT();\r
 \r
                /* If the block time is greater than 3000 milliseconds then block\r
                indefinitely waiting for a button push. */\r
@@ -280,7 +280,7 @@ const unsigned long ulValueToSend = mainQUEUED_VALUE;
                else\r
                {\r
                        /* Convert a time in milliseconds to a time in ticks. */\r
-                       xDelay /= portTICK_RATE_MS;\r
+                       xDelay /= portTICK_PERIOD_MS;\r
 \r
                        /* Place this task in the blocked state until it is time to run\r
                        again.  As this is not an indefinite sleep the kernel will place\r