enable jpeg, mpegplayer and midiplay on the mr500 (only jpeg is actually usable though, mpegplayer data aborts)
fix the config which should have been done a few commits ago git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15296 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
902a1b5fae
commit
a256878e77
7 changed files with 42 additions and 2 deletions
|
@ -20,6 +20,11 @@ stopwatch.c
|
|||
vbrfix.c
|
||||
viewer.c
|
||||
|
||||
#ifdef OLYMPUS_MROBE_500
|
||||
/* remove these once the plugins before it are compileable */
|
||||
jpeg.c
|
||||
#endif
|
||||
|
||||
#ifndef OLYMPUS_MROBE_500
|
||||
|
||||
#if CONFIG_CODEC == SWCODEC
|
||||
|
|
|
@ -37,7 +37,8 @@ pacbox
|
|||
(LCD_DEPTH == 2) && !defined(ARCHOS_AV300)
|
||||
doom
|
||||
#endif
|
||||
|
||||
#endif /* mrobe 500 */
|
||||
#if !defined(IRIVER_IFP7XX_SERIES)
|
||||
/* For all the swcodec targets */
|
||||
#if CONFIG_CODEC == SWCODEC
|
||||
midi
|
||||
|
|
|
@ -169,6 +169,17 @@ PLUGIN_HEADER
|
|||
#define JPEG_NEXT BUTTON_FF
|
||||
#define JPEG_PREVIOUS BUTTON_REW
|
||||
|
||||
#elif CONFIG_KEYPAD == MROBE500_PAD
|
||||
#define JPEG_ZOOM_IN BUTTON_RC_VOL_UP
|
||||
#define JPEG_ZOOM_OUT BUTTON_RC_VOL_DOWN
|
||||
#define JPEG_UP BUTTON_RC_PLAY
|
||||
#define JPEG_DOWN BUTTON_RC_DOWN
|
||||
#define JPEG_LEFT BUTTON_LEFT
|
||||
#define JPEG_RIGHT BUTTON_RIGHT
|
||||
#define JPEG_MENU BUTTON_POWER
|
||||
#define JPEG_NEXT BUTTON_RC_HEART
|
||||
#define JPEG_PREVIOUS BUTTON_RC_MODE
|
||||
|
||||
#endif
|
||||
|
||||
/* different graphics libraries */
|
||||
|
|
|
@ -79,6 +79,12 @@ PLUGIN_IRAM_DECLARE
|
|||
#define BTN_UP BUTTON_SCROLL_UP
|
||||
#define BTN_DOWN BUTTON_SCROLL_DOWN
|
||||
|
||||
#elif CONFIG_KEYPAD == MROBE500_PAD
|
||||
#define BTN_QUIT BUTTON_POWER
|
||||
#define BTN_RIGHT BUTTON_RIGHT
|
||||
#define BTN_UP BUTTON_RC_PLAY
|
||||
#define BTN_DOWN BUTTON_RC_DOWN
|
||||
|
||||
#endif
|
||||
|
||||
#undef SYNC
|
||||
|
|
|
@ -90,6 +90,16 @@ volatile long thumbDelayTimer;
|
|||
#define MPEG_DOWN BUTTON_DOWN
|
||||
#define MPEG_EXIT BUTTON_POWER
|
||||
|
||||
#elif CONFIG_KEYPAD == MROBE500_PAD
|
||||
#define MPEG_SELECT BUTTON_RC_HEART
|
||||
#define MPEG_SCROLL_UP BUTTON_RC_VOL_UP
|
||||
#define MPEG_SCROLL_DOWN BUTTON_RC_VOL_DOWN
|
||||
#define MPEG_LEFT BUTTON_LEFT
|
||||
#define MPEG_RIGHT BUTTON_RIGHT
|
||||
#define MPEG_UP BUTTON_RC_PLAY
|
||||
#define MPEG_DOWN BUTTON_RC_DOWN
|
||||
#define MPEG_EXIT BUTTON_POWER
|
||||
|
||||
#else
|
||||
#error MPEGPLAYER: Unsupported keypad
|
||||
#endif
|
||||
|
|
|
@ -162,6 +162,13 @@ PLUGIN_IRAM_DECLARE
|
|||
#define MPEG_VOLDOWN BUTTON_VOL_DOWN
|
||||
#define MPEG_VOLUP BUTTON_VOL_UP
|
||||
|
||||
#elif CONFIG_KEYPAD == MROBE500_PAD
|
||||
#define MPEG_MENU BUTTON_RC_HEART
|
||||
#define MPEG_STOP BUTTON_POWER
|
||||
#define MPEG_PAUSE BUTTON_TOUCHPAD
|
||||
#define MPEG_VOLDOWN BUTTON_RC_VOL_DOWN
|
||||
#define MPEG_VOLUP BUTTON_RC_VOL_UP
|
||||
|
||||
#else
|
||||
#error MPEGPLAYER: Unsupported keypad
|
||||
#endif
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#define TTB_SIZE (0x4000)
|
||||
/* must be 16Kb (0x4000) aligned */
|
||||
#define TTB_BASE ((unsigned int *)(0x04900000 - TTB_SIZE)) /* End of memory */
|
||||
#define FRAME ((short *) (TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */
|
||||
#define FRAME ((short *) ((char*)TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */
|
||||
|
||||
#define PHY_IO_BASE 0x00030000
|
||||
#define DM320_REG(addr) (*(volatile unsigned short *)(PHY_IO_BASE + (addr)))
|
||||
|
|
Loading…
Reference in a new issue