2022-08-05 18:44:44 +08:00
|
|
|
# Native Linux SocketCAN configuration options
|
|
|
|
|
|
|
|
# Copyright (c) 2022 Martin Jäger <martin@libre.solar>
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2023-12-11 05:03:41 +08:00
|
|
|
config CAN_NATIVE_LINUX
|
2022-08-05 18:44:44 +08:00
|
|
|
bool "Native Linux SocketCAN Driver"
|
|
|
|
default y
|
2023-12-11 05:03:41 +08:00
|
|
|
depends on DT_HAS_ZEPHYR_NATIVE_LINUX_CAN_ENABLED
|
2023-11-30 17:25:26 +08:00
|
|
|
depends on ARCH_POSIX
|
2022-08-05 18:44:44 +08:00
|
|
|
help
|
|
|
|
Enable native Linux SocketCAN Driver
|
|
|
|
|
2023-12-11 05:03:41 +08:00
|
|
|
if CAN_NATIVE_LINUX
|
2022-08-05 18:44:44 +08:00
|
|
|
|
2023-12-11 05:03:41 +08:00
|
|
|
config CAN_NATIVE_LINUX_RX_THREAD_PRIORITY
|
2022-08-05 18:44:44 +08:00
|
|
|
int "Priority for internal RX thread"
|
|
|
|
default 2
|
|
|
|
help
|
|
|
|
Priority level of the internal thread which is run for
|
|
|
|
handling of incoming packets.
|
|
|
|
|
|
|
|
config CAN_MAX_FILTER
|
|
|
|
int "Maximum number of concurrent active filters"
|
|
|
|
default 5
|
|
|
|
range 1 32
|
|
|
|
help
|
|
|
|
Defines the array size of the callback/msgq pointers.
|
|
|
|
Must be at least the size of concurrent reads.
|
|
|
|
|
2023-12-11 05:03:41 +08:00
|
|
|
endif # CAN_NATIVE_LINUX
|