/*
 * Copyright 2020-2022 Yuntu Microelectronics Co., Ltd.
 * All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */
/*!
 * @file fls_drv_table.c
 *
 */

#include "fls_drv_table.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
};