From 8410e9ab85f6aa3ebc0c955908f1237321499b0e Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Tue, 15 Aug 2023 10:52:20 +0200 Subject: [PATCH] drivers: can: stm32: fdcan: rename driver to match reference manuals Rename the STM32 FDCAN driver Kconfig symbol and implementation file to match the naming used in the ST reference manuals. Signed-off-by: Henrik Brix Andersen --- drivers/can/CMakeLists.txt | 2 +- drivers/can/Kconfig.stm32 | 14 +++++++------- drivers/can/{can_stm32fd.c => can_stm32_fdcan.c} | 0 3 files changed, 8 insertions(+), 8 deletions(-) rename drivers/can/{can_stm32fd.c => can_stm32_fdcan.c} (100%) diff --git a/drivers/can/CMakeLists.txt b/drivers/can/CMakeLists.txt index d6c2730c015..110ada75d6d 100644 --- a/drivers/can/CMakeLists.txt +++ b/drivers/can/CMakeLists.txt @@ -14,7 +14,7 @@ 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_BXCAN can_stm32_bxcan.c) -zephyr_library_sources_ifdef(CONFIG_CAN_STM32FD can_stm32fd.c) +zephyr_library_sources_ifdef(CONFIG_CAN_STM32_FDCAN can_stm32_fdcan.c) zephyr_library_sources_ifdef(CONFIG_CAN_STM32H7 can_stm32h7.c) zephyr_library_sources_ifdef(CONFIG_CAN_RCAR can_rcar.c) diff --git a/drivers/can/Kconfig.stm32 b/drivers/can/Kconfig.stm32 index ff05b7e15b1..71bb9fcd50f 100644 --- a/drivers/can/Kconfig.stm32 +++ b/drivers/can/Kconfig.stm32 @@ -46,29 +46,29 @@ config CAN_MAX_EXT_ID_FILTER endif # CAN_STM32_BXCAN -config CAN_STM32FD +config CAN_STM32_FDCAN bool "STM32 FDCAN driver" default y depends on DT_HAS_ST_STM32_FDCAN_ENABLED select CAN_MCAN select USE_STM32_LL_RCC -if CAN_STM32FD +if CAN_STM32_FDCAN config CAN_MAX_STD_ID_FILTER - int "Maximum number of std ID filters" + int "Maximum number of standard (11-bit) ID filters" default 28 range 0 28 help Defines the maximum number of filters with standard ID (11-bit) - that can be attached. + that can be added by the application. config CAN_MAX_EXT_ID_FILTER - int "Maximum number of ext ID filters" + int "Maximum number of extended (29-bit) ID filters" default 8 range 0 8 help Defines the maximum number of filters with extended ID (29-bit) - that can be attached. + that can be added by the application. -endif # CAN_STM32FD +endif # CAN_STM32_FDCAN diff --git a/drivers/can/can_stm32fd.c b/drivers/can/can_stm32_fdcan.c similarity index 100% rename from drivers/can/can_stm32fd.c rename to drivers/can/can_stm32_fdcan.c