mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
Sansa Clip+: use 8 bits transfers, like DMA transfers
The code assumed LCD pixels were packed on 16 bits values but for the Clip we use 8 bits values. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24563 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ec39555290
commit
3f43765925
1 changed files with 0 additions and 2 deletions
|
|
@ -181,7 +181,6 @@ void lcd_write_data(const fb_data* p_bytes, int count)
|
||||||
{
|
{
|
||||||
GPIOB_PIN(2) = (1<<2);
|
GPIOB_PIN(2) = (1<<2);
|
||||||
|
|
||||||
SSP_CR0 = 0 | 15; /* Motorola SPI frame format, 16 bits */
|
|
||||||
while (count--)
|
while (count--)
|
||||||
{
|
{
|
||||||
while(SSP_SR & (1<<1)) /* Transmit FIFO is not full */
|
while(SSP_SR & (1<<1)) /* Transmit FIFO is not full */
|
||||||
|
|
@ -190,7 +189,6 @@ void lcd_write_data(const fb_data* p_bytes, int count)
|
||||||
while(!(SSP_SR & (1<<0))) /* Transmit FIFO is not empty */
|
while(!(SSP_SR & (1<<0))) /* Transmit FIFO is not empty */
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
SSP_CR0 = 0 | 7; /* Motorola SPI frame format, 8 bits */
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue