diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/events.h | 1 | ||||
-rw-r--r-- | firmware/export/lcd.h | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/firmware/export/events.h b/firmware/export/events.h index 694566a43e..42ddf58441 100644 --- a/firmware/export/events.h +++ b/firmware/export/events.h | |||
@@ -37,6 +37,7 @@ | |||
37 | #define EVENT_CLASS_PLAYBACK 0x0200 | 37 | #define EVENT_CLASS_PLAYBACK 0x0200 |
38 | #define EVENT_CLASS_BUFFERING 0x0400 | 38 | #define EVENT_CLASS_BUFFERING 0x0400 |
39 | #define EVENT_CLASS_GUI 0x0800 | 39 | #define EVENT_CLASS_GUI 0x0800 |
40 | #define EVENT_CLASS_LCD 0xf000 | ||
40 | 41 | ||
41 | bool add_event(unsigned short id, bool oneshot, void (*handler)(void *data)); | 42 | bool add_event(unsigned short id, bool oneshot, void (*handler)(void *data)); |
42 | void remove_event(unsigned short id, void (*handler)(void *data)); | 43 | void remove_event(unsigned short id, void (*handler)(void *data)); |
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 91217ff76c..89f39437a0 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <stdbool.h> | 25 | #include <stdbool.h> |
26 | #include "cpu.h" | 26 | #include "cpu.h" |
27 | #include "config.h" | 27 | #include "config.h" |
28 | #include "events.h" | ||
28 | 29 | ||
29 | #define VP_FLAG_ALIGN_RIGHT 0x01 | 30 | #define VP_FLAG_ALIGN_RIGHT 0x01 |
30 | #define VP_FLAG_ALIGN_CENTER 0x02 | 31 | #define VP_FLAG_ALIGN_CENTER 0x02 |
@@ -426,13 +427,16 @@ extern void lcd_sleep(void); | |||
426 | * framebuffer data is synchronized */ | 427 | * framebuffer data is synchronized */ |
427 | /* Sansa Clip has these function in it's lcd driver, since it's the only | 428 | /* Sansa Clip has these function in it's lcd driver, since it's the only |
428 | * 1-bit display featuring lcd_active, so far */ | 429 | * 1-bit display featuring lcd_active, so far */ |
430 | |||
431 | enum { | ||
432 | LCD_EVENT_ACTIVATION = (EVENT_CLASS_LCD|1), | ||
433 | }; | ||
434 | |||
429 | extern bool lcd_active(void); | 435 | extern bool lcd_active(void); |
430 | extern void lcd_activation_set_hook(void (*enable_hook)(void)); | ||
431 | extern void lcd_activation_call_hook(void); | ||
432 | #endif | 436 | #endif |
433 | 437 | ||
434 | #ifdef HAVE_LCD_SHUTDOWN | 438 | #ifdef HAVE_LCD_SHUTDOWN |
435 | void lcd_shutdown(void); | 439 | extern void lcd_shutdown(void); |
436 | #endif | 440 | #endif |
437 | 441 | ||
438 | /* Bitmap formats */ | 442 | /* Bitmap formats */ |