altos: Use explicit boot loader signal in ao_boot_reboot
[fw/altos] / src / lpc / ao_exti_lpc.c
index ce98b4ad3e0dae3c771083dd2fc214009b183112..941aa965dde3d7b8c7723c6aad94e16544dd31a9 100644 (file)
@@ -91,6 +91,9 @@ ao_exti_setup (uint8_t port, uint8_t pin, uint8_t mode, void (*callback)(void))
        if (pint == LPC_NUM_PINT)
                ao_panic(AO_PANIC_EXTI);
 
+       if (!(mode & AO_EXTI_PIN_NOCONFIGURE))
+               ao_enable_input(port, pin, mode);
+
        ao_arch_block_interrupts();
        mask = (1 << pint);
        ao_pint_inuse |= mask;