From 93fccc763b97323cb3112bf9afee819cd03ba195 Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Thu, 9 Apr 2009 04:22:14 +0000 Subject: M:Robe 500: More LCD initialization, QVGA (vs. VGA) is now enabled by default for performance, 256 color palette mode added, include some linker cleanups and reorganization. Doom and MPEGPlayer now run reaonably well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20664 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config-mrobe500.h | 37 +++++++++++++++++++------------------ firmware/export/lcd.h | 7 +++++++ 2 files changed, 26 insertions(+), 18 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/config-mrobe500.h b/firmware/export/config-mrobe500.h index fafea48a94..90bbefe329 100644 --- a/firmware/export/config-mrobe500.h +++ b/firmware/export/config-mrobe500.h @@ -59,24 +59,21 @@ /* LCD dimensions */ #define CONFIG_LCD LCD_MROBE500 -/* choose the lcd orientation. both work */ -/* #define CONFIG_ORIENTATION SCREEN_PORTRAIT */ -#define CONFIG_ORIENTATION SCREEN_PORTRAIT - -#if 1 -#define NATIVE_MAX_WIDTH 480 -#define NATIVE_MAX_HEIGHT 640 +#if 0 +#define LCD_NATIVE_WIDTH 480 +#define LCD_NATIVE_HEIGHT 640 #else -#define NATIVE_MAX_WIDTH 240 -#define NATIVE_MAX_HEIGHT 320 +#define LCD_NATIVE_WIDTH 240 +#define LCD_NATIVE_HEIGHT 320 #endif -#if CONFIG_ORIENTATION == SCREEN_PORTRAIT -#define LCD_WIDTH NATIVE_MAX_WIDTH -#define LCD_HEIGHT NATIVE_MAX_HEIGHT +/* choose the lcd orientation. CONFIG_ORIENTATION defined in config.h */ +#if 0 +#define LCD_WIDTH LCD_NATIVE_WIDTH +#define LCD_HEIGHT LCD_NATIVE_HEIGHT #else -#define LCD_WIDTH NATIVE_MAX_HEIGHT -#define LCD_HEIGHT NATIVE_MAX_WIDTH +#define LCD_WIDTH LCD_NATIVE_HEIGHT +#define LCD_HEIGHT LCD_NATIVE_WIDTH #endif #define LCD_DEPTH 16 /* 65k colours */ @@ -142,16 +139,20 @@ #define HW_SAMPR_CAPS SAMPR_CAP_44 -#define BATTERY_CAPACITY_DEFAULT 1100 /* default battery capacity */ -#define BATTERY_CAPACITY_MIN 500 /* min. capacity selectable */ -#define BATTERY_CAPACITY_MAX 2500 /* max. capacity selectable */ +#define BATTERY_CAPACITY_DEFAULT 1500 /* default battery capacity */ +#define BATTERY_CAPACITY_MIN 1000 /* min. capacity selectable */ +#define BATTERY_CAPACITY_MAX 2000 /* max. capacity selectable */ #define BATTERY_CAPACITY_INC 100 /* capacity increment */ #define BATTERY_TYPES_COUNT 1 /* only one type */ +/* define current usage levels */ +#define CURRENT_NORMAL 120 /* Measured */ +#define CURRENT_BACKLIGHT 80 /* Over 200 mA total measured when on */ +#define CURRENT_RECORD 0 /* no recording */ + /* Hardware controlled charging with monitoring */ #define CONFIG_CHARGING CHARGING_MONITOR - /* Define this if you have a Texas Instruments TSC2100 touch screen */ #define HAVE_TSC2100 diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 4f35927353..e52356b8bf 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -97,8 +97,15 @@ void lcd_set_mode(int mode); #define LCD_MODE_RGB565 0x00000001 #define LCD_MODE_YUV 0x00000002 #define LCD_MODE_PAL256 0x00000004 + +#if HAVE_LCD_MODES & LCD_MODE_PAL256 + void lcd_blit_pal256(unsigned char *src, int src_x, int src_y, int x, int y, + int width, int height); + void lcd_pal256_update_pal(fb_data *palette); +#endif #endif + /* common functions */ extern void lcd_write_command(int byte); extern void lcd_write_command_e(int cmd, int data); -- cgit v1.2.3