Files
paparazzi/conf/modules/ezcurrent.xml
2016-02-12 00:03:18 +01:00

27 lines
890 B
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="ezcurrent" dir="sensors">
<doc>
<description>EzOSD Current sensor (I2C).</description>
<configure name="EZCURRENT_I2C_DEV" value="i2c1" description="change default i2c peripheral to i2c1"/>
</doc>
<header>
<file name="ezcurrent.h"/>
</header>
<init fun="ezcurrent_init()"/>
<periodic fun="ezcurrent_read_periodic()" freq="1."/>
<event fun="ezcurrent_read_event()"/>
<makefile target="ap">
<configure name="EZCURRENT_I2C_DEV" default="i2c0" case="upper|lower"/>
<define name="USE_$(EZCURRENT_I2C_DEV_UPPER)"/>
<define name="EZCURRENT_I2C_DEV" value="$(EZCURRENT_I2C_DEV_LOWER)"/>
<file name="ezcurrent.c"/>
<!-- This disables the standard electrical monitoring system -->
<define name="DISABLE_ELECTRICAL" description="Disable default electrical handling"/>
</makefile>
</module>