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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user