From e0d15d3349d3fd5bf97ffcd03c1dc553741c3c75 Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 8 Nov 2010 11:12:38 +0000 Subject: [PATCH] Add missing configurations. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4535 38d2e660-2303-0410-9eaa-f027e97ec537 --- .../examples/sd_fat/cfg/cfg_emb_flash.h | 73 ++++++++++++++++++ .../examples/sd_fat/cfg/cfg_hashtable.h | 51 +++++++++++++ .../examples/sd_fat/cfg/cfg_keytag.h | 61 +++++++++++++++ .../examples/sd_fat/cfg/cfg_parser.h | 46 ++++++++++++ .../at91sam7x-ek/examples/sd_fat/cfg/cfg_sd.h | 75 +++++++++++++++++++ 5 files changed, 306 insertions(+) create mode 100644 boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_emb_flash.h create mode 100644 boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_hashtable.h create mode 100644 boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_keytag.h create mode 100644 boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_parser.h create mode 100644 boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_sd.h diff --git a/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_emb_flash.h b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_emb_flash.h new file mode 100644 index 00000000..82d96e52 --- /dev/null +++ b/boards/at91sam7x-ek/examples/sd_fat/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 */ diff --git a/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_hashtable.h b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_hashtable.h new file mode 100644 index 00000000..e4645f33 --- /dev/null +++ b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_hashtable.h @@ -0,0 +1,51 @@ +/** + * \file + * + * + * \brief Configuration file for hashtable module. + * + * \author Daniele Basile + */ + +#ifndef CFG_HASHTABLE_H +#define CFG_HASHTABLE_H + +/** + * Enable/disable support to declare special hash tables which maintain a copy of the key internally instead of relying on the hook to extract it from the data. + * + * $WIZ$ type = "boolean" + */ +#define CONFIG_HT_OPTIONAL_INTERNAL_KEY 1 + +#endif /* CFG_HASHTABLE_H */ + + + diff --git a/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_keytag.h b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_keytag.h new file mode 100644 index 00000000..8bedadf6 --- /dev/null +++ b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_keytag.h @@ -0,0 +1,61 @@ +/** + * \file + * + * + * \brief Configuration file for keytag module. + * + * \author Daniele Basile + */ + +#ifndef CFG_KEYTAG_H +#define CFG_KEYTAG_H + +/** + * Module logging level. + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ +#define CONFIG_KEYTAG_LOG_LEVEL LOG_LVL_ERR +/** + * Module logging format. + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" + */ +#define CONFIG_KEYTAG_LOG_FORMAT LOG_FMT_TERSE + +/** + * Max buffer lenght + * $WIZ$ type = "int" + */ +#define CONFIG_TAG_MAX_LEN 14U + +#endif /* CFG_KEYTAG_H */ + diff --git a/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_parser.h b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_parser.h new file mode 100644 index 00000000..572b4a24 --- /dev/null +++ b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_parser.h @@ -0,0 +1,46 @@ +/** + * \file + * + * + * \brief Configuration file for parser module. + * + * \author Daniele Basile + */ + +#ifndef CFG_PARSER_H +#define CFG_PARSER_H + + + +#endif /* CFG_PARSER_H */ + + + diff --git a/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_sd.h b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_sd.h new file mode 100644 index 00000000..a91df59f --- /dev/null +++ b/boards/at91sam7x-ek/examples/sd_fat/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 0 + +#endif /* CFG_SD_H */ -- 2.25.1