2018-12-24 17:17:27 +08:00
|
|
|
#ifndef __SWM320_FLASH_H__
|
|
|
|
#define __SWM320_FLASH_H__
|
|
|
|
|
|
|
|
void FLASH_Erase(uint32_t addr);
|
2021-09-30 17:55:16 +08:00
|
|
|
void FLASH_Write(uint32_t addr, uint32_t buff[], uint32_t count);
|
|
|
|
|
|
|
|
void Flash_Param_at_xMHz(uint32_t x);
|
|
|
|
|
|
|
|
typedef void (*IAP_Cache_Reset_t)(void);
|
|
|
|
typedef void (*IAP_Flash_Param_t)(uint32_t cfg0, uint32_t cfg1);
|
|
|
|
typedef void (*IAP_Flash_Erase_t)(uint32_t sector);
|
|
|
|
typedef void (*IAP_Flash_Write_t)(uint32_t flash_addr, uint32_t ram_addr, uint32_t count);
|
2018-12-24 17:17:27 +08:00
|
|
|
|
2021-09-30 17:55:16 +08:00
|
|
|
extern IAP_Cache_Reset_t IAP_Cache_Reset;
|
|
|
|
extern IAP_Flash_Param_t IAP_Flash_Param;
|
|
|
|
extern IAP_Flash_Erase_t IAP_Flash_Erase;
|
|
|
|
extern IAP_Flash_Write_t IAP_Flash_Write;
|
2018-12-24 17:17:27 +08:00
|
|
|
|
|
|
|
#endif //__SWM320_FLASH_H__
|