summaryrefslogtreecommitdiff
path: root/src/stm/ao_boot.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-04-27 00:20:47 -0700
committerKeith Packard <keithp@keithp.com>2013-05-07 21:30:26 -0700
commit0b1797312b34ba2b8121f82605f8d2c419167737 (patch)
tree898efa8e7754e8cb498181b9fe9e7cc47ecde49a /src/stm/ao_boot.h
parente2412e867138635d79ea0fa8d43efc0a6aa19784 (diff)
altos: Run self loader when application sets boot addr to 0
This causes the flash loader startup code to fall into the loader when the application sets the boot address to zero. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_boot.h')
-rw-r--r--src/stm/ao_boot.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stm/ao_boot.h b/src/stm/ao_boot.h
index 862e8755..e0ed4de7 100644
--- a/src/stm/ao_boot.h
+++ b/src/stm/ao_boot.h
@@ -24,7 +24,8 @@ 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