mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-12 10:19:11 +08:00
62646d68de
Add two new items in module's dependency: - recommends: a recommended module tells the sorting algo that if the module is found, it should be sorted accordingly. It is useful for optional dependencies, like shell or mission in some modules - suggests: if a functionality is not provided by the user, a module can suggest a list of modules that can provide them. It is a convenient way to have "default" modules. As a result the former autoload node is removed and replaced by suggested modules.
31 lines
1.0 KiB
XML
31 lines
1.0 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="telemetry_secure_common" dir="datalink" task="datalink">
|
|
<doc>
|
|
<description>
|
|
Telemetry using secure PPRZ protocol - common parts
|
|
</description>
|
|
<configure name="MODEM_PORT" value="UARTx" description="UART where the modem is connected to (UART1, UART2, etc)"/>
|
|
<configure name="MODEM_BAUD" value="B57600" description="UART baud rate"/>
|
|
</doc>
|
|
<dep>
|
|
<depends>uart,datalink_common</depends>
|
|
<provides>datalink,telemetry</provides>
|
|
<suggests>telemetry_nps_secure</suggests>
|
|
</dep>
|
|
|
|
<makefile target="!sim|nps|hitl">
|
|
<configure name="MODEM_PORT" case="upper|lower"/>
|
|
<define name="USE_$(MODEM_PORT_UPPER)"/>
|
|
<define name="$(MODEM_PORT_UPPER)_BAUD" value="$(MODEM_BAUD)"/>
|
|
<define name="DOWNLINK_DEVICE" value="$(MODEM_PORT_LOWER)"/>
|
|
<define name="PPRZ_UART" value="$(MODEM_PORT_LOWER)"/>
|
|
</makefile>
|
|
|
|
<makefile target="!fbw|sim">
|
|
<define name="DATALINK" value="PPRZ"/>
|
|
<file name="pprz_transport.c" dir="pprzlink/src"/>
|
|
</makefile>
|
|
</module>
|
|
|