I2C Abuse Test
No detailed description...
Example for airframe file
Add to your firmware section:
<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="i2c_abuse_test" dir="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), stm32)
$(TARGET).CFLAGS += -DI2C_ABUSE_LED=7
$(TARGET).CFLAGS += -DI2C_ABUSE_PORT=i2c2
endif
</raw>
</makefile>
</module>