summaryrefslogtreecommitdiff
path: root/bootloader/main-pp.c
diff options
context:
space:
mode:
authorMark Arigo <markarigo@gmail.com>2008-01-09 07:24:43 +0000
committerMark Arigo <markarigo@gmail.com>2008-01-09 07:24:43 +0000
commite66ddd754fba4171e3fd99c5a1b911ed3f9faa3f (patch)
tree918000a401ae36817091cc4561573a5578f87ba5 /bootloader/main-pp.c
parentf59a327f674c36487ed04e6cf36369a622da7f40 (diff)
downloadrockbox-e66ddd754fba4171e3fd99c5a1b911ed3f9faa3f.tar.gz
rockbox-e66ddd754fba4171e3fd99c5a1b911ed3f9faa3f.zip
Initial commit for the Olympus m:robe 100 port (PP5020). The LCD driver works. The ADC driver was copied from the H10 port (they can probably be combined later), but the battery readings aren't right and it shuts down. The touch pad buttons do not work. Install the bootloader and rockbox the H10 way. Still lots of work to do.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16030 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/main-pp.c')
-rw-r--r--bootloader/main-pp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bootloader/main-pp.c b/bootloader/main-pp.c
index 3cf7691870..74c66233c0 100644
--- a/bootloader/main-pp.c
+++ b/bootloader/main-pp.c
@@ -54,6 +54,9 @@
54#elif CONFIG_KEYPAD == SANSA_C200_PAD 54#elif CONFIG_KEYPAD == SANSA_C200_PAD
55#define BOOTLOADER_BOOT_OF BUTTON_LEFT 55#define BOOTLOADER_BOOT_OF BUTTON_LEFT
56 56
57#elif CONFIG_KEYPAD == MROBE100_PAD
58#define BOOTLOADER_BOOT_OF BUTTON_LEFT
59
57#endif 60#endif
58 61
59/* Maximum allowed firmware image size. 10MB is more than enough */ 62/* Maximum allowed firmware image size. 10MB is more than enough */
@@ -444,8 +447,11 @@ void* main(void)
444 i2c_init(); 447 i2c_init();
445 _backlight_on(); 448 _backlight_on();
446#endif 449#endif
450
451#if LCD_DEPTH > 1
447 lcd_set_foreground(LCD_WHITE); 452 lcd_set_foreground(LCD_WHITE);
448 lcd_set_background(LCD_BLACK); 453 lcd_set_background(LCD_BLACK);
454#endif
449 lcd_clear_display(); 455 lcd_clear_display();
450 456
451 if (button_hold()) 457 if (button_hold())