Samsung yp-s3: clean up the lcd and button driver (making things static, rename variables etc.)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22203 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2009-08-08 09:24:42 +00:00
parent 236a0582c3
commit c8e39403f4
2 changed files with 16 additions and 14 deletions

View file

@ -85,7 +85,7 @@ static void lcd_wcmd_data(unsigned int cmd, unsigned int data)
lcd_wdata(data);
}
void lcd_init1(void)
static void lcd_init1(void)
{
lcd_wcmd(0x11);
lcd_delay(10000);
@ -157,7 +157,7 @@ void lcd_init1(void)
lcd_wcmd(0x2C);
}
void lcd_init2(void)
static void lcd_init2(void)
{
lcd_wcmd_data(0x00, 0x0001);
lcd_delay(50000);
@ -234,7 +234,7 @@ void lcd_init2(void)
}
void lcd_set_window1(int x, int y, int width, int height)
static void lcd_set_window1(int x, int y, int width, int height)
{
(void)x;
(void)width;
@ -250,7 +250,7 @@ void lcd_set_window1(int x, int y, int width, int height)
lcd_wdata(0);
}
void lcd_set_window2(int x, int y, int width, int height)
static void lcd_set_window2(int x, int y, int width, int height)
{
lcd_wcmd_data(0x50, x);
lcd_wcmd_data(0x51, x + width - 1);