This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 7f4acd46ca33b98dd892c7f16f8d14ca4fb22ede
Author: raiden00pl <[email protected]>
AuthorDate: Thu Nov 26 17:13:20 2026 +0100

    arch/arm/stm32: Rename the bxCAN drivers.
    
    stm32_can_m3m4_v1.c and stm32_can_m3m4_v1_sock.c become stm32_can_bxcan.c
    and stm32_can_bxcan_sock.c: the drivers are also used by the F7 (M7).
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: raiden00pl <[email protected]>
---
 .github/CODEOWNERS                                         |  4 ++--
 Documentation/guides/chip-specific/stm32_ports.rst         | 14 +++++++-------
 arch/arm/src/common/stm32/CMakeLists.txt                   |  4 ++--
 arch/arm/src/common/stm32/Make.defs                        |  4 ++--
 .../stm32/{stm32_can_m3m4_v1.c => stm32_can_bxcan.c}       |  2 +-
 .../{stm32_can_m3m4_v1_sock.c => stm32_can_bxcan_sock.c}   |  2 +-
 6 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index e972b0bd29c..063695260b7 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -1688,8 +1688,8 @@ arch/arm/src/common/stm32/stm32_bbsram_m3m4_v1.c 
[email protected] abdelatif.
 arch/arm/src/common/stm32/stm32_bbsram_m3m4_v1.h [email protected] 
[email protected] [email protected] 
[email protected]
 arch/arm/src/common/stm32/stm32_bkp.h [email protected] [email protected]
 arch/arm/src/common/stm32/stm32_can.h [email protected] 
[email protected] [email protected] 
[email protected] [email protected]
-arch/arm/src/common/stm32/stm32_can_m3m4_v1.c [email protected] 
[email protected] [email protected] [email protected] 
[email protected]
-arch/arm/src/common/stm32/stm32_can_m3m4_v1_sock.c [email protected] 
[email protected] [email protected] [email protected] 
[email protected]
+arch/arm/src/common/stm32/stm32_can_bxcan.c [email protected] 
[email protected] [email protected] [email protected] 
[email protected]
+arch/arm/src/common/stm32/stm32_can_bxcan_sock.c [email protected] 
[email protected] [email protected] [email protected] 
[email protected]
 arch/arm/src/common/stm32/stm32_capture.h [email protected] 
[email protected] [email protected] 
[email protected] [email protected]
 arch/arm/src/common/stm32/stm32_capture_m3m4_v1.c [email protected] 
[email protected] [email protected] [email protected] 
[email protected]
 arch/arm/src/common/stm32/stm32_capture_m3m4_v1_lowerhalf.c 
[email protected] [email protected] [email protected] 
[email protected]
diff --git a/Documentation/guides/chip-specific/stm32_ports.rst 
b/Documentation/guides/chip-specific/stm32_ports.rst
index 23c18546e46..43c2d480743 100644
--- a/Documentation/guides/chip-specific/stm32_ports.rst
+++ b/Documentation/guides/chip-specific/stm32_ports.rst
@@ -377,7 +377,7 @@ STM32F1
 Peripheral    Core version   Driver                                            
     
 ============  =============  
=======================================================
 ADC           v1 basic       arch/arm/src/common/stm32/stm32_adc_m3m4_v1v2.c   
     
-CAN/FDCAN     bxCAN          arch/arm/src/common/stm32/stm32_can_m3m4_v1.c     
     
+CAN/FDCAN     bxCAN          arch/arm/src/common/stm32/stm32_can_bxcan.c       
   
 CRC           to be done     not supported                                     
     
 DAC           v1             arch/arm/src/common/stm32/stm32_dac_m3m4_v1.c     
     
 DBGMCU        v1             not supported                                     
     
@@ -407,7 +407,7 @@ STM32F2
 Peripheral    Core version  Driver                                             
    
 ============  ============  
=======================================================
 ADC           v1            arch/arm/src/common/stm32/stm32_adc_m3m4_v1v2.c    
    
-CAN/FDCAN     bxCAN         arch/arm/src/common/stm32/stm32_can_m3m4_v1.c      
    
