File tree Expand file tree Collapse file tree 11 files changed +2834
-3
lines changed Expand file tree Collapse file tree 11 files changed +2834
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ zephyr_sources_ifdef(CONFIG_CAN can_common.c)
44zephyr_sources_ifdef(CONFIG_CAN_LOOPBACK can_loopback.c)
55zephyr_sources_ifdef(CONFIG_CAN_MCP2515 can_mcp2515.c)
66zephyr_sources_ifdef(CONFIG_CAN_STM32 can_stm32.c)
7+ zephyr_sources_ifdef(CONFIG_CAN_STM32FD can_stm32fd.c)
8+ zephyr_sources_ifdef(CONFIG_CAN_MCAN can_mcan.c)
79zephyr_sources_ifdef(CONFIG_CAN_MCUX_FLEXCAN can_mcux_flexcan.c)
810
911zephyr_sources_ifdef(CONFIG_USERSPACE can_handlers.c)
Original file line number Diff line number Diff line change @@ -24,15 +24,22 @@ config CAN_SHELL
2424 help
2525 Enable CAN Shell for testing.
2626
27- config CAN_FD_MODE
27+ config CAN_HAS_CANFD
2828 bool
29+ help
30+ driver supports CAN-FD
31+
32+ config CAN_FD_MODE
33+ bool "CAN-FD"
34+ default y
35+ depends on CAN_HAS_CANFD
2936 help
3037 Enable CAN-FD compatible API
3138
3239if CAN_FD_MODE
3340
3441config CAN_MAX_DLEN
35- int "Max data lenght in CAN frames"
42+ int "Max data length in CAN frames"
3643 range 8 64
3744 default 64
3845 help
@@ -57,7 +64,7 @@ config CAN_WORKQ_FRAMES_BUF_CNT
5764
5865config CAN_RX_TIMESTAMP
5966 bool "Enable receiving timestamps"
60- depends on CAN_STM32 || CAN_MCUX_FLEXCAN
67+ depends on CAN_STM32 || CAN_MCUX_FLEXCAN || CAN_STM32FD
6168 help
6269 This option enables a timestamp value of the CAN free running timer.
6370 The value is incremented every bit time and starts when the controller
@@ -73,8 +80,10 @@ config CAN_AUTO_BUS_OFF_RECOVERY
7380 available.
7481
7582source "drivers/can/Kconfig.stm32"
83+ source "drivers/can/Kconfig.stm32fd"
7684source "drivers/can/Kconfig.mcux"
7785source "drivers/can/Kconfig.mcp2515"
86+ source "drivers/can/Kconfig.mcan"
7887source "drivers/can/Kconfig.loopback"
7988source "drivers/can/Kconfig.net"
8089
Original file line number Diff line number Diff line change 1+ # Bosch m_can configuration options
2+
3+ # Copyright (c) 2020 Alexander Wachter
4+ # SPDX-License-Identifier: Apache-2.0
5+
6+ config CAN_MCAN
7+ bool
8+ select CAN_HAS_CANFD
9+ help
10+ Enable Bosch m_can driver.
11+ This driver supports the Bosch m_can IP. This IP is built into the
12+ STM32G4, STM32G0 and the Microchip SAM controllers with CAN-FD.
13+
14+ if CAN_MCAN
15+
16+ config CAN_DELAY_COMP
17+ bool "Enable transceiver delay compensation"
18+ default y
19+ help
20+ Enable the automatic transceiver delay compensation.
21+
22+ endif #CAN_MCAN
Original file line number Diff line number Diff line change 1+ # STM32 CAN configuration options
2+ if CAN_MCAN && SOC_SERIES_STM32G4X
3+
4+ config CAN_STM32FD
5+ bool
6+ default y
7+
8+ config CAN_MAX_STD_ID_FILTER
9+ int "Maximum number of std ID filters"
10+ default 28
11+ range 0 28
12+ help
13+ Defines the maximum number of filters with standard ID (11-bit)
14+ that can be attached.
15+
16+ config CAN_MAX_EXT_ID_FILTER
17+ int "Maximum number of ext ID filters"
18+ default 8
19+ range 0 8
20+ help
21+ Defines the maximum number of filters with extended ID (29-bit)
22+ that can be attached.
23+
24+ config CAN_CKDIV
25+ int "CKDIV register value"
26+ range 0 15
27+ default 0
28+ help
29+ This value is written to the CKDIV register.
30+ The APB clock is divided according to this value before it is feed to
31+ CAN core. Note that the the divider affects all CAN controllers.
32+ The values of the register are multiplied by two and zero corresponds
33+ to one. The value six, for example results in a clock divided by 12.
34+
35+ endif #CAN_MCAN
You can’t perform that action at this time.
0 commit comments