#include "fls_drv_table.h"
#include <stdint.h>


const fls_drv_tbl_t flashdriver_table = {
    .version = FLS_DRV_VERSION,
    .init = (FLASH_Init_t)((uint32_t)FLASH_DRV_Init),
    .deinit = (FLASH_Deinit_t)((uint32_t)FLASH_DRV_Deinit),
    .eraseSector = (FLASH_EraseSector_t)((uint32_t)FLASH_DRV_EraseSector),
    .program = (FLASH_Program_t)((uint32_t)FLASH_DRV_Program),
#ifdef FEATURE_EFM_BOOT_SWAP_CMD_CODE
    .bootSwap = (FLASH_BootSwap_t)((uint32_t)FLASH_DRV_BootSwap),
#endif
.EraseBlock = (FLASH_EraseBlock_t)((uint32_t)FLASH_DRV_EraseBlock),
#ifdef FEATURE_EFM_ERASE_NVR_CMD_CODE
    .eraseNVR = (FLASH_EraseNVR_t)((uint32_t)FLASH_DRV_EraseNVR),
#endif
#ifdef FEATURE_EFM_PROGRAM_NVR_CMD_CODE
    .programNVR = (FLASH_ProgramNVR_t)((uint32_t)FLASH_DRV_ProgramNVR),
#endif
#ifdef FEATURE_EFM_READ_NVR_CMD_CODE
    .readNVR = (FLASH_ReadNVR_t)((uint32_t)FLASH_DRV_ReadNVR),
#endif
};