mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-13 02:52:13 +08:00
bcaba7c720
modules developpers can provide - a description of the module - a list of the configuration variables and flags (configure and define) - a list of sections to add to the airframe file
25 lines
794 B
XML
25 lines
794 B
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
<!-- Generic Com Module -->
|
|
<!-- Can be redefined :
|
|
GENERIC_COM_I2C_DEV (default: i2c0)
|
|
GENERIC_COM_SLAVE_ADDR (default: ??)
|
|
-->
|
|
|
|
<module name="generic_com" dir="com">
|
|
<doc>
|
|
<description>Generic com (can be used for Satcom/GSM)</description>
|
|
<define 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>
|
|
<file name="generic_com.c"/>
|
|
</makefile>
|
|
</module>
|
|
|