X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm%2Fao_interrupt.c;h=1d563532b755cf7f1144400803ef0a034536febb;hb=ffbf340c516a7fff7c95b808586f623269fe4338;hp=a98d799a4a2382a62e6e8dbac67a12b2c952f362;hpb=c11427819ca24bb77523496309b5b6f699d126c5;p=fw%2Faltos diff --git a/src/stm/ao_interrupt.c b/src/stm/ao_interrupt.c index a98d799a..1d563532 100644 --- a/src/stm/ao_interrupt.c +++ b/src/stm/ao_interrupt.c @@ -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 */