From 59ee9ddedabfc22a060474522987bfb3eb4b9360 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Sun, 12 Feb 2023 12:17:42 +0000 Subject: [PATCH] jtag_scan: Made the `ones` array available for use by the RISC-V and AVR support branches --- src/target/jtag_scan.c | 2 +- src/target/jtag_scan.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/target/jtag_scan.c b/src/target/jtag_scan.c index dd29559a7bc..68be0bd0de3 100644 --- a/src/target/jtag_scan.c +++ b/src/target/jtag_scan.c @@ -35,7 +35,7 @@ jtag_dev_s jtag_devs[JTAG_MAX_DEVS + 1U]; uint32_t jtag_dev_count = 0; /* bucket of ones for don't care TDI */ -static const uint8_t ones[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; +const uint8_t ones[8] = {0xffU, 0xffU, 0xffU, 0xffU, 0xffU, 0xffU, 0xffU, 0xffU}; #if PC_HOSTED == 0 void jtag_add_device(const uint32_t dev_index, const jtag_dev_s *jtag_dev) diff --git a/src/target/jtag_scan.h b/src/target/jtag_scan.h index bafc3046416..3e737f0f575 100644 --- a/src/target/jtag_scan.h +++ b/src/target/jtag_scan.h @@ -46,6 +46,7 @@ typedef struct jtag_dev { extern jtag_dev_s jtag_devs[JTAG_MAX_DEVS + 1U]; extern uint32_t jtag_dev_count; +extern const uint8_t ones[8]; void jtag_dev_write_ir(uint8_t jd_index, uint32_t ir); void jtag_dev_shift_dr(uint8_t jd_index, uint8_t *dout, const uint8_t *din, size_t ticks);