From 062f55ca3ea77ebcace83aab4772c9cd3f28ec34 Mon Sep 17 00:00:00 2001 From: henryk Date: Fri, 23 Nov 2007 10:30:50 +0000 Subject: Commit status quo (pending cleanup of the debug and experimental code that I added during the last week) Change freertos code to not mask FIQ, this finally makes the FIQ working (with approx 700ns +/- 100ns latency; yeah!) and therefore reception starts working Change to two times oversampling (keep four times oversampling code ifdef'd, extract all the magical values to a header file) because at four times oversampling every other sample is very close to a possible data edge and therefore not reliable git-svn-id: https://svn.openpcd.org:2342/trunk@347 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/iso14443_layer3a.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'openpicc/application/iso14443_layer3a.h') diff --git a/openpicc/application/iso14443_layer3a.h b/openpicc/application/iso14443_layer3a.h index 396ebe9..f76a514 100644 --- a/openpicc/application/iso14443_layer3a.h +++ b/openpicc/application/iso14443_layer3a.h @@ -15,4 +15,31 @@ enum ISO14443_STATES { ERROR, /* Some unrecoverable error has occured */ }; +/* standard derived magic values */ +#define ISO14443A_FDT_SHORT_1 1236 +#define ISO14443A_FDT_SHORT_0 1172 + +#ifdef FOUR_TIMES_OVERSAMPLING +/* definitions for four-times oversampling */ +/* Sample values for the REQA and WUPA short frames */ +#define REQA 0x10410441 +#define WUPA 0x04041041 + +/* Start of frame sample for SSC compare 0 */ +#define ISO14443A_SOF_SAMPLE 0x01 +#define ISO14443A_SOF_LEN 4 +/* Length in samples of a short frame */ +#define ISO14443A_SHORT_LEN 32 + +#else +/* definitions for two-times oversampling */ +#define REQA 0x18729 +#define WUPA 0x2249 + +#define ISO14443A_SOF_SAMPLE 0x01 +#define ISO14443A_SOF_LEN 2 +#define ISO14443A_SHORT_LEN 16 + +#endif + #endif /*ISO14443_LAYER3A_H_*/ -- cgit v1.2.3