X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tcl%2Finterface%2Fparport.cfg;h=05195f02735d8c640a0b2b49221131f94c616205;hb=248161cbf47af9f7fc8c00b5efa79a1ff8e65848;hp=6aaf80b7bb857a78ec17708d94f2cb88fc2b0193;hpb=dbbc9c41f7db210b0a4e226540a28e0a8a5019bf;p=fw%2Fopenocd diff --git a/tcl/interface/parport.cfg b/tcl/interface/parport.cfg index 6aaf80b7b..05195f027 100644 --- a/tcl/interface/parport.cfg +++ b/tcl/interface/parport.cfg @@ -1,9 +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 ... # -interface parport -parport_port 0xc8b8 -parport_cable wiggler -jtag_speed 0 +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