aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2020-02-24 12:26:07 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2020-03-12 10:03:42 +0000
commit44967a9e07ff01a01a96757f302c053553cff35e (patch)
treef3f1cf90303a81dcf0854d10fff798add3e8a9d7
parent221fe49879607096acad42c9db9f68f852a2fbe7 (diff)
jtag: report API reset as synchronous
The jtag API reset() is synchronous, but this was not highlighted in the description. Change-Id: I76ffb7eec97c8608cfbef0b9268ee18a5f50b221 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Fixes: 8850eb8f2c51 ("swd: get rid of jtag queue to assert/deassert srst") Reviewed-on: http://openocd.zylin.com/5471 Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Tested-by: jenkins
-rw-r--r--src/jtag/interface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jtag/interface.h b/src/jtag/interface.h
index f4c6a98b..39d2d9d8 100644
--- a/src/jtag/interface.h
+++ b/src/jtag/interface.h
@@ -250,6 +250,8 @@ struct adapter_driver {
/**
* 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.