mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-15 21:08:37 +08:00
31 lines
1023 B
XML
31 lines
1023 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">
|
|
<raw>
|
|
EZCURRENT_I2C_DEV ?= i2c0
|
|
EZCURRENT_I2C_DEV_LOWER=$(shell echo $(EZCURRENT_I2C_DEV) | tr A-Z a-z)
|
|
EZCURRENT_I2C_DEV_UPPER=$(shell echo $(EZCURRENT_I2C_DEV) | tr a-z A-Z)
|
|
</raw>
|
|
<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>
|
|
|