Vesrion IAP with LPC11U24_EEPROM_ONLY options
Fork of IAP by
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).
Diff: IAP.h
- Revision:
- 2:0c7ec806673e
- Parent:
- 1:ff906ad52cf9
--- a/IAP.h Mon Nov 26 06:02:24 2012 +0000 +++ b/IAP.h Sat Dec 28 21:01:05 2013 +0000 @@ -29,6 +29,8 @@ #include "mbed.h" +#define LPC11U24_EEPROM_ONLY + #if defined(TARGET_LPC1768) #define USER_FLASH_AREA_START FLASH_SECTOR_29 @@ -258,7 +260,8 @@ IAP() : iap_entry( reinterpret_cast<IAP_call>(IAP_LOCATION) ), cclk_kHz( SystemCoreClock / 1000 ) {} int read_ID( void ); int read_serial( void ); - int blank_check( int start, int end ); +#ifndef LPC11U24_EEPROM_ONLY + int blank_check( int start, int end ); int erase( int start, int end ); int prepare( int start, int end ); int write( char *source_addr, char *target_addr, int size ); @@ -267,7 +270,8 @@ char *reserved_flash_area_start( void ); int reserved_flash_area_size( void ); - +#endif + #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 );