mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Gigabeat: Use vectored IRQ mode interrupts and add a trap for unhandled ones.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13792 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
21b90e3466
commit
60efd38bbe
5 changed files with 201 additions and 42 deletions
|
@ -724,8 +724,13 @@ void tick_start(unsigned int interval_in_ms)
|
|||
INTMSK &= ~(1 << 14); // timer 4 unmask interrupts
|
||||
}
|
||||
|
||||
void timer4(void) {
|
||||
void TIMER4(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
SRCPND = TIMER4_MASK;
|
||||
INTPND = TIMER4_MASK;
|
||||
|
||||
/* Run through the list of tick tasks */
|
||||
for(i = 0; i < MAX_NUM_TICK_TASKS; i++)
|
||||
{
|
||||
|
@ -736,9 +741,6 @@ void timer4(void) {
|
|||
}
|
||||
|
||||
current_tick++;
|
||||
|
||||
/* following needs to be fixed. */
|
||||
/*wake_up_thread();*/
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue