cfg_i2c.h File Reference

Configuration file for I2C module. More...

Go to the source code of this file.


Defines

#define CONFIG_I2C_FREQ   100000UL
 Comunication frequency.
#define CONFIG_I2C_START_TIMEOUT   100
 I2C start timeout.
#define CONFIG_I2C_BACKEND   I2C_BACKEND_BUILTIN
 I2C backend the driver should use.
#define I2C_LOG_LEVEL   LOG_LVL_INFO
 Module logging level.
#define I2C_LOG_FORMAT   LOG_FMT_TERSE
 module logging format.

Detailed Description

Configuration file for I2C module.

Version:
Id
cfg_i2c.h 2561 2009-04-20 09:26:48Z duplo

Author:
Daniele Basile <asterix@develer.com>

Definition in file cfg_i2c.h.


Define Documentation

#define CONFIG_I2C_BACKEND   I2C_BACKEND_BUILTIN

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 also:
drv/i2c.h for more information.

Definition at line 70 of file cfg_i2c.h.

#define CONFIG_I2C_START_TIMEOUT   100

I2C start timeout.

For how many milliseconds the i2c_start should try to get an ACK before returning error.

Definition at line 58 of file cfg_i2c.h.