1
0
Fork 0
forked from len0rd/rockbox

Move interrupt clearing up.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17404 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2008-05-07 13:33:29 +00:00
parent c41cacaf30
commit 910fd7858c
2 changed files with 3 additions and 3 deletions

View file

@ -50,6 +50,8 @@ void tick_start(unsigned int interval_in_ms)
void TIMER1(void) void TIMER1(void)
{ {
IO_INTC_IRQ0 = INTR_IRQ0_TMR1;
int i; int i;
/* Run through the list of tick tasks */ /* Run through the list of tick tasks */
@ -61,6 +63,4 @@ void TIMER1(void)
} }
} }
current_tick++; current_tick++;
IO_INTC_IRQ0 = INTR_IRQ0_TMR1;
} }

View file

@ -27,9 +27,9 @@
should not be a functional pin and TIMER0 output unseen there */ should not be a functional pin and TIMER0 output unseen there */
void TIMER0(void) void TIMER0(void)
{ {
IO_INTC_IRQ0 = INTR_IRQ0_TMR0; /* clear TIMER0 interrupt */
if (pfn_timer != NULL) if (pfn_timer != NULL)
pfn_timer(); pfn_timer();
IO_INTC_IRQ0 = INTR_IRQ0_TMR0; //clear TIMER0 interrupt
} }
bool __timer_set(long cycles, bool start) bool __timer_set(long cycles, bool start)