#ifndef ES_FLASH_COMMMON_API_H
#define ES_FLASH_COMMMON_API_H

/* MCU page size = 512bytes */
#define MCU_PAGE_SIZE           (uint32_t)0x200
/* EEPROM start address in Flash */
#define EEPROM_START_ADDRESS  ((uint32_t)0x8000)
#define EEPROM_FLASH_SIZE     ((uint32_t)0x4000)

#define    e_rfd_ret_t    uint32_t
#define    R_RFD_ENUM_RET_STS_OK    0x0

void R_RFD_WriteDataNFlashReq(uint32_t addr,uint8_t * data,uint32_t data_len);
void R_RFD_EraseDataFlashReq(uint32_t page);

#endif
