1 #ifndef LPC17xx_IAP_h
\r
2 #define LPC17xx_IAP_h
\r
7 #endif /* __cplusplus */
\r
9 #define LPC17xx_IAP_TRUE (0==0)
\r
10 #define LPC17xx_IAP_FALSE (0!=0)
\r
11 //Command is executed successfully.
\r
12 #define LPC17xx_IAP_CMD_SUCCESS 0
\r
14 int LPC17xx_IAP_addr2Sector(const void* addr,unsigned long* o_sector);
\r
15 int LPC17xx_IAP_sector2Addr(unsigned int i_sector,void** o_addr);
\r
17 unsigned long LPC17xx_IAP_getSectorSize(unsigned int i_sector);
\r
18 unsigned long LPC17xx_IAP_prepare(unsigned long i_start,unsigned long i_end);
\r
19 unsigned long LPC17xx_IAP_copyRam2Flash(const void* i_flash_addr,const void* i_src_addr,unsigned long i_size);
\r
20 unsigned long LPC17xx_IAP_erase(unsigned long i_start,unsigned long i_end);
\r
24 #endif /* __cplusplus */
\r