2018-05-03 16:48:02 +08:00
|
|
|
# Kconfig - CAN configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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-18 01:13:20 +08:00
|
|
|
module = CAN
|
|
|
|
module-str = CAN
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
2018-05-03 16:48:02 +08:00
|
|
|
|
2019-04-25 02:09:34 +08:00
|
|
|
config CAN_SHELL
|
|
|
|
bool "Enable CAN Shell"
|
|
|
|
depends on SHELL
|
|
|
|
help
|
|
|
|
Enable CAN Shell for testing.
|
|
|
|
|
2018-05-03 16:48:02 +08: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-03-18 06:03:11 +08:00
|
|
|
config CAN_WORKQ_FRAMES_BUF_CNT
|
|
|
|
int "Work queue buffer frame count"
|
|
|
|
default 4
|
|
|
|
range 1 65534
|
|
|
|
help
|
|
|
|
Number of frames in the buffer of a zcan_work.
|
|
|
|
|
2019-07-24 21:34:51 +08:00
|
|
|
config CAN_RX_TIMESTAMP
|
|
|
|
bool "Enable receiving timestamps"
|
2019-07-29 03:40:39 +08:00
|
|
|
depends on CAN_STM32 || CAN_MCUX_FLEXCAN
|
2019-07-24 21:34:51 +08: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.
|
|
|
|
|
2019-06-07 02:39:10 +08:00
|
|
|
config CAN_0
|
|
|
|
bool "Enable CAN 0"
|
|
|
|
help
|
|
|
|
Enable CAN controller 0
|
|
|
|
|
2018-05-03 16:48:02 +08:00
|
|
|
config CAN_1
|
|
|
|
bool "Enable CAN 1"
|
|
|
|
help
|
|
|
|
Enable CAN controller 1
|
|
|
|
|
2018-05-03 16:59:12 +08:00
|
|
|
source "drivers/can/Kconfig.stm32"
|
2019-06-07 02:42:06 +08:00
|
|
|
source "drivers/can/Kconfig.mcux"
|
2018-06-12 14:23:20 +08:00
|
|
|
source "drivers/can/Kconfig.mcp2515"
|
2019-03-19 00:19:35 +08:00
|
|
|
source "drivers/can/Kconfig.loopback"
|
2019-08-06 22:12:24 +08:00
|
|
|
source "drivers/can/Kconfig.net"
|
2018-05-03 16:48:02 +08:00
|
|
|
|
|
|
|
endif # CAN
|