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
|
|
|
|
int "CAN init priority"
|
|
|
|
default KERNEL_INIT_PRIORITY_DEVICE
|
|
|
|
help
|
|
|
|
CAN driver device initialization priority.
|
|
|
|
|
2019-04-24 20:09:34 +02:00
|
|
|
config CAN_SHELL
|
2022-03-09 12:05:12 +01: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-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
|
|
|
|
|
2021-01-17 20:09:05 +01:00
|
|
|
if CAN_FD_MODE
|
|
|
|
|
|
|
|
config CANFD_MAX_DLC
|
|
|
|
int "Max data length code in CAN frames"
|
|
|
|
range 8 15
|
|
|
|
default 15
|
|
|
|
help
|
|
|
|
Maximum allowed DLC in a CAN frame. This parameter sets the
|
|
|
|
data buffer size in a CAN frame and is therefore only used to
|
|
|
|
optimize memory consumption.
|
|
|
|
endif # CAN_FD_MODE
|
|
|
|
|
2018-05-03 10:48:02 +02:00
|
|
|
config CAN_INIT_PRIORITY
|
|
|
|
int "CAN driver init priority"
|
|
|
|
default 80
|
|
|
|
help
|
|
|
|
CAN device driver initialization priority.
|
|
|
|
Do not mess with it unless you know what you are doing.
|
|
|
|
Note that the priority needs to be lower than the net stack
|
|
|
|
so that it can start before the networking sub-system.
|
|
|
|
|
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"
|
2018-05-03 10:48:02 +02:00
|
|
|
|
|
|
|
endif # CAN
|