summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-02-03 06:51:11 +0100
committerKeith Packard <keithp@keithp.com>2017-02-20 11:16:52 -0800
commitf85997eb53779e637dca697d0d96da7d1235fa80 (patch)
treec1a6fb9852d19fd88be9287b672ae3ca2b52f79a
parentf43c3ad0c643f714c523e513bdc8585c6d5a4050 (diff)
altos/stmf0: Allow apps to leave interrupt vectors at 0
TeleMini v3.0 doesn't need a boot loader, so we'll have the app run its interrupt vector right at the bottom of the address space instead of copying it to the bottom of ram and reconfiguring the chip to use that. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/stmf0/ao_interrupt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stmf0/ao_interrupt.c b/src/stmf0/ao_interrupt.c
index 79412483..fcd330f1 100644
--- a/src/stmf0/ao_interrupt.c
+++ b/src/stmf0/ao_interrupt.c
@@ -26,9 +26,11 @@
#define IS_FLASH_LOADER 0
#endif
+#ifndef RELOCATE_INTERRUPT
#if !IS_FLASH_LOADER
#define RELOCATE_INTERRUPT 1
#endif
+#endif
extern void main(void);
extern char __stack__;