summaryrefslogtreecommitdiff
path: root/firmware/export/lcd.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-03-17 02:43:47 +0000
committerThomas Martitz <kugel@rockbox.org>2009-03-17 02:43:47 +0000
commitb7739fbf1c838cb6e6e47f9d28d5b339828e1e30 (patch)
treef4011d6a14cd93fae2002eeccdd63e039ab44f7e /firmware/export/lcd.h
parentaad712d39f3cdeb95a22e56edb805554dd0a90e1 (diff)
downloadrockbox-b7739fbf1c838cb6e6e47f9d28d5b339828e1e30.tar.gz
rockbox-b7739fbf1c838cb6e6e47f9d28d5b339828e1e30.zip
Rework lcd_enabled and lcd_set/call_enable hook
a) lcd_enabled() is now lcd_active(), and is available for HAVE_LCD_SLEEP only targets (e.g. ipod video) too. It was depandent on HAVE_LCD_ENALE only before b) rename the hook accordingly, and implement the hook for other other targets too (e.g. the clip [the only mono target with lcd_enable/lcd_sleep yet, so the code is still in the lcd driver], ipod, fuze, c200) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20331 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/lcd.h')
-rw-r--r--firmware/export/lcd.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index e435d174f2..e34fac5d31 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -341,21 +341,21 @@ void lcd_poweroff(void);
341#ifdef HAVE_LCD_ENABLE 341#ifdef HAVE_LCD_ENABLE
342/* Enable/disable the main display. */ 342/* Enable/disable the main display. */
343extern void lcd_enable(bool on); 343extern void lcd_enable(bool on);
344extern bool lcd_enabled(void);
345
346#ifdef HAVE_LCD_COLOR
347/* Register a hook that is called when the lcd is powered and after the
348 * framebuffer data is synchronized */
349void lcd_set_enable_hook(void (*enable_hook)(void));
350#endif /* HAVE_LCD_COLOR */
351
352#endif /* HAVE_LCD_ENABLE */ 344#endif /* HAVE_LCD_ENABLE */
353void lcd_call_enable_hook(void);
354 345
355#ifdef HAVE_LCD_SLEEP 346#ifdef HAVE_LCD_SLEEP
356/* Put the LCD into a power saving state deeper than lcd_enable(false). */ 347/* Put the LCD into a power saving state deeper than lcd_enable(false). */
357extern void lcd_sleep(void); 348extern void lcd_sleep(void);
358#endif /* HAVE_LCD_SLEEP */ 349#endif /* HAVE_LCD_SLEEP */
350#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
351/* Register a hook that is called when the lcd is powered and after the
352 * framebuffer data is synchronized */
353/* Sansa Clip has these function in it's lcd driver, since it's the only
354 * 1-bit display featuring lcd_active, so far */
355extern bool lcd_active(void);
356extern void lcd_activation_set_hook(void (*enable_hook)(void));
357extern void lcd_activation_call_hook(void);
358#endif
359 359
360#ifdef HAVE_LCD_SHUTDOWN 360#ifdef HAVE_LCD_SHUTDOWN
361void lcd_shutdown(void); 361void lcd_shutdown(void);