Paparazzi UAS  v5.15_devel-50-g4d7045d
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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:

1 <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_arch name="i2c_arch.c" dir="mcu_periph"/>
</makefile>
</module>