X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fcfg_i2c.h;h=ea599a810bd57531f4cdec79fbd7282d79b99b56;hb=a5b1dc3c2884ee2160c6fee43e4a34b83453b87f;hp=dd490e8c638003285090f6e74f20b061fe0acd01;hpb=51c955015167ce817fa177c80dbc63f764cce44d;p=bertos.git diff --git a/bertos/cfg/cfg_i2c.h b/bertos/cfg/cfg_i2c.h index dd490e8c..ea599a81 100644 --- a/bertos/cfg/cfg_i2c.h +++ b/bertos/cfg/cfg_i2c.h @@ -32,50 +32,49 @@ * * \brief Configuration file for I2C module. * - * \version $Id$ - * * \author Daniele Basile */ #ifndef CFG_I2C_H #define CFG_I2C_H -/// Comunication frequency. $WIZARD = { "type" : "int" } +/** +*Comunication frequency. +* +* $WIZ$ type = "int" +*/ #define CONFIG_I2C_FREQ 100000UL /** - * I2C start timeout: for how many milliseconds - * the twi_start should try to get an ACK before + * I2C start timeout. + * For how many milliseconds the i2c_start + * should try to get an ACK before * returning error. * - * $WIZARD = { "type" : "int" } + * $WIZ$ type = "int" */ #define CONFIG_I2C_START_TIMEOUT 100 /** - * I2C driver can have 2 backends: - * 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. + * Check this to disable I2c deprecated API support. * - * $WIZARD = { - * "type" : "enum", - * "value_list" : "i2c_backend" - * } + * $WIZ$ type = "boolean" */ -#define CONFIG_I2C_BACKEND I2C_BACKEND_BUILTIN +#define CONFIG_I2C_DISABLE_OLD_API 0 /** * Module logging level. * - * $WIZARD = { "type" : "enum", "value_list" : "log_level" } + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" */ #define I2C_LOG_LEVEL LOG_LVL_INFO /** * module logging format. * - * $WIZARD = { "type" : "enum", "value_list" : "log_format" } + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" */ #define I2C_LOG_FORMAT LOG_FMT_TERSE