diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-11-10 20:26:01 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-11-10 20:26:01 +0000 |
commit | 780f79e7a4028a57e4bf591539a540dbfae2496d (patch) | |
tree | 48ddec4b94e11ebc545070b2af6f52144661bf3c /firmware/drivers/button.c | |
parent | 270cb0b68172c740820f772563e66a79308e641e (diff) | |
download | rockbox-780f79e7a4028a57e4bf591539a540dbfae2496d.tar.gz rockbox-780f79e7a4028a57e4bf591539a540dbfae2496d.zip |
Removed the Gmini 120 and Gmini SP code. These ports are dead, unfortunately.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11504 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r-- | firmware/drivers/button.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 561dc6ee14..01b9174dae 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c | |||
@@ -314,8 +314,6 @@ void button_init(void) | |||
314 | PAIOR &= ~0x0820; /* Inputs */ | 314 | PAIOR &= ~0x0820; /* Inputs */ |
315 | #elif CONFIG_KEYPAD == ONDIO_PAD | 315 | #elif CONFIG_KEYPAD == ONDIO_PAD |
316 | /* nothing to initialize here */ | 316 | /* nothing to initialize here */ |
317 | #elif CONFIG_KEYPAD == GMINI100_PAD | ||
318 | /* nothing to initialize here */ | ||
319 | #endif /* CONFIG_KEYPAD */ | 317 | #endif /* CONFIG_KEYPAD */ |
320 | queue_init(&button_queue, true); | 318 | queue_init(&button_queue, true); |
321 | button_read(); | 319 | button_read(); |
@@ -599,38 +597,6 @@ static int button_read(void) | |||
599 | if(adc_read(ADC_BUTTON_ONOFF) < 0x120) /* active low */ | 597 | if(adc_read(ADC_BUTTON_ONOFF) < 0x120) /* active low */ |
600 | btn |= BUTTON_OFF; | 598 | btn |= BUTTON_OFF; |
601 | 599 | ||
602 | #elif CONFIG_KEYPAD == GMINI100_PAD | ||
603 | data = adc_read(7); | ||
604 | if (data < 0x38a) | ||
605 | { | ||
606 | if (data < 0x1c5) | ||
607 | if (data < 0xe3) | ||
608 | btn = BUTTON_LEFT; | ||
609 | else | ||
610 | btn = BUTTON_DOWN; | ||
611 | else | ||
612 | if (data < 0x2a2) | ||
613 | btn = BUTTON_RIGHT; | ||
614 | else | ||
615 | btn = BUTTON_UP; | ||
616 | } | ||
617 | |||
618 | data = adc_read(6); | ||
619 | if (data < 0x355) | ||
620 | { | ||
621 | if (data < 0x288) | ||
622 | if (data < 0x233) | ||
623 | btn |= BUTTON_OFF; | ||
624 | else | ||
625 | btn |= BUTTON_PLAY; | ||
626 | else | ||
627 | btn |= BUTTON_MENU; | ||
628 | } | ||
629 | |||
630 | data = P7; | ||
631 | if (data & 0x01) | ||
632 | btn |= BUTTON_ON; | ||
633 | |||
634 | #endif /* CONFIG_KEYPAD */ | 600 | #endif /* CONFIG_KEYPAD */ |
635 | 601 | ||
636 | #ifdef HAVE_LCD_BITMAP | 602 | #ifdef HAVE_LCD_BITMAP |