55d0ffa874
Remove the CAN_HAS_CANFD Kconfig helper symbol in order to allow enabling CAN-FD support in the API regardless of driver support. Change default to CAN-FD support being disabled and have samples and tests that require CAN-FD support turn it on. This aligns the default configuration across CAN controller drivers regardless of their capabilities. The rationale behind this is that we are starting to see MCUs with multiple CAN controllers, some CAN-FD compatible, some not (e.g. NXP i.MX RT1060 and FPGAs). Automatically enabling CAN-FD support based on the presence of a CAN-FD capable CAN controller leads to different application default settings based on the CAN controller(s) in use. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
# CAN loopback device configuration options
|
|
|
|
# Copyright (c) 2019 Alexander Wachter
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config CAN_LOOPBACK
|
|
bool "Emulated CAN loopback driver"
|
|
default y
|
|
depends on DT_HAS_ZEPHYR_CAN_LOOPBACK_ENABLED
|
|
help
|
|
This is an emulated driver that can only loopback messages.
|
|
|
|
if CAN_LOOPBACK
|
|
|
|
config CAN_MAX_FILTER
|
|
int "Maximum number of concurrent active filters"
|
|
default 16
|
|
range 1 1024
|
|
help
|
|
Defines the array size of the filters.
|
|
Must be at least the size of concurrent reads.
|
|
|
|
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.
|
|
|
|
endif # CAN_LOOPBACK
|