diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/lcd-h100-remote.c | 26 | ||||
-rw-r--r-- | firmware/drivers/lcd-h100.c | 18 | ||||
-rw-r--r-- | firmware/drivers/lcd-h300.c | 13 | ||||
-rw-r--r-- | firmware/drivers/lcd-ipod.c | 26 | ||||
-rw-r--r-- | firmware/drivers/lcd-ipodvideo.c | 13 | ||||
-rw-r--r-- | firmware/drivers/lcd-recorder.c | 12 |
6 files changed, 0 insertions, 108 deletions
diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c index df735ca40d..a6d584c3fb 100644 --- a/firmware/drivers/lcd-h100-remote.c +++ b/firmware/drivers/lcd-h100-remote.c @@ -100,7 +100,6 @@ static bool remote_initialized = false; static bool cached_invert = false; static bool cached_flip = false; static int cached_contrast = 32; -static int cached_roll = 0; #endif /* scrolling */ @@ -393,30 +392,6 @@ void lcd_remote_set_flip(bool yesno) } } -/* Rolls up the lcd display by the specified amount of lines. - * Lines that are rolled out over the top of the screen are - * rolled in from the bottom again. This is a hardware - * remapping only and all operations on the lcd are affected. - * -> - * @param int lines - The number of lines that are rolled. - * The value must be 0 <= pixels < LCD_REMOTE_HEIGHT. */ -void lcd_remote_roll(int lines) -{ - char data[2]; - - cached_roll = lines; - - if (remote_initialized) - { - lines &= LCD_REMOTE_HEIGHT-1; - data[0] = lines & 0xff; - data[1] = lines >> 8; - - lcd_remote_write_command(LCD_REMOTE_CNTL_INIT_LINE | 0x0); // init line - lcd_remote_write_data(data, 2); - } -} - /* The actual LCD init */ static void remote_lcd_init(void) { @@ -443,7 +418,6 @@ static void remote_lcd_init(void) lcd_remote_set_flip(cached_flip); lcd_remote_set_contrast(cached_contrast); lcd_remote_set_invert_display(cached_invert); - lcd_remote_roll(cached_roll); } static int _remote_type = 0; diff --git a/firmware/drivers/lcd-h100.c b/firmware/drivers/lcd-h100.c index 7b67ad023c..1d80458679 100644 --- a/firmware/drivers/lcd-h100.c +++ b/firmware/drivers/lcd-h100.c @@ -136,19 +136,6 @@ void lcd_set_flip(bool yesno) } } -/* Rolls up the lcd display by the specified amount of lines. - * Lines that are rolled out over the top of the screen are - * rolled in from the bottom again. This is a hardware - * remapping only and all operations on the lcd are affected. - * -> - * @param int lines - The number of lines that are rolled. - * The value must be 0 <= pixels < LCD_HEIGHT. */ -void lcd_roll(int lines) -{ - lines &= LCD_HEIGHT-1; - lcd_write_command_ex(LCD_CNTL_DISPLAY_START_LINE, lines, -1); -} - #endif /* !SIMULATOR */ /* LCD init */ @@ -163,8 +150,6 @@ void lcd_init(void) void lcd_init(void) { - static unsigned char area_data[4] = { 0x01, 0x00, 0x7f, 0x80 }; - /* GPO35 is the LCD A0 pin GPO46 is LCD RESET */ or_l(0x00004008, &GPIO1_OUT); @@ -198,9 +183,6 @@ void lcd_init(void) sleep(HZ/10); /* 100 ms pause */ lcd_write_command_ex(LCD_CNTL_POWER_CONTROL, 0x17, -1); - lcd_write_command(LCD_CNTL_AREA_SCROLL); - lcd_write_data(area_data, sizeof(area_data)); - lcd_write_command_ex(LCD_CNTL_DISPLAY_START_LINE, 0, -1); lcd_write_command_ex(LCD_CNTL_GRAY_SCALE_PATTERN, 0x42, -1); lcd_write_command_ex(LCD_CNTL_DISPLAY_MODE, 0, -1); /* Greyscale mode */ diff --git a/firmware/drivers/lcd-h300.c b/firmware/drivers/lcd-h300.c index 8ee6b1c47e..046bd3a9cb 100644 --- a/firmware/drivers/lcd-h300.c +++ b/firmware/drivers/lcd-h300.c @@ -107,19 +107,6 @@ void lcd_set_flip(bool yesno) (void)yesno; } -/* Rolls up the lcd display by the specified amount of lines. - * Lines that are rolled out over the top of the screen are - * rolled in from the bottom again. This is a hardware - * remapping only and all operations on the lcd are affected. - * -> - * @param int lines - The number of lines that are rolled. - * The value must be 0 <= pixels < LCD_HEIGHT. */ -void lcd_roll(int lines) -{ - (void)lines; -} - - /* LCD init */ void lcd_init_device(void) { diff --git a/firmware/drivers/lcd-ipod.c b/firmware/drivers/lcd-ipod.c index 4df47f9f20..2d190d3d70 100644 --- a/firmware/drivers/lcd-ipod.c +++ b/firmware/drivers/lcd-ipod.c @@ -141,19 +141,6 @@ void lcd_blit(const unsigned char* data, int x, int by, int width, (void)stride; } -/* Rolls up the lcd display by the specified amount of lines. - * Lines that are rolled out over the top of the screen are - * rolled in from the bottom again. This is a hardware - * remapping only and all operations on the lcd are affected. - * -> - * @param int lines - The number of lines that are rolled. - * The value must be 0 <= pixels < LCD_HEIGHT. */ -void lcd_roll(int lines) -{ - /* TODO Implement lcd_roll() */ - lines &= LCD_HEIGHT-1; -} - /*** hardware configuration ***/ /* Update the display. @@ -314,19 +301,6 @@ void lcd_set_flip(bool yesno) (void)yesno; } -/* Rolls up the lcd display by the specified amount of lines. - * Lines that are rolled out over the top of the screen are - * rolled in from the bottom again. This is a hardware - * remapping only and all operations on the lcd are affected. - * -> - * @param int lines - The number of lines that are rolled. - * The value must be 0 <= pixels < LCD_HEIGHT. */ -void lcd_roll(int lines) -{ - /* TODO: Implement lcd_roll() */ - lines &= LCD_HEIGHT-1; -} - /* LCD init */ void lcd_init_device(void) { diff --git a/firmware/drivers/lcd-ipodvideo.c b/firmware/drivers/lcd-ipodvideo.c index 066616959e..84b830377e 100644 --- a/firmware/drivers/lcd-ipodvideo.c +++ b/firmware/drivers/lcd-ipodvideo.c @@ -50,19 +50,6 @@ void lcd_set_flip(bool yesno) (void)yesno; } -/* Rolls up the lcd display by the specified amount of lines. - * Lines that are rolled out over the top of the screen are - * rolled in from the bottom again. This is a hardware - * remapping only and all operations on the lcd are affected. - * -> - * @param int lines - The number of lines that are rolled. - * The value must be 0 <= pixels < LCD_HEIGHT. */ -void lcd_roll(int lines) -{ - /* TODO: Implement lcd_roll() */ - lines &= LCD_HEIGHT-1; -} - /* LCD init */ void lcd_init_device(void) { diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c index 22388815ae..7a44acf590 100644 --- a/firmware/drivers/lcd-recorder.c +++ b/firmware/drivers/lcd-recorder.c @@ -226,18 +226,6 @@ void lcd_set_flip(bool yesno) #endif } -/* Rolls up the lcd display by the specified amount of lines. - * Lines that are rolled out over the top of the screen are - * rolled in from the bottom again. This is a hardware - * remapping only and all operations on the lcd are affected. - * -> - * @param int lines - The number of lines that are rolled. - * The value must be 0 <= pixels < LCD_HEIGHT. */ -void lcd_roll(int lines) -{ - lcd_write_command(LCD_SET_DISPLAY_START_LINE | (lines & (LCD_HEIGHT-1))); -} - #endif /* !SIMULATOR */ /* LCD init */ |