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: for how many milliseconds the twi_start should try to get an ACK before returning error.
#define CONFIG_I2C_BACKEND   I2C_BACKEND_BUILTIN
 I2C driver can have 2 backends: I2C_BACKEND_BUILTIN: Use (if present) the builtin i2c hardware.
#define I2C_LOG_LEVEL   LOG_LVL_INFO
 Module logging level definition.
#define I2C_LOG_FORMAT   LOG_FMT_TERSE
 Module logging format.

Detailed Description

Configuration file for I2C module.

Version:
$Id$
Author:
Daniele Basile <asterix@develer.com>

Definition in file cfg_i2c.h.


Define Documentation

#define CONFIG_I2C_BACKEND   I2C_BACKEND_BUILTIN

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

Definition at line 59 of file cfg_i2c.h.