Sergei G / Mbed OS Borsch

Dependencies:   DataStore JobScheduler NetworkServices W5500Interface nanopb protocol

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