summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/lcd-1bit-vert.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-1bit-vert.c b/firmware/drivers/lcd-1bit-vert.c
index f8461e3..b09ce0e 100644
--- a/firmware/drivers/lcd-1bit-vert.c
+++ b/firmware/drivers/lcd-1bit-vert.c
@@ -95,6 +95,25 @@ void LCDFN(init)(void)
#endif
}
+#ifdef MAIN_LCD
+#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
+static void (*lcd_activation_hook)(void) = NULL;
+
+void lcd_activation_set_hook(void (*func)(void))
+{
+ lcd_activation_hook = func;
+}
+
+void lcd_activation_call_hook(void)
+{
+ void (*func)(void) = lcd_activation_hook;
+
+ if (func != NULL)
+ func();
+}
+#endif
+#endif
+
/*** parameter handling ***/
void LCDFN(set_drawmode)(int mode)