]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_M4F_M0_LPC43xx_Keil/M4/ParTest.c
Update version number to 8.1.2 after moving the defaulting of configUSE_PORT_OPTIMISE...
[freertos] / FreeRTOS / Demo / CORTEX_M4F_M0_LPC43xx_Keil / M4 / ParTest.c
index 5743b7ea4ba8d24e64456e34bb415b4b867ebb19..b21212141e0beb7a808620d8cb35fc45175586e2 100644 (file)
@@ -1,5 +1,6 @@
 /*\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
@@ -63,7 +64,7 @@
 */\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
@@ -106,9 +107,9 @@ gatekeeper task. */
  */\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
@@ -136,7 +137,7 @@ I2C_M_SETUP_Type xI2CMessage;
        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
@@ -171,7 +172,7 @@ static I2C_M_SETUP_Type xI2CMessage; /* Static so it is not on the stack as this
                {\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
@@ -181,10 +182,10 @@ static I2C_M_SETUP_Type xI2CMessage; /* Static so it is not on the stack as this
                        {\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