X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fstm32VLDiscovery%2Ftemplates%2Fempty%2Fcfg%2Fcfg_sd.h;fp=boards%2Fstm32VLDiscovery%2Ftemplates%2Fempty%2Fcfg%2Fcfg_sd.h;h=8c40f827113d4abca74f04d5aae8c2cae601c211;hb=bbc9b62788f5e2f94dd550708a6af22f6d49eb98;hp=0000000000000000000000000000000000000000;hpb=17f239924a2d52d099e60ba3a65662f4d2b1fb16;p=bertos.git diff --git a/boards/stm32VLDiscovery/templates/empty/cfg/cfg_sd.h b/boards/stm32VLDiscovery/templates/empty/cfg/cfg_sd.h new file mode 100644 index 00000000..8c40f827 --- /dev/null +++ b/boards/stm32VLDiscovery/templates/empty/cfg/cfg_sd.h @@ -0,0 +1,75 @@ +/** + * \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 + +/** + * 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 1 + +#endif /* CFG_SD_H */