summaryrefslogtreecommitdiff
path: root/firmware/system.c
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2005-12-17 19:08:55 +0000
committerThom Johansen <thomj@rockbox.org>2005-12-17 19:08:55 +0000
commit8bf079ffc148e44cfebd4c8cd1c73e778aae45fa (patch)
treebe752b266296ecb1bb2582c406a8a397cfc7be5e /firmware/system.c
parenta601fb8d1922ddd8e7fbb39f8ae2c6137b3a12a5 (diff)
downloadrockbox-8bf079ffc148e44cfebd4c8cd1c73e778aae45fa.zip
rockbox-8bf079ffc148e44cfebd4c8cd1c73e778aae45fa.tar.gz
rockbox-8bf079ffc148e44cfebd4c8cd1c73e778aae45fa.tar.bz2
rockbox-8bf079ffc148e44cfebd4c8cd1c73e778aae45fa.tar.xz
Button and click wheel driver for iPod 4g and Nano.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8256 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/system.c')
-rw-r--r--firmware/system.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/system.c b/firmware/system.c
index 6ef35e8..2c7c6f3 100644
--- a/firmware/system.c
+++ b/firmware/system.c
@@ -1107,11 +1107,14 @@ int system_memory_guard(int newmode)
#elif CONFIG_CPU==PP5020
extern void TIMER1(void);
+extern void ipod_4g_button_int(void);
void irq(void)
{
if (PP5020_CPU_INT_STAT & PP5020_TIMER1_MASK)
TIMER1();
+ else if (PP5020_CPU_HI_INT_STAT & PP5020_I2C_MASK)
+ ipod_4g_button_int();
}
void system_init(void)