Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion connectivity/drivers/emac/TARGET_STM/STM32EthMACv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,10 @@ namespace mbed {
// Note: Following code is based on HAL_Eth_Init() from the HAL
/* Init the low level hardware : GPIO, CLOCK, NVIC. */
EthInitPinmappings();
#ifdef TARGET_STM32H7

// Use RMII
#ifdef TARGET_STM32H7
__HAL_RCC_SYSCFG_CLK_ENABLE();
HAL_SYSCFG_ETHInterfaceSelect(SYSCFG_ETH_RMII);

/* Dummy read to sync with ETH */
Expand Down