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 e99e721ef25d629fa614d0ac28edd32d67d79328 Author: raiden00pl <[email protected]> AuthorDate: Wed Nov 25 10:07:11 2026 +0100 arch/arm/stm32: rename stm32_eth_m3m4_v1.c to stm32_eth_v1.c. The v1 Ethernet driver is also used by the F7 (M7). Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: raiden00pl <[email protected]> --- .github/CODEOWNERS | 2 +- Documentation/guides/chip-specific/port_drivers_to_stm32f7.rst | 2 +- Documentation/guides/chip-specific/stm32_ports.rst | 10 +++++----- .../guides/networking/nsh_network_link_management.rst | 2 +- Documentation/implementation/nuttx_initialization_sequence.rst | 2 +- Documentation/os/drivers/special/ptp.rst | 2 +- arch/arm/src/common/stm32/CMakeLists.txt | 2 +- arch/arm/src/common/stm32/Make.defs | 2 +- .../src/common/stm32/{stm32_eth_m3m4_v1.c => stm32_eth_v1.c} | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a608e1b5dd9..43da7fe08b8 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1723,8 +1723,8 @@ arch/arm/src/common/stm32/stm32_dma_m3m4_v1_8ch_dmamux.c jussi.kivilinna@haltian arch/arm/src/common/stm32/stm32_dma_m3m4_v2_stream.c [email protected] [email protected] [email protected] [email protected] [email protected] arch/arm/src/common/stm32/stm32_dumpgpio_m3m4_v1.c [email protected] [email protected] [email protected] [email protected] [email protected] arch/arm/src/common/stm32/stm32_eth.h [email protected] [email protected] [email protected] [email protected] [email protected] -arch/arm/src/common/stm32/stm32_eth_m3m4_v1.c [email protected] [email protected] [email protected] [email protected] [email protected] arch/arm/src/common/stm32/stm32_eth_m3m4_v1.h [email protected] [email protected] [email protected] [email protected] +arch/arm/src/common/stm32/stm32_eth_v1.c [email protected] [email protected] [email protected] [email protected] [email protected] arch/arm/src/common/stm32/stm32_exti.h [email protected] [email protected] [email protected] [email protected] arch/arm/src/common/stm32/stm32_exti_alarm_m3m4_v1.c [email protected] [email protected] [email protected] [email protected] [email protected] arch/arm/src/common/stm32/stm32_exti_gpio_m0_v1.c [email protected] [email protected] [email protected] [email protected] [email protected] diff --git a/Documentation/guides/chip-specific/port_drivers_to_stm32f7.rst b/Documentation/guides/chip-specific/port_drivers_to_stm32f7.rst index d2b99d8d2f6..4440799716a 100644 --- a/Documentation/guides/chip-specific/port_drivers_to_stm32f7.rst +++ b/Documentation/guides/chip-specific/port_drivers_to_stm32f7.rst @@ -191,7 +191,7 @@ An Example There is a good example in the STM32 Ethernet driver. The STM32 F7 Ethernet driver (formerly ``arch/arm/src/stm32f7/stm32_ethernet.c``) derived directly from the STM32 F4 Ethernet driver -(``arch/arm/src/common/stm32/stm32_eth_m3m4_v1.c``). These two Ethernet MAC peripherals +(``arch/arm/src/common/stm32/stm32_eth_v1.c``). These two Ethernet MAC peripherals are nearly identical. Only changes that are a direct consequence of the STM32 F7 D-Cache were required to make the driver work on the STM32 F7. Those changes are summarized below. diff --git a/Documentation/guides/chip-specific/stm32_ports.rst b/Documentation/guides/chip-specific/stm32_ports.rst index 2c4afcd5e2f..4e3decb7c80 100644 --- a/Documentation/guides/chip-specific/stm32_ports.rst +++ b/Documentation/guides/chip-specific/stm32_ports.rst @@ -234,7 +234,7 @@ Ethernet drivers ================ The Ethernet MAC drivers of F1, F2, F4, F7 -(``common/stm32/stm32_eth_m3m4_v1.c``) and H5, H7, N6 +(``common/stm32/stm32_eth_v1.c``) and H5, H7, N6 (``common/stm32/stm32_eth_v2.c``) are lower half drivers of the network upper half (``include/nuttx/net/netdev_lowerhalf.h``, see :ref:`Network Drivers <netdriver>`). New STM32 network drivers must use this @@ -382,7 +382,7 @@ CRC to be done not supported DAC v1 arch/arm/src/common/stm32/stm32_dac_m3m4_v1.c DBGMCU v1 not supported DMA v1 arch/arm/src/common/stm32/stm32_dma_m3m4_v1_8ch.c -ETH v1 arch/arm/src/common/stm32/stm32_eth_m3m4_v1.c +ETH v1 arch/arm/src/common/stm32/stm32_eth_v1.c EXTI v1 arch/arm/src/common/stm32/stm32_exti_gpio_m3m4_v1v2.c FLASH F1/F3 arch/arm/src/common/stm32/stm32_flash_m3m4_f1f3.c FSMC v1 arch/arm/src/common/stm32/stm32_fsmc_m3m4_v1.c @@ -411,7 +411,7 @@ CAN/FDCAN bxCAN arch/arm/src/common/stm32/stm32_can_m3m4_v1.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 -ETH v1 arch/arm/src/common/stm32/stm32_eth_m3m4_v1.c +ETH v1 arch/arm/src/common/stm32/stm32_eth_v1.c EXTI v1 arch/arm/src/common/stm32/stm32_exti_gpio_m3m4_v1v2.c FLASH F2/F4 arch/arm/src/common/stm32/stm32_flash_m3m4_f2f4.c FSMC v1 arch/arm/src/common/stm32/stm32_fsmc_m3m4_v1.c @@ -472,7 +472,7 @@ 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 DMA2D v1 arch/arm/src/common/stm32/stm32_dma2d_v1.c -ETH v1 arch/arm/src/common/stm32/stm32_eth_m3m4_v1.c +ETH v1 arch/arm/src/common/stm32/stm32_eth_v1.c EXTI v1 arch/arm/src/common/stm32/stm32_exti_gpio_m3m4_v1v2.c FLASH F2/F4 arch/arm/src/common/stm32/stm32_flash_m3m4_f2f4.c FMC/FSMC v1 arch/arm/src/common/stm32/stm32_fmc_m3m4_v1.c @@ -573,7 +573,7 @@ CAN/FDCAN bxCAN arch/arm/src/stm32f7/stm32_can.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 -ETH v1 arch/arm/src/common/stm32/stm32_eth_m3m4_v1.c +ETH v1 arch/arm/src/common/stm32/stm32_eth_v1.c EXTI to be done arch/arm/src/stm32f7/stm32_exti_gpio.c FLASH to be done arch/arm/src/stm32f7/stm32_flash.c FMC/FSMC to be done arch/arm/src/stm32f7/stm32_fmc.c diff --git a/Documentation/guides/networking/nsh_network_link_management.rst b/Documentation/guides/networking/nsh_network_link_management.rst index 05cc4f9d419..8c4bda0ac65 100644 --- a/Documentation/guides/networking/nsh_network_link_management.rst +++ b/Documentation/guides/networking/nsh_network_link_management.rst @@ -45,7 +45,7 @@ must be satisfied: are implemented for Atmel SAM4/4, SAMA5 families, and for the STMicro STM32. See ``nuttx/arch/arm/src/sam34/sam_emac.c``, ``nuttx/arch/arm/src/sam34/sam_emaca.c``, ``sam_emacb.c``, and ``sam_gmac.c``, - and ``nuttx/arch/arm/src/common/stm32/stm32_eth_m3m4_v1.c``. + and ``nuttx/arch/arm/src/common/stm32/stm32_eth_v1.c``. - ``CONFIG_ARCH_PHY_INTERRUPT`` This is not a user-selectable option. Rather, it is set when selecting a board that supports PHY interrupts. In most architectures, the PHY interrupt is not diff --git a/Documentation/implementation/nuttx_initialization_sequence.rst b/Documentation/implementation/nuttx_initialization_sequence.rst index 0c68e50e715..7db273f1351 100644 --- a/Documentation/implementation/nuttx_initialization_sequence.rst +++ b/Documentation/implementation/nuttx_initialization_sequence.rst @@ -381,7 +381,7 @@ file and in that case those operations are not performed: (found at ``nuttx/arch/arm/src/common/stm32/stm32_serial_m3m4_v1v2v3v4.c`` STM32 F4). * ``arm_netinitialize()`` - Initialize the network. For the STM32 F4, - this function is in ``nuttx/arch/arm/src/common/stm32/stm32_eth_m3m4_v1.c``. + this function is in ``nuttx/arch/arm/src/common/stm32/stm32_eth_v1.c``. * ``arm_usbinitialize()`` - Initialize USB (host or device). For the STM32 F4, this function is in diff --git a/Documentation/os/drivers/special/ptp.rst b/Documentation/os/drivers/special/ptp.rst index 09b11baae7b..a84a5b50c25 100644 --- a/Documentation/os/drivers/special/ptp.rst +++ b/Documentation/os/drivers/special/ptp.rst @@ -623,7 +623,7 @@ The following lower-half drivers are available in the tree: - ``drivers/timers/ptp_clock_dummy.c`` - The dummy driver described above, enabled with ``CONFIG_PTP_CLOCK_DUMMY``. It is registered as ``/dev/ptp0`` at start-up. -- ``arch/arm/src/common/stm32/stm32_eth_m3m4_v1.c`` - The Ethernet MAC of the +- ``arch/arm/src/common/stm32/stm32_eth_v1.c`` - The Ethernet MAC of the STM32 F1, F2, F4 and F7, registered with ``CONFIG_PTP_CLOCK`` and ``CONFIG_STM32_ETH_PTP`` as ``/dev/ptpN``, where N is the number of the Ethernet interface. The clock is the PTP counter of the MAC. It is also the diff --git a/arch/arm/src/common/stm32/CMakeLists.txt b/arch/arm/src/common/stm32/CMakeLists.txt index fefc482d87f..81b01c8860a 100644 --- a/arch/arm/src/common/stm32/CMakeLists.txt +++ b/arch/arm/src/common/stm32/CMakeLists.txt @@ -104,7 +104,7 @@ if(CONFIG_STM32_DAC AND CONFIG_STM32_HAVE_IP_DAC_M33_V1) endif() if(CONFIG_STM32_ETHMAC AND CONFIG_STM32_HAVE_IP_ETHMAC_M3M4_V1) - list(APPEND SRCS stm32_eth_m3m4_v1.c) + list(APPEND SRCS stm32_eth_v1.c) endif() if(CONFIG_STM32_ETHMAC AND CONFIG_STM32_HAVE_IP_ETHMAC_V2) diff --git a/arch/arm/src/common/stm32/Make.defs b/arch/arm/src/common/stm32/Make.defs index c459c824241..cc73cb73c06 100644 --- a/arch/arm/src/common/stm32/Make.defs +++ b/arch/arm/src/common/stm32/Make.defs @@ -115,7 +115,7 @@ CHIP_CSRCS += stm32_dac_m33_v1.c endif ifeq ($(CONFIG_STM32_ETHMAC)$(CONFIG_STM32_HAVE_IP_ETHMAC_M3M4_V1),yy) -CHIP_CSRCS += stm32_eth_m3m4_v1.c +CHIP_CSRCS += stm32_eth_v1.c endif ifeq ($(CONFIG_STM32_ETHMAC)$(CONFIG_STM32_HAVE_IP_ETHMAC_V2),yy) diff --git a/arch/arm/src/common/stm32/stm32_eth_m3m4_v1.c b/arch/arm/src/common/stm32/stm32_eth_v1.c similarity index 99% rename from arch/arm/src/common/stm32/stm32_eth_m3m4_v1.c rename to arch/arm/src/common/stm32/stm32_eth_v1.c index 6417e7e3d82..9c6c9941885 100644 --- a/arch/arm/src/common/stm32/stm32_eth_m3m4_v1.c +++ b/arch/arm/src/common/stm32/stm32_eth_v1.c @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/arm/src/common/stm32/stm32_eth_m3m4_v1.c + * arch/arm/src/common/stm32/stm32_eth_v1.c * * SPDX-License-Identifier: Apache-2.0 *
