diff options
author | Mark Arigo <markarigo@gmail.com> | 2008-05-13 02:50:31 +0000 |
---|---|---|
committer | Mark Arigo <markarigo@gmail.com> | 2008-05-13 02:50:31 +0000 |
commit | 3e743ec6c9685ef3b7d9729e2b21236bf66bed93 (patch) | |
tree | 199570de7b6cb44ef7ccf26090fbbaa061b6101c /firmware/target/arm/system-pp502x.c | |
parent | 76567482215b9d786ba329072b715729ea506b7e (diff) | |
download | rockbox-3e743ec6c9685ef3b7d9729e2b21236bf66bed93.tar.gz rockbox-3e743ec6c9685ef3b7d9729e2b21236bf66bed93.zip |
Preparing for the Philips SA9200 part 2. Since the SA9200 doesn't have a microsd card (no hotswap), use HAVE_ATA_SD for the Sansa flash driver so we don't rely on HAVE_HOTSWAP in some places.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17488 a1c6a512-1295-4272-9138-f99709370657
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(); |