]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/WizNET_DEMO_GCC_ARM7/i2c.c
Update version number to V8.0.0 (without the release candidate number).
[freertos] / FreeRTOS / Demo / WizNET_DEMO_GCC_ARM7 / i2c.c
index a7cf1fd88afc6cb7aad9973cf3beedc0b27c2f04..064b2de80adef5c59e83a4f7b23db23bf5ed2cf8 100644 (file)
@@ -1,5 +1,6 @@
 /*\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
@@ -91,7 +92,7 @@
 #define i2cI2C_VIC_ENABLE              ( ( unsigned long ) 0x0020 )\r
 \r
 /* Misc constants. */\r
-#define i2cNO_BLOCK                            ( ( portTickType ) 0 )\r
+#define i2cNO_BLOCK                            ( ( TickType_t ) 0 )\r
 #define i2cQUEUE_LENGTH                        ( ( unsigned char ) 5 )\r
 #define i2cEXTRA_MESSAGES              ( ( unsigned char ) 2 )\r
 #define i2cREAD_TX_LEN                 ( ( unsigned long ) 2 )\r
@@ -107,19 +108,19 @@ can be left free. */
 static xI2CMessage xTxMessages[ i2cQUEUE_LENGTH + i2cEXTRA_MESSAGES ];\r
 \r
 /* Function in the ARM part of the code used to create the queues. */\r
-extern void vI2CISRCreateQueues( unsigned portBASE_TYPE uxQueueLength, xQueueHandle *pxTxMessages, unsigned long **ppulBusFree );\r
+extern void vI2CISRCreateQueues( unsigned portBASE_TYPE uxQueueLength, QueueHandle_t *pxTxMessages, unsigned long **ppulBusFree );\r
 \r
 /* Index to the next free message in the xTxMessages array. */\r
 unsigned long ulNextFreeMessage = ( unsigned long ) 0;\r
 \r
 /* Queue of messages that are waiting transmission. */\r
-static xQueueHandle xMessagesForTx;\r
+static QueueHandle_t xMessagesForTx;\r
 \r
 /* Flag to indicate the state of the I2C ISR state machine. */\r
 static unsigned long *pulBusFree;\r
 \r
 /*-----------------------------------------------------------*/\r
-void i2cMessage( const unsigned char * const pucMessage, long lMessageLength, unsigned char ucSlaveAddress, unsigned short usBufferAddress, unsigned long ulDirection, xSemaphoreHandle xMessageCompleteSemaphore, portTickType xBlockTime )\r
+void i2cMessage( const unsigned char * const pucMessage, long lMessageLength, unsigned char ucSlaveAddress, unsigned short usBufferAddress, unsigned long ulDirection, SemaphoreHandle_t xMessageCompleteSemaphore, TickType_t xBlockTime )\r
 {\r
 extern volatile xI2CMessage *pxCurrentMessage;\r
 xI2CMessage *pxNextFreeMessage;\r