mirror of
https://github.com/ole00/afterburner.git
synced 2025-01-28 00:30:01 +00:00
jtag: added debugging pp symbol to ignore failed matches
This can help printing data register when a mismatch occurs.
This commit is contained in:
parent
7c0a32cba3
commit
a3e6f11b0f
@ -45,6 +45,7 @@ Arduino usage:
|
||||
|
||||
#define XSVF_DEBUG 0
|
||||
#define XSVF_CALC_CSUM 1
|
||||
#define XSVF_IGNORE_NOMATCH 0
|
||||
|
||||
#define XCOMPLETE 0
|
||||
#define XTDOMASK 1
|
||||
@ -583,17 +584,19 @@ 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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user