Skip to content

Commit d8f87f9

Browse files
Woring! Add initial support for STM32H5 as well
1 parent af891c9 commit d8f87f9

File tree

17 files changed

+190
-2034
lines changed

17 files changed

+190
-2034
lines changed

connectivity/drivers/emac/TARGET_STM/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ elseif("STM32F7" IN_LIST MBED_TARGET_LABELS)
99
add_subdirectory(TARGET_STM32F7)
1010
elseif("STM32H7" IN_LIST MBED_TARGET_LABELS)
1111
add_subdirectory(TARGET_STM32H7)
12+
elseif("STM32H5" IN_LIST MBED_TARGET_LABELS)
13+
add_subdirectory(TARGET_STM32H5)
1214
endif()
1315

1416
target_include_directories(mbed-emac

connectivity/drivers/emac/TARGET_STM/STM32EthIPv2DMARings.cpp

Lines changed: 0 additions & 591 deletions
This file was deleted.

connectivity/drivers/emac/TARGET_STM/STM32EthIPv2DMARings.h

Lines changed: 0 additions & 181 deletions
This file was deleted.

connectivity/drivers/emac/TARGET_STM/STM32EthMACv2.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,11 @@ namespace mbed {
253253
HAL_SYSCFG_ETHInterfaceSelect(SYSCFG_ETH_RMII);
254254

255255
/* Dummy read to sync with ETH */
256+
#ifdef TARGET_STM32H5
257+
(void)SBS->PMCR;
258+
#else
256259
(void)SYSCFG->PMCR;
260+
#endif
257261

258262
/* Ethernet Software reset */
259263
/* Set the SWR bit: resets all MAC subsystem internal registers and logic */

connectivity/drivers/emac/TARGET_STM/TARGET_STM32F4/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# Copyright (c) 2020 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
if("ARCH_MAX" IN_LIST MBED_TARGET_LABELS)
5-
add_subdirectory(TARGET_ARCH_MAX)
6-
elseif("NUCLEO_F429ZI" IN_LIST MBED_TARGET_LABELS)
4+
if("NUCLEO_F429ZI" IN_LIST MBED_TARGET_LABELS)
75
add_subdirectory(TARGET_NUCLEO_F429ZI)
86
elseif("NUCLEO_F439ZI" IN_LIST MBED_TARGET_LABELS)
97
add_subdirectory(TARGET_NUCLEO_F439ZI)

connectivity/drivers/emac/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/CMakeLists.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

connectivity/drivers/emac/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/stm32f4_eth_conf.c

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)