From 679f6602fd1a7e9763bac52f06bbf2db28098d9a Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Tue, 16 Mar 2010 09:59:05 +0000 Subject: PARPORT: add PARPORTADDR tcl variable Add PARPORTADDR tcl variable making it easier to change parallel port address in scripts. Signed-off-by: Spencer Oliver --- tcl/interface/flashlink.cfg | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tcl/interface/flashlink.cfg') diff --git a/tcl/interface/flashlink.cfg b/tcl/interface/flashlink.cfg index 4b00de91..5c81cf5a 100644 --- a/tcl/interface/flashlink.cfg +++ b/tcl/interface/flashlink.cfg @@ -5,6 +5,12 @@ # http://www.st.com/stonline/products/literature/um/7889.pdf # +if { [info exists PARPORTADDR] } { + set _PARPORTADDR $PARPORTADDR +} else { + set _PARPORTADDR 0 +} + interface parport -parport_port 0 +parport_port $_PARPORTADDR parport_cable flashlink -- cgit v1.2.3