1
0
Fork 0
forked from len0rd/rockbox

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21182 a1c6a512-1295-4272-9138-f99709370657

This commit is contained in:
Jack Halpin 2009-06-03 13:11:21 +00:00
parent d1b0ee9f04
commit a0c4b8bffb
2 changed files with 7 additions and 0 deletions

View file

@ -154,6 +154,9 @@ unsigned short button_read_dbop(void)
DBOP_CTRL |= (1<<15); /* start read */ DBOP_CTRL |= (1<<15); /* start read */
while (!(DBOP_STAT & (1<<16))); /* wait for valid data */ 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*/ _dbop_din = DBOP_DIN; /* Read dbop data*/
/* Reset dbop for output */ /* Reset dbop for output */

View file

@ -138,6 +138,10 @@ static void lcd_write_cmd(int cmd)
/* Wait for fifo to empty */ /* Wait for fifo to empty */
while ((DBOP_STAT & (1<<10)) == 0); 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; DBOP_TIMPOL_23 = 0xa167e06f;
} }