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:
parent
c41cacaf30
commit
910fd7858c
2 changed files with 3 additions and 3 deletions
|
|
@ -50,6 +50,8 @@ void tick_start(unsigned int interval_in_ms)
|
|||
|
||||
void TIMER1(void)
|
||||
{
|
||||
IO_INTC_IRQ0 = INTR_IRQ0_TMR1;
|
||||
|
||||
int i;
|
||||
|
||||
/* Run through the list of tick tasks */
|
||||
|
|
@ -61,6 +63,4 @@ void TIMER1(void)
|
|||
}
|
||||
}
|
||||
current_tick++;
|
||||
|
||||
IO_INTC_IRQ0 = INTR_IRQ0_TMR1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@
|
|||
should not be a functional pin and TIMER0 output unseen there */
|
||||
void TIMER0(void)
|
||||
{
|
||||
IO_INTC_IRQ0 = INTR_IRQ0_TMR0; /* clear TIMER0 interrupt */
|
||||
if (pfn_timer != NULL)
|
||||
pfn_timer();
|
||||
IO_INTC_IRQ0 = INTR_IRQ0_TMR0; //clear TIMER0 interrupt
|
||||
}
|
||||
|
||||
bool __timer_set(long cycles, bool start)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue