aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-06-17 02:59:31 +0200
committerTectu <joel@unormal.org>2012-06-17 02:59:31 +0200
commit96319a780e05d4be9a2ae5ff61d1f58398e190e4 (patch)
tree88dcd0937c7c9990af3e276f3a5f48421b5c9bde /drivers
parentf8997e5703c2c02a35f580b69dba58399ad84cf5 (diff)
downloaduGFX-96319a780e05d4be9a2ae5ff61d1f58398e190e4.tar.gz
uGFX-96319a780e05d4be9a2ae5ff61d1f58398e190e4.tar.bz2
uGFX-96319a780e05d4be9a2ae5ff61d1f58398e190e4.zip
ssd1289 lld_lcdWriteStream() implementation
Diffstat (limited to 'drivers')
-rw-r--r--drivers/lcd/ssd1289_lld.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/drivers/lcd/ssd1289_lld.c b/drivers/lcd/ssd1289_lld.c
index 82cd281e..2b644560 100644
--- a/drivers/lcd/ssd1289_lld.c
+++ b/drivers/lcd/ssd1289_lld.c
@@ -74,13 +74,13 @@ static __inline void lcdDelay(uint16_t us) {
__inline void lld_lcdWriteStreamStart(void) {
#ifdef LCD_USE_GPIO
Clr_CS
- Clr_RS;
- Set_RD;
+ lld_lcdWriteIndex(0x0022);
+ #endif
- palWritePort(LCD_DATA_PORT, 0x0022);
+ #ifdef LCD_USE_SPI
+ #endif
- Clr_WR;
- Set_WR;
+ #ifdef LCD_USE_FSCM
#endif
}
@@ -88,16 +88,21 @@ __inline void lld_lcdWriteStreamStop(void) {
#ifdef LCD_USE_GPIO
Set_CS;
#endif
+
+ #ifdef LCD_USE_SPI
+ #endif
+
+ #ifdef LCD_USE_FSMC
+ #endif
}
__inline void lld_lcdWriteStream(uint16_t *buffer, uint16_t size) {
uint16_t i;
- for(i = 0; i < size; i++) {
- palWritePort(LCD_DATA_PORT, buffer[i]);
-
- Clr_WR;
- Set_WR;
+ Set_RS;
+
+ for(i = 0; i < 100; i++) {
+ lld_lcdWriteData(buffer[i]);
}
}