Changes from V2.0.0\r
\r
+ Delay periods are now specified using variables and constants of\r
- portTickType rather than unsigned long.\r
+ TickType_t rather than unsigned long.\r
+ Added a second, simple test that uses the functions \r
vQueueReceiveWhenSuspendedTask() and vQueueSendWhenSuspendedTask().\r
\r
\r
/* Demo task specific constants. */\r
#define priSTACK_SIZE ( ( unsigned short ) configMINIMAL_STACK_SIZE )\r
-#define priSLEEP_TIME ( ( portTickType ) 50 )\r
+#define priSLEEP_TIME ( ( TickType_t ) 50 )\r
#define priLOOPS ( 5 )\r
#define priMAX_COUNT ( ( unsigned long ) 0xff )\r
-#define priNO_BLOCK ( ( portTickType ) 0 )\r
+#define priNO_BLOCK ( ( TickType_t ) 0 )\r
#define priSUSPENDED_QUEUE_LENGTH ( 1 )\r
\r
/*-----------------------------------------------------------*/\r
\r
/* Handles to the two counter tasks. These could be passed in as parameters\r
to the controller task to prevent them having to be file scope. */\r
-static xTaskHandle xContinuousIncrementHandle, xLimitedIncrementHandle, xChangePriorityWhenSuspendedHandle;\r
+static TaskHandle_t xContinuousIncrementHandle, xLimitedIncrementHandle, xChangePriorityWhenSuspendedHandle;\r
\r
/* The shared counter variable. This is passed in as a parameter to the two \r
counter variables for demonstration purposes. */\r
static portBASE_TYPE xPriorityRaiseWhenSuspendedError = pdFALSE;\r
\r
/* Queue used by the second test. */\r
-xQueueHandle xSuspendedTestQueue;\r
+QueueHandle_t xSuspendedTestQueue;\r
\r
/*-----------------------------------------------------------*/\r
/*\r