summaryrefslogtreecommitdiff
path: root/firmware
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 /firmware
parentce2597550b646dfc6a31e2e0f13615a8618fac1e (diff)
Moved some time critical functions to internal RAM
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1509 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-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;
#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++)
{
@@ -771,6 +774,8 @@ void lcd_putsxy(int x, int y, unsigned char *str, int thisfont)
* 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)
{
unsigned char *dst;