diff --git a/src/stm32/stm32h7.c b/src/stm32/stm32h7.c index cd5ed0c6..4edab5f0 100644 --- a/src/stm32/stm32h7.c +++ b/src/stm32/stm32h7.c @@ -100,7 +100,9 @@ get_pclock_frequency(uint32_t periph_base) void gpio_clock_enable(GPIO_TypeDef *regs) { - enable_pclock((uint32_t)regs); + uint32_t pos = ((uint32_t)regs - D3_APB1PERIPH_BASE) / 0x400; + RCC->APB4ENR |= (1<APB4ENR; } #if !CONFIG_STM32_CLOCK_REF_INTERNAL