aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schink <jaylink-dev@marcschink.de>2016-11-11 15:19:29 +0100
committerMarc Schink <jaylink-dev@marcschink.de>2016-11-13 11:26:22 +0100
commit3e5f9baf54fe88d9dd8c28ca0a7b6ab3d9f9e1e3 (patch)
treeae195f55f6867c229b44351479228f730563f938
parent3857a88fd887c589bb40a103f00629e60ef3bfac (diff)
Rename JTAG command version enums
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
-rw-r--r--libjaylink/jtag.c6
-rw-r--r--libjaylink/libjaylink.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/libjaylink/jtag.c b/libjaylink/jtag.c
index 7fab4df..4143e62 100644
--- a/libjaylink/jtag.c
+++ b/libjaylink/jtag.c
@@ -91,10 +91,10 @@ JAYLINK_API int jaylink_jtag_io(struct jaylink_device_handle *devh,
read_length = num_bytes;
switch (version) {
- case JAYLINK_JTAG_V2:
+ case JAYLINK_JTAG_VERSION_2:
cmd = CMD_JTAG_IO_V2;
break;
- case JAYLINK_JTAG_V3:
+ case JAYLINK_JTAG_VERSION_3:
cmd = CMD_JTAG_IO_V3;
/* In this version, the response includes a status byte. */
read_length++;
@@ -149,7 +149,7 @@ JAYLINK_API int jaylink_jtag_io(struct jaylink_device_handle *devh,
return ret;
}
- if (version == JAYLINK_JTAG_V2)
+ if (version == JAYLINK_JTAG_VERSION_2)
return JAYLINK_OK;
ret = transport_read(devh, &status, 1);
diff --git a/libjaylink/libjaylink.h b/libjaylink/libjaylink.h
index 34d8880..36b4a61 100644
--- a/libjaylink/libjaylink.h
+++ b/libjaylink/libjaylink.h
@@ -202,11 +202,11 @@ enum jaylink_jtag_version {
* JTAG command version 2.
*
* This version is obsolete for major hardware version 5 and above. Use
- * #JAYLINK_JTAG_V3 for these versions instead.
+ * #JAYLINK_JTAG_VERSION_3 for these versions instead.
*/
- JAYLINK_JTAG_V2 = 1,
+ JAYLINK_JTAG_VERSION_2 = 1,
/** JTAG command version 3. */
- JAYLINK_JTAG_V3 = 2
+ JAYLINK_JTAG_VERSION_3 = 2
};
/** Serial Wire Output (SWO) capture modes. */