aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/drivers/bitbang.h
diff options
context:
space:
mode:
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>2015-11-13 23:48:46 +0100
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2015-12-29 20:26:45 +0000
commita6c4eb03455f6e97fc25183aae249d6ccdcbfb0f (patch)
treea994a27efca2f7b081747ff7ee82d78b2c98b534 /src/jtag/drivers/bitbang.h
parentbf4cf766310768198cfa766467d47bdb180f9b27 (diff)
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>
Diffstat (limited to 'src/jtag/drivers/bitbang.h')
-rw-r--r--src/jtag/drivers/bitbang.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/drivers/bitbang.h b/src/jtag/drivers/bitbang.h
index 52e113d8..1bdb8f5f 100644
--- a/src/jtag/drivers/bitbang.h
+++ b/src/jtag/drivers/bitbang.h
@@ -45,6 +45,6 @@ int bitbang_execute_queue(void);
extern struct bitbang_interface *bitbang_interface;
void bitbang_switch_to_swd(void);
-int bitbang_swd_switch_seq(struct adiv5_dap *dap, enum swd_special_seq seq);
+int bitbang_swd_switch_seq(enum swd_special_seq seq);
#endif /* BITBANG_H */