From 3e2456c73464a3e53d96c865a7464d7c5e8fae7e Mon Sep 17 00:00:00 2001 From: henryk Date: Thu, 22 May 2008 04:52:19 +0000 Subject: Make the diffmiller decoder a __ramfunc. Should severely increase decoder speed (needs testing), but takes up 4k of RAM git-svn-id: https://svn.openpcd.org:2342/trunk@477 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/iso14443a_diffmiller.c | 2 +- openpicc/application/iso14443a_diffmiller.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'openpicc/application') diff --git a/openpicc/application/iso14443a_diffmiller.c b/openpicc/application/iso14443a_diffmiller.c index 91145cd..e906781 100644 --- a/openpicc/application/iso14443a_diffmiller.c +++ b/openpicc/application/iso14443a_diffmiller.c @@ -255,7 +255,7 @@ static inline void end_frame(struct diffmiller_state * const state, const u_int3 } -int iso14443a_decode_diffmiller(struct diffmiller_state * const state, iso14443_frame * const frame, +int __ramfunc iso14443a_decode_diffmiller(struct diffmiller_state * const state, iso14443_frame * const frame, const u_int32_t buffer[], unsigned int * const offset, const unsigned int buflen) { if(state == NULL || !state->initialized) return -EINVAL; diff --git a/openpicc/application/iso14443a_diffmiller.h b/openpicc/application/iso14443a_diffmiller.h index c657f1b..0536312 100644 --- a/openpicc/application/iso14443a_diffmiller.h +++ b/openpicc/application/iso14443a_diffmiller.h @@ -5,7 +5,7 @@ struct diffmiller_state; -extern int iso14443a_decode_diffmiller(struct diffmiller_state *state, iso14443_frame *frame, +extern int __ramfunc iso14443a_decode_diffmiller(struct diffmiller_state *state, iso14443_frame *frame, const u_int32_t buffer[], unsigned int *offset, const unsigned int buflen); extern int iso14443a_diffmiller_assert_frame_ended(struct diffmiller_state * const state, iso14443_frame * const frame); -- cgit v1.2.3