// To control where we are in the protocol
int cmdsRecvd = 0;
+ uint32_t time_0 = GetCountSspClk();
+ uint32_t t2r_time =0;
+ uint32_t r2t_time =0;
LED_A_ON();
- for(;;) {
+ bool displayDebug = true;
+ bool buttonPressed = false;
+ while(!exitLoop) {
+ displayDebug = true;
+
LED_B_OFF();
+ //Signal tracer
+ // Can be used to get a trigger for an oscilloscope..
+ LED_C_OFF();
+
if(!GetIClassCommandFromReader(receivedCmd, &len, 100)) {
- DbpString("button press");
+ buttonPressed = true;
break;
}
+ r2t_time = GetCountSspClk();
+ //Signal tracer
+ LED_C_ON();
-
// Okay, look at the command now.
- if(receivedCmd[0] == 0x0a) {
+ if(receivedCmd[0] == 0x0a ) {
// Reader in anticollission phase
resp = resp1; respLen = resp1Len; //order = 1;
respdata = &sof;