]> git.sur5r.net Git - freertos/blobdiff - Source/tasks.c
Continue work on the SH2A port.
[freertos] / Source / tasks.c
index 3cd2e9c02297e46896292abf69e4b8d9b213d1be..3ca53b1046344f41f4042e787e380f6593259621 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V6.0.1 - Copyright (C) 2009 Real Time Engineers Ltd.\r
+    FreeRTOS V6.0.2 - Copyright (C) 2010 Real Time Engineers Ltd.\r
 \r
     ***************************************************************************\r
     *                                                                         *\r
@@ -72,8 +72,6 @@ task.h is included from an application file. */
  */\r
 #define tskIDLE_STACK_SIZE     configMINIMAL_STACK_SIZE\r
 \r
-#define tskIDLE_PRIORITY                       ( ( unsigned portBASE_TYPE ) 0 )\r
-\r
 /*\r
  * Task control block.  A task control block (TCB) is allocated to each task,\r
  * and stores the context of the task.\r
@@ -1744,7 +1742,7 @@ portBASE_TYPE xReturn;
                        passed since vTaskSetTimeout() was called. */\r
                        xReturn = pdTRUE;\r
                }\r
-               else if( ( ( portTickType ) xTickCount - ( portTickType ) pxTimeOut->xTimeOnEntering ) < ( portTickType ) *pxTicksToWait )\r
+               else if( ( ( portTickType ) ( ( portTickType ) xTickCount - ( portTickType ) pxTimeOut->xTimeOnEntering ) ) < ( portTickType ) *pxTicksToWait )\r
                {\r
                        /* Not a genuine timeout. Adjust parameters for time remaining. */\r
                        *pxTicksToWait -= ( ( portTickType ) xTickCount - ( portTickType ) pxTimeOut->xTimeOnEntering );\r