]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/util.c
A lot of changes...
[proxmark3-svn] / armsrc / util.c
index 1dd8dc7544fe1cb2989548692f8449f19b6ca621..3d536f396d6205c5d450a88f3cbed62030049b1b 100644 (file)
@@ -345,7 +345,9 @@ void StartCountUS()
        }
 
 uint32_t RAMFUNC GetCountUS(){
-       return (AT91C_BASE_TC1->TC_CV * 0x8000) + ((AT91C_BASE_TC0->TC_CV / 15) * 10);
+       //return (AT91C_BASE_TC1->TC_CV * 0x8000) + ((AT91C_BASE_TC0->TC_CV / 15) * 10);
+       //  By suggestion from PwPiwi, http://www.proxmark.org/forum/viewtopic.php?pid=17548#p17548
+       return (AT91C_BASE_TC1->TC_CV * 0x8000) + ((AT91C_BASE_TC0->TC_CV * 2) / 3); 
 }
 
 static uint32_t GlobalUsCounter = 0;
Impressum, Datenschutz