interface configs: Fix whitespace and other issues.
[fw/openocd] / tcl / interface / parport.cfg
index 2a2668d520289732b83423d297b980863f393e2a..f7cc23ab48cc9be2a0820ad4dcb2536a0ccc1929 100644 (file)
@@ -1,8 +1,15 @@
 #
-# Parallel port wiggler (many clones available) on port 0xc8b8
+# Parallel port wiggler (many clones available) on port 0x378
 #
+# Addresses: 0x378/LPT1 or 0x278/LPT2 ...
+#
+
+if { [info exists PARPORTADDR] } {
+   set _PARPORTADDR $PARPORTADDR
+} else {
+   set _PARPORTADDR 0x378
+}
 
 interface parport
-parport_port 0xc8b8
+parport_port $_PARPORTADDR
 parport_cable wiggler
-