No detailed description...
Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!
These initialization functions are called once on startup.
These event functions are called in each cycle of the module event loop.
<!DOCTYPE module SYSTEM "module.dtd">
<module name="radio_control_superbitrf_rc" dir="radio_control" task="radio_control">
<doc>
<description>
Radio control based on the SuperbitRF chip
</description>
<configure name="SUPERBITRF_SPI_DEV" value="SPI2" description="SPI used for SuperbitRF"/>
<configure name="SUPERBITRF_SPI_SLAVE_IDX" value="2" description="SPI slave number for SuperbitRF"/>
</doc>
<settings>
<dl_settings>
<dl_settings NAME="Superbit">
<dl_setting var="settings_store_flag" min="1" step="1" max="1" shortname="store" handler="StoreSettings" module="modules/core/settings" values="Store"/>
<dl_setting var="superbitrf.bind_mfg_id32" type="uint32" min="0" step="1" max="4294967295" shortname ="mfg_id" persistent="true" module="modules/datalink/superbitrf" handler="set_mfg_id"/>
<dl_setting var="superbitrf.num_channels" type="uint8" min="0" step="1" max="14" shortname ="#chan" persistent="true" module="modules/datalink/superbitrf"/>
<dl_setting var="superbitrf.protocol" type="uint8" min="0" step="1" max="32" shortname ="prot" persistent="true" module="modules/datalink/superbitrf" handler="set_protocol"/>
</dl_settings>
</dl_settings>
</settings>
<dep>
<depends>spi_master,radio_control_common</depends>
<provides>radio_control</provides>
</dep>
<header>
<file name="superbitrf_rc.h"/>
</header>
<init fun="superbitrf_rc_init()"/>
<event fun="superbitrf_rc_event()"/>
<makefile target="ap|fbw|sim|nps">
<configure name="SUPERBITRF_SPI_DEV" default="SPI2"/>
<configure name="SUPERBITRF_SPI_SLAVE_IDX" default="2"/>
<define name="RADIO_CONTROL_LED" value="$(RADIO_CONTROL_LED)" cond="ifneq ($(RADIO_CONTROL_LED),none)"/>
</makefile>
<makefile target="ap|fbw">
<define name="RADIO_CONTROL_TYPE_SUPERBITRF"/>
<define name="USE_SUPERBITRF"/>
<define name="USE_$(SUPERBITRF_SPI_DEV)"/>
<define name="USE_SPI_SLAVE$(SUPERBITRF_SPI_SLAVE_IDX)"/>
<file name="superbitrf_rc.c"/>
<file name="superbitrf.c" dir="modules/datalink"/>
<file name="cyrf6936.c" dir="peripherals"/>
<test>
<define name="RADIO_CONTROL"/>
<define name="RADIO_CONTROL_TYPE_SUPERBITRF"/>
<define name="USE_SUPERBITRF"/>
<define name="SUPERBITRF_SPI_DEV" value="spi2"/>
<define name="USE_SPI2"/>
<define name="SPI_MASTER"/>
<define name="SUPERBITRF_SPI_SLAVE_IDX" value="3"/>
<define name="USE_SPI_SLAVE3"/>
<define name="SPEKTRUM_BIND_PIN_PORT" value="GPIOA"/>
<define name="SPEKTRUM_BIND_PIN" value="GPIO0"/>
<define name="DOWNLINK_TRANSPORT" value="pprz_tp"/>
<define name="DOWNLINK_DEVICE" value="uart0"/>
<define name="USE_UART0"/>
</test>
</makefile>
</module>