This is an automated email from Gerrit. Tomasz CEDRO ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/1019
-- gerrit commit 593187a13492b3ddf94824830fdabda56b67a2dd Author: Tomek CEDRO <[email protected]> Date: Tue Oct 30 15:48:01 2012 +0100 Extended ft2232_layout structure with bitbang_deny field that will define port pins that are not allowed to manipulate by user (i.e. to avoid hardware damage). Minor comment updates. Change-Id: If81824afd102d44ed5d739c168f077155d3f28ad Signed-off-by: Tomek CEDRO <[email protected]> diff --git a/src/jtag/drivers/ft2232.c b/src/jtag/drivers/ft2232.c index 6758dc7..e474f41 100644 --- a/src/jtag/drivers/ft2232.c +++ b/src/jtag/drivers/ft2232.c @@ -1,9 +1,9 @@ -/*************************************************************************** +/************************************************************************** * Copyright (C) 2009 by Øyvind Harboe * -* Øyvind Harboe <[email protected]> * +* Øyvind Harboe <[email protected]> * * * * Copyright (C) 2009 by SoftPLC Corporation. http://softplc.com * -* Dick Hollenbeck <[email protected]> * +* Dick Hollenbeck <[email protected]> * * * * Copyright (C) 2004, 2006 by Dominic Rath * * [email protected] * @@ -11,6 +11,9 @@ * Copyright (C) 2008 by Spencer Oliver * * [email protected] * * * +* Copyright (C) 2011-2012 Tomasz Boleslaw CEDRO * +* [email protected], http://www.tomek.cedro.info * +* * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * @@ -162,12 +165,20 @@ static unsigned ft2232_max_tck = FTDI_2232C_MAX_TCK; static uint16_t ft2232_vid[MAX_USB_IDS + 1] = { 0x0403, 0 }; static uint16_t ft2232_pid[MAX_USB_IDS + 1] = { 0x6010, 0 }; +/** This structure describes different layout of FT2232 based devices. */ struct ft2232_layout { + /// Layout name. char *name; + /// Layout specific initialization routine. int (*init)(void); + /// Layout specific reset routine. void (*reset)(int trst, int srst); + /// Layout specific LED blink routine. void (*blink)(void); + /// Which FTDI channel does this layout use. int channel; + /// This will forbid bitbanging selected port pins. + int bitbang_deny; }; /* init procedures for supported layouts */ -- ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
