#include "dev_reg.h"
#include "app_config.h"

//*----------------------------------------------------------------------------*/
/**@brief    设备配置表
   @param	 具体配置项请看struct __dev_reg结构体描述
   @return
   @note	 注意：
   			 例如logo逻辑盘符sd0_rec/sd1_rec/udisk_rec是做录音文件夹区分使用的,
			 在定义新的设备逻辑盘发的时候， 注意避开"_rec"后缀作为设备逻辑盘符
*/
/*----------------------------------------------------------------------------*/


const struct __dev_reg dev_reg[] = {
#if SDFILE_STORAGE && TCFG_CODE_FLASH_ENABLE
    //内置flash
    {
        /*logo*/			SDFILE_DEV,
        /*name*/			NULL,
        /*storage_path*/	SDFILE_MOUNT_PATH,
        /*root_path*/		SDFILE_RES_ROOT_PATH,
        /*fs_type*/			"sdfile",
    },
#endif
#if FLASH_INSIDE_REC_ENABLE
    //内置录音
    {
        /*logo*/			"rec_sdfile",
        /*name*/			NULL,
        /*storage_path*/	"mnt/rec_sdfile",
        /*root_path*/		"mnt/rec_sdfile/C/",
        /*fs_type*/			"rec_sdfile",
    },
#endif
#if (TCFG_SD0_ENABLE)
    //sd0
    {
        /*logo*/			"sd0",
        /*name*/			"sd0",
        /*storage_path*/	"storage/sd0",
        /*root_path*/		"storage/sd0/C/",
        /*fs_type*/			"fat",
    },
#endif
#if (TCFG_SD1_ENABLE)
    //sd1
    {
        /*logo*/			"sd1",
        /*name*/			"sd1",
        /*storage_path*/	"storage/sd1",
        /*root_path*/		"storage/sd1/C/",
        /*fs_type*/			"fat",
    },
#endif
#if (TCFG_UDISK_ENABLE)
    //u盘
    {
        /*logo*/			"udisk0",
        /*name*/			"udisk0",
        /*storage_path*/	"storage/udisk0",
        /*root_path*/		"storage/udisk0/C/",
        /*fs_type*/			"fat",
    },
#endif
#if (TCFG_SD0_ENABLE && TCFG_RECORD_FOLDER_DEV_ENABLE)
    //sd0录音文件夹分区
    {
        /*logo*/			"sd0_rec",
        /*name*/			"sd0",
        /*storage_path*/	"storage/sd0",
        /*root_path*/		"storage/sd0/C/"REC_FOLDER_NAME,
        /*fs_type*/			"fat",
    },
#endif
#if (TCFG_SD1_ENABLE && TCFG_RECORD_FOLDER_DEV_ENABLE)
    //sd1录音文件夹分区
    {
        /*logo*/			"sd1_rec",
        /*name*/			"sd1",
        /*storage_path*/	"storage/sd1",
        /*root_path*/		"storage/sd1/C/"REC_FOLDER_NAME,
        /*fs_type*/			"fat",
    },
#endif
#if (TCFG_UDISK_ENABLE && TCFG_RECORD_FOLDER_DEV_ENABLE)
    //u盘录音文件夹分区
    {
        /*logo*/			"udisk0_rec",
        /*name*/			"udisk0",
        /*storage_path*/	"storage/udisk0",
        /*root_path*/		"storage/udisk0/C/"REC_FOLDER_NAME,
        /*fs_type*/			"fat",
    },
#endif
#if TCFG_NOR_FAT
    //外挂fat分区
    {
        /*logo*/			"fat_nor",
        /*name*/			"fat_nor",
        /*storage_path*/	"storage/fat_nor",
        /*root_path*/		"storage/fat_nor/C/",
        /*fs_type*/			"fat",
    },
#endif
#if (defined TCFG_NANDFLASH_FAT_ENABLE && TCFG_NANDFLASH_FAT_ENABLE)
    //外挂fat分区
    {
        /*logo*/			TCFG_NANDFLASH_FAT_ROOT,
        /*name*/			TCFG_NANDFLASH_FAT_ROOT,
        /*storage_path*/	"storage/"TCFG_NANDFLASH_FAT_ROOT,
        /*root_path*/		"storage/"TCFG_NANDFLASH_FAT_ROOT"/C/",
        /*fs_type*/			"fat",
    },
#endif
#if TCFG_NOR_FS
    //外挂flash资源分区
    {
        /*logo*/			"res_nor",
        /*name*/			"res_nor",
        /*storage_path*/	"storage/res_nor",
        /*root_path*/		"storage/res_nor/C/",
        /*fs_type*/			"nor_sdfile",
    },
#endif
#if TCFG_NOR_REC
    ///外挂录音分区
    {
        /*logo*/			"rec_nor",
        /*name*/			"rec_nor",
        /*storage_path*/	"storage/rec_nor",
        /*root_path*/		"storage/rec_nor/C/",
        /*fs_type*/			"rec_fs",
    },
#endif
    {
        /*logo*/			"nor_ui",
        /*name*/			"nor_ui",
        /*storage_path*/	"storage/nor_ui",
        /*root_path*/		"storage/nor_ui/C/",
        /*fs_type*/			"nor_sdfile",
    },
#if TCFG_VIR_UDISK_ENABLE
    // 虚拟U盘
    {
        /*logo*/			"vir_udisk0",
        /*name*/			"vir_udisk0",
        /*storage_path*/	"storage/vir_udisk0",
        /*root_path*/		"storage/vir_udisk0/C/",
        /*fs_type*/			"fat",
    },
#endif
#if TCFG_VIRFAT_FLASH_ENABLE
    //flash 虚拟fat
    {
        /*logo*/			"virfat_flash",
        /*name*/			"virfat_flash",
        /*storage_path*/	"storage/virfat_flash",
        /*root_path*/		"storage/virfat_flash/C/",
        /*fs_type*/			"sdfile_fat",
    },
#endif
#if (defined TCFG_NANDFLASH_DEV_ENABLE && TCFG_NANDFLASH_DEV_ENABLE)
    {
        /*logo*/			"nandflash_ftl",
        /*name*/			"nandflash_ftl",
        /*storage_path*/	"storage/nandflash_ftl",
        /*root_path*/		"storage/nandflash_ftl/C/",
        /*fs_type*/			"fat",
    },
#endif
    //<新加设备参数请在reg end前添加!!
    //<reg end
    {
        /*logo*/			NULL,
        /*name*/			NULL,
        /*storage_path*/	NULL,
        /*root_path*/		NULL,
        /*fs_type*/			NULL,
    },
};


