diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-08-20 01:04:20 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-08-20 01:10:14 -0400 |
commit | c930fc392b6977b17d6f7953bd738583974208c2 (patch) | |
tree | e0198fd4ea70b358579673428da1cb91cc3ccfa9 /src/stm32/internal.h | |
parent | a67451fa3688c10faa4caf589235b07ef01c30f1 (diff) | |
download | kutter-c930fc392b6977b17d6f7953bd738583974208c2.tar.gz kutter-c930fc392b6977b17d6f7953bd738583974208c2.tar.xz kutter-c930fc392b6977b17d6f7953bd738583974208c2.zip |
stm32: Make sure to enable the gpio clock prior to setting the first value
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/internal.h')
-rw-r--r-- | src/stm32/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 |