.
Dependencies: mbed EthernetInterface mbed-rtos
Fork of Bootloader_K64F by
Diff: FreescaleIAP/FreescaleIAP.cpp
- Revision:
- 2:8c44f28c122c
- Parent:
- 1:782a3ddc329e
- Child:
- 4:8d109a566486
diff -r 782a3ddc329e -r 8c44f28c122c FreescaleIAP/FreescaleIAP.cpp --- a/FreescaleIAP/FreescaleIAP.cpp Wed Mar 11 21:00:29 2015 +0000 +++ b/FreescaleIAP/FreescaleIAP.cpp Thu Mar 12 19:04:30 2015 +0000 @@ -2,6 +2,8 @@ //#define IAPDEBUG +#define FLASH_LOC(loc) __attribute__((section(".ARM.__at_ ## loc ##"))) + #ifdef TARGET_K64F //For K64F # include "MK64F12.h" @@ -46,7 +48,7 @@ IAPCode check_error(void); IAPCode program_word(int address, char *data); -__attribute__((section(".ARM.__at_0x11000"))) IAPCode erase_sector(int address) { +__attribute__((section(".ARM.__at_0x11000"))) IAPCode erase_sector(int address) { #ifdef IAPDEBUG printf("IAP: Erasing at %x\r\n", address); #endif