This is an automated email from Gerrit. Patrick Stewart ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/2274
-- gerrit commit 032daf42f787e3c4915702b9c900cb41adb2ce21 Author: Patrick Stewart <[email protected]> Date: Wed Aug 27 17:17:27 2014 +0100 FTDI: Disable SWD output pin during input Disables the data output pin while SWD is reading, so that a simple FTDI SWD interface can be made by connecting TCK to SWD_CLK and TDI+TDO directly to SWDIO. Change-Id: I7d3b71cf3f4eea163cb320aff69ed95d219190bd Signed-off-by: Patrick Stewart <[email protected]> diff --git a/src/jtag/drivers/ftdi.c b/src/jtag/drivers/ftdi.c index 6406406..dfdc8ee 100644 --- a/src/jtag/drivers/ftdi.c +++ b/src/jtag/drivers/ftdi.c @@ -935,8 +935,12 @@ static int ftdi_swd_init(void) static void ftdi_swd_swdio_en(bool enable) { struct signal *oe = find_signal_by_name("SWDIO_OE"); + if (enable) + mpsse_set_data_bits_low_byte(mpsse_ctx, output & 0xff, direction & 0xff); if (oe) ftdi_set_signal(oe, enable ? '1' : '0'); + if (!enable) + mpsse_set_data_bits_low_byte(mpsse_ctx, output & 0xff, direction & 0xfb); } /** -- ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
