From c930fc392b6977b17d6f7953bd738583974208c2 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 20 Aug 2019 01:04:20 -0400 Subject: stm32: Make sure to enable the gpio clock prior to setting the first value Signed-off-by: Kevin O'Connor --- src/stm32/internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/stm32/internal.h') diff --git a/src/stm32/internal.h b/src/stm32/internal.h index 0edfefe5..05a222d0 100644 --- a/src/stm32/internal.h +++ b/src/stm32/internal.h @@ -25,6 +25,7 @@ void enable_pclock(uint32_t periph_base); int is_enabled_pclock(uint32_t periph_base); uint32_t get_pclock_frequency(uint32_t periph_base); void clock_setup(void); +void gpio_clock_enable(GPIO_TypeDef *regs); void gpio_peripheral(uint32_t gpio, uint32_t mode, int pullup); #endif // internal.h -- cgit v1.2.3-70-g09d2