X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/22f4dca88cc008287b1ef01bb4da0d46cbcf76d1..5b8167fb97892f1d2db47a4e986bf90573f7beec:/armsrc/ticks.h diff --git a/armsrc/ticks.h b/armsrc/ticks.h index 050cb6ae..8ad4bc67 100644 --- a/armsrc/ticks.h +++ b/armsrc/ticks.h @@ -19,7 +19,7 @@ #include "proxmark3.h" #ifndef GET_TICKS -# define GET_TICKS AT91C_BASE_TC0->TC_CV +# define GET_TICKS (uint32_t)((AT91C_BASE_TC1->TC_CV << 16) | AT91C_BASE_TC0->TC_CV) #endif void SpinDelay(int ms); @@ -44,4 +44,5 @@ extern void WaitUS(uint16_t us); extern void WaitMS(uint16_t ms); extern void ResetTicks(); extern void ResetTimer(AT91PS_TC timer); +extern void StopTicks(void); #endif \ No newline at end of file