diff options
author | Spencer Oliver <ntfreak@users.sourceforge.net> | 2010-03-16 09:59:05 +0000 |
---|---|---|
committer | Spencer Oliver <ntfreak@users.sourceforge.net> | 2010-03-16 10:10:21 +0000 |
commit | 679f6602fd1a7e9763bac52f06bbf2db28098d9a (patch) | |
tree | 5a6662f2be551b8e987da5698de354c27b0a9df0 /tcl/interface/parport.cfg | |
parent | 82f44a4708cdfdf2bf4b386a4751e6b43adad2b2 (diff) |
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.cfg')
-rw-r--r-- | tcl/interface/parport.cfg | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tcl/interface/parport.cfg b/tcl/interface/parport.cfg index 0f18ce9e..326005a9 100644 --- a/tcl/interface/parport.cfg +++ b/tcl/interface/parport.cfg @@ -3,6 +3,12 @@ # # Addresses: 0x378/LPT1 or 0x278/LPT2 ... +if { [info exists PARPORTADDR] } { + set _PARPORTADDR $PARPORTADDR +} else { + set _PARPORTADDR 0x378 +} + interface parport -parport_port 0x378 +parport_port $_PARPORTADDR parport_cable wiggler |