Skip to content

Commit d851814

Browse files
facchinmpillo79
authored andcommitted
boards: opta: reset ethernet phy at startup
1 parent 72bba98 commit d851814

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

boards/arduino/opta/board_gpio_init.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <zephyr/init.h>
88
#include <stm32h7xx_ll_bus.h>
99
#include <stm32h7xx_ll_gpio.h>
10+
#include "../../../drivers/dp/swdp_ll_pin.h"
1011

1112
static int board_gpio_init(void)
1213
{
@@ -37,6 +38,8 @@ static int board_gpio_init(void)
3738
LL_GPIO_SetPinSpeed(GPIOJ, LL_GPIO_PIN_15, LL_GPIO_SPEED_FREQ_LOW);
3839
LL_GPIO_SetPinOutputType(GPIOJ, LL_GPIO_PIN_15, LL_GPIO_OUTPUT_PUSHPULL);
3940
LL_GPIO_SetPinPull(GPIOJ, LL_GPIO_PIN_15, LL_GPIO_PULL_UP);
41+
LL_GPIO_ResetOutputPin(GPIOJ, LL_GPIO_PIN_15);
42+
pin_delay_asm(100);
4043
LL_GPIO_SetOutputPin(GPIOJ, LL_GPIO_PIN_15);
4144
#endif
4245

0 commit comments

Comments
 (0)