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: EthernetInterface IAP mbed-rtos mbed
Fork of TCPSocket_HelloWorld by
Diff: main.cpp
- Revision:
- 17:0d74817db362
- Parent:
- 16:bfcf5f6274a2
- Child:
- 18:f9b7d08b5217
diff -r bfcf5f6274a2 -r 0d74817db362 main.cpp
--- a/main.cpp Wed Apr 22 13:38:58 2015 +0000
+++ b/main.cpp Thu Apr 23 02:01:38 2015 +0000
@@ -29,3 +29,14 @@
while(1) {}
}
+
+// override the default weak function to provide a specific mac address
+extern "C" void mbed_mac_address(char *mac)
+{
+ mac[0] = 0x01;
+ mac[1] = 0x23;
+ mac[2] = 0x45;
+ mac[3] = 0x67;
+ mac[4] = 0x89;
+ mac[5] = 0xAB;
+};
