#ifndef __SWM221_FLASH_H__
#define __SWM221_FLASH_H__


uint32_t FLASH_Erase(uint32_t addr);
uint32_t FLASH_Write(uint32_t addr, uint32_t buff[], uint32_t cnt);
void Flash_Param_at_xMHz(uint32_t x);
void Cache_Clear(void);


#define FLASH_SECTOR_SIZE	512


#define FLASH_RES_OK	0
#define FLASH_RES_TO	1	//Timeout
#define FLASH_RES_ERR	2


#endif //__SWM221_FLASH_H__
