X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fcfg_i2c.h;h=376ad5b95a18d53f404fcc43066de9f69ae6b98f;hb=c9548deb3275b044cd5f4fbc941598a7a442b836;hp=5db96e2f9eceabe891fcd0274b82ca6908c46d91;hpb=60b28c97a62f39dcb90ce51401730917650324b3;p=bertos.git diff --git a/bertos/cfg/cfg_i2c.h b/bertos/cfg/cfg_i2c.h index 5db96e2f..376ad5b9 100644 --- a/bertos/cfg/cfg_i2c.h +++ b/bertos/cfg/cfg_i2c.h @@ -50,6 +50,20 @@ */ #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. + */ +#define CONFIG_I2C_BACKEND I2C_BACKEND_BUILTIN + +/// Module logging level definition. +#define I2C_LOG_LEVEL LOG_LVL_INFO + +/// Module logging format. +#define I2C_LOG_FORMAT LOG_FMT_TERSE + #endif /* CFG_I2C_H */