mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Clipv2: fix grey lcd output
We can write to DBOP_DOUT in 8 bits mode : bits 7..0 are mapped to the LCD, not bits 15..12 and 3..0 like on Clipv1 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25455 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
27f29904ec
commit
e1a1df69fc
4 changed files with 110 additions and 5 deletions
|
|
@ -51,8 +51,7 @@ void lcd_write_command(int byte)
|
|||
DBOP_TIMPOL_23 = 0xE0370036;
|
||||
|
||||
/* Write command */
|
||||
/* Only bits 15:12 and 3:0 of DBOP_DOUT are meaningful */
|
||||
DBOP_DOUT = (byte << 8) | byte;
|
||||
DBOP_DOUT8 = byte;
|
||||
|
||||
/* While push fifo is not empty */
|
||||
while ((DBOP_STAT & (1<<10)) == 0)
|
||||
|
|
@ -72,8 +71,7 @@ void lcd_write_data(const fb_data* p_bytes, int count)
|
|||
while (count--)
|
||||
{
|
||||
/* Write pixels */
|
||||
/* Only bits 15:12 and 3:0 of DBOP_DOUT are meaningful */
|
||||
DBOP_DOUT = (*p_bytes << 8) | *p_bytes;
|
||||
DBOP_DOUT8 = *p_bytes;
|
||||
|
||||
p_bytes++; /* next packed pixels */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue