CHG: added addresize to legic select struct.

CHG: TIMER, it turns out the TC0, TC1 and TC2 is only 16bit.  So adjust to use two clocks to get a 32bit timer.
CHG: code clean up in legic device side.  consistency with variable names..
This commit is contained in:
iceman1001 2016-09-29 17:43:39 +02:00
commit fabef615ec
6 changed files with 93 additions and 80 deletions

View file

@ -19,7 +19,7 @@
#include "proxmark3.h"
#ifndef GET_TICKS
# define GET_TICKS AT91C_BASE_TC0->TC_CV
# define GET_TICKS ((AT91C_BASE_TC1->TC_CV << 16) | AT91C_BASE_TC0->TC_CV)
#endif
void SpinDelay(int ms);