summaryrefslogtreecommitdiff
path: root/src/jtag/jtag.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/jtag/jtag.h')
-rw-r--r--src/jtag/jtag.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h
index c0f94856..ce11d592 100644
--- a/src/jtag/jtag.h
+++ b/src/jtag/jtag.h
@@ -700,6 +700,9 @@ int interface_jtag_add_clocks(int num_cycles);
*/
extern int jtag_execute_queue(void);
+/* same as jtag_execute_queue() but does not clear the error flag */
+extern void jtag_execute_queue_noclear(void);
+
/* this flag is set when an error occurs while executing the queue. cleared
* by jtag_execute_queue()
*
@@ -708,6 +711,16 @@ extern int jtag_execute_queue(void);
*/
extern int jtag_error;
+static __inline__ void jtag_set_error(int error)
+{
+ if ((error==ERROR_OK)||(jtag_error!=ERROR_OK))
+ {
+ /* keep first error */
+ return;
+ }
+ jtag_error=error;
+}
+
/* can be implemented by hw+sw */