mirror of
https://github.com/ole00/afterburner.git
synced 2024-09-27 15:56:47 +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,12 +584,14 @@ 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
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if XSVF_DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user