/*\r
- FreeRTOS V7.5.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
+ FreeRTOS V8.1.2 - 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
\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
/*-----------------------------------------------------------\r
- * Normally, a demo application would define ParTest (parallel port test) \r
+ * Normally, a demo application would define ParTest (parallel port test)\r
* functions to write to an LED. In this case, four '*' symbols that are\r
* output to the debug printf() port are used to simulate LED outputs.\r
*-----------------------------------------------------------*/\r
*/\r
static void prvI2CGateKeeperTask( void *pvParameters );\r
\r
-/* The queue used to communicate toggle commands with the I2C gatekeeper \r
+/* The queue used to communicate toggle commands with the I2C gatekeeper\r
task. */\r
-static xQueueHandle xI2CCommandQueue = NULL;\r
+static QueueHandle_t xI2CCommandQueue = NULL;\r
/*-----------------------------------------------------------*/\r
\r
void vParTestInitialise( void )\r
configASSERT( xI2CCommandQueue );\r
\r
/* Create the I2C gatekeeper task itself. */\r
- xTaskCreate( prvI2CGateKeeperTask, ( signed char * ) "I2C", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+ xTaskCreate( prvI2CGateKeeperTask, "I2C", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
}\r
/*-----------------------------------------------------------*/\r
\r
{\r
/* Which bit is being manipulated? */\r
ucLED = 0x01 << ucLED;\r
- \r
+\r
/* Is the bit currently set or clear? */\r
if( ( ucLEDState & ucLED ) == 0U )\r
{\r
{\r
ucLEDState &= ~ucLED;\r
}\r
- \r
+\r
ucBuffer[ 0 ] = partstIO_WRITE_COMMAND;\r
ucBuffer[ 1 ] = ucLEDState;\r
- \r
+\r
xI2CMessage.sl_addr7bit = partstSLAVE_ADDRESS;\r
xI2CMessage.tx_data = ucBuffer ;\r
xI2CMessage.tx_length = sizeof( ucBuffer );\r