IAP class library for LPC1768, LPC11U24, LPC1114, LPC812 and LPC824
Dependents: MakerBotServer SystemManagement IAP_testing Arch_Pro_TCPSocket ... more
Diff: IAP.cpp
- Revision:
- 4:cee1a2a734c9
- Parent:
- 3:87e117b1bdf2
- Child:
- 7:c8bf974ecb33
diff -r 87e117b1bdf2 -r cee1a2a734c9 IAP.cpp --- a/IAP.cpp Tue Jan 13 09:11:41 2015 +0000 +++ b/IAP.cpp Fri Jan 16 08:00:27 2015 +0000 @@ -22,8 +22,9 @@ * revision 2.0 26-Nov-2012 LPC11U24 code added * 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 + * revision 3.0 09-Jan-2015 LPC812 and LPC824 support added + * revision 3.1 13-Jan-2015 LPC1114 support added + * revision 3.1.1 16-Jan-2015 Target MCU name changed for better compatibility across the platforms */ #include "mbed.h" @@ -56,10 +57,10 @@ IAPCommand_Compare, IAPCommand_Reinvoke_ISP, IAPCommand_Read_device_serial_number, -#if defined(TARGET_LPC11U24) +#if defined(TARGET_LPC11UXX) IAPCommand_EEPROM_Write = 61, IAPCommand_EEPROM_Read, -#elif defined(TARGET_LPC812) || defined(TARGET_LPC824) +#elif defined(TARGET_LPC81X) || defined(TARGET_LPC82X) IAPCommand_Erase_page = 59, #endif }; @@ -161,7 +162,7 @@ return ( USER_FLASH_AREA_SIZE ); } -#if defined(TARGET_LPC11U24) +#if defined(TARGET_LPC11UXX) int IAP::write_eeprom( char *source_addr, char *target_addr, int size ) { @@ -189,7 +190,7 @@ return ( (int)IAP_result[ 0 ] ); } -#elif defined(TARGET_LPC812) || defined(TARGET_LPC824) +#elif defined(TARGET_LPC81X) || defined(TARGET_LPC82X) int IAP::erase_page( int start, int end ) {