From 7769ad2982ce958e0c3df66cd3011c0c6aa6221e Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 1 Aug 2002 13:09:38 +0000 Subject: Moved some time critical functions to internal RAM git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1509 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/lcd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'firmware/drivers/lcd.c') 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; #define ASM_IMPLEMENTATION +static void lcd_write(bool command, int byte) __attribute__ ((section (".icode"))); static void lcd_write(bool command, int byte) #ifdef ASM_IMPLEMENTATION @@ -574,11 +575,13 @@ void lcd_init (void) /* * Update the display. - * This must be called after all other LCD funtions that change the display. + * This must be called after all other LCD functions that change the display. */ +void lcd_update (void) __attribute__ ((section (".icode"))); void lcd_update (void) { int x, y; + /* Copy display bitmap to hardware */ for (y = 0; y < LCD_HEIGHT/8; y++) { @@ -770,6 +773,8 @@ void lcd_putsxy(int x, int y, unsigned char *str, int thisfont) * Display a bitmap at (x, y), size (nx, ny) * clear is true to clear destination area first */ +void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny, + bool clear) __attribute__ ((section (".icode"))); void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny, bool clear) { -- cgit v1.2.3