diff options
author | Rani Hod <raenye@gmail.com> | 2006-08-08 22:03:56 +0000 |
---|---|---|
committer | Rani Hod <raenye@gmail.com> | 2006-08-08 22:03:56 +0000 |
commit | c9f59e6f75bcfa25a563fedd77bfa77b3617f133 (patch) | |
tree | ceff51afb679acb2935ed18072384819abf4281e /firmware/export/lcd.h | |
parent | f8866a3a9c3a12b72e87ae96445eca1b52ed23fb (diff) | |
download | rockbox-c9f59e6f75bcfa25a563fedd77bfa77b3617f133.tar.gz rockbox-c9f59e6f75bcfa25a563fedd77bfa77b3617f133.zip |
Accepted FS #5772 by Michael Sevakis
1. X5 lcd sleep
2. #define HAVE_LCD_ENABLE
3. add "backlight (on hold switch)" setting, adapted from FS #5735
Note that the while(1) yield ==> asm("halt") part is NOT commited here,
I prefer it would be discussed separately.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10489 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/lcd.h')
-rw-r--r-- | firmware/export/lcd.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index c3ad4f97d9..5c362c2b53 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h | |||
@@ -227,10 +227,17 @@ extern fb_data lcd_framebuffer[LCD_HEIGHT][LCD_WIDTH]; | |||
227 | #define LCD_FBWIDTH LCD_WIDTH | 227 | #define LCD_FBWIDTH LCD_WIDTH |
228 | #endif | 228 | #endif |
229 | 229 | ||
230 | #if (CONFIG_BACKLIGHT==BL_IRIVER_H300) || (CONFIG_BACKLIGHT==BL_IPOD3G) | 230 | /** Port-specific functions. Enable in port config file. **/ |
231 | #ifdef HAVE_LCD_ENABLE | ||
232 | /* Enable/disable the main display. */ | ||
231 | extern void lcd_enable(bool on); | 233 | extern void lcd_enable(bool on); |
232 | #endif | 234 | #endif |
233 | 235 | ||
236 | #ifdef HAVE_LCD_SLEEP | ||
237 | /* Put the LCD into a power saving state deeper than lcd_enable(false). */ | ||
238 | extern void lcd_sleep(void); | ||
239 | #endif | ||
240 | |||
234 | /* Bitmap formats */ | 241 | /* Bitmap formats */ |
235 | enum | 242 | enum |
236 | { | 243 | { |