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!
<module name="syslink_dl">
b'<configure name="SYSLINK_PORT" value="UARTX" />\n '
b'<configure name="SYSLINK_BAUD" value="B1000000" />\n '
</module>
Module configuration options
Configure Options
- name:
SYSLINK_PORT
value: UARTX
Description: Select syslink port
- name:
SYSLINK_BAUD
value: B1000000
Description: Syslink baudrate
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_dl" 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>
<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">
<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>