Revised to prevent DHCPClient::discover from hanging.
Fork of WIZ820ioInterface by
Diff: WIZ820io/WIZ820io.cpp
- Revision:
- 9:c1722862c13b
- Parent:
- 7:c0cd6680bcb7
diff -r 6ff41cd782f5 -r c1722862c13b WIZ820io/WIZ820io.cpp --- a/WIZ820io/WIZ820io.cpp Tue Feb 04 03:20:06 2014 +0000 +++ b/WIZ820io/WIZ820io.cpp Fri Aug 15 19:53:25 2014 +0000 @@ -22,7 +22,7 @@ #include "DNSClient.h" //Debug is disabled by default -#if 0 +#if 1 #define DBG(...) do{debug("%p %d %s ", this,__LINE__,__PRETTY_FUNCTION__); debug(__VA_ARGS__); } while(0); //#define DBG(x, ...) debug("[WIZ820io:DBG]"x"\r\n", ##__VA_ARGS__); #define WARN(x, ...) debug("[WIZ820io:WARN]"x"\r\n", ##__VA_ARGS__); @@ -39,7 +39,7 @@ #define INFO(x, ...) #endif -#define DBG_SPI 0 +#define DBG_SPI 1 WIZ820io* WIZ820io::inst; @@ -143,9 +143,10 @@ #ifdef TARGET_LPC1114 uint8_t mac[6] = {0x00,0x02,0xf7,0xf0,0x00,0x00}; #else - uint8_t mac[6]; - mbed_mac_address((char*)mac); + uint8_t mac[6] = {0x00,0x02,0xf7,0xf0,0x00,0x00}; + //mbed_mac_address((char*)mac); #endif + printf("Writing MAC...\r\n"); reg_wr_mac(SHAR, mac); }