summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-04-04 11:27:19 +0700
committerGitHub <[email protected]>2023-04-04 11:27:19 +0700
commit8d07f5e733d7465ac980f9d6aa7b58b63ece42c1 (patch)
tree19f54d194f741cad851830b256cd2347a2f533ff
parent44fab77c3df784fd6ac94ff75aaa19f70e7760f4 (diff)
parentf2faf72f7fe6bf04870c65437088ae76a9db8baf (diff)
Merge pull request #1999 from raiden00pl/master
openh743i: initialize USB3300 reset pin
-rw-r--r--hw/bsp/stm32h7/boards/waveshare_openh743i/board.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/bsp/stm32h7/boards/waveshare_openh743i/board.h b/hw/bsp/stm32h7/boards/waveshare_openh743i/board.h
index cf6ad762e..a3d0d07f9 100644
--- a/hw/bsp/stm32h7/boards/waveshare_openh743i/board.h
+++ b/hw/bsp/stm32h7/boards/waveshare_openh743i/board.h
@@ -192,6 +192,14 @@ static inline void board_stm32h7_post_init(void)
// Init timer
TIM_HandleTypeDef tim2Handle;
TIM_ClockConfigTypeDef sClockSourceConfig = {0};
+ GPIO_InitTypeDef GPIO_InitStruct;
+
+ // ULPI_RST
+ GPIO_InitStruct.Pin = ULPI_RST_PIN;
+ GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
+ GPIO_InitStruct.Pull = GPIO_NOPULL;
+ GPIO_InitStruct.Speed = 0;
+ HAL_GPIO_Init(ULPI_RST_PORT, &GPIO_InitStruct);
__HAL_RCC_TIM2_CLK_ENABLE();