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/1060
-- gerrit commit c4a6fe2efcf12aa08f2e9e781639748b8f6e556d 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: I7e28986d56ad433070afacd21b3fbff6d365c091 Signed-off-by: Tomek CEDRO <[email protected]> diff --git a/src/jtag/drivers/ft2232.c b/src/jtag/drivers/ft2232.c index 6758dc7..35df00a 100644 --- a/src/jtag/drivers/ft2232.c +++ b/src/jtag/drivers/ft2232.c @@ -1,31 +1,34 @@ /*************************************************************************** -* Copyright (C) 2009 by Øyvind Harboe * -* Øyvind Harboe <[email protected]> * -* * -* Copyright (C) 2009 by SoftPLC Corporation. http://softplc.com * -* Dick Hollenbeck <[email protected]> * -* * -* Copyright (C) 2004, 2006 by Dominic Rath * -* [email protected] * -* * -* Copyright (C) 2008 by Spencer Oliver * -* [email protected] * -* * -* 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 * -* (at your option) any later version. * -* * -* This program is distributed in the hope that it will be useful, * -* but WITHOUT ANY WARRANTY; without even the implied warranty of * -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * -* GNU General Public License for more details. * -* * -* You should have received a copy of the GNU General Public License * -* along with this program; if not, write to the * -* Free Software Foundation, Inc., * -* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * -***************************************************************************/ + * Copyright (C) 2009 by Oyvind Harboe * + * Oyvind Harboe <[email protected]> * + * * + * Copyright (C) 2009 by SoftPLC Corporation. http://softplc.com * + * Dick Hollenbeck <[email protected]> * + * * + * Copyright (C) 2004, 2006 by Dominic Rath * + * [email protected] * + * * + * 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 * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ /** * @file @@ -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
