summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-08-01 13:09:38 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-08-01 13:09:38 +0000
commit7769ad2982ce958e0c3df66cd3011c0c6aa6221e (patch)
tree6d99a4773165410dfc02355a688c57c312e20bc5
parentce2597550b646dfc6a31e2e0f13615a8618fac1e (diff)
downloadrockbox-7769ad2982ce958e0c3df66cd3011c0c6aa6221e.tar.gz
rockbox-7769ad2982ce958e0c3df66cd3011c0c6aa6221e.zip
Moved some time critical functions to internal RAM
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1509 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/lcd.c7
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
177static void lcd_write(bool command, int byte) __attribute__ ((section (".icode")));
177static void lcd_write(bool command, int byte) 178static 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 */
580void lcd_update (void) __attribute__ ((section (".icode")));
579void lcd_update (void) 581void 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 */
773void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny, 776void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny,
777 bool clear) __attribute__ ((section (".icode")));
778void 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;