X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fcfg_i2c.h;h=af36e6b621627ab0e077be6658503920dcec9e43;hb=8d22a2e350167e155a798ae50844e49e8597eb96;hp=5db96e2f9eceabe891fcd0274b82ca6908c46d91;hpb=60b28c97a62f39dcb90ce51401730917650324b3;p=bertos.git diff --git a/bertos/cfg/cfg_i2c.h b/bertos/cfg/cfg_i2c.h index 5db96e2f..af36e6b6 100644 --- a/bertos/cfg/cfg_i2c.h +++ b/bertos/cfg/cfg_i2c.h @@ -40,16 +40,51 @@ #ifndef CFG_I2C_H #define CFG_I2C_H -/// Comunication frequency +/** +*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. + * + * $WIZ$ type = "int" */ #define CONFIG_I2C_START_TIMEOUT 100 +/** + * I2C backend the driver should use. + * + * 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. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "i2c_backend" + */ +#define CONFIG_I2C_BACKEND I2C_BACKEND_BUILTIN + +/** + * Module logging level. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ +#define I2C_LOG_LEVEL LOG_LVL_INFO + +/** + * module logging format. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" + */ +#define I2C_LOG_FORMAT LOG_FMT_TERSE + #endif /* CFG_I2C_H */