/* Erase one sector, given a flash address
* return 0 on success.
*/
-int flash_hal_erase_sector(uint32_t addr)
+int flash_erase_sector(uint32_t addr)
{
uint32_t sector = get_sector_number(addr);
int ret = 0;
}
/* Flash a binary image chunk to a sector. */
-int flash_hal_program_page(uint32_t addr, uint32_t size, unsigned char *buf)
+int flash_program_page(uint32_t addr, uint32_t size, unsigned char *buf)
{
uint32_t sector = 0;
int ret = 0;
/* Erase one sector, given a flash address
* return 0 on success.
*/
-int flash_hal_erase_sector(uint32_t addr);
+int flash_erase_sector(uint32_t addr);
/* Flash a binary image chunk to flash.
* Flash must have been erased first.
* return 0 on success.
*/
-int flash_hal_program_page (uint32_t addr, uint32_t sz, unsigned char *buf);
+int flash_program_page (uint32_t addr, uint32_t sz, unsigned char *buf);
#endif /* CORE_IAP_H */