]> git.sur5r.net Git - freertos/blobdiff - Demo/Common/Minimal/dynamic.c
UpdUpdate IAR projects to use Embedded Workbench V5.11.
[freertos] / Demo / Common / Minimal / dynamic.c
index 7ad58e9342dc9e87bc5e6eac79c38eda5c971939..43f08cb3e64ee71fea046fa6c99b7c43af471eb5 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-       FreeRTOS.org V4.2.0 - Copyright (C) 2003-2007 Richard Barry.\r
+       FreeRTOS.org V4.7.0 - Copyright (C) 2003-2007 Richard Barry.\r
 \r
        This file is part of the FreeRTOS.org distribution.\r
 \r
        See http://www.FreeRTOS.org for documentation, latest information, license \r
        and contact details.  Please ensure to read the configuration and relevant \r
        port sections of the online documentation.\r
+\r
+       Also see http://www.SafeRTOS.com a version that has been certified for use\r
+       in safety critical systems, plus commercial licensing, development and\r
+       support options.\r
        ***************************************************************************\r
 */\r
 \r
@@ -111,7 +115,7 @@ static portTASK_FUNCTION_PROTO( vQueueSendWhenSuspendedTask, pvParameters );
 \r
 /* Demo task specific constants. */\r
 #define priSTACK_SIZE                          ( configMINIMAL_STACK_SIZE )\r
-#define priSLEEP_TIME                          ( ( portTickType ) 128 )\r
+#define priSLEEP_TIME                          ( ( portTickType ) 128 / portTICK_RATE_MS )\r
 #define priLOOPS                                       ( 5 )\r
 #define priMAX_COUNT                           ( ( unsigned portLONG ) 0xff )\r
 #define priNO_BLOCK                                    ( ( portTickType ) 0 )\r
@@ -347,6 +351,12 @@ portBASE_TYPE xGotValue;
                        }\r
                        xTaskResumeAll();\r
 \r
+                       #if configUSE_PREEMPTION == 0\r
+                       {\r
+                               taskYIELD();\r
+                       }\r
+                       #endif\r
+\r
                } while( xGotValue == pdFALSE );\r
 \r
                if( ulReceivedValue != ulExpectedValue )\r