projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Use explicit boot loader signal in ao_boot_reboot
[fw/altos]
/
src
/
stm
/
ao_boot.h
diff --git
a/src/stm/ao_boot.h
b/src/stm/ao_boot.h
index 3e8c50bae89e15bd549baba91978b4012a225a86..62392d254d6461604e4c34947be99b2b56cf50e0 100644
(file)
--- 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
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);
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_ */
#endif /* _AO_BOOT_H_ */