summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-02-17 18:43:13 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-02-17 18:43:13 +0000
commit020322665be42eacbb9c5717054b0f5320ba361b (patch)
treef146eb6faf1d1e46815ea3a94e45bd8f41684690 /firmware
parentd3d29edbf3e27a028d203b7db87deb6ad6fde2e0 (diff)
downloadrockbox-020322665be42eacbb9c5717054b0f5320ba361b.tar.gz
rockbox-020322665be42eacbb9c5717054b0f5320ba361b.tar.bz2
rockbox-020322665be42eacbb9c5717054b0f5320ba361b.zip
Clip+: LCD display (with FlynDice help)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24729 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c
index 465c18e8ac..dba5b9c3d7 100644
--- a/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c
+++ b/firmware/target/arm/as3525/sansa-clip/lcd-ssd1303.c
@@ -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) */