/*-----------------------------------------------------------*/\r
\r
/* The queue to pass data from the Tx task to the Rx task. */\r
-static xQueueHandle xQueue = NULL;\r
+static QueueHandle_t xQueue = NULL;\r
\r
/* The semaphore that is 'given' by interrupts generated from button pushes. */\r
-static xSemaphoreHandle xSemaphore = NULL;\r
+static SemaphoreHandle_t xSemaphore = NULL;\r
\r
/*-----------------------------------------------------------*/\r
\r
\r
static void prvQueueSendTask( void *pvParameters )\r
{\r
-portTickType xDelay;\r
+TickType_t xDelay;\r
const unsigned long ulValueToSend = mainQUEUED_VALUE;\r
\r
/* Remove compiler warning about unused parameter. */\r
{\r
/* The delay period between successive sends to the queue is set by\r
the potentiometer reading. */\r
- xDelay = ( portTickType ) prvReadPOT();\r
+ xDelay = ( TickType_t ) prvReadPOT();\r
\r
/* If the block time is greater than 3000 milliseconds then block\r
indefinitely waiting for a button push. */\r
else\r
{\r
/* Convert a time in milliseconds to a time in ticks. */\r
- xDelay /= portTICK_RATE_MS;\r
+ xDelay /= portTICK_PERIOD_MS;\r
\r
/* Place this task in the blocked state until it is time to run\r
again. As this is not an indefinite sleep the kernel will place\r