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.tar.gz
rockbox-9b83c6c4bddca41411d31b8aab17ecc577b37eb4.zip
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 7378f1daeb..870d9efdd7 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -381,6 +381,10 @@ struct user_settings
381#ifdef HAVE_REMOTE_LCD 381#ifdef HAVE_REMOTE_LCD
382 unsigned char rwps_file[MAX_FILENAME+1]; /* last remote-wps */ 382 unsigned char rwps_file[MAX_FILENAME+1]; /* last remote-wps */
383#endif 383#endif
384#ifdef HAVE_BACKLIGHT_BRIGHTNESS
385 int brightness; /* iriver h300: backlight PWM value: 2..15
386 (0 and 1 are black) */
387#endif
384}; 388};
385 389
386enum optiontype { INT, BOOL }; 390enum optiontype { INT, BOOL };
@@ -442,6 +446,11 @@ extern const char rec_base_directory[];
442#endif 446#endif
443#define MIN_CONTRAST_SETTING 5 447#define MIN_CONTRAST_SETTING 5
444 448
449#ifdef HAVE_BACKLIGHT_BRIGHTNESS
450#define MIN_BRIGHTNESS_SETTING 2
451#define MAX_BRIGHTNESS_SETTING 15
452#endif
453
445/* argument bits for settings_load() */ 454/* argument bits for settings_load() */
446#define SETTINGS_RTC 1 /* only the settings from the RTC nonvolatile RAM */ 455#define SETTINGS_RTC 1 /* only the settings from the RTC nonvolatile RAM */
447#define SETTINGS_HD 2 /* only the settings fron the disk sector */ 456#define SETTINGS_HD 2 /* only the settings fron the disk sector */