diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/lcd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c index 058ba1dedf..5a08b55930 100644 --- a/firmware/drivers/lcd.c +++ b/firmware/drivers/lcd.c | |||
@@ -174,6 +174,7 @@ static int scroll_count = 0; | |||
174 | 174 | ||
175 | #define ASM_IMPLEMENTATION | 175 | #define ASM_IMPLEMENTATION |
176 | 176 | ||
177 | static void lcd_write(bool command, int byte) __attribute__ ((section (".icode"))); | ||
177 | static void lcd_write(bool command, int byte) | 178 | static void lcd_write(bool command, int byte) |
178 | 179 | ||
179 | #ifdef ASM_IMPLEMENTATION | 180 | #ifdef ASM_IMPLEMENTATION |
@@ -574,11 +575,13 @@ void lcd_init (void) | |||
574 | 575 | ||
575 | /* | 576 | /* |
576 | * Update the display. | 577 | * Update the display. |
577 | * This must be called after all other LCD funtions that change the display. | 578 | * This must be called after all other LCD functions that change the display. |
578 | */ | 579 | */ |
580 | void lcd_update (void) __attribute__ ((section (".icode"))); | ||
579 | void lcd_update (void) | 581 | void lcd_update (void) |
580 | { | 582 | { |
581 | int x, y; | 583 | int x, y; |
584 | |||
582 | /* Copy display bitmap to hardware */ | 585 | /* Copy display bitmap to hardware */ |
583 | for (y = 0; y < LCD_HEIGHT/8; y++) | 586 | for (y = 0; y < LCD_HEIGHT/8; y++) |
584 | { | 587 | { |
@@ -771,6 +774,8 @@ void lcd_putsxy(int x, int y, unsigned char *str, int thisfont) | |||
771 | * clear is true to clear destination area first | 774 | * clear is true to clear destination area first |
772 | */ | 775 | */ |
773 | void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny, | 776 | void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny, |
777 | bool clear) __attribute__ ((section (".icode"))); | ||
778 | void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny, | ||
774 | bool clear) | 779 | bool clear) |
775 | { | 780 | { |
776 | unsigned char *dst; | 781 | unsigned char *dst; |