summaryrefslogtreecommitdiff
path: root/apps/settings.h
diff options
context:
space:
mode:
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 */