summaryrefslogtreecommitdiff
path: root/openpicc/application/decoder_miller.c
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-12-09 06:10:56 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-12-09 06:10:56 +0000
commitceb643380b02d0d8289e3ad75a495123414ace8c (patch)
treecf37628d2b07d7cebc2a4f04d5f8ea2488eb9d57 /openpicc/application/decoder_miller.c
parentbdc39aadd1a26d7709ff15722be90c016be2057a (diff)
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
Diffstat (limited to 'openpicc/application/decoder_miller.c')
-rw-r--r--openpicc/application/decoder_miller.c9
1 files changed, 8 insertions, 1 deletions
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)
personal git repositories of Harald Welte. Your mileage may vary