Vesrion IAP with LPC11U24_EEPROM_ONLY options

Fork of IAP by Tedd OKANO

This is IAP library from http://mbed.org/users/okano/notebook/iap-in-application-programming-internal-flash-eras/ Added option LPC11U24_EEPROM_ONLY in IAP.h that disable flash write/read functions if they not needed and working only EEPROM write/read functions. It make for clear memory allocation for flash write functions (4k).

Revision:
1:ff906ad52cf9
Parent:
0:ada7fb504504
Child:
2:0c7ec806673e
--- a/IAP.h	Mon Nov 26 04:00:38 2012 +0000
+++ b/IAP.h	Mon Nov 26 06:02:24 2012 +0000
@@ -20,6 +20,8 @@
  *        revision 1.1  12-Mar-2010   chaged: to make possible to reserve flash area for user
  *                                            it can be set by USER_FLASH_AREA_START and USER_FLASH_AREA_SIZE in IAP.h
  *        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/
  */
 
 #ifndef        MBED_IAP
@@ -266,6 +268,11 @@
     char *reserved_flash_area_start( void );
     int   reserved_flash_area_size( void );
 
+#if defined(TARGET_LPC11U24)
+    int write_eeprom( char *source_addr, char *target_addr, int size );
+    int read_eeprom( char *source_addr, char *target_addr, int size );
+#endif
+
 private:
     IAP_call        iap_entry;
     unsigned int    IAP_command[ 5 ];