Files
paparazzi/conf/modules/mavlink_decoder.xml
Gautier Hattenberger 904507a4e6 [build] add case modifier to modules' makefile
- this allow to use lower and upper version of a makefile variable.
- can also be use to provide default value to some variables.
2016-02-10 18:05:43 +01:00

22 lines
791 B
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="mavlink_decoder" dir="datalink">
<doc>
<description>A simple MAVLINK decoder</description>
<configure name="MAVLINK_PORT" value="UART0|UART1|UART2" description="Select port for Mavlink decoder"/>
<configure name="MAVLINK_BAUD" value="B9600|B57600|B115200" description="Baudrate for Mavlink decoder"/>
</doc>
<header>
<file name="mavlink_decoder.h"/>
</header>
<event fun="MavlinkDatalinkEvent()"/>
<makefile>
<configure name="MAVLINK_PORT" case="upper|lower"/>
<define name="MAVLINK_UART" value="$(MAVLINK_PORT_LOWER)"/>
<define name="USE_$(MAVLINK_PORT_UPPER)"/>
<define name="$(MAVLINK_PORT_UPPER)_BAUD" value="$(MAVLINK_BAUD)"/>
<file name="mavlink_decoder.c"/>
</makefile>
</module>