X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/3e134b4c20a5528b8264cd87d3fdebd0b2df6fd9..78f59945a725db88acacc772a37f32ff6debea56:/armsrc/util.h diff --git a/armsrc/util.h b/armsrc/util.h index 486f22e9..3ff70dd4 100644 --- a/armsrc/util.h +++ b/armsrc/util.h @@ -37,6 +37,9 @@ #ifndef BITMASK # define BITMASK(X) (1 << (X)) #endif +#ifndef ARRAYLEN +# define ARRAYLEN(x) (sizeof(x)/sizeof((x)[0])) +#endif void print_result(char *name, uint8_t *buf, size_t len); size_t nbytes(size_t nbits); @@ -61,6 +64,8 @@ uint32_t RAMFUNC GetTickCount(); void StartCountUS(); uint32_t RAMFUNC GetCountUS(); +void ResetUSClock(void); +void SpinDelayCountUs(uint32_t us); //uint32_t RAMFUNC GetDeltaCountUS(); void StartCountSspClk();