Commit graph

129 commits

Author SHA1 Message Date
iceman1001
3fce16b7d9 fix cppchecker warnings 2021-05-07 12:27:13 +02:00
iceman1001
e4f55556ba style 2021-05-05 21:04:48 +02:00
iceman1001
54125918b5 remove debugs statements 2021-04-25 04:06:01 +02:00
iceman1001
2119c4e7bd hf 14b got some love 2021-04-23 22:25:58 +02:00
iceman1001
b267ee8ef5 convert 14b raw to use NG 2021-04-21 18:36:21 +02:00
Philippe Teuwen
e5c5629cf2 Some tunings of otptear:
- make tearoff_delay_us and tearoff_enabled globals
- use tearoff_hook and remove Dbprintf in critical tearoff timing
- move initial write from MifareU_Otp_Tearoff to CmdHF14AMfuOtpTearoff and make it optional (old behavior was writing initial 00000000 when -d was not provided)
- tearoff: compare with initial write, not with previous tearoff outcome
- rephrase some messages
- track all begin and end of erase and write phases, with quite complex logic to cover multiple cases (starting in middle of erased phase, starting with write 0, ...) and report them
- check against initial write error
- repeat same timing (up to 10x) in case of write/read errors then quit
- typos
2021-03-07 23:48:55 +01:00
iceman1001
928c0e4162 cppchecker overflow integer warning 2021-03-05 10:21:25 +01:00
Philippe Teuwen
975034854d rework 14b apdu timeout computations 2020-12-18 02:15:42 +01:00
Philippe Teuwen
204ae46bf7 minor 2020-12-18 02:15:42 +01:00
Philippe Teuwen
ffb1b662ac allowing user timeouts in 14b apdus 2020-12-18 02:15:42 +01:00
Philippe Teuwen
f63cf02178 make style 2020-11-07 01:32:43 +01:00
Philippe Teuwen
a8b92f48a7 reorganize few global vars & fcts 2020-11-05 23:05:52 +01:00
iceman1001
60aed2c865 for a gentle kiwi 2020-11-05 12:14:09 +01:00
Philippe Teuwen
777cb5a8ce make style 2020-11-02 01:46:47 +01:00
iceman1001
52164a4fd1 hf 14b sriread -> hf 14b rdbl, renamed and refactored it to read a block. use dump, to dump whole tag 2020-10-27 18:26:14 +01:00
iceman1001
6e6c8cbd6b hf 14b raw - added tearoff 2020-10-13 16:09:17 +02:00
Philippe Teuwen
491adacb94 get rid of tabs 2020-10-06 20:45:13 +02:00
Philippe Teuwen
3f9ddf9b29 make style 2020-10-06 18:41:15 +02:00
iceman1001
8baeaa58e2 14b -add option for cleatrace, empty card struct, and adapt the padding of bits 2020-10-05 10:02:32 +02:00
Philippe Teuwen
e5f746e018 fix 14b apdu 2020-10-03 19:08:34 +02:00
iceman1001
01af87e6d7 hf 14b sniff, sim, info, - now uses cliparser 2020-10-02 18:06:21 +02:00
iceman1001
31f5502171 remade ASK C-ticket select to deviceside 2020-10-02 14:31:52 +02:00
Philippe Teuwen
b1c1433e45 14b: safer handling of corrupted signals 2020-10-02 00:58:41 +02:00
Philippe Teuwen
f56cbc82f5 Add support for 14b' aka Innovatron in armsrc/iso14443b.c 2020-10-01 23:26:55 +02:00
iceman1001
5e91f35cd6 make sure tosend is not contain spurious bits from before 2020-10-01 00:37:37 +02:00
iceman1001
9e05faabff unify buffers 2020-09-30 19:20:40 +02:00
iceman1001
f221d127a1 wrong flag 2020-09-30 18:19:51 +02:00
iceman1001
181bb3bc74 added: hf 14b apdu 2020-09-30 17:06:19 +02:00
iceman1001
b4728157fb fix return codes for 14b, sorting out status checks in client 2020-09-26 09:33:36 +02:00
iceman1001
0be35a8e7e style 2020-09-07 10:35:09 +02:00
iceman1001
7d6401ce49 adapt start time end time 2020-08-17 22:07:50 +02:00
iceman1001
641349f6be true.. 2020-08-16 22:47:07 +02:00
iceman1001
8ff8ccb9a7 adapt 14b mergehell 2020-08-16 21:13:10 +02:00
iceman1001
8b25c952f4 14b sniff works better. Still missing tag response amplitude demodulation code 2020-08-14 14:58:27 +02:00
Philippe Teuwen
4ed57c7c4d make style 2020-08-13 12:25:04 +02:00
iceman1001
3354f0d9d3 unified static dma buffer as bigbuf_malloc, less pressure on stack size 2020-07-15 15:16:35 +02:00
iceman1001
ce981d9124 fpga 14b merge p.N 2020-07-14 15:46:05 +02:00
iceman1001
d6f65f8578 tosend into bigbuff 2020-07-13 18:14:34 +02:00
iceman1001
7d1a278197 merge hell p.x 2020-07-03 21:33:17 +02:00
iceman1001
9189dc8563 applied theremin patch, adc values are summed, remember to divide when read 2020-06-09 23:37:56 +02:00
Philippe Teuwen
be42995f8a Less fantasy in the LogTrace usages regarding timestamps 2020-05-19 20:19:44 +02:00
Philippe Teuwen
3e7512a5d5 armsrc: clarify static vars vs global vars 2020-05-19 17:05:43 +02:00
Philippe Teuwen
026707b960 arm: fix prototypes 2020-05-11 13:48:57 +02:00
iceman1001
732c012be7 adjustments 2020-04-10 10:27:28 +02:00
iceman1001
36f2234121 fix HF simulation 2020-02-12 10:29:00 +01:00
Philippe Teuwen
7c33eeb7d5 style 2020-01-15 19:25:29 +01:00
iceman1001
eb9f67635b chg: enable/disable hf fpga tracing 2020-01-13 10:34:59 +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
Philippe Teuwen
732bc766f9 Reduce some var scopes 2019-06-07 18:41:39 +02:00
Philippe Teuwen
4761ea13f7 MF_DBGLEVEL => DBGLEVEL (pm3 side) 2019-06-06 10:05:09 +02:00