diff options
author | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2006-07-30 11:25:43 +0000 |
---|---|---|
committer | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2006-07-30 11:25:43 +0000 |
commit | 1341eb3b0aea74b939a5d7702f696b175d032647 (patch) | |
tree | 66aec1f947ef1b464b2f1e9028e8e4846499ad31 /src/jtag/parport.c | |
parent | 82d2633b5f550115e9e7c7d0520babb6680aa38f (diff) | |
download | riscv-openocd-1341eb3b0aea74b939a5d7702f696b175d032647.zip riscv-openocd-1341eb3b0aea74b939a5d7702f696b175d032647.tar.gz riscv-openocd-1341eb3b0aea74b939a5d7702f696b175d032647.tar.bz2 |
- added configurable delays after reset lines get deasserted. useful if reset circuitry keeps lines asserted for too long.
- additional debug output when opening the parallel port
- fixed counting of available arm7/9 watchpoint units
- 'flash write' now displays elapsed time
git-svn-id: svn://svn.berlios.de/openocd/trunk@79 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/parport.c')
-rw-r--r-- | src/jtag/parport.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/jtag/parport.c b/src/jtag/parport.c index e78215e..21aa513 100644 --- a/src/jtag/parport.c +++ b/src/jtag/parport.c @@ -310,6 +310,8 @@ int parport_init(void) return ERROR_JTAG_INIT_FAILED; } + DEBUG("opening /dev/parport%d...", parport_port); + snprintf(buffer, 256, "/dev/parport%d", parport_port); device_handle = open(buffer, O_WRONLY); @@ -319,6 +321,8 @@ int parport_init(void) return ERROR_JTAG_INIT_FAILED; } + DEBUG("...open"); + i=ioctl(device_handle, PPCLAIM); if (i<0) { @@ -350,7 +354,8 @@ int parport_init(void) dataport = parport_port; statusport = parport_port + 1; - + + DEBUG("requesting privileges for parallel port 0x%x...", dataport); #if PARPORT_USE_GIVEIO == 1 if (parport_get_giveio_access() != 0) #else /* PARPORT_USE_GIVEIO */ @@ -360,6 +365,7 @@ int parport_init(void) ERROR("missing privileges for direct i/o"); return ERROR_JTAG_INIT_FAILED; } + DEBUG("...privileges granted"); #endif /* PARPORT_USE_PPDEV */ parport_reset(0, 0); |