X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fstm%2Fao_boot.h;h=62392d254d6461604e4c34947be99b2b56cf50e0;hp=862e8755b27abe1f95993c6e7daa171f2f5aed6c;hb=211d9af507daf9a8611ed1813415bee27e3839eb;hpb=dfc268e0021e1cd3045f73339a749d292a6a6300 diff --git a/src/stm/ao_boot.h b/src/stm/ao_boot.h index 862e8755..62392d25 100644 --- a/src/stm/ao_boot.h +++ b/src/stm/ao_boot.h @@ -24,15 +24,18 @@ ao_boot_chain(uint32_t *base); void ao_boot_check_pin(void); -void +/* Return true to switch to application (if present) */ +int ao_boot_check_chain(void); void ao_boot_reboot(uint32_t *base); +#define AO_BOOT_FORCE_LOADER ((uint32_t *) 0) + static inline void ao_boot_loader(void) { - ao_boot_reboot(AO_BOOT_LOADER_BASE); + ao_boot_reboot(AO_BOOT_FORCE_LOADER); } #endif /* _AO_BOOT_H_ */