From a8334d6ab3191624aa29a6d6bc7dd091357a1bba Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 21 Aug 2017 17:17:43 +0200 Subject: [PATCH] chg: added some WDT_HIT calls --- armsrc/iso15693.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/armsrc/iso15693.c b/armsrc/iso15693.c index c8824a81c..cc46ca9ea 100644 --- a/armsrc/iso15693.c +++ b/armsrc/iso15693.c @@ -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;