From 440a95fcf18a3504ec06b0e90a660b5f8e184cde Mon Sep 17 00:00:00 2001 From: henryk Date: Mon, 3 Mar 2008 20:56:30 +0000 Subject: Sending seems to be reliable now. Once in a while (about 1 in 20) there's an error condition that's not being recovered from, need to investigate git-svn-id: https://svn.openpcd.org:2342/trunk@438 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/iso14443_layer2a.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'openpicc/application/iso14443_layer2a.c') diff --git a/openpicc/application/iso14443_layer2a.c b/openpicc/application/iso14443_layer2a.c index d5e89cf..dc4a23e 100644 --- a/openpicc/application/iso14443_layer2a.c +++ b/openpicc/application/iso14443_layer2a.c @@ -199,7 +199,11 @@ static void iso14443_ssc_callback(ssc_callback_reason reason, void *data) if( (reason == CALLBACK_RX_FRAME_ENDED && !tx_pending) || reason == CALLBACK_RX_STARTING || reason == CALLBACK_TX_FRAME_ENDED ) { - ssc_select_clock(CLOCK_SELECT_PLL); + /* For regular SSC Rx we'd set the clock to + // ssc_select_clock(CLOCK_SELECT_PLL); + * however, the SSC Rx code is going to go away (at least for 14443-A) + * and switching clocks messes up the Tx timing, so we do a */ + ssc_select_clock(CLOCK_SELECT_CARRIER); ssc_set_gate(1); tc_fdt_set(0xff00); tc_cdiv_set_divider(RX_DIVIDER); -- cgit v1.2.3