Skip to content

Commit 157150e

Browse files
LMESTMadbridge
authored andcommitted
STM32: Extend Ethernet RMII workaround
to all applicable devices part of F77x/F76x series.
1 parent ce04e3d commit 157150e

File tree

1 file changed

+7
-4
lines changed
  • features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM

1 file changed

+7
-4
lines changed

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/stm32xx_emac.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ static sys_mutex_t tx_lock_mutex;
4646
/* function */
4747
static void _eth_arch_rx_task(void *arg);
4848
static void _eth_arch_phy_task(void *arg);
49-
#if defined (TARGET_NUCLEO_F767ZI)
49+
#if defined (STM32F767xx) || defined (STM32F769xx) || defined (STM32F777xx)\
50+
|| defined (STM32F779xx)
5051
static void _rmii_watchdog(void *arg);
5152
#endif
5253

@@ -375,9 +376,10 @@ static void _eth_arch_phy_task(void *arg)
375376
}
376377
}
377378

378-
#if defined (TARGET_NUCLEO_F767ZI)
379+
#if defined (STM32F767xx) || defined (STM32F769xx) || defined (STM32F777xx)\
380+
|| defined (STM32F779xx)
379381
/**
380-
* workaround for the ETH RMII bug in STM32F769 Cut1.0
382+
* workaround for the ETH RMII bug in STM32F76x and STM32F77x revA
381383
*
382384
* \param[in] netif the lwip network interface structure
383385
*/
@@ -497,7 +499,8 @@ err_t eth_arch_enetif_init(struct netif *netif)
497499
/* initialize the hardware */
498500
_eth_arch_low_level_init(netif);
499501

500-
#if defined (TARGET_NUCLEO_F767ZI)
502+
#if defined (STM32F767xx) || defined (STM32F769xx) || defined (STM32F777xx)\
503+
|| defined (STM32F779xx)
501504
sys_thread_new("stm32_rmii_watchdog", _rmii_watchdog, netif, DEFAULT_THREAD_STACKSIZE, osPriorityLow);
502505
#endif
503506

0 commit comments

Comments
 (0)