This is an automated email from Gerrit.

Antonio Borneo (borneo.anto...@gmail.com) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/5553

-- gerrit

commit f32d70c81637b81624d5d90d390d8edcf838f0ef
Author: Antonio Borneo <borneo.anto...@gmail.com>
Date:   Wed Apr 1 09:37:54 2020 +0200

    bitbang: document bitbang callbacks
    
    Change-Id: I732c2eeb452f3ba8a2385d0e02fccbe86381812c
    Signed-off-by: Antonio Borneo <borneo.anto...@gmail.com>

diff --git a/src/jtag/drivers/bitbang.h b/src/jtag/drivers/bitbang.h
index edb779c..ba61a7d 100644
--- a/src/jtag/drivers/bitbang.h
+++ b/src/jtag/drivers/bitbang.h
@@ -38,21 +38,29 @@ typedef enum {
  * sample requests together. Not waiting for a value to come back can greatly
  * increase throughput. */
 struct bitbang_interface {
-       /** Sample TDO. */
+       /** Sample TDO and return the value. */
        bb_value_t (*read)(void);
 
        /** The number of TDO samples that can be buffered up before the caller 
has
         * to call read_sample. */
        size_t buf_size;
+
        /** Sample TDO and put the result in a buffer. */
        int (*sample)(void);
+
        /** Return the next unread value from the buffer. */
        bb_value_t (*read_sample)(void);
 
        /** Set TCK, TMS, and TDI to the given values. */
        int (*write)(int tck, int tms, int tdi);
+
+       /** Blink led (optional). */
        int (*blink)(int on);
+
+       /** Sample SWDIO and return the value. */
        int (*swdio_read)(void);
+
+       /** Set direction of SWDIO. */
        void (*swdio_drive)(bool on);
 };
 

-- 


_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to