summaryrefslogtreecommitdiff
path: root/firmware/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/system.c')
-rw-r--r--firmware/system.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/system.c b/firmware/system.c
index 79004f8284..fa07f6364e 100644
--- a/firmware/system.c
+++ b/firmware/system.c
@@ -1140,6 +1140,18 @@ unsigned int ipod_hw_rev;
1140 1140
1141#ifndef BOOTLOADER 1141#ifndef BOOTLOADER
1142extern void TIMER1(void); 1142extern void TIMER1(void);
1143
1144#if defined(APPLE_IPODMINI)
1145extern void ipod_mini_button_int(void);
1146
1147void irq(void)
1148{
1149 if (CPU_INT_STAT & TIMER1_MASK)
1150 TIMER1();
1151 else if (CPU_HI_INT_STAT & GPIO_MASK)
1152 ipod_mini_button_int();
1153}
1154#else
1143extern void ipod_4g_button_int(void); 1155extern void ipod_4g_button_int(void);
1144 1156
1145void irq(void) 1157void irq(void)
@@ -1150,6 +1162,7 @@ void irq(void)
1150 ipod_4g_button_int(); 1162 ipod_4g_button_int();
1151} 1163}
1152#endif 1164#endif
1165#endif /* BOOTLOADER */
1153 1166
1154/* TODO: The following two function have been lifted straight from IPL, and 1167/* TODO: The following two function have been lifted straight from IPL, and
1155 hence have a lot of numeric addresses used straight. I'd like to use 1168 hence have a lot of numeric addresses used straight. I'd like to use