summaryrefslogtreecommitdiff
path: root/src/stm-flash/ao_pins.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-03-11 13:21:04 -0700
committerKeith Packard <keithp@keithp.com>2013-05-07 20:16:36 -0700
commitb1a43ce313c85cb7f8f16f7f0647d9d4320ba692 (patch)
tree932b1768bc85c5ef5865d6acd61eac22a8584dcc /src/stm-flash/ao_pins.h
parent56a7cbbf51f5c9ebbfe17d1cc30ed807572af3cc (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_pins.h')
-rw-r--r--src/stm-flash/ao_pins.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stm-flash/ao_pins.h b/src/stm-flash/ao_pins.h
index ca53d844..382ef353 100644
--- a/src/stm-flash/ao_pins.h
+++ b/src/stm-flash/ao_pins.h
@@ -65,10 +65,13 @@
#define HAS_TASK_INFO 0
#define HAS_VERSION 0
+#define AO_BOOT_CHAIN 1
+#define AO_BOOT_PIN 1
+
#define AO_BOOT_APPLICATION_GPIO stm_gpioa
#define AO_BOOT_APPLICATION_PIN 0
#define AO_BOOT_APPLICATION_VALUE 1
#define AO_BOOT_APPLICATION_MODE 0
-#define AO_BOOT_APPLICATION_BASE 0x2000
+#define AO_BOOT_APPLICATION_BASE ((uint32_t *) 0x2000)
#endif /* _AO_PINS_H_ */