X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm%2Fao_boot.h;h=e0ed4de78cabc9f0a119639ecf51b3fa2ec1de78;hb=63683f91f5fe9588c1d905a572509cb674aaad68;hp=3e8c50bae89e15bd549baba91978b4012a225a86;hpb=b1a43ce313c85cb7f8f16f7f0647d9d4320ba692;p=fw%2Faltos diff --git a/src/stm/ao_boot.h b/src/stm/ao_boot.h index 3e8c50ba..e0ed4de7 100644 --- a/src/stm/ao_boot.h +++ b/src/stm/ao_boot.h @@ -24,10 +24,16 @@ 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); +static inline void +ao_boot_loader(void) { + ao_boot_reboot(AO_BOOT_LOADER_BASE); +} + #endif /* _AO_BOOT_H_ */