aboutsummaryrefslogtreecommitdiff
path: root/src/nrf51.c
diff options
context:
space:
mode:
authorMarc Singer2015-01-09 17:53:18 -0800
committerMarc Singer2015-01-09 18:18:10 -0800
commitda28970c3e164d4166cb8a3e0fe59c804299ed32 (patch)
treed4ef438104fdb66acfc74788454761f93115d621 /src/nrf51.c
parent9c5ffd61f7d654418c76015f0073e4accbf9e004 (diff)
Fix to move stubs into rodata.
o Stubs were declared as globals which means they will be initialized data. No need for this. Now, stubs are static const and are only present in the program image.
Diffstat (limited to 'src/nrf51.c')
-rw-r--r--src/nrf51.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nrf51.c b/src/nrf51.c
index 52c9749..7305d29 100644
--- a/src/nrf51.c
+++ b/src/nrf51.c
@@ -98,7 +98,7 @@ static const char nrf51_xml_memory_map[] = "<?xml version=\"1.0\"?>"
#define NRF51_PAGE_SIZE 1024
-uint16_t nrf51_flash_write_stub[] = {
+static const uint16_t nrf51_flash_write_stub[] = {
// _start:
0x4808, // ldr r0, [pc, #32] ; (24 <_ready>)
0x4909, // ldr r1, [pc, #36] ; (28 <_addr>)