Merge pull request #1999 from raiden00pl/master

openh743i: initialize USB3300 reset pin
This commit is contained in:
Ha Thach 2023-04-04 11:27:19 +07:00 committed by GitHub
commit 8d07f5e733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();