<!DOCTYPE module SYSTEM "module.dtd">

<module name="extra_dl" dir="datalink">
  <doc>
    <description>Extra datalink (PPRZ transport)</description>
    <configure name="EXTRA_DL_PORT" value="UARTX" description="Select port for extra datalink"/>
    <configure name="EXTRA_DL_BAUD" value="B57600" description="Baudrate for extra datalink"/>
  </doc>
  <header>
    <file name="extra_pprz_dl.h"/>
  </header>
  <init fun="extra_pprz_dl_init()"/>
  <event fun="ExtraDatalinkEvent()"/>
  <makefile target="ap">
    <raw>
EXTRA_DL_PORT_LOWER = $(shell echo $(EXTRA_DL_PORT) | tr A-Z a-z)
    </raw>
    <define name="EXTRA_DOWNLINK_DEVICE" value="$(EXTRA_DL_PORT_LOWER)"/>
    <define name="EXTRA_PPRZ_UART" value="$(EXTRA_DL_PORT)"/>
    <define name="USE_$(EXTRA_DL_PORT)"/>
    <define name="$(EXTRA_DL_PORT)_BAUD" value="$(EXTRA_DL_BAUD)"/>
    <file name="extra_pprz_dl.c"/>
    <file name="pprz_transport.c" dir="subsystems/datalink"/>
  </makefile>
</module>

