[PATCH 09/14] bsp/stm32h7: disable ethernet for STM32H7B3I-DK BSP variant

Karel Gardas karel at functional.vision
Fri Apr 1 16:14:16 UTC 2022


Note: the ethernet port is not presented on the board anyway.
---
 bsps/arm/stm32h7/start/stm32h7-hal-eth.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bsps/arm/stm32h7/start/stm32h7-hal-eth.c b/bsps/arm/stm32h7/start/stm32h7-hal-eth.c
index b9dac6d7f9..5fc75f0147 100644
--- a/bsps/arm/stm32h7/start/stm32h7-hal-eth.c
+++ b/bsps/arm/stm32h7/start/stm32h7-hal-eth.c
@@ -33,6 +33,8 @@
 
 #include <bspopts.h>
 
+#ifndef STM32H7B3xxQ
+
 static const stm32h7_gpio_config gpiog = {
   .regs = GPIOG,
   .config = {
@@ -94,3 +96,5 @@ HAL_ETH_MspInit(ETH_HandleTypeDef *heth)
   stm32h7_gpio_init(&gpiob);
 #endif
 }
+
+#endif
-- 
2.25.1



More information about the devel mailing list