diff options
| author | Thom Johansen <thomj@rockbox.org> | 2006-03-19 17:42:58 +0000 |
|---|---|---|
| committer | Thom Johansen <thomj@rockbox.org> | 2006-03-19 17:42:58 +0000 |
| commit | 3c7278f405acd1dce7393cd589fbe002f51bad3b (patch) | |
| tree | 027b12d8f8c10af9d6bdd9f6dc31e3413c175a5c /firmware/export | |
| parent | ea4ccb5abab7f3a775b0c1fee1a50a8840b09d47 (diff) | |
| download | rockbox-3c7278f405acd1dce7393cd589fbe002f51bad3b.zip rockbox-3c7278f405acd1dce7393cd589fbe002f51bad3b.tar.gz rockbox-3c7278f405acd1dce7393cd589fbe002f51bad3b.tar.bz2 rockbox-3c7278f405acd1dce7393cd589fbe002f51bad3b.tar.xz | |
Reworked backlight fading by GPIO based PWM to work for other targets
than H1x0. iPod Nano and 5G backlight fading is enabled. To try for your
device, just define HAVE_BACKLIGHT_PWM_FADING in the relevant
config-xxxx.h file. NOTE: Will break your settings, so save a config
file first.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9121 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/backlight.h | 2 | ||||
| -rw-r--r-- | firmware/export/config-h100.h | 3 | ||||
| -rw-r--r-- | firmware/export/config-h120.h | 3 | ||||
| -rw-r--r-- | firmware/export/config-ipodnano.h | 3 | ||||
| -rw-r--r-- | firmware/export/config-ipodvideo.h | 3 |
5 files changed, 13 insertions, 1 deletions
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h index 05d395f..e182803 100644 --- a/firmware/export/backlight.h +++ b/firmware/export/backlight.h @@ -27,7 +27,7 @@ void backlight_set_timeout(int index); #ifdef CONFIG_BACKLIGHT void backlight_init(void); int backlight_get_current_timeout(void); -#if CONFIG_BACKLIGHT == BL_IRIVER_H100 +#ifdef HAVE_BACKLIGHT_PWM_FADING void backlight_set_fade_in(int index); void backlight_set_fade_out(int index); #endif diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h index bdbcce7..bc89689 100644 --- a/firmware/export/config-h100.h +++ b/firmware/export/config-h100.h @@ -40,6 +40,9 @@ /* Define this for LCD backlight available */ #define CONFIG_BACKLIGHT BL_IRIVER_H100 /* port controlled */ +/* We can fade the backlight by using PWM */ +#define HAVE_BACKLIGHT_PWM_FADING + /* Define this if you have a software controlled poweroff */ #define HAVE_SW_POWEROFF diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h index aea6011..bbfa942 100644 --- a/firmware/export/config-h120.h +++ b/firmware/export/config-h120.h @@ -36,6 +36,9 @@ /* Define this for LCD backlight available */ #define CONFIG_BACKLIGHT BL_IRIVER_H100 /* port controlled */ +/* We can fade the backlight by using PWM */ +#define HAVE_BACKLIGHT_PWM_FADING + /* Define this if you have a software controlled poweroff */ #define HAVE_SW_POWEROFF diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h index 6bcbffb..142fb272 100644 --- a/firmware/export/config-ipodnano.h +++ b/firmware/export/config-ipodnano.h @@ -48,6 +48,9 @@ /* Define this for LCD backlight available */ #define CONFIG_BACKLIGHT BL_IPODNANO /* port controlled */ +/* We can fade the backlight by using PWM */ +#define HAVE_BACKLIGHT_PWM_FADING + #ifndef SIMULATOR /* The Nano actually has a PP5021 - but it's register compatible with diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h index 6ea9fce..9536cc8 100644 --- a/firmware/export/config-ipodvideo.h +++ b/firmware/export/config-ipodvideo.h @@ -48,6 +48,9 @@ /* Define this for LCD backlight available */ #define CONFIG_BACKLIGHT BL_IPODNANO /* port controlled */ +/* We can fade the backlight by using PWM */ +#define HAVE_BACKLIGHT_PWM_FADING + #ifndef SIMULATOR /* The Nano actually has a PP5021 - but it's register compatible with |