X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fcfg_i2c.h;h=dd490e8c638003285090f6e74f20b061fe0acd01;hb=98c76a5f903d9e12d9af283d71ed61d8768969a7;hp=6c5ee2fab779717995ed7d1a9d1d90f087a15206;hpb=87fcec11748c930e2d0d7f5310b0f6360018b2c1;p=bertos.git diff --git a/bertos/cfg/cfg_i2c.h b/bertos/cfg/cfg_i2c.h index 6c5ee2fa..dd490e8c 100644 --- a/bertos/cfg/cfg_i2c.h +++ b/bertos/cfg/cfg_i2c.h @@ -40,21 +40,44 @@ #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 -/// Module logging level definition. +/** + * 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. + * + * $WIZARD = { + * "type" : "enum", + * "value_list" : "i2c_backend" + * } + */ +#define CONFIG_I2C_BACKEND I2C_BACKEND_BUILTIN + +/** + * Module logging level. + * + * $WIZARD = { "type" : "enum", "value_list" : "log_level" } + */ #define I2C_LOG_LEVEL LOG_LVL_INFO -/// Module logging format. -#define I2C_LOG_FORMAT LOG_FMT_TERSET +/** + * module logging format. + * + * $WIZARD = { "type" : "enum", "value_list" : "log_format" } + */ +#define I2C_LOG_FORMAT LOG_FMT_TERSE #endif /* CFG_I2C_H */