summaryrefslogtreecommitdiff
path: root/src/jtag/zy1000/jtag_minidriver.h
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-03-04 19:58:42 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-03-25 20:46:34 +0100
commited81249129d4b43159843712efa408660cf4c03d (patch)
treee9d7476ce0a8584b314b57fe89cbad513b2e1feb /src/jtag/zy1000/jtag_minidriver.h
parented6756fb23fc7383ec7a4a831a8750a6cf5eaa4e (diff)
downloadopenocd+libswd-ed81249129d4b43159843712efa408660cf4c03d.tar.gz
openocd+libswd-ed81249129d4b43159843712efa408660cf4c03d.tar.bz2
openocd+libswd-ed81249129d4b43159843712efa408660cf4c03d.tar.xz
openocd+libswd-ed81249129d4b43159843712efa408660cf4c03d.zip
zy1000: dev tool
first cut peek/poke over tcp/ip, used for debug/research purposes only. Long term JTAG over TCP/IP might be an offshoot. The performance is usable for development/testing purposes. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/jtag/zy1000/jtag_minidriver.h')
-rw-r--r--src/jtag/zy1000/jtag_minidriver.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/jtag/zy1000/jtag_minidriver.h b/src/jtag/zy1000/jtag_minidriver.h
index 43d0c975..d556699a 100644
--- a/src/jtag/zy1000/jtag_minidriver.h
+++ b/src/jtag/zy1000/jtag_minidriver.h
@@ -38,8 +38,11 @@ int diag_printf(const char *fmt, ...);
#else
/* redirect this to TCP/IP */
-#define ZY1000_PEEK(a, b) b = 1;
-#define ZY1000_POKE(a, b)
+#define ZY1000_JTAG_BASE 0
+extern void zy1000_tcpout(uint32_t address, uint32_t data);
+extern uint32_t zy1000_tcpin(uint32_t address);
+#define ZY1000_PEEK(a, b) b=zy1000_tcpin(a)
+#define ZY1000_POKE(a, b) zy1000_tcpout(a, b)
#endif