X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fstm%2Fao_boot.h;h=62392d254d6461604e4c34947be99b2b56cf50e0;hp=3e8c50bae89e15bd549baba91978b4012a225a86;hb=211d9af507daf9a8611ed1813415bee27e3839eb;hpb=b1a43ce313c85cb7f8f16f7f0647d9d4320ba692 diff --git a/src/stm/ao_boot.h b/src/stm/ao_boot.h index 3e8c50ba..62392d25 100644 --- a/src/stm/ao_boot.h +++ b/src/stm/ao_boot.h @@ -24,10 +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_FORCE_LOADER); +} + #endif /* _AO_BOOT_H_ */