diff options
Diffstat (limited to 'firmware/target/arm/system-pp502x.c')
-rw-r--r-- | firmware/target/arm/system-pp502x.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/system-pp502x.c b/firmware/target/arm/system-pp502x.c index 9b335fe223..4e3f2c0cf0 100644 --- a/firmware/target/arm/system-pp502x.c +++ b/firmware/target/arm/system-pp502x.c | |||
@@ -54,17 +54,19 @@ void irq(void) | |||
54 | else if (CPU_HI_INT_STAT & I2C_MASK) | 54 | else if (CPU_HI_INT_STAT & I2C_MASK) |
55 | ipod_4g_button_int(); | 55 | ipod_4g_button_int(); |
56 | #elif defined(SANSA_E200) | 56 | #elif defined(SANSA_E200) |
57 | #ifdef HAVE_HOTSWAP | ||
57 | else if (CPU_HI_INT_STAT & GPIO0_MASK) { | 58 | else if (CPU_HI_INT_STAT & GPIO0_MASK) { |
58 | if (GPIOA_INT_STAT & 0x80) | 59 | if (GPIOA_INT_STAT & 0x80) |
59 | microsd_int(); | 60 | microsd_int(); |
60 | } | 61 | } |
62 | #endif | ||
61 | else if (CPU_HI_INT_STAT & GPIO1_MASK) { | 63 | else if (CPU_HI_INT_STAT & GPIO1_MASK) { |
62 | if (GPIOF_INT_STAT & 0xff) | 64 | if (GPIOF_INT_STAT & 0xff) |
63 | button_int(); | 65 | button_int(); |
64 | if (GPIOH_INT_STAT & 0xc0) | 66 | if (GPIOH_INT_STAT & 0xc0) |
65 | clickwheel_int(); | 67 | clickwheel_int(); |
66 | } | 68 | } |
67 | #elif defined(SANSA_C200) | 69 | #elif defined(SANSA_C200) && defined(HAVE_HOTSWAP) |
68 | else if (CPU_HI_INT_STAT & GPIO2_MASK) { | 70 | else if (CPU_HI_INT_STAT & GPIO2_MASK) { |
69 | if (GPIOL_INT_STAT & 0x08) | 71 | if (GPIOL_INT_STAT & 0x08) |
70 | microsd_int(); | 72 | microsd_int(); |