diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2009-10-22 10:22:34 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2009-10-22 10:23:15 +0200 |
commit | 3537c368feb28b288e4a8449de703f1b972396d0 (patch) | |
tree | 3b872e8599c3fdcc1896103c65988dd3eb25fb26 /src | |
parent | fcf1301e5269fdf734946ccf03177511f2eda851 (diff) | |
download | openocd+libswd-3537c368feb28b288e4a8449de703f1b972396d0.tar.gz openocd+libswd-3537c368feb28b288e4a8449de703f1b972396d0.tar.bz2 openocd+libswd-3537c368feb28b288e4a8449de703f1b972396d0.tar.xz openocd+libswd-3537c368feb28b288e4a8449de703f1b972396d0.zip |
disable ZY1000's UART forwarding test code.
Diffstat (limited to 'src')
-rw-r--r-- | src/ecosboard.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ecosboard.c b/src/ecosboard.c index 4af38e85..bad5fd58 100644 --- a/src/ecosboard.c +++ b/src/ecosboard.c @@ -625,6 +625,9 @@ void setNoDelay(int session, int flag) #endif } +#define TEST_TCPIP() 0 + +#if TEST_TCPIP struct { int req; @@ -633,6 +636,7 @@ struct int actual2; } tcpipSent[512 * 1024]; int cur; +#endif static void zylinjtag_uart(cyg_addrword_t data) { @@ -697,7 +701,9 @@ static void zylinjtag_uart(cyg_addrword_t data) size_t pos, pos2; pos = 0; pos2 = 0; +#if TEST_TCPIP cur = 0; +#endif for (;;) { fd_set write_fds; @@ -798,6 +804,7 @@ static void zylinjtag_uart(cyg_addrword_t data) } y2 = written; } +#if TEST_TCPIP if (cur < 1024) { tcpipSent[cur].req = x; @@ -806,11 +813,12 @@ static void zylinjtag_uart(cyg_addrword_t data) tcpipSent[cur].actual2 = y2; cur++; } - +#endif } closeSession: close(session); close(serHandle); +#if TEST_TCPIP int i; for (i = 0; i < 1024; i++) { @@ -818,6 +826,7 @@ static void zylinjtag_uart(cyg_addrword_t data) tcpipSent[i].req2, tcpipSent[i].actual2); } +#endif } close(fd); |