aboutsummaryrefslogtreecommitdiff
path: root/src/samd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/samd.c')
-rw-r--r--src/samd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/samd.c b/src/samd.c
index 6f73956..2719763 100644
--- a/src/samd.c
+++ b/src/samd.c
@@ -553,7 +553,7 @@ static int samd_flash_write(struct target_s *target, uint32_t dest,
/* Partial, manual page write */
for (; addr <= MINIMUM(end, end_of_this_page); addr += 4, i++) {
- adiv5_dp_write_ap(ap->dp, ADIV5_AP_DRW, data[i]);
+ adiv5_dp_write(ap->dp, ADIV5_AP_DRW, data[i]);
}
/* Unlock */
@@ -578,7 +578,7 @@ static int samd_flash_write(struct target_s *target, uint32_t dest,
/* Full, automatic page write */
for (; addr < page + SAMD_PAGE_SIZE; addr += 4, i++) {
- adiv5_dp_write_ap(ap->dp, ADIV5_AP_DRW, data[i]);
+ adiv5_dp_write(ap->dp, ADIV5_AP_DRW, data[i]);
}
}