]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/legicrf.c
Fix issue 14: mandemod and lf em4x em410xread crashes the proxmark3 client app
[proxmark3-svn] / armsrc / legicrf.c
index c785542d7f32aeb44ffd4a4568fcc32382a0d5cb..313ac3c95c0bb4aac6d5e3564cafe4ef221345b4 100644 (file)
@@ -34,7 +34,7 @@ static void setup_timer(void)
        AT91C_BASE_PMC->PMC_PCER = (1 << AT91C_ID_TC1);
        timer = AT91C_BASE_TC1;
        timer->TC_CCR = AT91C_TC_CLKDIS;
-       timer->TC_CMR = TC_CMR_TCCLKS_TIMER_CLOCK3;
+       timer->TC_CMR = AT91C_TC_CLKS_TIMER_DIV3_CLOCK;
        timer->TC_CCR = AT91C_TC_CLKEN | AT91C_TC_SWTRG;
 
 /* At TIMER_CLOCK3 (MCK/32) */
Impressum, Datenschutz