summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/lcd-16bit.c6
-rw-r--r--firmware/drivers/lcd-h300.c10
-rw-r--r--firmware/drivers/lcd-ipod.c4
3 files changed, 6 insertions, 14 deletions
diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c
index fb5e0ccbb8..9f698bbacd 100644
--- a/firmware/drivers/lcd-16bit.c
+++ b/firmware/drivers/lcd-16bit.c
@@ -63,6 +63,12 @@ static const char scroll_tick_table[16] = {
100, 80, 64, 50, 40, 32, 25, 20, 16, 12, 10, 8, 6, 5, 4, 3
};
+/* probably just a dummy */
+int lcd_default_contrast(void)
+{
+ return 28;
+}
+
/* LCD init */
void lcd_init(void)
{
diff --git a/firmware/drivers/lcd-h300.c b/firmware/drivers/lcd-h300.c
index 1e71da59a8..4edfe404b3 100644
--- a/firmware/drivers/lcd-h300.c
+++ b/firmware/drivers/lcd-h300.c
@@ -49,13 +49,6 @@ void lcd_write_data(const unsigned short* p_bytes, int count)
/*** hardware configuration ***/
-int lcd_default_contrast(void)
-{
- return 28;
-}
-
-#ifndef SIMULATOR
-
void lcd_set_contrast(int val)
{
(void)val;
@@ -84,10 +77,8 @@ void lcd_roll(int lines)
(void)lines;
}
-#endif /* !SIMULATOR */
/* LCD init */
-#ifndef SIMULATOR
void lcd_init_device(void)
{
/* GPO46 is LCD RESET */
@@ -216,4 +207,3 @@ void lcd_update_rect(int x, int y, int width, int height)
lcd_write_data ((unsigned short *)&lcd_framebuffer[y][x], width);
}
}
-#endif /* !SIMULATOR */
diff --git a/firmware/drivers/lcd-ipod.c b/firmware/drivers/lcd-ipod.c
index 69272ccccf..f7a21044bb 100644
--- a/firmware/drivers/lcd-ipod.c
+++ b/firmware/drivers/lcd-ipod.c
@@ -120,10 +120,6 @@ static void lcd_cmd_data(int cmd, int data)
}
/*** hardware configuration ***/
-int lcd_default_contrast(void)
-{
- return 28;
-}
void lcd_set_contrast(int val)
{