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
This commit is contained in:
parent
2d8b2c3088
commit
3e2456c734
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue