From fac2ddc13da3e8cf4e6a3c8276bece089e9df607 Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 5 Feb 2009 12:00:46 +0000 Subject: [PATCH] Fix comments and add wizard info. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2268 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cfg/cfg_adc.h | 56 +++++++++++++++++++++++++++++++++++++------- bertos/drv/adc.h | 6 +++++ 2 files changed, 53 insertions(+), 9 deletions(-) diff --git a/bertos/cfg/cfg_adc.h b/bertos/cfg/cfg_adc.h index 8e3e98a5..e8aeaeb8 100644 --- a/bertos/cfg/cfg_adc.h +++ b/bertos/cfg/cfg_adc.h @@ -39,23 +39,61 @@ #ifndef CFG_ADC_H #define CFG_ADC_H -/// Module logging level. +/** + * Module logging level. + * $WIZARD = { "type" : "enum", "value_list" : "log_level" } + */ #define ADC_LOG_LEVEL LOG_LVL_INFO -/// Module logging format. +/** + * Module logging format. + * $WIZARD = { "type" : "enum", "value_list" : "log_format" } + */ #define ADC_LOG_FORMAT LOG_FMT_VERBOSE +/** + * Frequency clock for ADC conversion. + * + * $WIZARD = { + * "type" : "int", + * "long" : True, + * "unsigned" : True + * } + */ +#define CONFIG_ADC_CLOCK 4800000UL -#define CONFIG_ADC_CLOCK 4800000UL ///< Frequency clock for ADC conversion. -#define CONFIG_ADC_STARTUP_TIME 20 ///< Minimum time for startup a conversion in micro second. -#define CONFIG_ADC_SHTIME 834 ///< Minimum time for sample and hold in nano second - +/** + * Minimum time for startup a conversion in micro second. + * + * $WIZARD = { "type" : "int" } + */ +#define CONFIG_ADC_STARTUP_TIME 20 -#define CONFIG_ADC_AVR_REF 1 ///< ADC setting for AVR target -#define CONFIG_ADC_AVR_DIVISOR 2 ///< ADC setting for AVR target +/** + * Minimum time for sample and hold in nano second. + * + * $WIZARD = { "type" : "int" } + */ +#define CONFIG_ADC_SHTIME 834 +/** + * ADC setting for AVR target. + * + * $WIZARD = {"type" : "int" } + */ +#define CONFIG_ADC_AVR_REF 1 +/* + * ADC setting for AVR target. + * + * $WIZARD = {"type" : "int" } + */ +#define CONFIG_ADC_AVR_DIVISOR 2 -/// Enable ADS strobe. +/** + * Enable ADS strobe. + * + * $WIZARD = {"type" : "boolean" } + */ #define CONFIG_ADC_STROBE 0 #endif /* CFG_ADC_H */ diff --git a/bertos/drv/adc.h b/bertos/drv/adc.h index d34accfe..c3987279 100644 --- a/bertos/drv/adc.h +++ b/bertos/drv/adc.h @@ -36,6 +36,12 @@ * * \version $Id$ * \author Francesco Sacchi + * + * $WIZARD_MODULE = { + * "name" : "adc", + * "depends" : [], + * "configuration" : "bertos/cfg/cfg_adc.h" + * } */ -- 2.25.1