aboutsummaryrefslogtreecommitdiff
path: root/tcl/interface
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2015-03-02 17:52:47 +0300
committerPaul Fertser <fercerpav@gmail.com>2015-04-14 11:42:32 +0100
commitd06b09595b4c15d02660964bf9706cbd469b16d4 (patch)
treeadd8162b9fd8f165cc4377cb8ae7a59e77e77934 /tcl/interface
parentea85ed98beb909d9295a7b15ceb99e067082e31f (diff)
downloadriscv-openocd-d06b09595b4c15d02660964bf9706cbd469b16d4.zip
riscv-openocd-d06b09595b4c15d02660964bf9706cbd469b16d4.tar.gz
riscv-openocd-d06b09595b4c15d02660964bf9706cbd469b16d4.tar.bz2
tcl/interface/parport: default to sane value on non-windows systems
When using ppdev driver 0 is the most appropriate default value as it corresponds to /dev/parport0. Raw port address is suitable only for direct access (I think that's parport-giveio on windows). Reported by danitool on IRC. Change-Id: I983c22251de6601b433ad31aaf660fb664cee7e9 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2572 Reviewed-by: Andreas Färber <afaerber@suse.de> Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'tcl/interface')
-rw-r--r--tcl/interface/parport.cfg6
1 files changed, 5 insertions, 1 deletions
diff --git a/tcl/interface/parport.cfg b/tcl/interface/parport.cfg
index f7cc23a..ae3f8f1 100644
--- a/tcl/interface/parport.cfg
+++ b/tcl/interface/parport.cfg
@@ -7,7 +7,11 @@
if { [info exists PARPORTADDR] } {
set _PARPORTADDR $PARPORTADDR
} else {
- set _PARPORTADDR 0x378
+ if {$tcl_platform(platform) eq "windows"} {
+ set _PARPORTADDR 0x378
+ } {
+ set _PARPORTADDR 0
+ }
}
interface parport