diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/lcd.c | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c index 5b8303114c..f82ceb44a1 100644 --- a/firmware/drivers/lcd.c +++ b/firmware/drivers/lcd.c | |||
@@ -100,6 +100,23 @@ | |||
100 | 100 | ||
101 | /*** generic code ***/ | 101 | /*** generic code ***/ |
102 | 102 | ||
103 | struct scrollinfo { | ||
104 | char text[128]; | ||
105 | int textlen; | ||
106 | char offset; | ||
107 | char xpos; | ||
108 | char startx; | ||
109 | char starty; | ||
110 | char space; | ||
111 | }; | ||
112 | |||
113 | static void scroll_thread(void); | ||
114 | static char scroll_stack[0x100]; | ||
115 | static char scroll_speed = 10; /* updates per second */ | ||
116 | |||
117 | static struct scrollinfo scroll; /* only one scroll line at the moment */ | ||
118 | static bool run_scroll = false; | ||
119 | |||
103 | #ifndef SIMULATOR | 120 | #ifndef SIMULATOR |
104 | /* | 121 | /* |
105 | * About /CS,DS,SC,SD | 122 | * About /CS,DS,SC,SD |
@@ -746,24 +763,6 @@ void lcd_getfontsize(unsigned int font, int *width, int *height) | |||
746 | /* no LCD defined, no code to use */ | 763 | /* no LCD defined, no code to use */ |
747 | #endif | 764 | #endif |
748 | 765 | ||
749 | |||
750 | struct scrollinfo { | ||
751 | char text[128]; | ||
752 | int textlen; | ||
753 | char offset; | ||
754 | char xpos; | ||
755 | char startx; | ||
756 | char starty; | ||
757 | char space; | ||
758 | }; | ||
759 | |||
760 | static void scroll_thread(void); | ||
761 | static char scroll_stack[0x100]; | ||
762 | static char scroll_speed = 10; /* updates per second */ | ||
763 | |||
764 | static struct scrollinfo scroll; /* only one scroll line at the moment */ | ||
765 | static bool run_scroll = false; | ||
766 | |||
767 | void lcd_puts_scroll(int x, int y, char* string ) | 766 | void lcd_puts_scroll(int x, int y, char* string ) |
768 | { | 767 | { |
769 | struct scrollinfo* s = &scroll; | 768 | struct scrollinfo* s = &scroll; |