+CAN/FDCAN     bxCAN         arch/arm/src/common/stm32/stm32_can_bxcan.c        
  
 CRYP          v1            arch/arm/src/common/stm32/stm32_aes_m3m4_v1.c      
    
 DAC           v1            arch/arm/src/common/stm32/stm32_dac_m3m4_v1.c      
    
 DMA           v2            
arch/arm/src/common/stm32/stm32_dma_m3m4_v2_stream.c   
@@ -437,7 +437,7 @@ STM32F3
 Peripheral    Core version    Driver                                           
      
 ============  ==============  
=======================================================
 ADC           v1 basic or v2  arch/arm/src/common/stm32/stm32_adc_m3m4_v1v2.c  
      
-CAN/FDCAN     bxCAN           arch/arm/src/common/stm32/stm32_can_m3m4_v1.c    
      
+CAN/FDCAN     bxCAN           arch/arm/src/common/stm32/stm32_can_bxcan.c      
    
 COMP          v1              arch/arm/src/common/stm32/stm32_comp_m3m4_v1.c   
      
 DAC           v1              arch/arm/src/common/stm32/stm32_dac_m3m4_v1.c    
      
 DBGMCU        v2              not supported                                    
      
@@ -467,7 +467,7 @@ STM32F4
 Peripheral    Core version  Driver                                             
   
 ============  ============  
======================================================
 ADC           v1            arch/arm/src/common/stm32/stm32_adc_m3m4_v1v2.c    
   
-CAN/FDCAN     bxCAN         arch/arm/src/common/stm32/stm32_can_m3m4_v1.c      
   
+CAN/FDCAN     bxCAN         arch/arm/src/common/stm32/stm32_can_bxcan.c        
 
 CRYP          v1            arch/arm/src/common/stm32/stm32_aes_m3m4_v1.c      
   
 DAC           v1            arch/arm/src/common/stm32/stm32_dac_m3m4_v1.c      
   
 DMA           v2            
arch/arm/src/common/stm32/stm32_dma_m3m4_v2_stream.c  
@@ -502,7 +502,7 @@ Peripheral    Core version  Driver
 ============  ============  
=======================================================
 ADC           v2            arch/arm/src/common/stm32/stm32_adc_m3m4_v1v2.c    
    
 AES           v1            arch/arm/src/common/stm32/stm32_aes_m3m4_v1.c      
    
-CAN/FDCAN     FDCAN         arch/arm/src/common/stm32/stm32_can_m3m4_v1.c      
    
+CAN/FDCAN     FDCAN         arch/arm/src/common/stm32/stm32_can_bxcan.c        
  
 COMP          v2            arch/arm/src/common/stm32/stm32_comp_m3m4_v2.c     
    
 CORDIC        v1            arch/arm/src/common/stm32/stm32_cordic_m3m4_v1.c   
    
 DAC           v2            arch/arm/src/common/stm32/stm32_dac_m3m4_v1.c      
    
@@ -533,7 +533,7 @@ STM32L4
 Peripheral    Core version  Driver                                   
 ============  ============  ============================================
 ADC           to be done    arch/arm/src/stm32l4/stm32l4_adc.c       
-CAN/FDCAN     bxCAN         arch/arm/src/common/stm32/stm32_can_m3m4_v1.c
+CAN/FDCAN     bxCAN         arch/arm/src/common/stm32/stm32_can_bxcan.c
 COMP          to be done    arch/arm/src/stm32l4/stm32l4_comp.c      
 DAC           to be done    arch/arm/src/stm32l4/stm32l4_dac.c       
 DFSDM         to be done    arch/arm/src/stm32l4/stm32l4_dfsdm.c     
@@ -569,7 +569,7 @@ STM32F7
 Peripheral    Core version  Driver                                 
 ============  ============  ============================================
 ADC           to be done    arch/arm/src/stm32f7/stm32_adc.c       
