mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Clip+: LCD display (with FlynDice help)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24729 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d3d29edbf3
commit
020322665b
1 changed files with 5 additions and 8 deletions
|
|
@ -183,11 +183,10 @@ void lcd_write_data(const fb_data* p_bytes, int count)
|
|||
|
||||
while (count--)
|
||||
{
|
||||
while(SSP_SR & (1<<1)) /* Transmit FIFO is not full */
|
||||
SSP_DATA = *p_bytes++;
|
||||
|
||||
while(!(SSP_SR & (1<<0))) /* Transmit FIFO is not empty */
|
||||
while(!(SSP_SR & (1<<1))) /* wait until transmit FIFO is not full */
|
||||
;
|
||||
|
||||
SSP_DATA = *p_bytes++;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
@ -289,10 +288,8 @@ void lcd_init_device(void)
|
|||
#elif defined(SANSA_CLIPPLUS)
|
||||
GPIOA_DIR |= (1<<5);
|
||||
GPIOB_DIR |= (1<<2) | (1<<7);
|
||||
GPIOA_PIN(5) = 0;
|
||||
GPIOA_DIR &= (1<<0);
|
||||
GPIOA_PIN(0) = (1<<0);
|
||||
GPIOB_PIN(7) = (1<<7);
|
||||
GPIOB_PIN(7) = 0;
|
||||
GPIOA_PIN(5) = (1<<5);
|
||||
#endif
|
||||
|
||||
/* Set display clock (divide ratio = 1) and oscillator frequency (1) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue