Fix up small error in main osc startup delay and replace more custom defines with standard Atmel defines

This commit is contained in:
d18c7db 2010-03-04 08:15:59 +00:00
commit 0aa4cfc2f1
5 changed files with 21 additions and 35 deletions

View 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) */