From 1e54139f4a45d379c1cda7ad02a3f4a7d321b78e Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Sat, 28 Mar 2015 20:15:33 -0700 Subject: target: Remove pc_read/pc_write methods. --- src/nrf51.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/nrf51.c') 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; -- cgit v1.2.3