diff options
| author | Jerzy Kasenberg <[email protected]> | 2023-01-26 12:00:13 +0100 |
|---|---|---|
| committer | Jerzy Kasenberg <[email protected]> | 2023-01-26 12:02:07 +0100 |
| commit | ba017d06693db1e0adb7e2457a22a74b80fe8508 (patch) | |
| tree | f10599b1d98af1ee1ec7463e4f859eae44705b23 | |
| parent | ea098aeda1c2b9fe467041be325e55049e304ee4 (diff) | |
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.
| -rw-r--r-- | hw/bsp/stm32h7/family.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/bsp/stm32h7/family.c b/hw/bsp/stm32h7/family.c index 3964f427a..d55480b4c 100644 --- a/hw/bsp/stm32h7/family.c +++ b/hw/bsp/stm32h7/family.c @@ -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 |
