projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
openocd: fix command's usage string
[fw/openocd]
/
src
/
jtag
/
interface.h
diff --git
a/src/jtag/interface.h
b/src/jtag/interface.h
index feda35699e92a5c998c5e9dbc256d97396e34cf6..0884868a802ac1fc602c1adb3fb28b96eeacc11b 100644
(file)
--- a/
src/jtag/interface.h
+++ b/
src/jtag/interface.h
@@
-26,6
+26,7
@@
#define OPENOCD_JTAG_INTERFACE_H
#include <jtag/jtag.h>
#define OPENOCD_JTAG_INTERFACE_H
#include <jtag/jtag.h>
+#include <jtag/swim.h>
#include <target/armv7m_trace.h>
/* @file
#include <target/armv7m_trace.h>
/* @file
@@
-250,6
+251,8
@@
struct adapter_driver {
/**
* Control (assert/deassert) the signals SRST and TRST on the interface.
/**
* Control (assert/deassert) the signals SRST and TRST on the interface.
+ * This function is synchronous and should be called after the adapter
+ * queue has been properly flushed.
* This function is optional.
* Adapters that don't support resets can either not define this function
* or return an error code.
* This function is optional.
* Adapters that don't support resets can either not define this function
* or return an error code.
@@
-270,7
+273,7
@@
struct adapter_driver {
int (*speed)(int speed);
/**
int (*speed)(int speed);
/**
- * Returns JTAG maxium speed for KHz. 0 = RTCK. The function returns
+ * Returns JTAG maxi
m
um speed for KHz. 0 = RTCK. The function returns
* a failure if it can't support the KHz/RTCK.
*
* WARNING!!!! if RTCK is *slow* then think carefully about
* a failure if it can't support the KHz/RTCK.
*
* WARNING!!!! if RTCK is *slow* then think carefully about
@@
-351,6
+354,15
@@
struct adapter_driver {
/** Low-level SWD APIs */
const struct swd_driver *swd_ops;
/** Low-level SWD APIs */
const struct swd_driver *swd_ops;
+
+ /* DAP APIs over JTAG transport */
+ const struct dap_ops *dap_jtag_ops;
+
+ /* DAP APIs over SWD transport */
+ const struct dap_ops *dap_swd_ops;
+
+ /* SWIM APIs */
+ const struct swim_driver *swim_ops;
};
extern const char * const jtag_only[];
};
extern const char * const jtag_only[];