Skip to content

Commit fed62e7

Browse files
committed
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.
1 parent c9fe1da commit fed62e7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • examples/stm32/l1/stm32l-discovery/button-irq-printf

examples/stm32/l1/stm32l-discovery/button-irq-printf/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ static void clock_setup(void)
4646
/* And timers. */
4747
rcc_periph_clock_enable(RCC_TIM6);
4848
rcc_periph_clock_enable(RCC_TIM7);
49+
50+
/* And syscfg for exti port mapping */
51+
rcc_periph_clock_enable(RCC_SYSCFG);
4952
}
5053

5154
static void gpio_setup(void)

0 commit comments

Comments
 (0)