aboutsummaryrefslogtreecommitdiff
path: root/src/nrf51.c
diff options
context:
space:
mode:
authorGareth McMullin2015-03-28 20:15:33 -0700
committerGareth McMullin2015-03-28 20:15:33 -0700
commit1e54139f4a45d379c1cda7ad02a3f4a7d321b78e (patch)
treeb5671e507039ee525679228231d749ffc12b96ac /src/nrf51.c
parent4313b64bbe27024ab4238bbd18e4b6624a1c8bca (diff)
target: Remove pc_read/pc_write methods.
Diffstat (limited to 'src/nrf51.c')
-rw-r--r--src/nrf51.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nrf51.c b/src/nrf51.c
index ed0137c..a75b356 100644
--- a/src/nrf51.c
+++ b/src/nrf51.c
@@ -26,6 +26,7 @@
#include "target.h"
#include "command.h"
#include "gdb_packet.h"
+#include "cortexm.h"
static int nrf51_flash_erase(struct target_s *target, uint32_t addr, size_t len);
static int nrf51_flash_write(struct target_s *target, uint32_t dest,
@@ -229,7 +230,7 @@ static int nrf51_flash_write(struct target_s *target, uint32_t dest,
/* Write stub and data to target ram and set PC */
target_mem_write(target, 0x20000000, nrf51_flash_write_stub, 0x28);
target_mem_write(target, 0x20000028, data, len + 8);
- target_pc_write(target, 0x20000000);
+ cortexm_pc_write(target, 0x20000000);
if(target_check_error(target))
return -1;