]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/WizNET_DEMO_GCC_ARM7/TCP.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / WizNET_DEMO_GCC_ARM7 / TCP.c
index ecc5fea16c2a02e64b91f97699d4f5cf02337461..5151cb6db0cd6b4cd5ec75e75aa34af5facdd12e 100644 (file)
@@ -127,12 +127,12 @@ device. */
 #define tcpEINT0_VIC_ENABLE                            ( ( unsigned long ) 0x0020 )\r
 \r
 /* Various delays used in the driver. */\r
-#define tcpRESET_DELAY                                 ( ( portTickType ) 16 / portTICK_RATE_MS )\r
-#define tcpINIT_DELAY                                  ( ( portTickType ) 500 / portTICK_RATE_MS  )\r
-#define tcpLONG_DELAY                                  ( ( portTickType ) 500 / portTICK_RATE_MS  )\r
-#define tcpSHORT_DELAY                                 ( ( portTickType ) 5 / portTICK_RATE_MS )\r
-#define tcpCONNECTION_WAIT_DELAY               ( ( portTickType ) 100 / portTICK_RATE_MS )\r
-#define tcpNO_DELAY                                            ( ( portTickType ) 0 )\r
+#define tcpRESET_DELAY                                 ( ( TickType_t ) 16 / portTICK_PERIOD_MS )\r
+#define tcpINIT_DELAY                                  ( ( TickType_t ) 500 / portTICK_PERIOD_MS  )\r
+#define tcpLONG_DELAY                                  ( ( TickType_t ) 500 / portTICK_PERIOD_MS  )\r
+#define tcpSHORT_DELAY                                 ( ( TickType_t ) 5 / portTICK_PERIOD_MS )\r
+#define tcpCONNECTION_WAIT_DELAY               ( ( TickType_t ) 100 / portTICK_PERIOD_MS )\r
+#define tcpNO_DELAY                                            ( ( TickType_t ) 0 )\r
 \r
 /* Length of the data to read for various register reads. */\r
 #define tcpSTATUS_READ_LEN                             ( ( unsigned long ) 1 )\r
@@ -212,8 +212,8 @@ const unsigned char const ucDataEnableISR[]                 = { i2cCHANNEL_0_ISR_ENABLE };
 const unsigned char const ucDataDisableISR[]           = { i2cCHANNEL_0_ISR_DISABLE };\r
 const unsigned char const ucDataClearInterrupt[]       = { i2cCLEAR_ALL_INTERRUPTS };\r
 \r
-static xSemaphoreHandle xMessageComplete = NULL;\r
-xQueueHandle xTCPISRQueue = NULL;\r
+static SemaphoreHandle_t xMessageComplete = NULL;\r
+QueueHandle_t xTCPISRQueue = NULL;\r
 \r
 /* Dynamically generate and send an html page. */\r
 static void prvSendSamplePage( void );\r