/*\r
- FreeRTOS.org V4.1.0 - Copyright (C) 2003-2006 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
static portTASK_FUNCTION_PROTO( vQueueSendWhenSuspendedTask, pvParameters );\r
\r
/* Demo task specific constants. */\r
-#define priSTACK_SIZE ( ( unsigned portSHORT ) 128 )\r
-#define priSLEEP_TIME ( ( portTickType ) 100 )\r
+#define priSTACK_SIZE ( configMINIMAL_STACK_SIZE )\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
}\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