Skip to content

Commit 8d07f5e

Browse files
authored
Merge pull request hathach#1999 from raiden00pl/master
openh743i: initialize USB3300 reset pin
2 parents 44fab77 + f2faf72 commit 8d07f5e

File tree

1 file changed

+8
-0
lines changed
  • hw/bsp/stm32h7/boards/waveshare_openh743i

1 file changed

+8
-0
lines changed

hw/bsp/stm32h7/boards/waveshare_openh743i/board.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,14 @@ static inline void board_stm32h7_post_init(void)
192192
// Init timer
193193
TIM_HandleTypeDef tim2Handle;
194194
TIM_ClockConfigTypeDef sClockSourceConfig = {0};
195+
GPIO_InitTypeDef GPIO_InitStruct;
196+
197+
// ULPI_RST
198+
GPIO_InitStruct.Pin = ULPI_RST_PIN;
199+
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
200+
GPIO_InitStruct.Pull = GPIO_NOPULL;
201+
GPIO_InitStruct.Speed = 0;
202+
HAL_GPIO_Init(ULPI_RST_PORT, &GPIO_InitStruct);
195203

196204
__HAL_RCC_TIM2_CLK_ENABLE();
197205

0 commit comments

Comments
 (0)