forked from len0rd/rockbox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21182 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d1b0ee9f04
commit
a0c4b8bffb
2 changed files with 7 additions and 0 deletions
|
@ -154,6 +154,9 @@ unsigned short button_read_dbop(void)
|
|||
DBOP_CTRL |= (1<<15); /* start read */
|
||||
while (!(DBOP_STAT & (1<<16))); /* wait for valid data */
|
||||
|
||||
int delay=10;
|
||||
while(delay--); /* short delay before reading */
|
||||
|
||||
_dbop_din = DBOP_DIN; /* Read dbop data*/
|
||||
|
||||
/* Reset dbop for output */
|
||||
|
|
|
@ -138,6 +138,10 @@ static void lcd_write_cmd(int cmd)
|
|||
/* Wait for fifo to empty */
|
||||
while ((DBOP_STAT & (1<<10)) == 0);
|
||||
|
||||
/* Fuze OF has this loop and it seems to help us now also */
|
||||
int delay=8;
|
||||
while(delay--);
|
||||
|
||||
DBOP_TIMPOL_23 = 0xa167e06f;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue