1
0
Fork 0
forked from len0rd/rockbox

Add interrupt handler for iPod. Add timer tick support. Remove temporary thread sleep solution. Remove temporary iPod current_tick solution.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8224 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thom Johansen 2005-12-12 13:53:22 +00:00
parent 07a2ad2a22
commit 544b03cf9a
5 changed files with 53 additions and 17 deletions

View file

@ -1106,14 +1106,28 @@ int system_memory_guard(int newmode)
}
#elif CONFIG_CPU==PP5020
/* TODO: Implement system.c */
void system_init(void) {
extern void TIMER1(void);
void irq(void)
{
if (PP5020_CPU_INT_STAT & PP5020_TIMER1_MASK)
TIMER1();
}
void system_reboot(void) {
void system_init(void)
{
/* disable all irqs */
outl(-1, 0x60001138);
outl(-1, 0x60001128);
outl(-1, 0x6000111c);
outl(-1, 0x60001038);
outl(-1, 0x60001028);
outl(-1, 0x6000101c);
}
void system_reboot(void)
{
}
int system_memory_guard(int newmode)