X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fstm32-p103%2Ftemplates%2Fstm32-p103_kernel%2Fcfg%2Fcfg_emb_flash.h;fp=boards%2Fstm32-p103%2Ftemplates%2Fstm32-p103_kernel%2Fcfg%2Fcfg_emb_flash.h;h=82d96e5282761a78752a614a9e8103dbf27e64d9;hb=0c2a292f95d10af7c39b2b3df0c1ce0c16a791ed;hp=0000000000000000000000000000000000000000;hpb=84d7581d4e99d656db0064086ecee8d9f30aeba3;p=bertos.git diff --git a/boards/stm32-p103/templates/stm32-p103_kernel/cfg/cfg_emb_flash.h b/boards/stm32-p103/templates/stm32-p103_kernel/cfg/cfg_emb_flash.h new file mode 100644 index 00000000..82d96e52 --- /dev/null +++ b/boards/stm32-p103/templates/stm32-p103_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 */