summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2010-11-26 23:28:08 +0000
committerMarcin Bukat <marcin.bukat@gmail.com>2010-11-26 23:28:08 +0000
commit9a24892e2e8b6ef9f8a616c630d1bb123ce713e7 (patch)
treed341118a6d8beefbf6e0da1761c7f8990967a8d1 /bootloader
parent608bc4ed4bc74560e1d2e6333d25d1254fb9058a (diff)
downloadrockbox-9a24892e2e8b6ef9f8a616c630d1bb123ce713e7.tar.gz
rockbox-9a24892e2e8b6ef9f8a616c630d1bb123ce713e7.tar.bz2
rockbox-9a24892e2e8b6ef9f8a616c630d1bb123ce713e7.zip
MPIO HD300 - initial commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28680 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/SOURCES2
-rw-r--r--bootloader/mpio_hd200.c12
2 files changed, 12 insertions, 2 deletions
diff --git a/bootloader/SOURCES b/bootloader/SOURCES
index 24d0bd29f6..97ed4493c1 100644
--- a/bootloader/SOURCES
+++ b/bootloader/SOURCES
@@ -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
diff --git a/bootloader/mpio_hd200.c b/bootloader/mpio_hd200.c
index 98c83239f7..dd4510a2a7 100644
--- a/bootloader/mpio_hd200.c
+++ b/bootloader/mpio_hd200.c
@@ -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 )