Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libMiMic by
LPC17xx_IAP.h
00001 #ifndef LPC17xx_IAP_h 00002 #define LPC17xx_IAP_h 00003 00004 #include <string.h> 00005 #ifdef __cplusplus 00006 extern "C" { 00007 #endif /* __cplusplus */ 00008 00009 #define LPC17xx_IAP_TRUE (0==0) 00010 #define LPC17xx_IAP_FALSE (0!=0) 00011 //Command is executed successfully. 00012 #define LPC17xx_IAP_CMD_SUCCESS 0 00013 00014 int LPC17xx_IAP_addr2Sector(const void* addr,unsigned long* o_sector); 00015 int LPC17xx_IAP_sector2Addr(unsigned int i_sector,void** o_addr); 00016 00017 unsigned long LPC17xx_IAP_getSectorSize(unsigned int i_sector); 00018 unsigned long LPC17xx_IAP_prepare(unsigned long i_start,unsigned long i_end); 00019 unsigned long LPC17xx_IAP_copyRam2Flash(const void* i_flash_addr,const void* i_src_addr,unsigned long i_size); 00020 unsigned long LPC17xx_IAP_erase(unsigned long i_start,unsigned long i_end); 00021 00022 #ifdef __cplusplus 00023 } 00024 #endif /* __cplusplus */ 00025 00026 #endif
Generated on Tue Jul 12 2022 16:22:56 by
