first
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
menuconfig MAVLINK
|
||||
bool "MAVLink v2 protocol link driver"
|
||||
depends on DT_HAS_MISAKI_MAVLINK_ENABLED
|
||||
select SERIAL
|
||||
select UART_INTERRUPT_DRIVEN
|
||||
default y
|
||||
help
|
||||
MAVLink v2 protocol link over a UART.
|
||||
|
||||
The driver owns one UART, parses the incoming byte stream with the
|
||||
vendored official MAVLink C library (c_library_v2, "common" dialect)
|
||||
and dispatches complete messages to registered handlers. Outgoing
|
||||
messages are serialized and written to the same UART.
|
||||
|
||||
if MAVLINK
|
||||
|
||||
config MAVLINK_INIT_PRIORITY
|
||||
int "MAVLink driver init priority"
|
||||
default 80
|
||||
help
|
||||
Must run after the UART driver is initialized.
|
||||
|
||||
config MAVLINK_LOG_LEVEL
|
||||
int "MAVLink driver log level"
|
||||
depends on LOG
|
||||
range 0 4
|
||||
default 3
|
||||
|
||||
config MAVLINK_RX_THREAD_STACK_SIZE
|
||||
int "MAVLink RX thread stack size"
|
||||
default 2048
|
||||
help
|
||||
Stack size of the thread that parses incoming bytes and invokes
|
||||
the message handlers. Handlers run in this thread, so size it
|
||||
according to what the handlers do.
|
||||
|
||||
config MAVLINK_RX_THREAD_PRIORITY
|
||||
int "MAVLink RX thread priority"
|
||||
default 5
|
||||
|
||||
config MAVLINK_RX_RING_SIZE
|
||||
int "MAVLink RX ring buffer size (bytes)"
|
||||
default 1024
|
||||
help
|
||||
Bytes buffered between the UART ISR and the RX thread. Must be
|
||||
larger than the biggest burst expected before the thread runs.
|
||||
|
||||
config MAVLINK_MAX_HANDLERS
|
||||
int "Maximum number of registered RX handlers"
|
||||
default 8
|
||||
|
||||
config MAVLINK_AUTO_START
|
||||
bool "Start the RX engine during driver init"
|
||||
default y
|
||||
help
|
||||
If disabled, call mavlink_start() before receiving frames.
|
||||
|
||||
endif # MAVLINK
|
||||
Reference in New Issue
Block a user