diff options
author | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2008-02-02 06:16:31 +0000 |
---|---|---|
committer | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2008-02-02 06:16:31 +0000 |
commit | fa61e60d06e7a50fd3d681822a5f637f14582d80 (patch) | |
tree | aa67e824b8edeb1c0521933542956863b2752cd2 /openpicc/application/iso14443_layer3a.c | |
parent | c68c113ee8e1357c718bc492078d41b52dae4767 (diff) |
Commit status quo. Partly or severely broken.
git-svn-id: https://svn.openpcd.org:2342/trunk@402 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/iso14443_layer3a.c')
-rw-r--r-- | openpicc/application/iso14443_layer3a.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/openpicc/application/iso14443_layer3a.c b/openpicc/application/iso14443_layer3a.c index c1f7bce..fdb6836 100644 --- a/openpicc/application/iso14443_layer3a.c +++ b/openpicc/application/iso14443_layer3a.c @@ -1,6 +1,7 @@ /*************************************************************** * * OpenPICC - ISO 14443 Layer 3 Type A state machine + * Handles initialization and anticollision * * Copyright 2007 Henryk Plötz <henryk@ploetzli.ch> * @@ -77,7 +78,7 @@ const u_int8_t ISO14443A_SHORT_FRAME_WUPA[ISO14443A_SHORT_FRAME_COMPARE_LENGTH] #define INITIAL_FRAME NULL_FRAME #endif -#if 1 +#if 0 #define SHORT_MODE SSC_MODE_14443A_SHORT #define STANDARD_MODE SSC_MODE_14443A_STANDARD #else @@ -101,10 +102,14 @@ void iso14443_transmit(ssc_dma_tx_buffer_t *buf, int fdt, int div) } else if (fdt == ISO14443A_TRANSMIT_AT_NEXT_INTERVAL_1) { fdt = tc_fdt_get_next_slot(ISO14443A_FDT_SHORT_1, ISO14443A_FDT_SLOTLEN); } - ssc_tx_fiq_fdt_cdiv = fdt -3*div -1; - tc_fdt_set(ssc_tx_fiq_fdt_cdiv -MAX_TF_FIQ_ENTRY_DELAY -MAX_TF_FIQ_OVERHEAD); - ssc_tx_fiq_fdt_ssc = fdt -div +1; - *AT91C_TC0_CCR = AT91C_TC_CLKDIS; + if(0) { + ssc_tx_fiq_fdt_cdiv = fdt -3*div -1; + tc_fdt_set(ssc_tx_fiq_fdt_cdiv -MAX_TF_FIQ_ENTRY_DELAY -MAX_TF_FIQ_OVERHEAD); + ssc_tx_fiq_fdt_ssc = fdt -div +1; + *AT91C_TC0_CCR = AT91C_TC_CLKDIS; + } else { + tc_fdt_set(fdt); + } ssc_tx_start(buf); } |