m:robe 100:

- adjust lcd_grey_phase_blit() parameter to recent change
- detection of external power
- compilation of plugins - need to be enabled individually in SOURCES/SUBDIRS 
(use autostart.rock as test plugin with limited interaction via BUTTON_POWER)
also 
- move autostart.rock to apps dir where it is expected
- set missing svn:keywords for various files

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16056 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Kukla 2008-01-11 21:48:01 +00:00
parent c4ebcbeaf4
commit 7d961d390a
10 changed files with 26 additions and 15 deletions

View file

@ -1,3 +1,4 @@
autostart,apps
matrix,demos matrix,demos
alpine_cdc,apps alpine_cdc,apps
battery_bench,apps battery_bench,apps

View file

@ -1,3 +1,6 @@
autostart.c
#ifndef OLYMPUS_MROBE_100
/* plugins common to all models */ /* plugins common to all models */
battery_bench.c battery_bench.c
chessclock.c chessclock.c
@ -151,3 +154,4 @@ iriver_flash.c
superdom.c superdom.c
#endif #endif
#endif /* m:robe 500 */ #endif /* m:robe 500 */
#endif /* m:robe 100 */

View file

@ -1,4 +1,4 @@
#if !defined(IRIVER_IFP7XX_SERIES) #if !defined(IRIVER_IFP7XX_SERIES) && !defined(OLYMPUS_MROBE_100)
/* For all targets */ /* For all targets */
shortcuts shortcuts

View file

@ -40,9 +40,9 @@ struct _gray_info _gray_info; /* global info structure */
#ifndef SIMULATOR #ifndef SIMULATOR
short _gray_random_buffer; /* buffer for random number generator */ short _gray_random_buffer; /* buffer for random number generator */
#if CONFIG_LCD == LCD_SSD1815 || CONFIG_LCD == LCD_IFP7XX #if CONFIG_LCD == LCD_SSD1815 || CONFIG_LCD == LCD_IFP7XX || CONFIG_LCD == LCD_MROBE100
/* measured and interpolated curve */ /* measured and interpolated curve */
/* TODO: check for iFP */ /* TODO: check for iFP & m:robe 100 */
static const unsigned char lcdlinear[256] = { static const unsigned char lcdlinear[256] = {
0, 3, 5, 8, 11, 13, 16, 18, 0, 3, 5, 8, 11, 13, 16, 18,
21, 23, 26, 28, 31, 33, 36, 38, 21, 23, 26, 28, 31, 33, 36, 38,

View file

@ -36,9 +36,9 @@ struct _grey_info _grey_info; /* global info structure */
#ifndef SIMULATOR #ifndef SIMULATOR
#if CONFIG_LCD == LCD_SSD1815 || CONFIG_LCD == LCD_IFP7XX #if CONFIG_LCD == LCD_SSD1815 || CONFIG_LCD == LCD_IFP7XX || CONFIG_LCD == LCD_MROBE100
/* measured and interpolated curve */ /* measured and interpolated curve */
/* TODO: check for iFP */ /* TODO: check for iFP & m:robe 100 */
static const unsigned char lcdlinear[256] = { static const unsigned char lcdlinear[256] = {
0, 3, 5, 8, 11, 13, 16, 18, 0, 3, 5, 8, 11, 13, 16, 18,
21, 23, 26, 28, 31, 33, 36, 38, 21, 23, 26, 28, 31, 33, 36, 38,

View file

@ -111,7 +111,8 @@ const struct button_mapping generic_directions[] =
{PLA_DOWN_REPEAT, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_NONE}, {PLA_DOWN_REPEAT, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_NONE},
{PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE}, {PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE},
{PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE}, {PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE},
#elif (CONFIG_KEYPAD == IRIVER_H10_PAD) #elif (CONFIG_KEYPAD == IRIVER_H10_PAD) \
|| (CONFIG_KEYPAD == MROBE100_PAD)
{ PLA_UP, BUTTON_SCROLL_UP, BUTTON_NONE}, { PLA_UP, BUTTON_SCROLL_UP, BUTTON_NONE},
{ PLA_DOWN, BUTTON_SCROLL_DOWN, BUTTON_NONE}, { PLA_DOWN, BUTTON_SCROLL_DOWN, BUTTON_NONE},
{ PLA_LEFT, BUTTON_LEFT, BUTTON_NONE}, { PLA_LEFT, BUTTON_LEFT, BUTTON_NONE},
@ -193,7 +194,8 @@ const struct button_mapping generic_left_right_fire[] =
{ PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE}, { PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE},
{ PLA_FIRE, BUTTON_SELECT, BUTTON_NONE}, { PLA_FIRE, BUTTON_SELECT, BUTTON_NONE},
{ PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT,BUTTON_NONE}, { PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT,BUTTON_NONE},
#elif (CONFIG_KEYPAD == IRIVER_H10_PAD) #elif (CONFIG_KEYPAD == IRIVER_H10_PAD) \
|| (CONFIG_KEYPAD == MROBE100_PAD)
{ PLA_LEFT, BUTTON_LEFT, BUTTON_NONE}, { PLA_LEFT, BUTTON_LEFT, BUTTON_NONE},
{ PLA_RIGHT, BUTTON_RIGHT, BUTTON_NONE}, { PLA_RIGHT, BUTTON_RIGHT, BUTTON_NONE},
{ PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE}, { PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE},
@ -286,7 +288,8 @@ const struct button_mapping generic_actions[] =
{PLA_MENU, BUTTON_DOWN, BUTTON_NONE}, {PLA_MENU, BUTTON_DOWN, BUTTON_NONE},
{PLA_FIRE, BUTTON_SELECT, BUTTON_NONE}, {PLA_FIRE, BUTTON_SELECT, BUTTON_NONE},
{PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE}, {PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE},
#elif CONFIG_KEYPAD == IRIVER_H10_PAD #elif CONFIG_KEYPAD == IRIVER_H10_PAD \
|| (CONFIG_KEYPAD == MROBE100_PAD)
{PLA_QUIT, BUTTON_POWER, BUTTON_NONE}, {PLA_QUIT, BUTTON_POWER, BUTTON_NONE},
{PLA_START, BUTTON_PLAY, BUTTON_NONE}, {PLA_START, BUTTON_PLAY, BUTTON_NONE},
{PLA_MENU, BUTTON_FF, BUTTON_NONE}, {PLA_MENU, BUTTON_FF, BUTTON_NONE},

View file

@ -7,6 +7,8 @@
/* until voltages are sorted out */ /* until voltages are sorted out */
#define NO_LOW_BATTERY_SHUTDOWN #define NO_LOW_BATTERY_SHUTDOWN
#define OLYMPUS_MROBE_100 1
/* For Rolo and boot loader */ /* For Rolo and boot loader */
#define MODEL_NUMBER 23 #define MODEL_NUMBER 23
#define MODEL_NAME "Olympus m:robe MR-100" #define MODEL_NAME "Olympus m:robe MR-100"

View file

@ -132,11 +132,12 @@ void lcd_blit(const unsigned char* data, int x, int by, int width,
/* Performance function that works with an external buffer /* Performance function that works with an external buffer
note that by and bheight are in 4-pixel units! */ note that by and bheight are in 4-pixel units! */
void lcd_grey_phase_blit(const struct grey_data *data, int x, int by, void lcd_grey_phase_blit(unsigned char *values, unsigned char *phases,
int width, int bheight, int stride) int x, int by, int width, int bheight, int stride)
{ {
/* TODO: Implement lcd_grey_phase_blit() */ /* TODO: Implement lcd_grey_phase_blit() */
(void)data; (void)values;
(void)phases;
(void)x; (void)x;
(void)by; (void)by;
(void)width; (void)width;

View file

@ -37,19 +37,19 @@ void power_init(void)
bool charger_inserted(void) bool charger_inserted(void)
{ {
return false; return (GPIOB_INPUT_VAL & 0x02) ? false : true ;
} }
void ide_power_enable(bool on) void ide_power_enable(bool on)
{ {
(void)on; (void)on;
/* We do nothing on the iPod */ /* We do nothing */
} }
bool ide_powered(void) bool ide_powered(void)
{ {
/* pretend we are always powered - we don't turn it off on the ipod */ /* pretend we are always powered - we don't turn it off */
return true; return true;
} }

2
tools/configure vendored
View file

@ -1308,7 +1308,7 @@ EOF
appextra="recorder:gui" appextra="recorder:gui"
archosrom="" archosrom=""
flash="" flash=""
plugins="" plugins="yes"
swcodec="yes" swcodec="yes"
boottool="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL" boottool="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL"
bootoutput="pp5020.mi4" bootoutput="pp5020.mi4"