diff options
author | Tomas Vanek <vanekt@fbl.cz> | 2021-04-05 06:32:47 +0200 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2021-04-25 23:08:41 +0100 |
commit | 44554698472aae5b02620eb91837118ada4d2bfe (patch) | |
tree | 7b6b789575193b01fe6d2992a9c6a91bec582b62 /src | |
parent | a5471b1b2c5675fa0caa462e742916c54f9a08e2 (diff) | |
download | riscv-openocd-44554698472aae5b02620eb91837118ada4d2bfe.zip riscv-openocd-44554698472aae5b02620eb91837118ada4d2bfe.tar.gz riscv-openocd-44554698472aae5b02620eb91837118ada4d2bfe.tar.bz2 |
target/adi_v5_swd: remove double space from swd_cmd() parameters
Change-Id: I6b68868947010512c4de76e5d37142f067e27b06
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/6137
Tested-by: jenkins
Diffstat (limited to 'src')
-rw-r--r-- | src/target/adi_v5_swd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/adi_v5_swd.c b/src/target/adi_v5_swd.c index b25181e..f1fca40 100644 --- a/src/target/adi_v5_swd.c +++ b/src/target/adi_v5_swd.c @@ -74,7 +74,7 @@ static void swd_clear_sticky_errors(struct adiv5_dap *dap) const struct swd_driver *swd = adiv5_dap_swd_driver(dap); assert(swd); - swd->write_reg(swd_cmd(false, false, DP_ABORT), + swd->write_reg(swd_cmd(false, false, DP_ABORT), STKCMPCLR | STKERRCLR | WDERRCLR | ORUNERRCLR, 0); } @@ -174,7 +174,7 @@ static int swd_connect(struct adiv5_dap *dap) dap->do_reconnect = false; - swd->write_reg(swd_cmd(false, false, DP_ABORT), + swd->write_reg(swd_cmd(false, false, DP_ABORT), DAPABORT | STKCMPCLR | STKERRCLR | WDERRCLR | ORUNERRCLR, 0); status = swd_run_inner(dap); } @@ -325,7 +325,7 @@ static int swd_queue_ap_read(struct adiv5_ap *ap, unsigned reg, if (retval != ERROR_OK) return retval; - swd->read_reg(swd_cmd(true, true, reg), dap->last_read, ap->memaccess_tck); + swd->read_reg(swd_cmd(true, true, reg), dap->last_read, ap->memaccess_tck); dap->last_read = data; return check_sync(dap); @@ -347,7 +347,7 @@ static int swd_queue_ap_write(struct adiv5_ap *ap, unsigned reg, if (retval != ERROR_OK) return retval; - swd->write_reg(swd_cmd(false, true, reg), data, ap->memaccess_tck); + swd->write_reg(swd_cmd(false, true, reg), data, ap->memaccess_tck); return check_sync(dap); } |