X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=boards%2Fsam3x-ek%2Fexamples%2Fsam3x-ek_sd_bootloader%2Fcfg%2Fcfg_sd.h;fp=boards%2Fsam3x-ek%2Fexamples%2Fsam3x-ek_sd_bootloader%2Fcfg%2Fcfg_sd.h;h=b08ac9c39d50f46791bb9324b1cf47a3848a1c36;hb=f6ba188a9210135158ae19075f8cd038aac4a6ad;hp=0000000000000000000000000000000000000000;hpb=930b5178f390b73b337ce9694fc3d8321a26e665;p=bertos.git diff --git a/boards/sam3x-ek/examples/sam3x-ek_sd_bootloader/cfg/cfg_sd.h b/boards/sam3x-ek/examples/sam3x-ek_sd_bootloader/cfg/cfg_sd.h new file mode 100644 index 00000000..b08ac9c3 --- /dev/null +++ b/boards/sam3x-ek/examples/sam3x-ek_sd_bootloader/cfg/cfg_sd.h @@ -0,0 +1,83 @@ +/** + * \file + * + * + * \brief Configuration file Secure Digital module. + * + * + * \author Francesco Sacchi + */ + +#ifndef CFG_SD_H +#define CFG_SD_H + +/** + * Module logging level. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ +#define SD_LOG_LEVEL LOG_LVL_ERR + +/** + * Module logging format. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" + */ +#define SD_LOG_FORMAT LOG_FMT_VERBOSE + + +/** + * Enable autoassignment of SD driver to disk drive number 0 of FatFs module. + * $WIZ$ type = "boolean" + * $WIZ$ conditional_deps = "fat" + */ +#define CONFIG_SD_AUTOASSIGN_FAT 1 + +/** + * SD bus mode. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "sd_mode" + */ +#define CONFIG_SD_MODE SD_SDMMC_MODE + +/** + * Enable backward compatibility for sd_init(). + * If enabled, sd_init() will allocate internally an Sd context, + * otherwise sd_init() will need the context to be passed explicitly. + * + * $WIZ$ type = "boolean" + */ +#define CONFIG_SD_OLD_INIT 0 + +#endif /* CFG_SD_H */