mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 10:36:58 -07:00
Fix up small error in main osc startup delay and replace more custom defines with standard Atmel defines
This commit is contained in:
parent
9e84fd5b73
commit
0aa4cfc2f1
5 changed files with 21 additions and 35 deletions
|
@ -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) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue