Bitcraze syslink module
No detailed description...
Example for airframe file
Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!
1 <module name="syslink_dl">
2 <configure name="SYSLINK_PORT" value="UARTX" />
3 <configure name="SYSLINK_BAUD" value="B1000000" />
Module configuration options
Configure Options
- name:
SYSLINK_PORT
value: UARTX
Description: Select syslink port
- name:
SYSLINK_BAUD
value: B1000000
Description: Syslink baudrate
Auto-loaded modules
The following modules are automatically loaded (just as if you had added them in the airframe file)
- module__telemetrynps
- module__telemetrysim
Module functions
Init Functions
These initialization functions are called once on startup.
Event Functions
These event functions are called in each cycle of the module event loop.
Periodic Functions
These functions are called periodically at the specified frequency from the module periodic loop.
- syslink_dl_periodic()
- Frequency in Hz: 2
- Autorun: LOCK
Periodic function automatically starts after init and can't be stopped.
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw syslink_dl.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="syslink" dir="datalink/bitcraze" task="datalink">
<doc>
<description>
Bitcraze syslink module
</description>
<configure name="SYSLINK_PORT" value="UARTX" description="Select syslink port"/>
<configure name="SYSLINK_BAUD" value="B1000000" description="Syslink baudrate"/>
</doc>
<autoload name="telemetry" type="nps"/>
<autoload name="telemetry" type="sim"/>
<header>
<file name="syslink_dl.h"/>
</header>
<init fun="syslink_dl_init()"/>
<periodic fun="syslink_dl_periodic()" freq="2"/>
<event fun="syslink_dl_event()"/>
<makefile target="!fbw|sim|nps|hitl">
<configure name="SYSLINK_PORT" default="uart6" case="upper|lower"/>
<configure name="SYSLINK_BAUD" default="B1000000" case="upper|lower"/>
<define name="SYSLINK_DEV" value="$(SYSLINK_PORT_LOWER)"/>
<define name="USE_$(SYSLINK_PORT_UPPER)"/>
<define name="$(SYSLINK_PORT_UPPER)_BAUD" value="$(SYSLINK_BAUD)"/>
<define name="USE_UART_SOFT_FLOW_CONTROL"/>
<define name="USE_SYSLINK"/>
<define name="CHARGING_LED" value="$(CHARGING_LED)" cond="ifneq ($(CHARGING_LED),none)"/>
<file name="syslink_dl.c"/>
<file name="syslink.c"/>
</makefile>
</module>