aboutsummaryrefslogtreecommitdiff
path: root/src/cortexm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cortexm.c')
-rw-r--r--src/cortexm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/cortexm.c b/src/cortexm.c
index b7f71eb..12914d3 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);
@@ -261,7 +259,7 @@ cortexm_probe(struct target_s *target)
PROBE(lpc43xx_probe);
PROBE(sam3x_probe);
PROBE(nrf51_probe);
- PROBE(samd20_probe);
+ PROBE(samd_probe);
PROBE(lmi_probe);
PROBE(kinetis_probe);
#undef PROBE
@@ -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;