stm32l1: button-irq-printf: add syscfg clock.

Not strictly required as we're using port A out of the box, but makes
for bad example code, when the syscfg clock is required for selectin
exti sources other than port A.
This commit is contained in:
Karl Palsson
2019-06-01 16:20:13 +00:00
parent c9fe1da748
commit fed62e7ef4

View File

@@ -46,6 +46,9 @@ static void clock_setup(void)
/* And timers. */
rcc_periph_clock_enable(RCC_TIM6);
rcc_periph_clock_enable(RCC_TIM7);
/* And syscfg for exti port mapping */
rcc_periph_clock_enable(RCC_SYSCFG);
}
static void gpio_setup(void)