stm32h7:ethernet Use proper Clock limits for H7
This commit is contained in:
parent
d93091459d
commit
21a96c4784
@ -259,8 +259,10 @@
|
||||
# define ETH_MACMDIOAR_CR ETH_MACMDIOAR_CR_DIV42
|
||||
#elif STM32_HCLK_FREQUENCY >= 100000000 && STM32_HCLK_FREQUENCY < 150000000
|
||||
# define ETH_MACMDIOAR_CR ETH_MACMDIOAR_CR_DIV62
|
||||
#elif STM32_HCLK_FREQUENCY >= 150000000 && STM32_HCLK_FREQUENCY <= 216000000
|
||||
#elif STM32_HCLK_FREQUENCY >= 150000000 && STM32_HCLK_FREQUENCY <= 250000000
|
||||
# define ETH_MACMDIOAR_CR ETH_MACMDIOAR_CR_DIV102
|
||||
#elif STM32_HCLK_FREQUENCY >= 250000000 && STM32_HCLK_FREQUENCY <= 300000000
|
||||
# define ETH_MACMDIOAR_CR ETH_MACMDIOAR_CR_DIV124
|
||||
#else
|
||||
# error "STM32_HCLK_FREQUENCY not supportable"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user