sample of erasing sector 7 on LPC1768
Fork of IAP_internal_flash_write by
Diff: main.cpp
- Revision:
- 4:5705a494169a
- Parent:
- 3:63a0993315e5
- Child:
- 5:806960ca964e
--- a/main.cpp Fri Jan 09 06:37:02 2015 +0000 +++ b/main.cpp Tue Jan 13 09:11:47 2015 +0000 @@ -41,6 +41,7 @@ * revision 2.1 26-Nov-2012 EEPROM access code imported from Suga koubou san's (http://mbed.org/users/okini3939/) library * http://mbed.org/users/okini3939/code/M0_EEPROM_test/ * revision 3.0 09-Jan-2014 LPC812 and LPC824 support added + * revision 3.1 13-Jan-2014 LPC1114 support added */ #include "mbed.h" @@ -50,7 +51,7 @@ #if defined(TARGET_LPC1768) #define TARGET_SECTOR 29 // use sector 29 as target sector if it is on LPC1768 -#elif defined(TARGET_LPC11U24) +#elif defined(TARGET_LPC11U24) || defined(TARGET_LPC1114) #define TARGET_SECTOR 7 // use sector 7 as target sector if it is on LPC11U24 #define TARGET_EEPROM_ADDRESS 64 #define TARGET_EEPROM_ADDRESS 64