summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomek CEDRO <cederom@tlen.pl>2011-11-02 23:49:27 +0000
committerTomek CEDRO <cederom@tlen.pl>2011-11-02 23:49:27 +0000
commit0add1edbe7c67eb882417692b15c5794d2792430 (patch)
tree95de91c287ee48870d7f1afbab6af74c2e69033f /src
parent845d5f77d58c6547e28f3fd29ffa830f93e08f26 (diff)
downloadopenocd_libswd-0add1edbe7c67eb882417692b15c5794d2792430.tar.gz
openocd_libswd-0add1edbe7c67eb882417692b15c5794d2792430.tar.bz2
openocd_libswd-0add1edbe7c67eb882417692b15c5794d2792430.tar.xz
openocd_libswd-0add1edbe7c67eb882417692b15c5794d2792430.zip
Fixed bad SWD_ACK values definitions.
Diffstat (limited to 'src')
-rw-r--r--src/target/arm_adi_v5.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/arm_adi_v5.h b/src/target/arm_adi_v5.h
index c190c433..19ea0acf 100644
--- a/src/target/arm_adi_v5.h
+++ b/src/target/arm_adi_v5.h
@@ -41,9 +41,9 @@
#define JTAG_DP_APACC 0xB
/* three-bit ACK values for SWD access (sent LSB first) */
-#define SWD_ACK_OK 0x4
+#define SWD_ACK_OK 0x1
#define SWD_ACK_WAIT 0x2
-#define SWD_ACK_FAULT 0x1
+#define SWD_ACK_FAULT 0x4
#define DPAP_WRITE 0
#define DPAP_READ 1