mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
bf3def687d
- 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
42 lines
1.8 KiB
XML
42 lines
1.8 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="radio_control_sbus" dir="radio_control">
|
|
<doc>
|
|
<description>
|
|
Radio control based on Futaba SBUS
|
|
</description>
|
|
<configure name="RADIO_CONTROL_LED" value="none|num" description="LED number or 'none' to disable"/>
|
|
<configure name="SBUS_PORT" value="UARTX" description="UART name where SBUS receiver is plugged"/>
|
|
</doc>
|
|
<header>
|
|
<file name="sbus.h" dir="subsystems/radio_control"/>
|
|
</header>
|
|
<makefile target="ap|fbw">
|
|
<configure name="RADIO_CONTROL_LED" default="none"/>
|
|
<configure name="SBUS_UART" value="$(SBUS_PORT)" case="upper|lower"/>
|
|
<define name="RADIO_CONTROL_LED" value="$(RADIO_CONTROL_LED)" cond="ifneq ($(RADIO_CONTROL_LED),none)"/>
|
|
<define name="RADIO_CONTROL_TYPE_H" value="subsystems/radio_control/sbus.h" type="string"/>
|
|
</makefile>
|
|
<makefile target="fbw">
|
|
<define name="RADIO_CONTROL"/>
|
|
<define name="RADIO_CONTROL_TYPE_SBUS"/>
|
|
<define name="USE_$(SBUS_UART_UPPER)"/>
|
|
<define name="$(SBUS_UART_UPPER)_BAUD" value="B100000"/>
|
|
<define name="SBUS_UART_DEV" value="$(SBUS_UART_LOWER)"/>
|
|
<file name="radio_control.c" dir="subsystems"/>
|
|
<file name="sbus.c" dir="subsystems/radio_control"/>
|
|
<file name="sbus_common.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_SBUS"/>
|
|
<define name="USE_$(SBUS_UART_UPPER)"/>
|
|
<define name="$(SBUS_UART_UPPER)_BAUD" value="B100000"/>
|
|
<define name="SBUS_UART_DEV" value="$(SBUS_UART_LOWER)"/>
|
|
<file name="radio_control.c" dir="subsystems"/>
|
|
<file name="sbus.c" dir="subsystems/radio_control"/>
|
|
<file name="sbus_common.c" dir="subsystems/radio_control"/>
|
|
</makefile>
|
|
</module>
|
|
|