Skip to content

Commit 6c216b9

Browse files
Fix missing SYSCFG_CLK_ENABLE (#462)
1 parent bced9bd commit 6c216b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

connectivity/drivers/emac/TARGET_STM/STM32EthMACv2.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,10 @@ namespace mbed {
254254
// Note: Following code is based on HAL_Eth_Init() from the HAL
255255
/* Init the low level hardware : GPIO, CLOCK, NVIC. */
256256
EthInitPinmappings();
257-
#ifdef TARGET_STM32H7
257+
258258
// Use RMII
259+
#ifdef TARGET_STM32H7
260+
__HAL_RCC_SYSCFG_CLK_ENABLE();
259261
HAL_SYSCFG_ETHInterfaceSelect(SYSCFG_ETH_RMII);
260262

261263
/* Dummy read to sync with ETH */

0 commit comments

Comments
 (0)