X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm%2Fao_boot.h;h=e0ed4de78cabc9f0a119639ecf51b3fa2ec1de78;hb=01f8df088759ee7e6bc3900a013e0ea4fafaf984;hp=863d8e05b2eb0fb25c6262d4e89031412c36dbed;hpb=c9c35b100c3fcae661501d2bf89eedc7fceb2e1c;p=fw%2Faltos diff --git a/src/stm/ao_boot.h b/src/stm/ao_boot.h index 863d8e05..e0ed4de7 100644 --- a/src/stm/ao_boot.h +++ b/src/stm/ao_boot.h @@ -19,6 +19,21 @@ #define _AO_BOOT_H_ void -ao_reboot_application(void); +ao_boot_chain(uint32_t *base); + +void +ao_boot_check_pin(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_ */