2019-11-01 13:45:29 +01:00
|
|
|
# CAN configuration options
|
2018-05-03 10:48:02 +02:00
|
|
|
|
|
|
|
# Copyright (c) 2018 Alexander Wachter
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
#
|
|
|
|
# CAN options
|
|
|
|
#
|
|
|
|
menuconfig CAN
|
|
|
|
bool "CAN Drivers"
|
|
|
|
help
|
|
|
|
Enable CAN Driver Configuration
|
|
|
|
|
|
|
|
if CAN
|
|
|
|
|
2018-09-17 12:13:20 -05:00
|
|
|
module = CAN
|
|
|
|
module-str = CAN
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
2018-05-03 10:48:02 +02:00
|
|
|
|
2021-10-20 14:36:07 -05:00
|
|
|
config CAN_INIT_PRIORITY
|
2022-01-16 14:35:07 +01:00
|
|
|
int "CAN driver init priority"
|
2021-10-20 14:36:07 -05:00
|
|
|
default KERNEL_INIT_PRIORITY_DEVICE
|
|
|
|
help
|
|
|
|
CAN driver device initialization priority.
|
|
|
|
|
2019-04-24 20:09:34 +02:00
|
|
|
config CAN_SHELL
|
2022-08-26 12:50:16 +02:00
|
|
|
bool "CAN shell"
|
2020-05-28 10:34:29 -04:00
|
|
|
default y
|
2019-04-24 20:09:34 +02:00
|
|
|
depends on SHELL
|
2021-12-16 12:13:33 +01:00
|
|
|
select POLL
|
2019-04-24 20:09:34 +02:00
|
|
|
help
|
|
|
|
Enable CAN Shell for testing.
|
|
|
|
|
2022-08-26 12:50:16 +02:00
|
|
|
if CAN_SHELL
|
|
|
|
|
|
|
|
config CAN_SHELL_TX_QUEUE_SIZE
|
|
|
|
int "CAN shell transmit queue size"
|
|
|
|
default 5
|
|
|
|
range 1 256
|
|
|
|
help
|
|
|
|
Maximum number of events in the CAN shell transmit queue.
|
|
|
|
|
|
|
|
config CAN_SHELL_RX_QUEUE_SIZE
|
|
|
|
int "CAN shell receive queue size"
|
|
|
|
default 5
|
|
|
|
range 1 256
|
|
|
|
help
|
|
|
|
Maximum number of CAN frames in the CAN shell receive queue.
|
|
|
|
|
|
|
|
endif # CAN_SHELL
|
|
|
|
|
2022-02-11 15:03:32 +01:00
|
|
|
config CAN_STATS
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "CAN controller device statistics"
|
2022-02-11 15:03:32 +01:00
|
|
|
depends on STATS
|
|
|
|
help
|
|
|
|
Enable CAN controller device statistics.
|
|
|
|
|
2021-02-11 20:07:04 +01:00
|
|
|
config CAN_HAS_CANFD
|
2020-04-27 18:58:05 +02:00
|
|
|
bool
|
2021-02-11 20:07:04 +01:00
|
|
|
help
|
|
|
|
driver supports CAN-FD
|
|
|
|
|
2021-06-24 16:11:29 -06:00
|
|
|
config CAN_HAS_RX_TIMESTAMP
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
driver supports RX timestamps
|
|
|
|
|
2021-02-11 20:07:04 +01:00
|
|
|
config CAN_FD_MODE
|
|
|
|
bool "CAN-FD"
|
|
|
|
default y
|
|
|
|
depends on CAN_HAS_CANFD
|
2020-04-27 18:58:05 +02:00
|
|
|
help
|
|
|
|
Enable CAN-FD compatible API
|
|
|
|
|
2019-07-24 15:34:51 +02:00
|
|
|
config CAN_RX_TIMESTAMP
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "Receiving timestamps"
|
2021-06-24 16:11:29 -06:00
|
|
|
depends on CAN_HAS_RX_TIMESTAMP
|
2019-07-24 15:34:51 +02:00
|
|
|
help
|
|
|
|
This option enables a timestamp value of the CAN free running timer.
|
|
|
|
The value is incremented every bit time and starts when the controller
|
|
|
|
is initialized.
|
|
|
|
|
2018-06-19 18:26:31 +02:00
|
|
|
config CAN_AUTO_BUS_OFF_RECOVERY
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "Automatic recovery from bus-off"
|
2018-06-19 18:26:31 +02:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
This option enables the automatic bus-off recovery according to
|
|
|
|
ISO 11898-1 (recovery after 128 occurrences of 11 consecutive
|
|
|
|
recessive bits). When this option is enabled, the recovery API is not
|
|
|
|
available.
|
|
|
|
|
2022-01-09 22:25:58 +01:00
|
|
|
source "drivers/can/Kconfig.sam"
|
2018-05-03 10:59:12 +02:00
|
|
|
source "drivers/can/Kconfig.stm32"
|
2021-02-11 20:07:04 +01:00
|
|
|
source "drivers/can/Kconfig.stm32fd"
|
2021-12-28 17:45:28 -08:00
|
|
|
source "drivers/can/Kconfig.stm32h7"
|
2019-06-06 20:42:06 +02:00
|
|
|
source "drivers/can/Kconfig.mcux"
|
2018-06-12 08:23:20 +02:00
|
|
|
source "drivers/can/Kconfig.mcp2515"
|
2021-02-11 20:07:04 +01:00
|
|
|
source "drivers/can/Kconfig.mcan"
|
2021-05-10 10:19:57 +02:00
|
|
|
source "drivers/can/Kconfig.rcar"
|
2019-03-18 17:19:35 +01:00
|
|
|
source "drivers/can/Kconfig.loopback"
|
2022-08-05 12:44:44 +02:00
|
|
|
source "drivers/can/Kconfig.native_posix_linux"
|
2022-06-22 16:11:44 +02:00
|
|
|
source "drivers/can/Kconfig.sja1000"
|
2022-06-22 16:14:34 +02:00
|
|
|
source "drivers/can/Kconfig.esp32"
|
2022-06-22 16:11:44 +02:00
|
|
|
|
2022-02-28 15:16:50 +01:00
|
|
|
source "drivers/can/transceiver/Kconfig"
|
|
|
|
|
2018-05-03 10:48:02 +02:00
|
|
|
endif # CAN
|