From 78a0c8a542e84e6dbe6e346058869f5f3aa36c1f Mon Sep 17 00:00:00 2001 From: henryk Date: Tue, 4 Mar 2008 23:52:46 +0000 Subject: anticol working more often now git-svn-id: https://svn.openpcd.org:2342/trunk@440 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/iso14443_layer2a.c | 6 ++++++ openpicc/application/iso14443a_pretender.c | 1 + 2 files changed, 7 insertions(+) (limited to 'openpicc') diff --git a/openpicc/application/iso14443_layer2a.c b/openpicc/application/iso14443_layer2a.c index dc4a23e..65ca91e 100644 --- a/openpicc/application/iso14443_layer2a.c +++ b/openpicc/application/iso14443_layer2a.c @@ -48,6 +48,7 @@ #include "pio_irq.h" #include "usb_print.h" +#include "cmd.h" #define PRINT_DEBUG 0 @@ -208,6 +209,11 @@ static void iso14443_ssc_callback(ssc_callback_reason reason, void *data) tc_fdt_set(0xff00); tc_cdiv_set_divider(RX_DIVIDER); tc_cdiv_sync_reset(); +#if 1 + int old=usb_print_set_default_flush(0); + DumpStringToUSB("["); DumpUIntToUSB(reason); DumpStringToUSB("]"); + usb_print_set_default_flush(old); +#endif } } diff --git a/openpicc/application/iso14443a_pretender.c b/openpicc/application/iso14443a_pretender.c index afbebdb..9045f53 100644 --- a/openpicc/application/iso14443a_pretender.c +++ b/openpicc/application/iso14443a_pretender.c @@ -94,6 +94,7 @@ static void fast_receive_callback(ssc_dma_rx_buffer_t *buffer, u_int8_t in_irq) switch(buffer->len_transfers) { case 3: case 4: /* REQA (7 bits) */ //case 7: case 8: case 9: + case 11: tx_buffer = &ATQA_BUFFER; fdt = 1172; break; -- cgit v1.2.3