X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fsam3x-ek%2Fexamples%2Fsam3x-ek_codec%2Fcfg%2Fcfg_i2c.h;fp=boards%2Fsam3x-ek%2Fexamples%2Fsam3x-ek_codec%2Fcfg%2Fcfg_i2c.h;h=1d4d0aa18b701dfc4381b4e0f5e0bb476d697356;hb=81e6f612d53e77fe460d88d1d0092945bfe9b39a;hp=0000000000000000000000000000000000000000;hpb=71b7e431e4f173d4ad0904b30018123363f14b18;p=bertos.git diff --git a/boards/sam3x-ek/examples/sam3x-ek_codec/cfg/cfg_i2c.h b/boards/sam3x-ek/examples/sam3x-ek_codec/cfg/cfg_i2c.h new file mode 100644 index 00000000..1d4d0aa1 --- /dev/null +++ b/boards/sam3x-ek/examples/sam3x-ek_codec/cfg/cfg_i2c.h @@ -0,0 +1,83 @@ +/** + * \file + * + * + * \brief Configuration file for I2C module. + * + * \author Daniele Basile + */ + +#ifndef CFG_I2C_H +#define CFG_I2C_H + +/** +*Comunication frequency. +* +* $WIZ$ type = "int" +*/ +#define CONFIG_I2C_FREQ 100000UL + +/** + * 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 + +/** + * Check this to disable I2c deprecated API support. + * + * $WIZ$ type = "boolean" + */ +#define CONFIG_I2C_DISABLE_OLD_API 0 + +/** + * Module logging level. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ +#define I2C_LOG_LEVEL LOG_LVL_ERR + +/** + * module logging format. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" + */ +#define I2C_LOG_FORMAT LOG_FMT_TERSE + +#endif /* CFG_I2C_H */ + +