Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
i2c module

General I2C driver

To activate a specific I2C peripheral, define flag USE_I2CX where X is your I2C peripheral number

Example for airframe file

Add to your firmware section:

<module name="i2c"/>

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw i2c.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="i2c" dir="mcu_periph" task="mcu">
<doc>
<description>
General I2C driver
To activate a specific I2C peripheral, define flag USE_I2CX where X is your I2C peripheral number
</description>
</doc>
<header>
<file name="i2c.h" dir="mcu_periph"/>
</header>
<makefile>
<file name="i2c.c" dir="mcu_periph"/>
<file name="softi2c.c" dir="mcu_periph"/>
<file_arch name="i2c_arch.c" dir="mcu_periph"/>
<test>
</test>
</makefile>
</module>