IAP class library for LPC1768, LPC11U24, LPC1114, LPC1347, LPC1549, LPC812 and LPC824

Fork of IAP by Tedd OKANO

Revision:
4:cee1a2a734c9
Parent:
3:87e117b1bdf2
Child:
7:c8bf974ecb33
diff -r 87e117b1bdf2 -r cee1a2a734c9 IAP.h
--- a/IAP.h	Tue Jan 13 09:11:41 2015 +0000
+++ b/IAP.h	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
  */
 
 
@@ -32,7 +33,7 @@
 
 #include    "mbed.h"
 
-#if defined(TARGET_LPC1768)
+#if defined(TARGET_LPC176X)
 
 #define     USER_FLASH_AREA_START   FLASH_SECTOR_29
 #define     USER_FLASH_AREA_SIZE    (FLASH_SECTOR_SIZE_16_TO_29 * 1)
@@ -150,7 +151,7 @@
     (char *)FLASH_SECTOR_29
 };
 
-#elif defined(TARGET_LPC11U24) || defined(TARGET_LPC1114)
+#elif defined(TARGET_LPC11UXX) || defined(TARGET_LPC11XX)
 
 #define     USER_FLASH_AREA_START   FLASH_SECTOR_7
 #define     USER_FLASH_AREA_SIZE    (FLASH_SECTOR_SIZE * 1)
@@ -195,7 +196,7 @@
     (char *)FLASH_SECTOR_7,
 };
 
-#elif defined(TARGET_LPC812) || defined(TARGET_LPC824)
+#elif defined(TARGET_LPC81X) || defined(TARGET_LPC82X)
 
 #define     USER_FLASH_AREA_START   FLASH_SECTOR_15
 #define     USER_FLASH_AREA_SIZE    (FLASH_SECTOR_SIZE * 1)
@@ -443,7 +444,7 @@
      */
     int   reserved_flash_area_size( void );
 
-#if defined(TARGET_LPC11U24)
+#if defined(TARGET_LPC11UXX)
 
     /** Copy RAM to EEPROM (LPC11U24)
      *
@@ -465,7 +466,7 @@
      */
     int read_eeprom( char *source_addr, char *target_addr, int size );
 
-#elif defined(TARGET_LPC812) || defined(TARGET_LPC824)
+#elif defined(TARGET_LPC81X) || defined(TARGET_LPC82X)
 
     /** Erase page(s) (LPC812, LPC824)
      *