/*\r
- FreeRTOS V7.5.1 - Copyright (C) 2013 Real Time Engineers Ltd.\r
+ FreeRTOS V8.0.0 - 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
*/\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