]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/PIC18_WizC/Demo1/main.c
Update version number to 8.1.2 after moving the defaulting of configUSE_PORT_OPTIMISE...
[freertos] / FreeRTOS / Demo / PIC18_WizC / Demo1 / main.c
index 388eeeba7233f34da412ecba949fcfe2cf17f7e9..e51aad7a1e6b90f2985c081ca79de316e2cd22ec 100644 (file)
@@ -1,5 +1,6 @@
 /*\r
-    FreeRTOS V7.5.1 - Copyright (C) 2013 Real Time Engineers Ltd.\r
+    FreeRTOS V8.1.2 - 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
 \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
@@ -95,7 +96,7 @@ Changes from V3.0.1
 #include <FreeRTOS.h>\r
 #include <task.h>\r
 \r
-#define mainBLINK_LED_INTERVAL ( ( portTickType ) 100 / ( portTICK_RATE_MS ) )\r
+#define mainBLINK_LED_INTERVAL ( ( TickType_t ) 100 / ( portTICK_PERIOD_MS ) )\r
 \r
 /* The LED that is flashed by the B0 task. */\r
 #define mainBLINK_LED0_PORT            LATD\r
@@ -149,7 +150,7 @@ typedef struct {
        unsigned char *port;\r
        unsigned char *tris;\r
        unsigned char pin;\r
-       portTickType  interval;\r
+       TickType_t  interval;\r
 } SBLINK;\r
 \r
 const SBLINK sled0 = {&mainBLINK_LED0_PORT, &mainBLINK_LED0_TRIS, mainBLINK_LED0_PIN, mainBLINK_LED0_INTERVAL};\r
@@ -201,9 +202,9 @@ static portTASK_FUNCTION(vBlink, pvParameters)
        unsigned char   *Port           = ((SBLINK *)pvParameters)->port;\r
        unsigned char   *Tris           = ((SBLINK *)pvParameters)->tris;\r
        unsigned char   Pin                     = ((SBLINK *)pvParameters)->pin;\r
-       portTickType    Interval        = ((SBLINK *)pvParameters)->interval;\r
+       TickType_t      Interval        = ((SBLINK *)pvParameters)->interval;\r
        \r
-       portTickType    xLastWakeTime;\r
+       TickType_t      xLastWakeTime;\r
 \r
        /*\r
         * Initialize the hardware\r