diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-09 08:40:10 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-09 08:40:10 +0000 |
commit | cd7f89f6bcc954da3ffa5b9b9eca49c32e152e7d (patch) | |
tree | 5d44e9d87a46d927c55e8735892dc22d347ae33f /src/jtag/parport.c | |
parent | bcad121d2ba3fffebb9b1cd126d3225aeb9711b8 (diff) | |
download | riscv-openocd-cd7f89f6bcc954da3ffa5b9b9eca49c32e152e7d.zip riscv-openocd-cd7f89f6bcc954da3ffa5b9b9eca49c32e152e7d.tar.gz riscv-openocd-cd7f89f6bcc954da3ffa5b9b9eca49c32e152e7d.tar.bz2 |
Add get and set accessors for jtag_speed:
- Setter calls the interface driver callback to improve core encapsulation.
- Use getter in standard JTAG interface drivers and ZY1000 minidriver.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2159 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/parport.c')
-rw-r--r-- | src/jtag/parport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/parport.c b/src/jtag/parport.c index 3f026b0..4ee2202 100644 --- a/src/jtag/parport.c +++ b/src/jtag/parport.c @@ -189,7 +189,7 @@ static __inline__ void parport_write_data(void) static void parport_write(int tck, int tms, int tdi) { - int i = jtag_speed + 1; + int i = jtag_get_speed() + 1; if (tck) dataport_value |= cable->TCK_MASK; |