mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-02-06 19:32:52 +08:00
26 lines
880 B
XML
26 lines
880 B
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="generic_com" dir="com">
|
|
<doc>
|
|
<description>
|
|
Generic com.
|
|
Can be used for Satcom/GSM
|
|
</description>
|
|
<configure name="GENERIC_COM_I2C_DEV" value="i2cX" description="select i2c peripheral to use (default i2c0)"/>
|
|
<define name="GENERIC_COM_SLAVE_ADDR" value="i2c address"/>
|
|
</doc>
|
|
<header>
|
|
<file name="generic_com.h"/>
|
|
</header>
|
|
<init fun="generic_com_init()"/>
|
|
<periodic fun="generic_com_periodic()" period="180" start="start_com()" stop="stop_com()" autorun="TRUE"/>
|
|
<event fun="generic_com_event()"/>
|
|
<makefile>
|
|
<configure name="GENERIC_COM_I2C_DEV" default="i2c0" case="upper|lower"/>
|
|
<define name="USE_$(GENERIC_COM_I2C_DEV_UPPER)"/>
|
|
<define name="GENERIC_COM_I2C_DEV" value="$(GENERIC_COM_I2C_DEV_LOWER)"/>
|
|
<file name="generic_com.c"/>
|
|
</makefile>
|
|
</module>
|
|
|