summaryrefslogtreecommitdiff
path: root/firmware/target/arm/gigabeat/meg-fx/lcd-meg-fx.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/gigabeat/meg-fx/lcd-meg-fx.c')
-rw-r--r--firmware/target/arm/gigabeat/meg-fx/lcd-meg-fx.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/firmware/target/arm/gigabeat/meg-fx/lcd-meg-fx.c b/firmware/target/arm/gigabeat/meg-fx/lcd-meg-fx.c
new file mode 100644
index 0000000000..5ec62271ad
--- /dev/null
+++ b/firmware/target/arm/gigabeat/meg-fx/lcd-meg-fx.c
@@ -0,0 +1,31 @@
1#include "config.h"
2#include "cpu.h"
3#include "lcd.h"
4#include "kernel.h"
5#include "system.h"
6
7void lcd_init_device(void);
8void lcd_update_rec(int, int, int, int);
9void lcd_update(void);
10
11/* LCD init */
12void lcd_init_device(void)
13{
14}
15
16/* Update a fraction of the display. */
17void lcd_update_rect(int x, int y, int width, int height)
18{
19 (void)x;
20 (void)y;
21 (void)width;
22 (void)height;
23 memcpy(FRAME, &lcd_framebuffer, sizeof(lcd_framebuffer));
24}
25
26/* Update the display.
27 This must be called after all other LCD functions that change the display. */
28void lcd_update(void)
29{
30 lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT);
31}