Skip to content

Commit 0e3b50d

Browse files
committed
hosted/cmsis_dap: Fixed the nomenclature for dap_dp_raw_access
1 parent 9ceb775 commit 0e3b50d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/platforms/hosted/cmsis_dap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ void dap_dp_abort(adiv5_debug_port_s *const target_dp, const uint32_t abort)
386386
dap_write_reg(target_dp, ADIV5_DP_ABORT, abort);
387387
}
388388

389-
uint32_t dap_dp_low_access(
389+
uint32_t dap_dp_raw_access(
390390
adiv5_debug_port_s *const target_dp, const uint8_t rnw, const uint16_t addr, const uint32_t value)
391391
{
392392
const bool APnDP = addr & ADIV5_APnDP;
@@ -401,11 +401,11 @@ uint32_t dap_dp_low_access(
401401

402402
uint32_t dap_dp_read_reg(adiv5_debug_port_s *const target_dp, const uint16_t addr)
403403
{
404-
uint32_t result = dap_dp_low_access(target_dp, ADIV5_LOW_READ, addr, 0);
404+
uint32_t result = dap_dp_raw_access(target_dp, ADIV5_LOW_READ, addr, 0);
405405
if (target_dp->fault == DAP_TRANSFER_NO_RESPONSE) {
406406
DEBUG_WARN("Recovering and re-trying access\n");
407407
target_dp->error(target_dp, true);
408-
result = dap_dp_low_access(target_dp, ADIV5_LOW_READ, addr, 0);
408+
result = dap_dp_raw_access(target_dp, ADIV5_LOW_READ, addr, 0);
409409
}
410410
DEBUG_PROBE("dp_read %04x %08" PRIx32 "\n", addr, result);
411411
return result;

src/platforms/hosted/dap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ bool dap_run_cmd(const void *request_data, size_t request_length, void *response
9090
bool dap_jtag_configure(void);
9191

9292
void dap_dp_abort(adiv5_debug_port_s *target_dp, uint32_t abort);
93-
uint32_t dap_dp_low_access(adiv5_debug_port_s *target_dp, uint8_t rnw, uint16_t addr, uint32_t value);
93+
uint32_t dap_dp_raw_access(adiv5_debug_port_s *target_dp, uint8_t rnw, uint16_t addr, uint32_t value);
9494
uint32_t dap_dp_read_reg(adiv5_debug_port_s *target_dp, uint16_t addr);
9595

9696
#endif /* PLATFORMS_HOSTED_DAP_H */

src/platforms/hosted/dap_jtag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void dap_jtag_dp_init(adiv5_debug_port_s *target_dp)
8080
if (!dap_jtag_configure())
8181
return;
8282
target_dp->dp_read = dap_dp_read_reg;
83-
target_dp->low_access = dap_dp_low_access;
83+
target_dp->low_access = dap_dp_raw_access;
8484
target_dp->abort = dap_dp_abort;
8585
}
8686

src/platforms/hosted/dap_swd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ bool dap_swd_init(adiv5_debug_port_s *target_dp)
8484
/* Set up the accelerated SWD functions for basic target operations */
8585
target_dp->read_no_check = dap_read_reg_no_check;
8686
target_dp->dp_read = dap_dp_read_reg;
87-
target_dp->low_access = dap_dp_low_access;
87+
target_dp->low_access = dap_dp_raw_access;
8888
target_dp->abort = dap_dp_abort;
8989
return true;
9090
}

0 commit comments

Comments
 (0)