From a7f4e1f1c51c6f99d17eb25dbdd57a78af4cb0e1 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 29 Apr 2009 22:24:40 +0000 Subject: Simulate lcd_enable and lcd_sleep in the simulator. Therefore, turn backlight-sim.h into a .c too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20829 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config-h300.h | 5 ++--- firmware/export/config-ipodvideo.h | 7 ++++--- firmware/export/config-mrobe100.h | 17 +++++++++-------- 3 files changed, 15 insertions(+), 14 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/config-h300.h b/firmware/export/config-h300.h index ba09884957..e6e07e0bbc 100644 --- a/firmware/export/config-h300.h +++ b/firmware/export/config-h300.h @@ -76,6 +76,8 @@ #define HAVE_BACKLIGHT_BRIGHTNESS /* Which backlight fading type? */ #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_SW_HW_REG +/* Define this if your LCD can be enabled/disabled */ +#define HAVE_LCD_ENABLE /* Define this if you have a software controlled poweroff */ #define HAVE_SW_POWEROFF @@ -133,9 +135,6 @@ #ifndef SIMULATOR -/* Define this if your LCD can be enabled/disabled */ -#define HAVE_LCD_ENABLE - /* Define this if you have a Motorola SCF5249 */ #define CONFIG_CPU MCF5249 diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h index c9f97dcea5..6adcda9a1e 100644 --- a/firmware/export/config-ipodvideo.h +++ b/firmware/export/config-ipodvideo.h @@ -91,6 +91,10 @@ #define HAVE_BACKLIGHT #define HAVE_BACKLIGHT_BRIGHTNESS +/* Support for LCD sleep/BCM shutdown */ +#define HAVE_LCD_SLEEP +#define HAVE_LCD_SLEEP_SETTING + /* We can fade the backlight by using PWM */ #define CONFIG_BACKLIGHT_FADING BACKLIGHT_FADING_PWM @@ -208,9 +212,6 @@ #define HAVE_SERIAL #ifndef BOOTLOADER -/* Support for LCD sleep/BCM shutdown */ -#define HAVE_LCD_SLEEP -#define HAVE_LCD_SLEEP_SETTING /* The same code may also be used when shutting down the iPod */ #define HAVE_LCD_SHUTDOWN #endif diff --git a/firmware/export/config-mrobe100.h b/firmware/export/config-mrobe100.h index e440f7c9a0..b1299a820a 100644 --- a/firmware/export/config-mrobe100.h +++ b/firmware/export/config-mrobe100.h @@ -90,6 +90,15 @@ #define HAVE_BUTTONLIGHT_BRIGHTNESS +/* Define this if your LCD can be enabled/disabled */ +/* TODO: #define HAVE_LCD_ENABLE */ + +/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE + * should be defined as well. + * We can currently put the lcd to sleep but it won't wake up properly */ +/*TODO: #define HAVE_LCD_SLEEP*/ +/*TODO: #define HAVE_LCD_SLEEP_SETTING <= optional */ + #define BATTERY_CAPACITY_DEFAULT 720 /* default battery capacity */ #ifndef SIMULATOR @@ -132,14 +141,6 @@ #define MAX_CONTRAST_SETTING 40 #define DEFAULT_CONTRAST_SETTING 20 -/* Define this if your LCD can be enabled/disabled */ -/* TODO: #define HAVE_LCD_ENABLE */ - -/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE - * should be defined as well. - * We can currently put the lcd to sleep but it won't wake up properly */ -/*TODO: #define HAVE_LCD_SLEEP*/ -/*TODO: #define HAVE_LCD_SLEEP_SETTING <= optional */ /* We're able to shut off power to the HDD */ #define HAVE_ATA_POWER_OFF -- cgit v1.2.3