Add small delays before lcd_write_data() and lcd_write_command(). This seems to be needed on some clips (i.e. mine)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19354 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Frank Gevaerts 2008-12-06 16:39:49 +00:00
parent 8956f2b7f5
commit 3648e87054

View file

@ -82,6 +82,8 @@ static void ams3525_dbop_init(void)
void lcd_write_command(int byte)
{
volatile int i = 0;
while(i<1) i++;
/* unset D/C# (data or command) */
GPIOA_PIN(5) = 0;
@ -96,6 +98,8 @@ void lcd_write_command(int byte)
void lcd_write_data(const fb_data* p_bytes, int count)
{
volatile int i = 0;
while(i<1) i++;
/* set D/C# (data or command) */
GPIOA_PIN(5) = (1<<5);