diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2006-02-27 08:48:12 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2006-02-27 08:48:12 +0000 |
commit | 0bdf0c6342fe1529a1a2f7a9a5086d088f51bc19 (patch) | |
tree | 2384b1ae368201a53972b513dad5bddec0563d1c /firmware | |
parent | ef35080728cd8583d4b6249459a7c9e6b13f5b22 (diff) |
Slight optimization of the X5 LCD driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8856 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rwxr-xr-x | firmware/target/coldfire/iaudio/x5/lcd-x5.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/coldfire/iaudio/x5/lcd-x5.c b/firmware/target/coldfire/iaudio/x5/lcd-x5.c index 81ceee67e9..0ac9f5576e 100755 --- a/firmware/target/coldfire/iaudio/x5/lcd-x5.c +++ b/firmware/target/coldfire/iaudio/x5/lcd-x5.c @@ -39,7 +39,7 @@ static bool display_on=false; /* is the display turned on? */ #define R_WRITE_DATA_2_GRAM 0x22 /* Lookup tables for 16->18bit conversion */ -short low8to9[] = { +const short low8to9[] = { 0x000, 0x001, 0x002, 0x003, 0x004, 0x005, 0x006, 0x007, 0x010, 0x011, 0x012, 0x013, 0x014, 0x015, 0x016, 0x017, 0x020, 0x021, 0x022, 0x023, 0x024, 0x025, 0x026, 0x027, 0x030, 0x031, 0x032, 0x033, 0x034, 0x035, 0x036, 0x037, 0x040, @@ -64,8 +64,8 @@ short low8to9[] = { 0x1c7, 0x1d0, 0x1d1, 0x1d2, 0x1d3, 0x1d4, 0x1d5, 0x1d6, 0x1d7, 0x1e0, 0x1e1, 0x1e2, 0x1e3, 0x1e4, 0x1e5, 0x1e6, 0x1e7, 0x1f0, 0x1f1, 0x1f2, 0x1f3, 0x1f4, 0x1f5, 0x1f6, 0x1f7, -}; -short high8to9[] = { +} ICONST_ATTR; +const short high8to9[] = { 0x000, 0x002, 0x004, 0x006, 0x008, 0x00a, 0x00c, 0x00e, 0x010, 0x012, 0x014, 0x016, 0x018, 0x01a, 0x01c, 0x01e, 0x020, 0x022, 0x024, 0x026, 0x028, 0x02a, 0x02c, 0x02e, 0x030, 0x032, 0x034, 0x036, 0x038, 0x03a, 0x03c, 0x03e, 0x040, @@ -90,7 +90,7 @@ short high8to9[] = { 0x1ce, 0x1d0, 0x1d2, 0x1d4, 0x1d6, 0x1d8, 0x1da, 0x1dc, 0x1de, 0x1e0, 0x1e2, 0x1e4, 0x1e6, 0x1e8, 0x1ea, 0x1ec, 0x1ee, 0x1f0, 0x1f2, 0x1f4, 0x1f6, 0x1f8, 0x1fa, 0x1fc, 0x1fe, -}; +} ICONST_ATTR; /* called very frequently - inline! */ inline void lcd_write_reg(int reg, int val) |