/*\r
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V8.0.1 - Copyright (C) 2014 Real Time Engineers Ltd. \r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
the terms of the GNU General Public License (version 2) as published by the\r
Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.\r
\r
- >>! NOTE: The modification to the GPL is included to allow you to distribute\r
- >>! a combined work that includes FreeRTOS without being obliged to provide\r
- >>! the source code for proprietary components outside of the FreeRTOS\r
- >>! kernel.\r
+ >>! NOTE: The modification to the GPL is included to allow you to !<<\r
+ >>! distribute a combined work that includes FreeRTOS without being !<<\r
+ >>! obliged to provide the source code for proprietary components !<<\r
+ >>! outside of the FreeRTOS kernel. !<<\r
\r
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
/*-----------------------------------------------------------*/\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