summaryrefslogtreecommitdiff
path: root/src/jtag
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-12-09 10:25:08 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-12-09 10:25:52 -0800
commit910dd664ceb6faef5e9029e9b0848d7ccc63bf4b (patch)
treee94c456002048802ac86043a7ecaaf8ffb682697 /src/jtag
parent26d7ed08f9ff220be583179fdea76466739cf32d (diff)
downloadopenocd+libswd-910dd664ceb6faef5e9029e9b0848d7ccc63bf4b.tar.gz
openocd+libswd-910dd664ceb6faef5e9029e9b0848d7ccc63bf4b.tar.bz2
openocd+libswd-910dd664ceb6faef5e9029e9b0848d7ccc63bf4b.tar.xz
openocd+libswd-910dd664ceb6faef5e9029e9b0848d7ccc63bf4b.zip
Comment and doxygen fixes
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/jtag')
-rw-r--r--src/jtag/jtag.h31
1 files changed, 9 insertions, 22 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h
index fece6521..fa2fcdca 100644
--- a/src/jtag/jtag.h
+++ b/src/jtag/jtag.h
@@ -417,24 +417,9 @@ typedef void (*jtag_callback1_t)(jtag_callback_data_t data0);
void jtag_add_callback(jtag_callback1_t, jtag_callback_data_t data0);
-
-/**
- * Defines the interface of the JTAG callback mechanism.
- *
- * @param in the pointer to the data clocked in
- * @param data1 An integer big enough to use as an @c int or a pointer.
- * @param data2 An integer big enough to use as an @c int or a pointer.
- * @param data3 An integer big enough to use as an @c int or a pointer.
- * @returns an error code
- */
-typedef int (*jtag_callback_t)(jtag_callback_data_t data0,
- jtag_callback_data_t data1,
- jtag_callback_data_t data2,
- jtag_callback_data_t data3);
-
-
/**
- * This callback can be executed immediately the queue has been flushed.
+ * Defines the interface of the JTAG callback mechanism. Such
+ * callbacks can be executed once the queue has been flushed.
*
* The JTAG queue can be executed synchronously or asynchronously.
* Typically for USB, the queue is executed asynchronously. For
@@ -448,19 +433,21 @@ typedef int (*jtag_callback_t)(jtag_callback_data_t data0,
*
* If the execution of the queue fails before the callbacks, then --
* depending on driver implementation -- the callbacks may or may not be
- * invoked. @todo Can we make this behavior consistent?
+ * invoked.
*
- * The strange name is due to C's lack of overloading using function
- * arguments.
+ * @todo Make that behavior consistent.
*
- * @param f The callback function to add.
* @param data0 Typically used to point to the data to operate on.
* Frequently this will be the data clocked in during a shift operation.
* @param data1 An integer big enough to use as an @c int or a pointer.
* @param data2 An integer big enough to use as an @c int or a pointer.
* @param data3 An integer big enough to use as an @c int or a pointer.
- *
+ * @returns an error code
*/
+typedef int (*jtag_callback_t)(jtag_callback_data_t data0,
+ jtag_callback_data_t data1,
+ jtag_callback_data_t data2,
+ jtag_callback_data_t data3);
/**
* Run a TAP_RESET reset where the end state is TAP_RESET,