From e5ef2b9f08f98ce028e0dcd936263b77f49e71e2 Mon Sep 17 00:00:00 2001 From: nopnop2002 Date: Sun, 28 Jul 2019 09:19:57 +0900 Subject: [PATCH] Supprt LAN8720 ETH BOARD --- system/STM32F4xx/stm32f4xx_hal_conf_default.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/STM32F4xx/stm32f4xx_hal_conf_default.h b/system/STM32F4xx/stm32f4xx_hal_conf_default.h index 0f4e030065..d90419ba70 100644 --- a/system/STM32F4xx/stm32f4xx_hal_conf_default.h +++ b/system/STM32F4xx/stm32f4xx_hal_conf_default.h @@ -230,8 +230,10 @@ in voltage and temperature. */ #define ETH_TXBUFNB (5U) /* 5 Tx buffers of size ETH_TX_BUF_SIZE */ /* Section 2: PHY configuration section */ +#if !defined (LAN8742A_PHY_ADDRESS) /* LAN8742A PHY Address*/ #define LAN8742A_PHY_ADDRESS 0x00U +#endif /* PHY Reset delay these values are based on a 1 ms Systick interrupt*/ #define PHY_RESET_DELAY 0x000000FFU /* PHY Configuration delay */