Library for inclusion of main.cpp
Diff: main.cpp
- Revision:
- 1:8364052fbe84
- Parent:
- 0:8f99b3f2c3a8
diff -r 8f99b3f2c3a8 -r 8364052fbe84 main.cpp --- a/main.cpp Tue Sep 09 20:45:08 2014 +0000 +++ b/main.cpp Wed Sep 17 16:33:39 2014 +0000 @@ -42,8 +42,14 @@ HTTPClient http; // HARD RESET -extern "C" void HardFault_Handler() { NVIC_SystemReset(); } + extern "C" void HardFault_Handler() { NVIC_SystemReset(); } + #ifdef MAC_ADDRESS + char mac[6] = {MAC_ADDRESS}; + extern "C" void mbed_mac_address(char *s) { for(int i=0;i<6;++i) s[i] = mac[i]; } + char fmt_mac[RESOURCE_VALUE_LEN+1]; + #endif + // Main Task... void mainTask(void const *v) { // create our object instances