diff options
author | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2008-05-22 04:52:19 +0000 |
---|---|---|
committer | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2008-05-22 04:52:19 +0000 |
commit | 3e2456c73464a3e53d96c865a7464d7c5e8fae7e (patch) | |
tree | 3060b2739006f2e7cf2673a47c2ed6552788a261 /openpicc/application | |
parent | 2d8b2c3088a65a5a724c6d52f9d32c3045c3a0f8 (diff) |
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
Diffstat (limited to 'openpicc/application')
-rw-r--r-- | openpicc/application/iso14443a_diffmiller.c | 2 | ||||
-rw-r--r-- | openpicc/application/iso14443a_diffmiller.h | 2 |
2 files changed, 2 insertions, 2 deletions
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); |