Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Socket lwip-sys lwip
Fork of EthernetInterface by
Revision 7:73a6916d991e, committed 2012-07-02
- Comitter:
- emilmont
- Date:
- Mon Jul 02 10:51:59 2012 +0000
- Parent:
- 6:c50597f8d7a2
- Child:
- 10:8d1c7a87c17b
- Commit message:
- Do not force debug on the EthernetInterface users, in particular do not change the default settings of their serial port.
Changed in this revision
| EthernetInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
| LwIPNetworking.lib | Show annotated file Show diff for this revision Revisions of this file |
--- 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();
--- a/LwIPNetworking.lib Tue Jun 26 15:33:45 2012 +0000 +++ b/LwIPNetworking.lib Mon Jul 02 10:51:59 2012 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/LwIPNetworking/#754322565baf +http://mbed.org/users/mbed_official/code/LwIPNetworking/#2526bc17ad8b
