summaryrefslogtreecommitdiff
path: root/openpicc/application/tc_fdt.c
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-12-11 18:48:39 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-12-11 18:48:39 +0000
commitd88d1207732a80156b5d2725b4c22869ef0b3d36 (patch)
treea0dceb6733080b96640398b0d72150606ec2985c /openpicc/application/tc_fdt.c
parent8c1bae59f57cd2cffe13234aee94c2b7aa08e8dd (diff)
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
Diffstat (limited to 'openpicc/application/tc_fdt.c')
-rw-r--r--openpicc/application/tc_fdt.c4
1 files changed, 2 insertions, 2 deletions
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);
personal git repositories of Harald Welte. Your mileage may vary