diff options
author | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2006-10-14 12:34:38 +0000 |
---|---|---|
committer | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2006-10-14 12:34:38 +0000 |
commit | e404cccecd20a2418c2429cd182c18218e54bd28 (patch) | |
tree | 5a15b5ca51874f0f8e96ccc4ee0457a66de3cec7 /include/librfid/rfid_protocol_tcl.h | |
parent | 6e87a007525b313dcf2da194977bb1abdf62026f (diff) |
Prepare RFID compilation in firmware mode
- switch from linked lists to static arrays
- remove all non-handle dynamic allocations (at the expense of stack)
- declare all proto/reader/asic/layer2 structures as const
- wrap all handle allocations in macros that expand to references to
static structures in case of firmware mode
- update copyright notices
- add skeleton code for openpcd-inside-firmware driver
- update TODO with remaining TODO for firmware mode
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1903 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'include/librfid/rfid_protocol_tcl.h')
-rw-r--r-- | include/librfid/rfid_protocol_tcl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/librfid/rfid_protocol_tcl.h b/include/librfid/rfid_protocol_tcl.h index 180c008..2ee1c27 100644 --- a/include/librfid/rfid_protocol_tcl.h +++ b/include/librfid/rfid_protocol_tcl.h @@ -36,7 +36,8 @@ struct tcl_handle { unsigned int toggle; /* send toggle with next frame */ unsigned int ats_len; - unsigned char ats[0]; + unsigned char ats[256]; /* ATS cannot be bigger than FSD-2 bytes, + according to ISO 14443-4 5.2.2 */ }; enum tcl_handle_flags { @@ -63,7 +64,7 @@ enum tcl_pcd_state { TCL_STATE_DESELECTED, /* card deselected or HLTA'd */ }; -struct rfid_protocol rfid_protocol_tcl; +extern const struct rfid_protocol rfid_protocol_tcl; #endif /* __LIBRFID__ */ |