-CAN/FDCAN     bxCAN         arch/arm/src/common/stm32/stm32_can_m3m4_v1.c
+CAN/FDCAN     bxCAN         arch/arm/src/common/stm32/stm32_can_bxcan.c
 DAC           to be done    not supported                          
 DMA           v2 style      arch/arm/src/stm32f7/stm32_dma.c       
 DMA2D         v1            arch/arm/src/common/stm32/stm32_dma2d_v1.c
diff --git a/arch/arm/src/common/stm32/CMakeLists.txt 
b/arch/arm/src/common/stm32/CMakeLists.txt
index f62ccbb6663..70ef0f9ae07 100644
--- a/arch/arm/src/common/stm32/CMakeLists.txt
+++ b/arch/arm/src/common/stm32/CMakeLists.txt
@@ -113,10 +113,10 @@ endif()
 
 if(CONFIG_STM32_CAN AND CONFIG_STM32_HAVE_IP_CAN_BXCAN_M3M4_V1)
   if(CONFIG_STM32_CAN_CHARDRIVER)
-    list(APPEND SRCS stm32_can_m3m4_v1.c)
+    list(APPEND SRCS stm32_can_bxcan.c)
   endif()
   if(CONFIG_STM32_CAN_SOCKET)
-    list(APPEND SRCS stm32_can_m3m4_v1_sock.c)
+    list(APPEND SRCS stm32_can_bxcan_sock.c)
   endif()
 endif()
 
diff --git a/arch/arm/src/common/stm32/Make.defs 
b/arch/arm/src/common/stm32/Make.defs
index 8cff8d0d8c4..48aecbdc914 100644
--- a/arch/arm/src/common/stm32/Make.defs
+++ b/arch/arm/src/common/stm32/Make.defs
@@ -124,10 +124,10 @@ endif
 
 ifeq ($(CONFIG_STM32_CAN)$(CONFIG_STM32_HAVE_IP_CAN_BXCAN_M3M4_V1),yy)
 ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
-CHIP_CSRCS += stm32_can_m3m4_v1.c
+CHIP_CSRCS += stm32_can_bxcan.c
 endif
 ifeq ($(CONFIG_STM32_CAN_SOCKET),y)
-CHIP_CSRCS += stm32_can_m3m4_v1_sock.c
+CHIP_CSRCS += stm32_can_bxcan_sock.c
 endif
 endif
 
diff --git a/arch/arm/src/common/stm32/stm32_can_m3m4_v1.c 
b/arch/arm/src/common/stm32/stm32_can_bxcan.c
similarity index 99%
rename from arch/arm/src/common/stm32/stm32_can_m3m4_v1.c
rename to arch/arm/src/common/stm32/stm32_can_bxcan.c
index e42b9f4629e..7c32484e295 100644
--- a/arch/arm/src/common/stm32/stm32_can_m3m4_v1.c
+++ b/arch/arm/src/common/stm32/stm32_can_bxcan.c
@@ -1,5 +1,5 @@
 /****************************************************************************
- * arch/arm/src/common/stm32/stm32_can_m3m4_v1.c
+ * arch/arm/src/common/stm32/stm32_can_bxcan.c
  *
  * SPDX-License-Identifier: Apache-2.0
  *
diff --git a/arch/arm/src/common/stm32/stm32_can_m3m4_v1_sock.c 
b/arch/arm/src/common/stm32/stm32_can_bxcan_sock.c
similarity index 99%
rename from arch/arm/src/common/stm32/stm32_can_m3m4_v1_sock.c
rename to arch/arm/src/common/stm32/stm32_can_bxcan_sock.c
index 4a1c3c34247..6b56d7ad78b 100644
--- a/arch/arm/src/common/stm32/stm32_can_m3m4_v1_sock.c
+++ b/arch/arm/src/common/stm32/stm32_can_bxcan_sock.c
@@ -1,5 +1,5 @@
 /****************************************************************************
- * arch/arm/src/common/stm32/stm32_can_m3m4_v1_sock.c
+ * arch/arm/src/common/stm32/stm32_can_bxcan_sock.c
  *
  * SPDX-License-Identifier: Apache-2.0
  *

Reply via email to