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: DM_FATFileSystem EthernetInterface HTTPClient mbed-rtos mbed-src
Fork of DMSupport by
Diff: Bios/BiosLoader.cpp
- Revision:
- 41:26b99e8dc0e6
- Parent:
- 40:6df4f63aa406
--- a/Bios/BiosLoader.cpp Wed Jun 10 09:54:15 2015 +0000 +++ b/Bios/BiosLoader.cpp Thu Jun 02 04:52:32 2016 +0000 @@ -68,24 +68,24 @@ * Global functions *****************************************************************************/ -#if !defined(MAC_IN_SDK) -/* The LPC4088QSB platform in the MBED SDK have defined the WEAK function - * mbed_mac_address (ethernet_api.c) to read a unique MAC address from the - * onboard EEPROM. - * The LPC4088DM platform in the MBED SDK does not have the WEAK function - * so it is implemented here instead. This version of the function will ask - * the bios for a MAC address. - */ -void mbed_mac_address(char *mac) { - static char cache[6]; - static bool haveIt = false; - if (!haveIt) { - BiosLoader::instance().getMacAddress(cache); - haveIt = true; - } - memcpy(mac, cache, 6); -} -#endif +//#if !defined(MAC_IN_SDK) +///* The LPC4088QSB platform in the MBED SDK have defined the WEAK function +// * mbed_mac_address (ethernet_api.c) to read a unique MAC address from the +// * onboard EEPROM. +// * The LPC4088DM platform in the MBED SDK does not have the WEAK function +// * so it is implemented here instead. This version of the function will ask +// * the bios for a MAC address. +// */ +//void mbed_mac_address(char *mac) { +// static char cache[6]; +// static bool haveIt = false; +// if (!haveIt) { +// BiosLoader::instance().getMacAddress(cache); +// haveIt = true; +// } +// memcpy(mac, cache, 6); +//} +//#endif /****************************************************************************** * Private Functions