summaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-02-22 00:06:18 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2012-02-22 00:06:18 +0100
commit2dcf57363a5c1c55940e5701e5ec047c37c54560 (patch)
treeebd979604d2698a79298102fc589f3cdb376311e /src/transport
parent23e3beaa3c970736af7993f1a8bb77b8834fc150 (diff)
downloadopenocd_libswd-2dcf57363a5c1c55940e5701e5ec047c37c54560.tar.gz
openocd_libswd-2dcf57363a5c1c55940e5701e5ec047c37c54560.tar.bz2
openocd_libswd-2dcf57363a5c1c55940e5701e5ec047c37c54560.tar.xz
openocd_libswd-2dcf57363a5c1c55940e5701e5ec047c37c54560.zip
A working version for my EFM board.
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/swd_libswd_drv_openocd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/transport/swd_libswd_drv_openocd.c b/src/transport/swd_libswd_drv_openocd.c
index 2066d5b3..76fbc4d3 100644
--- a/src/transport/swd_libswd_drv_openocd.c
+++ b/src/transport/swd_libswd_drv_openocd.c
@@ -171,7 +171,8 @@ int swd_drv_mosi_trn(swd_ctx_t *swdctx, int bits){
int res, val=0;
static char buf[SWD_TURNROUND_MAX_VAL];
/* Use driver method to set low (write) signal named RnW. */
- res=jtag_interface->bitbang(NULL, "RnW", 0, &val);
+// res=jtag_interface->bitbang(NULL, "RnW", 0, &val);
+ res=jtag_interface->bitbang(NULL, "RnW", 0xFFFFFFFF, &val);
if (res<0) return SWD_ERROR_DRIVER;
/* Clock specified number of bits for proper TRN transaction. */
@@ -199,7 +200,8 @@ int swd_drv_miso_trn(swd_ctx_t *swdctx, int bits){
static char buf[SWD_TURNROUND_MAX_VAL];
/* Use driver method to set high (read) signal named RnW. */
- res=jtag_interface->bitbang(NULL, "RnW", 0xFFFFFFFF, &val);
+// res=jtag_interface->bitbang(NULL, "RnW", 0xFFFFFFFF, &val);
+ res=jtag_interface->bitbang(NULL, "RnW", 0, &val);
if (res<0) return SWD_ERROR_DRIVER;
/* Clock specified number of bits for proper TRN transaction. */