summaryrefslogtreecommitdiff
path: root/openpicc/application/iso14443_layer2a.c
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-03-03 20:56:30 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-03-03 20:56:30 +0000
commit440a95fcf18a3504ec06b0e90a660b5f8e184cde (patch)
treea3fe39164de35d6d1eaace78e9b206d98371bf57 /openpicc/application/iso14443_layer2a.c
parentd3bab6e9439b7161b7724df0cc902f4adcf1ecce (diff)
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
Diffstat (limited to 'openpicc/application/iso14443_layer2a.c')
-rw-r--r--openpicc/application/iso14443_layer2a.c6
1 files changed, 5 insertions, 1 deletions
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);
personal git repositories of Harald Welte. Your mileage may vary