]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_LPC1768_GCC_Rowley/webserver/emac.c
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / CORTEX_LPC1768_GCC_Rowley / webserver / emac.c
index 4e59a7c72d263e9b00fdf6f07117a5e52fae88a6..522bdc92dce70953c5e0d2af7463bb5b815b57be 100644 (file)
@@ -1,5 +1,6 @@
 /*\r
-    FreeRTOS V7.5.2 - Copyright (C) 2013 Real Time Engineers Ltd.\r
+    FreeRTOS V8.0.0:rc1 - 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
@@ -73,7 +74,7 @@
 #include "EthDev_LPC17xx.h"\r
 \r
 /* Time to wait between each inspection of the link status. */\r
-#define emacWAIT_FOR_LINK_TO_ESTABLISH ( 500 / portTICK_RATE_MS )\r
+#define emacWAIT_FOR_LINK_TO_ESTABLISH ( 500 / portTICK_PERIOD_MS )\r
 \r
 /* Short delay used in several places during the initialisation process. */\r
 #define emacSHORT_DELAY                                   ( 2 )\r
@@ -85,7 +86,7 @@
 #define emacPINSEL2_VALUE                      ( 0x50150105 )\r
 \r
 /* If no buffers are available, then wait this long before looking again.... */\r
-#define emacBUFFER_WAIT_DELAY  ( 3 / portTICK_RATE_MS )\r
+#define emacBUFFER_WAIT_DELAY  ( 3 / portTICK_PERIOD_MS )\r
 \r
 /* ...and don't look more than this many times. */\r
 #define emacBUFFER_WAIT_ATTEMPTS       ( 30 )\r
@@ -142,7 +143,7 @@ static unsigned short prvReadPHY( unsigned char ucPhyReg, long *plStatus );
 /*-----------------------------------------------------------*/\r
 \r
 /* The semaphore used to wake the uIP task when data arrives. */\r
-extern xSemaphoreHandle xEMACSemaphore;\r
+extern SemaphoreHandle_t xEMACSemaphore;\r
 \r
 /* Each ucBufferInUse index corresponds to a position in the pool of buffers.\r
 If the index contains a 1 then the buffer within pool is in use, if it\r