Skip to content

Commit 59ee9dd

Browse files
dragonmuxesden
authored andcommitted
jtag_scan: Made the ones array available for use by the RISC-V and AVR support branches
1 parent 6dcc5d4 commit 59ee9dd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/target/jtag_scan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jtag_dev_s jtag_devs[JTAG_MAX_DEVS + 1U];
3535
uint32_t jtag_dev_count = 0;
3636

3737
/* bucket of ones for don't care TDI */
38-
static const uint8_t ones[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
38+
const uint8_t ones[8] = {0xffU, 0xffU, 0xffU, 0xffU, 0xffU, 0xffU, 0xffU, 0xffU};
3939

4040
#if PC_HOSTED == 0
4141
void jtag_add_device(const uint32_t dev_index, const jtag_dev_s *jtag_dev)

src/target/jtag_scan.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ typedef struct jtag_dev {
4646

4747
extern jtag_dev_s jtag_devs[JTAG_MAX_DEVS + 1U];
4848
extern uint32_t jtag_dev_count;
49+
extern const uint8_t ones[8];
4950

5051
void jtag_dev_write_ir(uint8_t jd_index, uint32_t ir);
5152
void jtag_dev_shift_dr(uint8_t jd_index, uint8_t *dout, const uint8_t *din, size_t ticks);

0 commit comments

Comments
 (0)