drivers: can: stm32: bxcan: rename driver to match reference manuals

Rename the STM32 bxCAN driver DTS compatible, Kconfig symbol, and
implementation file to match the naming used in the ST reference manuals.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2023-08-15 10:37:32 +02:00 committed by Carles Cufí
commit 913e59c5ea
22 changed files with 33 additions and 34 deletions

View file

@ -13,7 +13,7 @@ zephyr_library_sources_ifdef(CONFIG_CAN_MCP2515 can_mcp2515.c)
zephyr_library_sources_ifdef(CONFIG_CAN_MCUX_FLEXCAN can_mcux_flexcan.c)
zephyr_library_sources_ifdef(CONFIG_CAN_SAM can_sam.c)
zephyr_library_sources_ifdef(CONFIG_CAN_SAM0 can_sam0.c)
zephyr_library_sources_ifdef(CONFIG_CAN_STM32 can_stm32.c)
zephyr_library_sources_ifdef(CONFIG_CAN_STM32_BXCAN can_stm32_bxcan.c)
zephyr_library_sources_ifdef(CONFIG_CAN_STM32FD can_stm32fd.c)
zephyr_library_sources_ifdef(CONFIG_CAN_STM32H7 can_stm32h7.c)
zephyr_library_sources_ifdef(CONFIG_CAN_RCAR can_rcar.c)

View file

@ -3,18 +3,17 @@
# Copyright (c) 2018 Alexander Wachter
# SPDX-License-Identifier: Apache-2.0
config CAN_STM32
bool "STM32 CAN Driver"
config CAN_STM32_BXCAN
bool "STM32 bxCAN driver"
default y
depends on DT_HAS_ST_STM32_CAN_ENABLED
depends on DT_HAS_ST_STM32_BXCAN_ENABLED
help
Enable STM32 CAN Driver.
Tested on STM32F0, STM32F4, STM32L4 and STM32F7 series.
Enable STM32 bxCAN Driver.
if CAN_STM32
if CAN_STM32_BXCAN
config CAN_MAX_STD_ID_FILTER
int "Maximum number of std ID filters"
int "Maximum number of standard (11-bit) ID filters"
default 14
range 0 28
help
@ -30,7 +29,7 @@ config CAN_MAX_STD_ID_FILTER
CAN_MAX_STD_ID_FILTER + CAN_MAX_EXT_ID_FILTER * 2 <= 28
config CAN_MAX_EXT_ID_FILTER
int "Maximum number of ext ID filters"
int "Maximum number of extended (29-bit) ID filters"
default 7
range 0 14
help
@ -45,4 +44,4 @@ config CAN_MAX_EXT_ID_FILTER
CAN_MAX_STD_ID_FILTER + CAN_MAX_EXT_ID_FILTER * 2 <= 28
endif # CAN_STM32
endif # CAN_STM32_BXCAN

View file

@ -23,7 +23,7 @@ LOG_MODULE_REGISTER(can_stm32, CONFIG_CAN_LOG_LEVEL);
#define CAN_INIT_TIMEOUT (10 * sys_clock_hw_cycles_per_sec() / MSEC_PER_SEC)
#define DT_DRV_COMPAT st_stm32_can
#define DT_DRV_COMPAT st_stm32_bxcan
#define SP_IS_SET(inst) DT_INST_NODE_HAS_PROP(inst, sample_point) ||