/*-----------------------------------------------------------*/\r
\r
/* How long to wait before attempting to connect the MAC again. */\r
-#define uipINIT_WAIT ( 100 / portTICK_RATE_MS )\r
+#define uipINIT_WAIT ( 100 / portTICK_PERIOD_MS )\r
\r
/* Shortcut to the header within the Rx buffer. */\r
#define xHeader ((struct uip_eth_hdr *) &uip_buf[ 0 ])\r
* The callback function that is assigned to both the periodic timer and the\r
* ARP timer.\r
*/\r
-static void prvUIPTimerCallback( xTimerHandle xTimer );\r
+static void prvUIPTimerCallback( TimerHandle_t xTimer );\r
\r
/*\r
* Port functions required by the uIP stack.\r
/*-----------------------------------------------------------*/\r
\r
/* The queue used to send TCP/IP events to the uIP stack. */\r
-xQueueHandle xEMACEventQueue = NULL;\r
+QueueHandle_t xEMACEventQueue = NULL;\r
\r
/*-----------------------------------------------------------*/\r
\r
\r
static void prvInitialise_uIP( void )\r
{\r
-xTimerHandle xARPTimer, xPeriodicTimer;\r
+TimerHandle_t xARPTimer, xPeriodicTimer;\r
uip_ipaddr_t xIPAddr;\r
const unsigned long ul_uIPEventQueueLength = 10UL;\r
\r
\r
/* Create and start the uIP timers. */\r
xARPTimer = xTimerCreate( "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
- ( 10000UL / portTICK_RATE_MS ), /* Timer period. */\r
+ ( 10000UL / portTICK_PERIOD_MS ), /* Timer period. */\r
pdTRUE, /* Autor-reload. */\r
( void * ) uipARP_TIMER,\r
prvUIPTimerCallback\r
);\r
\r
xPeriodicTimer = xTimerCreate( "PeriodicTimer",\r
- ( 50 / portTICK_RATE_MS ),\r
+ ( 50 / portTICK_PERIOD_MS ),\r
pdTRUE, /* Autor-reload. */\r
( void * ) uipPERIODIC_TIMER,\r
prvUIPTimerCallback\r
}\r
/*-----------------------------------------------------------*/\r
\r
-static void prvUIPTimerCallback( xTimerHandle xTimer )\r
+static void prvUIPTimerCallback( TimerHandle_t xTimer )\r
{\r
static const unsigned long ulARPTimerExpired = uipARP_TIMER_EVENT;\r
static const unsigned long ulPeriodicTimerExpired = uipPERIODIC_TIMER_EVENT;\r