From: asterix Date: Fri, 6 Feb 2009 14:33:02 +0000 (+0000) Subject: Fix comments and add wizard info. X-Git-Tag: 2.1.0~382 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=51c955015167ce817fa177c80dbc63f764cce44d;p=bertos.git Fix comments and add wizard info. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2300 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cfg/cfg_i2c.h b/bertos/cfg/cfg_i2c.h index 376ad5b9..dd490e8c 100644 --- a/bertos/cfg/cfg_i2c.h +++ b/bertos/cfg/cfg_i2c.h @@ -40,13 +40,15 @@ #ifndef CFG_I2C_H #define CFG_I2C_H -/// Comunication frequency +/// Comunication frequency. $WIZARD = { "type" : "int" } #define CONFIG_I2C_FREQ 100000UL /** * I2C start timeout: for how many milliseconds * the twi_start should try to get an ACK before * returning error. + * + * $WIZARD = { "type" : "int" } */ #define CONFIG_I2C_START_TIMEOUT 100 @@ -55,13 +57,26 @@ * I2C_BACKEND_BUILTIN: Use (if present) the builtin i2c hardware. * I2C_BACKEND_BITBANG: Use the emulated bitbang driver. * \see drv/i2c.h for more information. + * + * $WIZARD = { + * "type" : "enum", + * "value_list" : "i2c_backend" + * } */ #define CONFIG_I2C_BACKEND I2C_BACKEND_BUILTIN -/// Module logging level definition. +/** + * Module logging level. + * + * $WIZARD = { "type" : "enum", "value_list" : "log_level" } + */ #define I2C_LOG_LEVEL LOG_LVL_INFO -/// Module logging format. +/** + * module logging format. + * + * $WIZARD = { "type" : "enum", "value_list" : "log_format" } + */ #define I2C_LOG_FORMAT LOG_FMT_TERSE #endif /* CFG_I2C_H */ diff --git a/bertos/drv/i2c.h b/bertos/drv/i2c.h index b5548fc5..aa4d2846 100644 --- a/bertos/drv/i2c.h +++ b/bertos/drv/i2c.h @@ -34,6 +34,12 @@ * * \version $Id$ * \author Francesco Sacchi + * + * $WIZARD_MODULE = { + * "name" : "i2c", + * "depends" : [], + * "configuration" : "bertos/cfg/cfg_i2c.h" + * } */ #ifndef DRV_I2C_H #define DRV_I2C_H @@ -49,11 +55,13 @@ * i2c driver or you don't want, for some reason, to * use that. * With this you can choose, at compile time, which backend to use. - * \{ + * + * $WIZARD_LIST = { + * "i2c_backend" : ["I2C_BACKEND_BUILTIN", "I2C_BACKEND_BITBANG"] + * } */ #define I2C_BACKEND_BUILTIN 0 ///< Uses cpu builtin i2c driver #define I2C_BACKEND_BITBANG 1 ///< Uses emulated bitbang driver -/*\}*/ /**