diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/lcd-1bit-vert.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-1bit-vert.c b/firmware/drivers/lcd-1bit-vert.c index f8461e3cbd..b09ce0e76d 100644 --- a/firmware/drivers/lcd-1bit-vert.c +++ b/firmware/drivers/lcd-1bit-vert.c | |||
@@ -95,6 +95,25 @@ void LCDFN(init)(void) | |||
95 | #endif | 95 | #endif |
96 | } | 96 | } |
97 | 97 | ||
98 | #ifdef MAIN_LCD | ||
99 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | ||
100 | static void (*lcd_activation_hook)(void) = NULL; | ||
101 | |||
102 | void lcd_activation_set_hook(void (*func)(void)) | ||
103 | { | ||
104 | lcd_activation_hook = func; | ||
105 | } | ||
106 | |||
107 | void lcd_activation_call_hook(void) | ||
108 | { | ||
109 | void (*func)(void) = lcd_activation_hook; | ||
110 | |||
111 | if (func != NULL) | ||
112 | func(); | ||
113 | } | ||
114 | #endif | ||
115 | #endif | ||
116 | |||
98 | /*** parameter handling ***/ | 117 | /*** parameter handling ***/ |
99 | 118 | ||
100 | void LCDFN(set_drawmode)(int mode) | 119 | void LCDFN(set_drawmode)(int mode) |