mirror of
https://github.com/ole00/afterburner.git
synced 2024-06-26 00:29:26 +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_DEBUG 0
|
||||||
#define XSVF_CALC_CSUM 1
|
#define XSVF_CALC_CSUM 1
|
||||||
|
#define XSVF_IGNORE_NOMATCH 0
|
||||||
|
|
||||||
#define XCOMPLETE 0
|
#define XCOMPLETE 0
|
||||||
#define XTDOMASK 1
|
#define XTDOMASK 1
|
||||||
|
@ -583,12 +584,14 @@ static uint8_t xsvf_jtag_is_tdo_as_expected(uint8_t use_mask)
|
||||||
expected &= mask;
|
expected &= mask;
|
||||||
actual &= mask;
|
actual &= mask;
|
||||||
}
|
}
|
||||||
|
#if XSVF_IGNORE_NOMATCH != 1
|
||||||
if (expected != actual) {
|
if (expected != actual) {
|
||||||
#if XSVF_DEBUG
|
#if XSVF_DEBUG
|
||||||
Serial.println(F("D...NO MATCH!"));
|
Serial.println(F("D...NO MATCH!"));
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if XSVF_DEBUG
|
#if XSVF_DEBUG
|
||||||
|
|
Loading…
Reference in New Issue
Block a user