Corrected Atmel ARM7 AT91SAM7S port by fixing some problems in the dlmstp.c functions. Validated.

This commit is contained in:
skarg
2007-08-20 15:57:13 +00:00
parent eabe6dee96
commit 4980eb8b2e
3 changed files with 14 additions and 12 deletions
+2 -2
View File
@@ -330,8 +330,8 @@ void Timer_Silence_Reset(void)
// Moved timer startup code from main
// modified the peripheral clock init
// *****************************************************************************
void TimerInit(void) {
pTimer_MSTP_Silence = dlmstp_millisecond_timer_address();
void TimerInit(void)
{
// enable the Timer0 peripheral clock
volatile AT91PS_PMC pPMC = AT91C_BASE_PMC;
pPMC->PMC_PCER = pPMC->PMC_PCSR | (1<<AT91C_ID_TC0);