]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/Common/Minimal/integer.c
Update version number to 8.1.2 after moving the defaulting of configUSE_PORT_OPTIMISE...
[freertos] / FreeRTOS / Demo / Common / Minimal / integer.c
index 287581defdcc15c7cee8c45632c31185905e8c64..d05d1df8aece40c44d2bcf0df5f71bf4109a3d62 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
@@ -99,17 +100,17 @@ static portTASK_FUNCTION_PROTO( vCompeteingIntMathTask, pvParameters );
 that the task is still executing.  The check task sets the variable back to\r
 false, flagging an error if the variable is still false the next time it\r
 is called. */\r
-static volatile signed portBASE_TYPE xTaskCheck[ intgNUMBER_OF_TASKS ] = { ( signed portBASE_TYPE ) pdFALSE };\r
+static volatile BaseType_t xTaskCheck[ intgNUMBER_OF_TASKS ] = { ( BaseType_t ) pdFALSE };\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
-void vStartIntegerMathTasks( unsigned portBASE_TYPE uxPriority )\r
+void vStartIntegerMathTasks( UBaseType_t uxPriority )\r
 {\r
 short sTask;\r
 \r
        for( sTask = 0; sTask < intgNUMBER_OF_TASKS; sTask++ )\r
        {\r
-               xTaskCreate( vCompeteingIntMathTask, ( signed char * ) "IntMath", intgSTACK_SIZE, ( void * ) &( xTaskCheck[ sTask ] ), uxPriority, ( xTaskHandle * ) NULL );\r
+               xTaskCreate( vCompeteingIntMathTask, "IntMath", intgSTACK_SIZE, ( void * ) &( xTaskCheck[ sTask ] ), uxPriority, ( TaskHandle_t * ) NULL );\r
        }\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -120,12 +121,12 @@ static portTASK_FUNCTION( vCompeteingIntMathTask, pvParameters )
 ensure the compiler does not just get rid of them. */\r
 volatile long lValue;\r
 short sError = pdFALSE;\r
-volatile signed portBASE_TYPE *pxTaskHasExecuted;\r
+volatile BaseType_t *pxTaskHasExecuted;\r
 \r
        /* Set a pointer to the variable we are going to set to true each\r
        iteration.  This is also a good test of the parameter passing mechanism\r
        within each port. */\r
-       pxTaskHasExecuted = ( volatile signed portBASE_TYPE * ) pvParameters;\r
+       pxTaskHasExecuted = ( volatile BaseType_t * ) pvParameters;\r
 \r
        /* Keep performing a calculation and checking the result against a constant. */\r
        for( ;; )\r
@@ -175,9 +176,9 @@ volatile signed portBASE_TYPE *pxTaskHasExecuted;
 /*-----------------------------------------------------------*/\r
 \r
 /* This is called to check that all the created tasks are still running. */\r
-portBASE_TYPE xAreIntegerMathsTaskStillRunning( void )\r
+BaseType_t xAreIntegerMathsTaskStillRunning( void )\r
 {\r
-portBASE_TYPE xReturn = pdTRUE;\r
+BaseType_t xReturn = pdTRUE;\r
 short sTask;\r
 \r
        /* Check the maths tasks are still running by ensuring their check variables \r