tcl/board: Add NXP FRDM-K64F
[fw/openocd] / tcl / interface / parport.cfg
index 22be8f35c78b9469e10e0284f78867b0a4e47937..05195f02735d8c640a0b2b49221131f94c616205 100644 (file)
@@ -1,10 +1,19 @@
 #
-# Parallel port wiggler (many clones available) on port 0xc8b8
+# Parallel port wiggler (many clones available) on port 0x378
+#
+# Addresses: 0x378/LPT1 or 0x278/LPT2 ...
 #
-# REVISIT this address seems very wrong.
-# Surely 0x378/LPT1 or 0x278/LPT2 ...
 
-interface parport
-parport_port 0xc8b8
-parport_cable wiggler
+if { [info exists PARPORTADDR] } {
+   set _PARPORTADDR $PARPORTADDR
+} else {
+   if {$tcl_platform(platform) eq "windows"} {
+      set _PARPORTADDR 0x378
+   } {
+      set _PARPORTADDR 0
+   }
+}
 
+adapter driver parport
+parport port $_PARPORTADDR
+parport cable wiggler