#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);
+
+#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_ */