chg: added some WDT_HIT calls

This commit is contained in:
iceman1001 2017-08-21 17:17:43 +02:00
parent 05e160b1f2
commit a8334d6ab3

View file

@ -313,12 +313,13 @@ static int GetIso15693AnswerFromTag(uint8_t *receivedResponse, int maxLen, int *
//SpinDelay(60); // greg - experiment to get rid of some of the 0 byte/failed reads
for(;;) {
WDT_HIT();
if(AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_TXRDY))
AT91C_BASE_SSC->SSC_THR = 0x43;
if(AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_RXRDY)) {
int8_t b;
b = (int8_t)AT91C_BASE_SSC->SSC_RHR;
int8_t b = (int8_t)AT91C_BASE_SSC->SSC_RHR;
// The samples are correlations against I and Q versions of the
// tone that the tag AM-modulates, so every other sample is I,
@ -439,6 +440,8 @@ static int GetIso15693AnswerFromSniff(uint8_t *receivedResponse, int maxLen, int
//SpinDelay(60); // greg - experiment to get rid of some of the 0 byte/failed reads
for(;;) {
WDT_HIT();
if(AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_TXRDY))
AT91C_BASE_SSC->SSC_THR = 0x43;