mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
boards/stm32h7 update gpio clocks
GPIOE was turned on twice, changed to missing GPIOF. GPIOI is not present on all boards notably STM32H723 so clock in turned on only if present.
This commit is contained in:
parent
ea098aeda1
commit
ba017d0669
@ -66,10 +66,12 @@ void board_init(void)
|
||||
__HAL_RCC_GPIOC_CLK_ENABLE(); // USB ULPI NXT
|
||||
__HAL_RCC_GPIOD_CLK_ENABLE();
|
||||
__HAL_RCC_GPIOE_CLK_ENABLE();
|
||||
__HAL_RCC_GPIOE_CLK_ENABLE();
|
||||
__HAL_RCC_GPIOF_CLK_ENABLE();
|
||||
__HAL_RCC_GPIOG_CLK_ENABLE();
|
||||
__HAL_RCC_GPIOH_CLK_ENABLE(); // USB ULPI NXT
|
||||
#ifdef __HAL_RCC_GPIOI_CLK_ENABLE
|
||||
__HAL_RCC_GPIOI_CLK_ENABLE(); // USB ULPI NXT
|
||||
#endif
|
||||
__HAL_RCC_GPIOJ_CLK_ENABLE();
|
||||
|
||||
// Enable UART Clock
|
||||
|
Loading…
x
Reference in New Issue
Block a user