stm32: Make sure to enable the gpio clock prior to setting the first value

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-08-20 01:04:20 -04:00
parent a67451fa36
commit c930fc392b
4 changed files with 22 additions and 4 deletions

View file

@ -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