2019-11-01 20:45:29 +08:00
|
|
|
# CAN loopback device configuration options
|
2019-03-19 00:19:35 +08:00
|
|
|
|
|
|
|
# Copyright (c) 2019 Alexander Wachter
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
config CAN_LOOPBACK
|
|
|
|
bool "Loopback CAN driver"
|
|
|
|
help
|
|
|
|
This is a dummy driver that can only loopback messages.
|
|
|
|
|
|
|
|
if CAN_LOOPBACK
|
|
|
|
|
|
|
|
config CAN_LOOPBACK_DEV_NAME
|
|
|
|
string "CAN loopback device name"
|
|
|
|
default "CAN_LOOPBACK"
|
|
|
|
help
|
|
|
|
"Device name for the loopback device"
|
|
|
|
|
|
|
|
config CAN_MAX_FILTER
|
|
|
|
int "Maximum number of concurrent active filters"
|
2020-02-12 22:36:47 +08:00
|
|
|
default 16
|
2019-03-19 00:19:35 +08:00
|
|
|
range 1 1024
|
|
|
|
help
|
|
|
|
Defines the array size of the filters.
|
|
|
|
Must be at least the size of concurrent reads.
|
|
|
|
|
2020-02-12 22:36:47 +08:00
|
|
|
config CAN_LOOPBACK_TX_THREAD_STACK_SIZE
|
|
|
|
int "TX thread stack size"
|
|
|
|
default 256
|
|
|
|
help
|
|
|
|
Stack size of the TX thread.
|
|
|
|
The TX thread calls the callbacks of the receiver
|
|
|
|
if the filter matches.
|
|
|
|
|
|
|
|
config CAN_LOOPBACK_TX_THREAD_PRIORITY
|
|
|
|
int "TX thread priority"
|
|
|
|
default 2
|
|
|
|
help
|
|
|
|
Priority of the TX thread.
|
|
|
|
The TX thread calls the callbacks of the receiver
|
|
|
|
if the filter matches.
|
|
|
|
|
|
|
|
config CAN_LOOPBACK_TX_MSGQ_SIZE
|
|
|
|
int "TX message queue size"
|
|
|
|
default 16
|
|
|
|
help
|
|
|
|
Number of TX frames that can be buffered.
|
|
|
|
The send functions puts frame int this queue and TX thread takes the
|
|
|
|
messages from this msgq and calls the respective receiver if the
|
|
|
|
filter matches.
|
|
|
|
|
2019-03-19 00:19:35 +08:00
|
|
|
endif # CAN_LOOPBACK
|