forked from len0rd/rockbox
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
This commit is contained in:
parent
270cb0b681
commit
780f79e7a4
36 changed files with 46 additions and 1533 deletions
|
|
@ -314,8 +314,6 @@ void button_init(void)
|
|||
PAIOR &= ~0x0820; /* Inputs */
|
||||
#elif CONFIG_KEYPAD == ONDIO_PAD
|
||||
/* nothing to initialize here */
|
||||
#elif CONFIG_KEYPAD == GMINI100_PAD
|
||||
/* nothing to initialize here */
|
||||
#endif /* CONFIG_KEYPAD */
|
||||
queue_init(&button_queue, true);
|
||||
button_read();
|
||||
|
|
@ -599,38 +597,6 @@ static int button_read(void)
|
|||
if(adc_read(ADC_BUTTON_ONOFF) < 0x120) /* active low */
|
||||
btn |= BUTTON_OFF;
|
||||
|
||||
#elif CONFIG_KEYPAD == GMINI100_PAD
|
||||
data = adc_read(7);
|
||||
if (data < 0x38a)
|
||||
{
|
||||
if (data < 0x1c5)
|
||||
if (data < 0xe3)
|
||||
btn = BUTTON_LEFT;
|
||||
else
|
||||
btn = BUTTON_DOWN;
|
||||
else
|
||||
if (data < 0x2a2)
|
||||
btn = BUTTON_RIGHT;
|
||||
else
|
||||
btn = BUTTON_UP;
|
||||
}
|
||||
|
||||
data = adc_read(6);
|
||||
if (data < 0x355)
|
||||
{
|
||||
if (data < 0x288)
|
||||
if (data < 0x233)
|
||||
btn |= BUTTON_OFF;
|
||||
else
|
||||
btn |= BUTTON_PLAY;
|
||||
else
|
||||
btn |= BUTTON_MENU;
|
||||
}
|
||||
|
||||
data = P7;
|
||||
if (data & 0x01)
|
||||
btn |= BUTTON_ON;
|
||||
|
||||
#endif /* CONFIG_KEYPAD */
|
||||
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue