Skip to content

Commit

Permalink
jtag_scan: Made the ones array available for use by the RISC-V and …
Browse files Browse the repository at this point in the history
…AVR support branches
  • Loading branch information
dragonmux authored and esden committed Feb 12, 2023
1 parent 6dcc5d4 commit 59ee9dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/jtag_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/target/jtag_scan.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 59ee9dd

Please sign in to comment.