summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorTomek CEDRO <cederom@tlen.pl>2011-11-04 02:07:12 +0000
committerTomek CEDRO <cederom@tlen.pl>2011-11-04 02:07:12 +0000
commit955e8934845b5dbee5a2fda02fc3204fb49ebb17 (patch)
tree8a633d44db4e2b0588e5355f48c2459f2a1c682b /src/target
parent08db63ec5d22fdc47577d01f15a129390079a2ae (diff)
parent5d773f63136a86bd72ebb2862ca90766f945418b (diff)
downloadopenocd_libswd-955e8934845b5dbee5a2fda02fc3204fb49ebb17.tar.gz
openocd_libswd-955e8934845b5dbee5a2fda02fc3204fb49ebb17.tar.bz2
openocd_libswd-955e8934845b5dbee5a2fda02fc3204fb49ebb17.tar.xz
openocd_libswd-955e8934845b5dbee5a2fda02fc3204fb49ebb17.zip
Merge branch 'master' of ssh://repo.or.cz/srv/git/openocd/libswd
Diffstat (limited to 'src/target')
-rw-r--r--src/target/arm_adi_v5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c
index cacfac8f..88a5d3b8 100644
--- a/src/target/arm_adi_v5.c
+++ b/src/target/arm_adi_v5.c
@@ -695,7 +695,7 @@ int mem_ap_read_buf_u32(struct adiv5_dap *dap, uint8_t *buffer,
// uint32_t invalue, adr = address;
// uint8_t* pBuffer = buffer;
- int i, retval;
+ int i, retval=ERROR_FAIL;
uint32_t invalue;
//count >>= 2;
// wcount = count;
@@ -1192,7 +1192,7 @@ int dap_get_debugbase(struct adiv5_dap *dap, int ap,
{
uint32_t ap_old;
int retval;
- uint32_t dbgbase, apid, idcode;
+ uint32_t dbgbase, apid; //, idcode;
/* AP address is in bits 31:24 of DP_SELECT */
if (ap >= 256)
@@ -1215,7 +1215,7 @@ int dap_get_debugbase(struct adiv5_dap *dap, int ap,
struct jtag_tap *tap = dap->jtag_info->tap;
while (tap != NULL) {
if (tap->hasidcode) {
- idcode = tap->idcode;
+ //idcode = tap->idcode;
break;
}
tap = tap->next_tap;