OSDN Git Service

shortURLモジュールの削除
[mimic/MiMicSDK.git] / lib / src / driver / flash / LPC17xx_IAP.h
1 #ifndef LPC17xx_IAP_h\r
2 #define LPC17xx_IAP_h\r
3 \r
4 #include <string.h>\r
5 #ifdef __cplusplus\r
6 extern "C" {\r
7 #endif /* __cplusplus */\r
8 \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
13 \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
16 \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
21 \r
22 #ifdef __cplusplus\r
23 }\r
24 #endif /* __cplusplus */\r
25 \r
26 #endif\r