summaryrefslogtreecommitdiff
path: root/tcl/interface/parport_dlc5.cfg
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-03-16 09:59:05 +0000
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-03-16 10:10:21 +0000
commit679f6602fd1a7e9763bac52f06bbf2db28098d9a (patch)
tree5a6662f2be551b8e987da5698de354c27b0a9df0 /tcl/interface/parport_dlc5.cfg
parent82f44a4708cdfdf2bf4b386a4751e6b43adad2b2 (diff)
downloadopenocd+libswd-679f6602fd1a7e9763bac52f06bbf2db28098d9a.tar.gz
openocd+libswd-679f6602fd1a7e9763bac52f06bbf2db28098d9a.tar.bz2
openocd+libswd-679f6602fd1a7e9763bac52f06bbf2db28098d9a.tar.xz
openocd+libswd-679f6602fd1a7e9763bac52f06bbf2db28098d9a.zip
PARPORT: add PARPORTADDR tcl variable
Add PARPORTADDR tcl variable making it easier to change parallel port address in scripts. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'tcl/interface/parport_dlc5.cfg')
-rw-r--r--tcl/interface/parport_dlc5.cfg8
1 files changed, 7 insertions, 1 deletions
diff --git a/tcl/interface/parport_dlc5.cfg b/tcl/interface/parport_dlc5.cfg
index 85caefc7..d0f183fc 100644
--- a/tcl/interface/parport_dlc5.cfg
+++ b/tcl/interface/parport_dlc5.cfg
@@ -4,7 +4,13 @@
# http://www.xilinx.com/itp/xilinx4/data/docs/pac/appendixb.html
#
+if { [info exists PARPORTADDR] } {
+ set _PARPORTADDR $PARPORTADDR
+} else {
+ set _PARPORTADDR 0
+}
+
interface parport
-parport_port 0
+parport_port $_PARPORTADDR
parport_cable dlc5