diff options
Diffstat (limited to 'firmware/target/arm/tms320dm320/creative-zvm/lcd-target.h')
-rw-r--r-- | firmware/target/arm/tms320dm320/creative-zvm/lcd-target.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/firmware/target/arm/tms320dm320/creative-zvm/lcd-target.h b/firmware/target/arm/tms320dm320/creative-zvm/lcd-target.h index 720aa0cf19..456f0e3cfe 100644 --- a/firmware/target/arm/tms320dm320/creative-zvm/lcd-target.h +++ b/firmware/target/arm/tms320dm320/creative-zvm/lcd-target.h | |||
@@ -19,12 +19,20 @@ | |||
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | 21 | ||
22 | #ifndef _LCD_TARGET_H_ | 22 | #ifndef LCD_TARGET_H |
23 | #define _LCD_TARGET_H_ | 23 | #define LCD_TARGET_H |
24 | |||
25 | extern void lcd_enable(bool state); | ||
26 | 24 | ||
27 | void lcd_set_direct_fb(bool yes); | 25 | void lcd_set_direct_fb(bool yes); |
28 | bool lcd_get_direct_fb(void); | 26 | bool lcd_get_direct_fb(void); |
29 | 27 | ||
30 | #endif | 28 | /* Direct FB access disables regular updates */ |
29 | #define lcd_write_enabled() \ | ||
30 | ({ lcd_on && !lcd_get_direct_fb(); }) | ||
31 | |||
32 | /* Very strange functions */ | ||
33 | #define LCD_OPTIMIZED_UPDATE | ||
34 | #define LCD_OPTIMIZED_UPDATE_RECT | ||
35 | |||
36 | #define LCD_FRAMEBUF_ADDR(col, row) ((fb_data *)FRAME + (row)*LCD_WIDTH + (col)) | ||
37 | |||
38 | #endif /* LCD_TARGET_H */ | ||