mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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:
parent
8956f2b7f5
commit
3648e87054
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue