mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-02-05 18:51:00 +08:00
27 lines
890 B
XML
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>
|
|
|