]> git.sur5r.net Git - openocd/commit
swd: Remove DAP from parameter list
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Fri, 13 Nov 2015 22:48:46 +0000 (23:48 +0100)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Tue, 29 Dec 2015 20:26:45 +0000 (20:26 +0000)
commita6c4eb03455f6e97fc25183aae249d6ccdcbfb0f
treea994a27efca2f7b081747ff7ee82d78b2c98b534
parentbf4cf766310768198cfa766467d47bdb180f9b27
swd: Remove DAP from parameter list

Making the SWD driver aware of the DAP that controls it is a layering
violation.

The only usage for the DAP pointer is to store the number of idle cycles
the AP may need to avoid WAITs. Replace the DAP pointer with a cycle
count hint instead to avoid future misuse.

Change-Id: I3e64e11a43ba2396bd646a4cf8f9bc331805d802
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/3141
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
src/jtag/drivers/bitbang.c
src/jtag/drivers/bitbang.h
src/jtag/drivers/cmsis_dap_usb.c
src/jtag/drivers/ftdi.c
src/jtag/drivers/jlink.c
src/jtag/drivers/sysfsgpio.c
src/jtag/drivers/vsllink.c
src/jtag/swd.h
src/target/adi_v5_swd.c