aboutsummaryrefslogtreecommitdiff
path: root/src/cortexm.c
diff options
context:
space:
mode:
authorRichard Meadows2015-01-18 20:46:26 +0000
committerRichard Meadows2015-01-18 20:46:26 +0000
commit372606177357a815dd7c484739649b50118ad42e (patch)
treef6ed0513887f23a9058cded50e49354c96557903 /src/cortexm.c
parente75ea64a010412dc407692a6e28c76e8b0359c66 (diff)
Support for the NVMCTRL Security Bit (PROT=1)
Diffstat (limited to 'src/cortexm.c')
-rw-r--r--src/cortexm.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cortexm.c b/src/cortexm.c
index b7f71eb..364e276 100644
--- a/src/cortexm.c
+++ b/src/cortexm.c
@@ -60,8 +60,6 @@ const struct command_s cortexm_cmd_list[] = {
#define SIGTRAP 5
#define SIGSEGV 11
-static bool cortexm_attach(struct target_s *target);
-
static int cortexm_regs_read(struct target_s *target, void *data);
static int cortexm_regs_write(struct target_s *target, const void *data);
static int cortexm_pc_write(struct target_s *target, const uint32_t val);
@@ -269,8 +267,7 @@ cortexm_probe(struct target_s *target)
return true;
}
-static bool
-cortexm_attach(struct target_s *target)
+bool cortexm_attach(struct target_s *target)
{
ADIv5_AP_t *ap = adiv5_target_ap(target);
struct cortexm_priv *priv = ap->priv;