From 54ba851670bf166bf924a640738873299cf89b62 Mon Sep 17 00:00:00 2001 From: Wincent Balin Date: Wed, 5 Aug 2009 13:21:08 +0000 Subject: PDBox: Added iriver H100 to supported targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22168 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/SUBDIRS | 8 ++++---- apps/plugins/pdbox/pdbox.h | 11 ++++++++++- 2 files changed, 14 insertions(+), 5 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS index 6416cab234..587050fb94 100644 --- a/apps/plugins/SUBDIRS +++ b/apps/plugins/SUBDIRS @@ -50,13 +50,13 @@ doom #if CONFIG_CODEC == SWCODEC midi /* beatbox */ -#ifndef RB_PROFILE -#if MEMORYSIZE > 2 /* mpegplayer allocates at least 2MB of RAM */ -mpegplayer -#if defined(IRIVER_H300_SERIES) +#if defined(IRIVER_H300_SERIES) || defined(IRIVER_H100_SERIES) /* PDBox is confirmed to run on these player models. */ pdbox #endif +#ifndef RB_PROFILE +#if MEMORYSIZE > 2 /* mpegplayer allocates at least 2MB of RAM */ +mpegplayer #endif #endif #endif diff --git a/apps/plugins/pdbox/pdbox.h b/apps/plugins/pdbox/pdbox.h index 5f30013fad..a8ae466675 100644 --- a/apps/plugins/pdbox/pdbox.h +++ b/apps/plugins/pdbox/pdbox.h @@ -253,7 +253,16 @@ enum pd_key_id #define PDPOD_WHEELLEFT (BUTTON_DOWN) #define PDPOD_WHEELRIGHT (BUTTON_UP) #define PDPOD_ACTION (BUTTON_MODE) -/* #elif defined(IRIVER_H100_SERIES) */ +#elif defined(IRIVER_H100_SERIES) + /* Added by wincent */ + #define PDPOD_QUIT (BUTTON_OFF) + #define PDPOD_PLAY (BUTTON_REC) + #define PDPOD_PREVIOUS (BUTTON_LEFT) + #define PDPOD_NEXT (BUTTON_RIGHT) + #define PDPOD_MENU (BUTTON_SELECT) + #define PDPOD_WHEELLEFT (BUTTON_DOWN) + #define PDPOD_WHEELRIGHT (BUTTON_UP) + #define PDPOD_ACTION (BUTTON_ON) #else #warning "No keys defined for this architecture!" #endif -- cgit v1.2.3