summaryrefslogtreecommitdiff
path: root/apps/settings.h
diff options
context:
space:
mode:
authorHristo Kovachev <bger@rockbox.org>2005-12-22 10:43:36 +0000
committerHristo Kovachev <bger@rockbox.org>2005-12-22 10:43:36 +0000
commit9b83c6c4bddca41411d31b8aab17ecc577b37eb4 (patch)
tree3311cff5a451e4462e02feffdfe4ddc610eeb6e5 /apps/settings.h
parent9d67765cae62e873c3d004bf9bcb68947f1568f6 (diff)
downloadrockbox-9b83c6c4bddca41411d31b8aab17ecc577b37eb4.zip
rockbox-9b83c6c4bddca41411d31b8aab17ecc577b37eb4.tar.gz
rockbox-9b83c6c4bddca41411d31b8aab17ecc577b37eb4.tar.bz2
rockbox-9b83c6c4bddca41411d31b8aab17ecc577b37eb4.tar.xz
Patch No 1387627 by Peter D'Hoye: Backlight Brightness setting for H300
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8280 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.h')
-rw-r--r--apps/settings.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/settings.h b/apps/settings.h
index 7378f1d..870d9ef 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -381,6 +381,10 @@ struct user_settings
#ifdef HAVE_REMOTE_LCD
unsigned char rwps_file[MAX_FILENAME+1]; /* last remote-wps */
#endif
+#ifdef HAVE_BACKLIGHT_BRIGHTNESS
+ int brightness; /* iriver h300: backlight PWM value: 2..15
+ (0 and 1 are black) */
+#endif
};
enum optiontype { INT, BOOL };
@@ -442,6 +446,11 @@ extern const char rec_base_directory[];
#endif
#define MIN_CONTRAST_SETTING 5
+#ifdef HAVE_BACKLIGHT_BRIGHTNESS
+#define MIN_BRIGHTNESS_SETTING 2
+#define MAX_BRIGHTNESS_SETTING 15
+#endif
+
/* argument bits for settings_load() */
#define SETTINGS_RTC 1 /* only the settings from the RTC nonvolatile RAM */
#define SETTINGS_HD 2 /* only the settings fron the disk sector */