aboutsummaryrefslogtreecommitdiff
path: root/src/adiv5_swdp.c
diff options
context:
space:
mode:
authorGareth McMullin2011-03-08 22:15:35 +1300
committerGareth McMullin2011-03-08 22:15:35 +1300
commita6f2117d1dd74fceb088c4e6f7e54aa109ecca21 (patch)
treee652fa85fb917824b0cdbf839c65c454e581a7bc /src/adiv5_swdp.c
parentb8462dd1f2a880834fb439cd06cbe807382eb2a6 (diff)
Further cleanup of adiv5*
Diffstat (limited to 'src/adiv5_swdp.c')
-rw-r--r--src/adiv5_swdp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/adiv5_swdp.c b/src/adiv5_swdp.c
index ec1e1fb..ce19753 100644
--- a/src/adiv5_swdp.c
+++ b/src/adiv5_swdp.c
@@ -84,12 +84,12 @@ int adiv5_swdp_scan(void)
static void adiv5_swdp_write(ADIv5_DP_t *dp, uint8_t addr, uint32_t value)
{
- adiv5_swdp_low_access(dp, 0, 0, addr, value);
+ adiv5_swdp_low_access(dp, ADIV5_LOW_DP, ADIV5_LOW_WRITE, addr, value);
}
static uint32_t adiv5_swdp_read(ADIv5_DP_t *dp, uint8_t addr)
{
- return adiv5_swdp_low_access(dp, 0, 1, addr, 0);
+ return adiv5_swdp_low_access(dp, ADIV5_LOW_DP, ADIV5_LOW_READ, addr, 0);
}
static uint32_t adiv5_swdp_error(ADIv5_DP_t *dp)