Template for LPC1768
Dependencies: Gimbal MLX90620 Socket lwip-eth lwip-sys lwip mbed-rtos mbed
Fork of EkkoEye by
Diff: EthernetInterface.cpp
- Revision:
- 7:73a6916d991e
- Parent:
- 4:9a52c802be61
- Child:
- 10:8d1c7a87c17b
diff -r c50597f8d7a2 -r 73a6916d991e EthernetInterface.cpp --- a/EthernetInterface.cpp Tue Jun 26 15:33:45 2012 +0000 +++ b/EthernetInterface.cpp Mon Jul 02 10:51:59 2012 +0000 @@ -47,11 +47,8 @@ { m_useDHCP = true; - DBG("Initializing LwIP"); LwIPInterface::init(); //Init LwIP, NOT including PPP - DBG("DHCP IP assignment"); - memset((void*)&m_lpcNetif, 0, sizeof(m_lpcNetif)); netif_add(&m_lpcNetif, NULL, NULL, NULL, NULL, lpc_enetif_init, ethernet_input/*tcpip_input???*/); netif_set_default(&m_lpcNetif); @@ -68,10 +65,8 @@ m_useDHCP = false; - DBG("Initializing LwIP"); LwIPInterface::init(); //Init LwIP - DBG("Static IP assignment"); inet_aton(ip, &ip_n); inet_aton(mask, &mask_n); inet_aton(gateway, &gateway_n); @@ -91,7 +86,6 @@ { m_netifStatusSphre.wait(0); - DBG("Enable MAC interrupts"); NVIC_SetPriority(ENET_IRQn, ((0x01 << 3) | 0x01)); NVIC_EnableIRQ(ENET_IRQn); @@ -106,8 +100,6 @@ m_netifStatusSphre.wait(); - DBG("Connected with IP %s", getIPAddress()); - return OK; } @@ -125,7 +117,6 @@ netif_set_down(&m_lpcNetif); } - DBG("Disable MAC interrupts"); NVIC_DisableIRQ(ENET_IRQn); m_netifStatusSphre.wait();