Files
paparazzi/conf/modules/radio_control_datalink.xml
T
Gautier Hattenberger bf3def687d [modules] convert radio_control subsystems to modules
- calling init functions will be done later, it needs to be attached to
  the FBW part
- add 'cond' attribute option to more nodes in module makefile section
2017-01-15 13:48:46 +01:00

35 lines
1.5 KiB
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="radio_control_datalink" dir="radio_control">
<doc>
<description>
Radio control over datalink
</description>
<configure name="RADIO_CONTROL_LED" value="none|num" description="LED number or 'none' to disable"/>
<configure name="RADIO_CONTROL_DATALINK_LED" value="none|num" description="LED number or 'none' to disable"/>
</doc>
<header>
<file name="rc_datalink.h" dir="subsystems/radio_control"/>
</header>
<makefile target="ap|fbw|sim|nps">
<configure name="RADIO_CONTROL_LED" default="none"/>
<configure name="RADIO_CONTROL_DATALINK_LED" default="none"/>
<define name="RADIO_CONTROL_LED" value="$(RADIO_CONTROL_LED)" cond="ifneq ($(RADIO_CONTROL_LED),none)"/>
<define name="RADIO_CONTROL_DATALINK_LED" value="$(RADIO_CONTROL_DATALINK_LED)" cond="ifneq ($(RADIO_CONTROL_DATALINK_LED),none)"/>
<define name="RADIO_CONTROL_TYPE_H" value="subsystems/radio_control/rc_datalink.h" type="string"/>
</makefile>
<makefile target="fbw|sim|nps">
<define name="RADIO_CONTROL"/>
<define name="RADIO_CONTROL_TYPE_DATALINK"/>
<file name="radio_control.c" dir="subsystems"/>
<file name="rc_datalink.c" dir="subsystems/radio_control"/>
</makefile>
<makefile target="ap" cond="ifeq (,$(findstring $(SEPARATE_FBW),1 TRUE))">
<define name="RADIO_CONTROL"/>
<define name="RADIO_CONTROL_TYPE_DATALINK"/>
<file name="radio_control.c" dir="subsystems"/>
<file name="rc_datalink.c" dir="subsystems/radio_control"/>
</makefile>
</module>