1
0
Fork 0
forked from len0rd/rockbox

MPIO HD300 - initial commit

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28680 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Marcin Bukat 2010-11-26 23:28:08 +00:00
parent 608bc4ed4b
commit 9a24892e2e
21 changed files with 1344 additions and 12 deletions

View file

@ -63,6 +63,6 @@ show_logo.c
#elif defined(PBELL_VIBE500)
main-pp.c
show_logo.c
#elif defined(MPIO_HD200)
#elif defined(MPIO_HD200) || defined(MPIO_HD300)
mpio_hd200.c
#endif

View file

@ -263,7 +263,9 @@ static void bootmenu(void)
switch (button)
{
case BUTTON_REW:
#ifdef MPIO_HD200
case BUTTON_RC_REW:
#endif
if (option > rockbox)
option--;
else
@ -271,7 +273,9 @@ static void bootmenu(void)
break;
case BUTTON_FF:
#ifdef MPIO_HD200
case BUTTON_RC_FF:
#endif
if (option < shutdown)
option++;
else
@ -279,8 +283,10 @@ static void bootmenu(void)
break;
case BUTTON_PLAY:
#ifdef MPIO_HD200
case BUTTON_RC_PLAY:
case (BUTTON_PLAY|BUTTON_REC):
#endif
reset_screen();
switch (option)
@ -360,7 +366,11 @@ void main(void)
event = EVENT_NONE;
button = button_get_w_tmo(HZ);
if ( (button & BUTTON_PLAY) || (button & BUTTON_RC_PLAY) )
if ( (button & BUTTON_PLAY)
#ifdef MPIO_HD200
|| (button & BUTTON_RC_PLAY)
#endif
)
event |= EVENT_ON;
if ( usb_detect() == USB_INSERTED )