X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fstm32VLDiscovery%2Ftemplates%2Fkernel%2Fcfg%2Fcfg_emb_flash.h;fp=boards%2Fstm32VLDiscovery%2Ftemplates%2Fkernel%2Fcfg%2Fcfg_emb_flash.h;h=82d96e5282761a78752a614a9e8103dbf27e64d9;hb=150b803365687c36d4ff94c65b089a4e91425a65;hp=0000000000000000000000000000000000000000;hpb=3439fb1587a2ad75977d02233e52c7b68c20a6cd;p=bertos.git diff --git a/boards/stm32VLDiscovery/templates/kernel/cfg/cfg_emb_flash.h b/boards/stm32VLDiscovery/templates/kernel/cfg/cfg_emb_flash.h new file mode 100644 index 00000000..82d96e52 --- /dev/null +++ b/boards/stm32VLDiscovery/templates/kernel/cfg/cfg_emb_flash.h @@ -0,0 +1,73 @@ +/** + * \file + * + * + * \author Daniele Basile + * + * \brief Configuration file for embedded flash module. + */ + +#ifndef CFG_EMB_FLASH_H +#define CFG_EMB_FLASH_H + +/** + * Module logging level. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ +#define CONFIG_FLASH_EMB_LOG_LEVEL LOG_LVL_INFO + +/** + * module logging format. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" + */ +#define CONFIG_FLASH_EMB_LOG_FORMAT LOG_FMT_TERSE + + +/** + * Write emb flash timeout. + * For how many milliseconds the cpu wait + * to complete write operation. + * + * $WIZ$ type = "int" + */ +#define CONFIG_FLASH_WR_TIMEOUT 100 + +/** + * Check this to disable embedded flash deprecated API support. + * + * $WIZ$ type = "boolean" + */ +#define CONFIG_FLASH_DISABLE_OLD_API 0 + +#endif /* CFG_FLASH_AT91_H */