]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/util.c
alpha2 mifare emulator
[proxmark3-svn] / armsrc / util.c
index 9c6b3e8d76f919e957c468877c63df37a75b0f84..0172754e283a950b47606103719d7a6d8478e261 100644 (file)
@@ -252,13 +252,13 @@ void StartTickCount()
 //  0x20 - 1 ms / bit 
 //  0x40 - 2 ms / bit
 
-       AT91C_BASE_RTTC->RTTC_RTMR = AT91C_RTTC_RTTRST + 0x003B;
+       AT91C_BASE_RTTC->RTTC_RTMR = AT91C_RTTC_RTTRST + 0x001D; // was 0x003B
 }
 
 /*
 * Get the current count.
 */
 uint32_t RAMFUNC GetTickCount(){
-       return AT91C_BASE_RTTC->RTTC_RTVR * 2;
+       return AT91C_BASE_RTTC->RTTC_RTVR;// * 2;
 }
 
Impressum, Datenschutz