aboutsummaryrefslogtreecommitdiff
path: root/src/stm32f4.c
diff options
context:
space:
mode:
authorGareth McMullin2015-01-17 13:18:20 +1300
committerGareth McMullin2015-01-17 13:18:20 +1300
commitabcc04d4f398cd25216671d54ccc371e88180aea (patch)
treee6605d4e5a27b074abef7b20ce4ab24ab8eece6e /src/stm32f4.c
parent4e2c99a65b252b429143a707d34b05514eb56891 (diff)
parentda28970c3e164d4166cb8a3e0fe59c804299ed32 (diff)
Merge pull request #63 from beewoolie/static-stubs
Fix to move stubs into rodata.
Diffstat (limited to 'src/stm32f4.c')
-rw-r--r--src/stm32f4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32f4.c b/src/stm32f4.c
index 4f27859..148c31b 100644
--- a/src/stm32f4.c
+++ b/src/stm32f4.c
@@ -122,7 +122,7 @@ static const char stm32f4_xml_memory_map[] = "<?xml version=\"1.0\"?>"
#define DBGMCU_IDCODE 0xE0042000
/* This routine is uses word access. Only usable on target voltage >2.7V */
-uint16_t stm32f4_flash_write_stub[] = {
+static const uint16_t stm32f4_flash_write_stub[] = {
// _start:
0x480a, // ldr r0, [pc, #40] // _flashbase
0x490b, // ldr r1, [pc, #44] // _addr