mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 05:42:56 +00:00
openh743i: initialize USB3300 reset pin
This commit is contained in:
parent
5add4c97fa
commit
f2faf72f7f
@ -192,6 +192,14 @@ static inline void board_stm32h7_post_init(void)
|
|||||||
// Init timer
|
// Init timer
|
||||||
TIM_HandleTypeDef tim2Handle;
|
TIM_HandleTypeDef tim2Handle;
|
||||||
TIM_ClockConfigTypeDef sClockSourceConfig = {0};
|
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();
|
__HAL_RCC_TIM2_CLK_ENABLE();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user