From 097a156dd6d784b5f94736045a20ddd089e8f985 Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Thu, 13 Feb 2003 22:37:17 +0000 Subject: [PATCH] 2003-02-13 Marcel Telka * include/bsbit.h (BSBIT_BIDIR): Added new macro (Christian Pellegrin). * src/part/bsbit.c (bsbit_alloc): Added support for bidirectional pins (Christian Pellegrin). * src/part/parse.ci (read_part): Ditto. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@343 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 7 +++++++ jtag/NEWS | 1 + jtag/include/bsbit.h | 1 + jtag/src/part/bsbit.c | 5 +++++ jtag/src/part/parse.c | 3 +++ 5 files changed, 17 insertions(+) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 656936de..5c53a626 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,10 @@ +2003-02-13 Marcel Telka + + * include/bsbit.h (BSBIT_BIDIR): Added new macro (Christian Pellegrin). + * src/part/bsbit.c (bsbit_alloc): Added support for bidirectional pins (Christian + Pellegrin). + * src/part/parse.ci (read_part): Ditto. + 2003-02-10 Marcel Telka * src/sa1110.c (sa1110_bus_read_start): Added support for all six static memory banks. diff --git a/jtag/NEWS b/jtag/NEWS index 9b3559a2..ea7f5be3 100644 --- a/jtag/NEWS +++ b/jtag/NEWS @@ -5,6 +5,7 @@ $Id$ * Added support for Mpcbdm JTAG Cable (Christian Pellegrin). * Added support for Arcom JTAG Cable (patch 682310, Ian Campbell). * Added support for all 6 static memory banks for Intel SA1110 (bug 682660). + * Added support for bidirectional 'B' boundary scan pins (Christian Pellegrin). jtag-0.2.2 (2003-02-04): diff --git a/jtag/include/bsbit.h b/jtag/include/bsbit.h index caeac993..e1a830f7 100644 --- a/jtag/include/bsbit.h +++ b/jtag/include/bsbit.h @@ -33,6 +33,7 @@ typedef struct bsbit bsbit; #define BSBIT_OUTPUT 2 #define BSBIT_CONTROL 3 #define BSBIT_INTERNAL 4 +#define BSBIT_BIDIR 5 #define BSBIT_STATE_Z (-1) diff --git a/jtag/src/part/bsbit.c b/jtag/src/part/bsbit.c index 42422bda..8b0582a0 100644 --- a/jtag/src/part/bsbit.c +++ b/jtag/src/part/bsbit.c @@ -57,6 +57,11 @@ bsbit_alloc( int bit, const char *name, int type, signal* signals, int safe ) break; case BSBIT_OUTPUT: s->output = b; + break; + case BSBIT_BIDIR: + s->input = b; + s->output = b; + break; } break; } diff --git a/jtag/src/part/parse.c b/jtag/src/part/parse.c index 48308f71..bfaa24fb 100644 --- a/jtag/src/part/parse.c +++ b/jtag/src/part/parse.c @@ -242,6 +242,9 @@ read_part( FILE *f, tap_register *idr ) case 'O': type = BSBIT_OUTPUT; break; + case 'B': + type = BSBIT_BIDIR; + break; case 'C': type = BSBIT_CONTROL; break;