altos: Always start application if boot pin isn't in use
[fw/altos] / src / stm / ao_interrupt.c
index a98d799a4a2382a62e6e8dbac67a12b2c952f362..1d563532b755cf7f1144400803ef0a034536febb 100644 (file)
@@ -29,12 +29,12 @@ extern char __bss_start__, __bss_end__;
 
 /* Interrupt functions */
 
-static void stm_halt_isr(void)
+void stm_halt_isr(void)
 {
        ao_panic(AO_PANIC_CRASH);
 }
 
-static void stm_ignore_isr(void)
+void stm_ignore_isr(void)
 {
 }
 
@@ -77,8 +77,11 @@ void start(void)
 #ifdef AO_BOOT_CHAIN
        if (ao_boot_check_chain()) {
 #ifdef AO_BOOT_PIN
-               ao_boot_check_pin();
+               if (ao_boot_check_pin())
 #endif
+               {
+                       ao_boot_chain(AO_BOOT_APPLICATION_BASE);
+               }
        }
 #endif
        /* Set interrupt vector table offset */