build: cleanup src/jtag/drivers directory
[openocd.git] / src / jtag / drivers / versaloon / usbtoxxx / usbtojtagraw.c
index 11e8064d56ee737fe631d85708e4893a8196db26..db0b5a13f84f7b4c4321a28baa5a1a4d1b4e7b25 100644 (file)
@@ -16,6 +16,7 @@
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -41,44 +42,39 @@ RESULT usbtojtagraw_fini(uint8_t interface_index)
 RESULT usbtojtagraw_config(uint8_t interface_index, uint32_t kHz)
 {
        uint8_t cfg_buf[4];
-       
+
 #if PARAM_CHECK
-       if (interface_index > 7)
-       {
+       if (interface_index > 7) {
                LOG_BUG(ERRMSG_INVALID_INTERFACE_NUM, interface_index);
                return ERROR_FAIL;
        }
 #endif
-       
+
        SET_LE_U32(&cfg_buf[0], kHz);
-       
+
        return usbtoxxx_conf_command(USB_TO_JTAG_RAW, interface_index, cfg_buf, 4);
 }
 
 RESULT usbtojtagraw_execute(uint8_t interface_index, uint8_t *tdi,
-                                                       uint8_t *tms, uint8_t *tdo, uint32_t bitlen)
+       uint8_t *tms, uint8_t *tdo, uint32_t bitlen)
 {
        uint16_t bytelen;
-       
+
 #if PARAM_CHECK
-       if (interface_index > 7)
-       {
+       if (interface_index > 7) {
                LOG_BUG(ERRMSG_INVALID_INTERFACE_NUM, interface_index);
                return ERROR_FAIL;
        }
 #endif
-       
+
        if (bitlen > 8 * 0xFFFF)
-       {
                return ERROR_FAIL;
-       }
        bytelen = (uint16_t)((bitlen + 7) >> 3);
-       
+
        SET_LE_U32(&versaloon_cmd_buf[0], bitlen);
        memcpy(versaloon_cmd_buf + 4, tdi, bytelen);
        memcpy(versaloon_cmd_buf + 4 + bytelen, tms, bytelen);
-       
+
        return usbtoxxx_inout_command(USB_TO_JTAG_RAW, interface_index,
-                       versaloon_cmd_buf, 4 + bytelen * 2, bytelen, tdo, 0, bytelen, 0);
+               versaloon_cmd_buf, 4 + bytelen * 2, bytelen, tdo, 0, bytelen, 0);
 }
-

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)