summaryrefslogtreecommitdiff
path: root/firmware/target/arm/system-pp502x.c
diff options
context:
space:
mode:
authorMark Arigo <markarigo@gmail.com>2008-02-24 04:12:16 +0000
committerMark Arigo <markarigo@gmail.com>2008-02-24 04:12:16 +0000
commitd829075a0003fd5a976d5e2303b0317d3dc63ea8 (patch)
treefd5838c65cedc6d2b889ba1a332f99e53553ca7c /firmware/target/arm/system-pp502x.c
parentf928c8f0f854a91323b19357021bcaef9a7cc27e (diff)
downloadrockbox-d829075a0003fd5a976d5e2303b0317d3dc63ea8.tar.gz
rockbox-d829075a0003fd5a976d5e2303b0317d3dc63ea8.zip
Driver for the Synaptics touchpad on the m:robe 100 based on the 3-wire interface spec. Needs some tweaking as it's too sensitive with the default hardware settings. For now, the vertical strip is divided into up/select/down buttons. Also, redo the keymap (using the Gigabeat as a starting point), but it still needs a good bit of work.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16400 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/system-pp502x.c')
-rw-r--r--firmware/target/arm/system-pp502x.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/target/arm/system-pp502x.c b/firmware/target/arm/system-pp502x.c
index 0b5e9e1c13..3dd802a3ed 100644
--- a/firmware/target/arm/system-pp502x.c
+++ b/firmware/target/arm/system-pp502x.c
@@ -35,6 +35,9 @@ extern void microsd_int(void); /* Sansa E200 and C200 */
35extern void button_int(void); 35extern void button_int(void);
36extern void clickwheel_int(void); 36extern void clickwheel_int(void);
37#endif 37#endif
38#ifdef MROBE_100
39extern void button_int(void);
40#endif
38 41
39void irq(void) 42void irq(void)
40{ 43{
@@ -66,6 +69,11 @@ void irq(void)
66 if (GPIOL_INT_STAT & 0x08) 69 if (GPIOL_INT_STAT & 0x08)
67 microsd_int(); 70 microsd_int();
68 } 71 }
72#elif defined(MROBE_100)
73 else if (CPU_HI_INT_STAT & GPIO0_MASK) {
74 if (GPIOD_INT_STAT & 0x2)
75 button_int();
76 }
69#endif 77#endif
70#ifdef HAVE_USBSTACK 78#ifdef HAVE_USBSTACK
71 else if (CPU_INT_STAT & USB_MASK) { 79 else if (CPU_INT_STAT & USB_MASK) {