diff options
| author | Keith Packard <keithp@keithp.com> | 2013-03-11 13:21:04 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-03-11 13:21:04 -0700 |
| commit | 06431e5195506f0d39105154de6eb046dfa152b6 (patch) | |
| tree | bb3c9a2b5a4b3d30fab188349464671ae6e803c7 /src/stm-flash/ao_stm_flash.c | |
| parent | 994157be3d8272045183bc42237cd315d30d2187 (diff) | |
altos: Clean up boot loader support
Split out code into separate files.
Add support for getting back to boot loader from application.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm-flash/ao_stm_flash.c')
| -rw-r--r-- | src/stm-flash/ao_stm_flash.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/stm-flash/ao_stm_flash.c b/src/stm-flash/ao_stm_flash.c index 16dd1189..968da9f1 100644 --- a/src/stm-flash/ao_stm_flash.c +++ b/src/stm-flash/ao_stm_flash.c @@ -25,8 +25,14 @@ ao_panic(uint8_t reason) for (;;); } +void +ao_application(void) +{ + ao_boot_reboot(AO_BOOT_APPLICATION_BASE); +} + __code struct ao_cmds ao_flash_cmds[] = { - { ao_reboot_application, "A\0Switch to application" }, + { ao_application, "A\0Switch to application" }, { 0, NULL }, }; |
