From ceb643380b02d0d8289e3ad75a495123414ace8c Mon Sep 17 00:00:00 2001 From: henryk Date: Sun, 9 Dec 2007 06:10:56 +0000 Subject: Prevent late frames by spinning in SSC CP0 IRQ till end of short frame reception Fix tc_cdiv_set_divider. again. Reverse the polarity! (of the ssc transmit clock) git-svn-id: https://svn.openpcd.org:2342/trunk@381 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/decoder_miller.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'openpicc/application/decoder_miller.c') diff --git a/openpicc/application/decoder_miller.c b/openpicc/application/decoder_miller.c index ca0a192..8f2aedb 100644 --- a/openpicc/application/decoder_miller.c +++ b/openpicc/application/decoder_miller.c @@ -46,14 +46,21 @@ #include "openpicc.h" #include "dbgu.h" #include "decoder.h" +#include "iso14443_layer3a.h" - +#ifdef FOUR_TIMES_OVERSAMPLING #define OVERSAMPLING_RATE 4 /* definitions for four-times oversampling */ #define SEQ_X 0x4 #define SEQ_Y 0x0 #define SEQ_Z 0x1 +#else +#define OVERSAMPLING_RATE 2 +#define SEQ_X 0x2 +#define SEQ_Y 0x0 +#define SEQ_Z 0x1 +#endif /* decode a single sampled bit */ static inline u_int8_t miller_decode_sampled_bit(u_int32_t sampled_bit) -- cgit v1.2.3