mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
CHG: "hf legic dump" now automatically detects tagtype and dumps accordingly.
CHG: still #define codestyle should it be with or without semicolons?
This commit is contained in:
parent
b1cd7d5ca6
commit
9015ae0f5d
3 changed files with 64 additions and 40 deletions
|
@ -1,5 +1,6 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// (c) 2009 Henryk Plötz <henryk@ploetzli.ch>
|
||||
// 2016 Iceman
|
||||
//
|
||||
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
||||
// at your option, any later version. See the LICENSE.txt file for the text of
|
||||
|
@ -85,7 +86,7 @@ static void setup_timer(void) {
|
|||
#define FUZZ_EQUAL(value, target, fuzz) ((value) > ((target)-(fuzz)) && (value) < ((target)+(fuzz)))
|
||||
|
||||
#ifndef SHORT_COIL
|
||||
# define SHORT_COIL LOW(GPIO_SSC_DOUT);
|
||||
# define SHORT_COIL LOW(GPIO_SSC_DOUT);
|
||||
#endif
|
||||
#ifndef OPEN_COIL
|
||||
# define OPEN_COIL HIGH(GPIO_SSC_DOUT);
|
||||
|
@ -102,7 +103,7 @@ static void setup_timer(void) {
|
|||
WaitTicks( (RWD_TIME_PAUSE) ); \
|
||||
OPEN_COIL; \
|
||||
WaitTicks((x)); \
|
||||
} while (0)
|
||||
} while (0);
|
||||
#endif
|
||||
|
||||
// ToDo: define a meaningful maximum size for auth_table. The bigger this is, the lower will be the available memory for traces.
|
||||
|
@ -210,9 +211,9 @@ void frame_sendAsReader(uint32_t data, uint8_t bits){
|
|||
|
||||
for (; mask < BITMASK(bits); mask <<= 1) {
|
||||
if (send & mask)
|
||||
COIL_PULSE(RWD_TIME_1);
|
||||
COIL_PULSE(RWD_TIME_1)
|
||||
else
|
||||
COIL_PULSE(RWD_TIME_0);
|
||||
COIL_PULSE(RWD_TIME_0)
|
||||
}
|
||||
|
||||
// Final pause to mark the end of the frame
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue