The EXTI routing information is in the syscfg unit, so that needs to
be powered up or writes to its registers will be lost.
Signed-off-by: Keith Packard <keithp@keithp.com>
uint8_t shift = (pin & 3) << 2;
uint8_t val = 0;
uint8_t shift = (pin & 3) << 2;
uint8_t val = 0;
+ /* Enable SYSCFG */
+ stm_rcc.apb2enr |= (1 << STM_RCC_APB2ENR_SYSCFGEN);
+
if (gpio == &stm_gpioa)
val = STM_SYSCFG_EXTICR_PA;
else if (gpio == &stm_gpiob)
if (gpio == &stm_gpioa)
val = STM_SYSCFG_EXTICR_PA;
else if (gpio == &stm_gpiob)