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: DataStore JobScheduler NetworkServices W5500Interface nanopb protocol
Diff: source/netstack.cpp
- Revision:
- 5:8972e5de8b8c
- Parent:
- 4:b360d4f0bf34
- Child:
- 27:60c12f3f3430
--- a/source/netstack.cpp Fri Jul 14 00:13:32 2017 +0000 +++ b/source/netstack.cpp Fri Jul 14 16:14:29 2017 +0000 @@ -5,20 +5,22 @@ #include "mbed.h" -#include "W5500Interface.h" // W5500 driver for mbed -#include "DHCPClient.h" // DHCPClient from W5500 driver - #include "nsapi_dns.h" // standard DNS #define ETH_W5500 1 #if defined(ETH_W5500) + +#include "W5500Interface.h" // W5500 driver for mbed +#include "DHCPClient.h" // DHCPClient from W5500 driver DHCPClient dhcp; + #if defined(TARGET_NUCLEO_L476RG) SPI spi(PA_7,PA_6,PA_5); // mosi, miso, sclk W5500Interface eth(&spi, PB_6, NC); // mosi, miso, sclk, cs, reset -#endif -#endif +#endif // of TARGET_NUCLEO_L476RG + +#endif // of ETH_W5500 /* \brief print_MAC - print_MAC - helper function to print out MAC address * in: network_interface - pointer to network i/f