projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lpc: Stick magic value at 0x2fc to let us use PIO0_1
[fw/altos]
/
src
/
lpc
/
ao_interrupt.c
diff --git
a/src/lpc/ao_interrupt.c
b/src/lpc/ao_interrupt.c
index bc2848c3bffa364ba6298d3a32c9439a817dc57c..25413abb04964676c1367d968118bd7d200a6a18 100644
(file)
--- a/
src/lpc/ao_interrupt.c
+++ b/
src/lpc/ao_interrupt.c
@@
-162,6
+162,12
@@
const void *const __interrupt_vector[0x30] = {
__attribute__ ((section(".init.0")))
const void *const __interrupt_pad[0x10];
__attribute__ ((section(".init.0")))
const void *const __interrupt_pad[0x10];
+#if IS_FLASH_LOADER
+/* Flash loader needs a magic value at 0x2fc to be 0x4E69 7370 */
+__attribute__ ((section(".no_isp")))
+const uint32_t force_no_isp = 0x4E697370;
+#endif
+
void main(void) __attribute__((__noreturn__));
void *__interrupt_ram[sizeof(__interrupt_vector)/sizeof(__interrupt_vector[0])] __attribute((section(".preserve.1")));
void main(void) __attribute__((__noreturn__));
void *__interrupt_ram[sizeof(__interrupt_vector)/sizeof(__interrupt_vector[0])] __attribute((section(".preserve.1")));