]> git.sur5r.net Git - openocd/commit
jtag_interface: .speed can be NULL when not needed
authorFranck Jullien <franck.jullien@gmail.com>
Sun, 3 Feb 2013 17:15:13 +0000 (18:15 +0100)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Fri, 8 Feb 2013 22:33:19 +0000 (22:33 +0000)
commit87668aebf1851c06af2513ab5f27ebb9ebf1ff16
tree5f8fad191256e26517b18166b0a276bdd708b3eb
parentfeddedb6db72b81714780fae5d0b3a51dc1ddedc
jtag_interface: .speed can be NULL  when not needed

adapter_init (core.c) won't check speed configuration
of the selected interface if it's not needed (.speed = NULL).

When it's not needed, we can now omit adapter_khz in
init scripts and we don't have to implement dummy handlers
for speed_div and khz functions.

It also removes calls to adapter_khz in interface configuration
files when not used anymore.

Change-Id: I6eb1894385503fede542a368f297cec6565eed44
Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
Reviewed-on: http://openocd.zylin.com/1131
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
19 files changed:
src/jtag/core.c
src/jtag/drivers/at91rm9200.c
src/jtag/drivers/buspirate.c
src/jtag/drivers/ep93xx.c
src/jtag/drivers/gw16012.c
src/jtag/drivers/opendous.c
src/jtag/drivers/osbdm.c
src/jtag/drivers/remote_bitbang.c
src/jtag/drivers/sysfsgpio.c
src/jtag/drivers/usb_blaster.c
src/jtag/drivers/usbprog.c
src/jtag/hla/hla_interface.c
tcl/interface/altera-usb-blaster.cfg
tcl/interface/osbdm.cfg
tcl/interface/stlink-v1.cfg
tcl/interface/stlink-v2.cfg
tcl/interface/sysfsgpio-raspberrypi.cfg
tcl/interface/ti-icdi.cfg
tcl/interface/usb-jtag.cfg