Compare commits

..

No commits in common. "998b1329c87bf436737a92fd256997be278c5e6f" and "cf34c1dfee4038dd9d761cbea270ac74597437b8" have entirely different histories.

View File

@ -45,7 +45,6 @@ Arduino usage:
#define XSVF_DEBUG 0
#define XSVF_CALC_CSUM 1
#define XSVF_IGNORE_NOMATCH 0
#define XCOMPLETE 0
#define XTDOMASK 1
@ -373,7 +372,7 @@ static uint32_t xsvf_player_get_next_long(void) {
return i;
}
static void xsvf_player_get_next_bytes(uint8_t* data, uint32_t count) {
static uint32_t xsvf_player_get_next_bytes(uint8_t* data, uint32_t count) {
while(count--) {
*data++ = xsvf_player_next_byte();
}
@ -584,19 +583,17 @@ static uint8_t xsvf_jtag_is_tdo_as_expected(uint8_t use_mask)
expected &= mask;
actual &= mask;
}
#if XSVF_IGNORE_NOMATCH != 1
if (expected != actual) {
#if XSVF_DEBUG
Serial.println(F("D...NO MATCH!"));
#endif
#endif
return 0;
}
#endif
}
#if XSVF_DEBUG
Serial.println(F("D...match!"));
#endif
#endif
return 1;
}
@ -979,12 +976,6 @@ static void jtag_play_xsvf(jtag_port_t* port)
if (xsvf->xcomplete) {
Serial.println(F("Q-0,OK"));
}
//the 3 pins must be low or else the vref might be triggered next time
digitalWrite(port->tms, 0);
digitalWrite(port->tdi, 0);
digitalWrite(port->tck, 0);
delay(100);
// put the jtag port pins into High-Z (vref already is input)
pinMode(port->tms, INPUT);
pinMode(port->tdi, INPUT);