From d88d1207732a80156b5d2725b4c22869ef0b3d36 Mon Sep 17 00:00:00 2001 From: henryk Date: Tue, 11 Dec 2007 18:48:39 +0000 Subject: Several modifications to enable spinning until the correct phase is reached in tc_fdt (thereby taking the phase information from tc_fdt, resetting the phase in tc_cdiv) Still too much jitter (some bug in this code?) git-svn-id: https://svn.openpcd.org:2342/trunk@383 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/tc_fdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openpicc/application/tc_fdt.c') diff --git a/openpicc/application/tc_fdt.c b/openpicc/application/tc_fdt.c index 6005125..7413e11 100644 --- a/openpicc/application/tc_fdt.c +++ b/openpicc/application/tc_fdt.c @@ -53,8 +53,8 @@ void tc_fdt_set(u_int16_t count) void __ramfunc tc_fdt_set_to_next_slot(int last_bit) { int reference_time; - if(last_bit == 0) reference_time = ISO14443A_FDT_OFFSET_0-FALLING_EDGE_DETECTION_DELAY; - else reference_time = ISO14443A_FDT_OFFSET_1-FALLING_EDGE_DETECTION_DELAY; + if(last_bit == 0) reference_time = ISO14443A_FDT_OFFSET_0; + else reference_time = ISO14443A_FDT_OFFSET_1; if(tcfdt->TC_SR & AT91C_TC_CLKSTA) while(tcfdt->TC_CV != 0xFFFF && (tcfdt->TC_CV - reference_time) % 128 != 0); -- cgit v1.2.3