Skip to content

Commit

Permalink
avr_jtagdp: Fixed the signature of avr_jtag_pdi_handler to match with…
Browse files Browse the repository at this point in the history
… the change in #978
  • Loading branch information
dragonmux committed Jul 24, 2022
1 parent 3a30cf5 commit 09b810f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/target/avr.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ typedef struct avr_pdi_s {

bool avr_pdi_init(avr_pdi_t *pdi);

void avr_jtag_pdi_handler(uint8_t jd_index, uint32_t j_idcode);
void avr_jtag_pdi_handler(uint8_t jd_index);
int platform_avr_jtag_pdi_init(avr_pdi_t *pdi);

bool avr_jtag_shift_dr(jtag_proc_t *jp, uint8_t jd_index, uint8_t *dout, const uint8_t din);
Expand Down
4 changes: 1 addition & 3 deletions src/target/avr_jtagdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@

#define PDI_DELAY 0xDBU

void avr_jtag_pdi_handler(uint8_t jd_index, uint32_t j_idcode)
void avr_jtag_pdi_handler(uint8_t jd_index)
{
avr_pdi_t *pdi = calloc(1, sizeof(*pdi));
if (!pdi) { /* calloc failed: heap exhaustion */
DEBUG_WARN("calloc: failed in %s\n", __func__);
return;
}
(void)j_idcode;

pdi->dp_jd_index = jd_index;
pdi->idcode = jtag_devs[jd_index].jd_idcode;
pdi->error_state = pdi_ok;
Expand Down

0 comments on commit 09b810f

Please sign in to comment.