Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
i2c_abuse_test module

Benchmark

No detailed description...

Example for airframe file

Add to your firmware section:

1 <module name="i2c_abuse_test"/>

Module functions

Init Functions

These initialization functions are called once on startup.

Event Functions

These event functions are called in each cycle of the module event loop.

Periodic Functions

These functions are called periodically at the specified frequency from the module periodic loop.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw i2c_abuse_test.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="benchmark">
<doc>
<description></description>
</doc>
<header>
<file name="i2c_abuse_test.h"/>
</header>
<init fun="init_i2c_abuse_test()"/>
<periodic fun="periodic_50Hz_i2c_abuse_test()" period="0.02" autorun="TRUE" />
<event fun="event_i2c_abuse_test()" />
<makefile>
<file name="i2c_abuse_test.c"/>
<raw>
ifeq ($(ARCH), lpc21)
$(TARGET).CFLAGS += -DI2C_ABUSE_LED=3
$(TARGET).CFLAGS += -DUSE_I2C0
$(TARGET).CFLAGS += -DI2C_ABUSE_PORT=i2c0
else ifeq ($(ARCH), stm32)
$(TARGET).CFLAGS += -DI2C_ABUSE_LED=7
$(TARGET).CFLAGS += -DI2C_ABUSE_PORT=i2c2
endif
</raw>
</makefile>
</module>