diff options
author | Evgeniy Naydanov <evgeniy.naydanov@syntacore.com> | 2024-01-10 17:51:22 +0300 |
---|---|---|
committer | Evgeniy Naydanov <evgeniy.naydanov@syntacore.com> | 2024-01-10 19:59:00 +0300 |
commit | b3778e6dfd7704ae333459961bdd476c9e8bc4ac (patch) | |
tree | 294cccc5dfceaa660c182af0f2d19e7295d27ded | |
parent | 6a614465d02195be7b7f659a71ec96ca2a01f04e (diff) | |
download | riscv-openocd-b3778e6dfd7704ae333459961bdd476c9e8bc4ac.zip riscv-openocd-b3778e6dfd7704ae333459961bdd476c9e8bc4ac.tar.gz riscv-openocd-b3778e6dfd7704ae333459961bdd476c9e8bc4ac.tar.bz2 |
[NFC] target/riscv: use defined constants in `dmi_*_t` enums
Change-Id: Ia45da0e7f3e24dbeafc41c0213cf28d469641fe8
Signed-off-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
-rw-r--r-- | src/target/riscv/riscv-013.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 2b8d381..65352f0 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -91,14 +91,14 @@ static int set_group(struct target *target, bool *supported, unsigned int group, /*** JTAG registers. ***/ typedef enum { - DMI_OP_NOP = 0, - DMI_OP_READ = 1, - DMI_OP_WRITE = 2 + DMI_OP_NOP = DTM_DMI_OP_NOP, + DMI_OP_READ = DTM_DMI_OP_READ, + DMI_OP_WRITE = DTM_DMI_OP_WRITE } dmi_op_t; typedef enum { - DMI_STATUS_SUCCESS = 0, - DMI_STATUS_FAILED = 2, - DMI_STATUS_BUSY = 3 + DMI_STATUS_SUCCESS = DTM_DMI_OP_SUCCESS, + DMI_STATUS_FAILED = DTM_DMI_OP_FAILED, + DMI_STATUS_BUSY = DTM_DMI_OP_BUSY } dmi_status_t; typedef enum slot { |