Commit graph

15 commits

Author SHA1 Message Date
nvx
812c58f601 cardhopper fixes
make usart write buffer const
sub out magic numbers with defines
fix edge case handling 255/256 byte frames (including crc)
add sanity checks to avoid buffer overrun on some "should never happen" edge cases
don't wait for rats reply from card before listening to next reader frame
cap fsci to 8 (256 bytes) as that's the most the proxmark3 codebase currently handles
eliminate 1k of ram usage by tweaking how emulation responses are sent
2025-04-21 23:17:47 +10:00
iceman1001
cacc1c1445 unused 2024-05-14 16:12:42 +02:00
iceman1001
94c3bdd91c style 2024-03-14 11:26:06 +01:00
iceman1001
a5594d5f3c style, receive_ng_internal, when receiving NG frames we have an extra buffer. Somehow it seems to the be cause of issues with long emrtd dumps 2024-03-03 22:02:38 +01:00
Henry Gabryjelski
7801abf7a5 Localize effect of unused macro 2023-08-08 21:06:17 -07:00
iceman1001
1d0da726ec the clocks for usart rxtx wasnt enabled. 2023-05-27 21:10:11 +02:00
Philippe Teuwen
b703bb746b Adapting license headers, WIP 2022-01-06 02:20:38 +01:00
Philippe Teuwen
bc76c7263e reduce some globals scope 2021-08-21 23:14:54 +02:00
iceman1001
886104e4cb cppchecker out-of-bounds, I believe it was a false positive but... 2021-03-05 10:22:35 +01:00
iceman1001
232a172ac5 rename 2021-02-23 23:54:02 +01:00
iceman1001
5d357a6039 style 2020-09-07 10:39:15 +02:00
iceman1001
762381237d no inline 2020-08-15 11:01:26 +02:00
Philippe Teuwen
3e7512a5d5 armsrc: clarify static vars vs global vars 2020-05-19 17:05:43 +02:00
iceman1001
51ad5c2332 cppcheck 2020-01-03 18:55:13 +01:00
Philippe Teuwen
d19754567d summer restructuring:
* .h include only the strict minimum for their own parsing
  * this forces all files to include explicitment their needs and not count on far streched dependencies
  * this helps Makefile to rebuild only the minimum
  * according to this rule, most standalone .h are now gone
  * big app.h is gone
  * remove seldom __cplusplus, if c++ happens, everything will have to be done properly anyway
* all unrequired include were removed
* split common/ into common/ (client+arm) and common_arm/ (os+bootloader)
  * bring zlib to common/
  * bring stuff not really/not yet used in common back to armsrc/ or client/
  * bring liblua into client/
  * bring uart into client/
  * move some portions of code around (dbprint, protocols,...)
* rename unused files into *_disabled.[ch] to make it explicit
* rename soft Uarts between 14a, 14b and iclass, so a standalone could use several without clash
* remove PrintAndLogDevice
* move deprecated-hid-flasher from client to tools
* Makefiles
  * treat deps in armsrc/ as in client/
  * client: stop on warning (-Werror), same as for armsrc/

Tested on:

* all standalone modes
* Linux
2019-08-11 21:42:01 +02:00
Renamed from common/usart.c (Browse further)