aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s6d1121_lld.c
diff options
context:
space:
mode:
authorTectu <tectu66@gmail.com>2012-06-13 08:44:42 -0700
committerTectu <tectu66@gmail.com>2012-06-13 08:44:42 -0700
commit25ff65d2076a5e450821aa3e79e2e78863c04de1 (patch)
treec770d2d451193a19e731b1f3afc3ac16f598082a /drivers/s6d1121_lld.c
parentd53551fb38418a063dcca0898c92349006c0e3e4 (diff)
parent2f157e29de212b0b21523cf5338369e51782870a (diff)
downloaduGFX-25ff65d2076a5e450821aa3e79e2e78863c04de1.tar.gz
uGFX-25ff65d2076a5e450821aa3e79e2e78863c04de1.tar.bz2
uGFX-25ff65d2076a5e450821aa3e79e2e78863c04de1.zip
Merge pull request #5 from abhishek-kakkar/master
Changes in Text Rendering API
Diffstat (limited to 'drivers/s6d1121_lld.c')
-rw-r--r--drivers/s6d1121_lld.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/s6d1121_lld.c b/drivers/s6d1121_lld.c
index 18531aeb..aa13169e 100644
--- a/drivers/s6d1121_lld.c
+++ b/drivers/s6d1121_lld.c
@@ -40,7 +40,7 @@ inline void lld_lcdwrite(uint16_t db)
}
static __inline uint16_t lcdReadData(void) {
- uint16_t value;
+ uint16_t value=0;
LCD_RS_HIGH;
LCD_WR_HIGH;
@@ -83,21 +83,15 @@ static __inline uint16_t lcdReadReg(uint16_t lcdReg) {
}
void lcdWriteIndex(uint16_t lcdReg) {
- LCD_CS_LOW;
LCD_RS_LOW;
lld_lcdwrite(lcdReg);
LCD_RS_HIGH;
- LCD_CS_HIGH;
}
void lcdWriteData(uint16_t lcdData) {
- LCD_CS_LOW;
-
lld_lcdwrite(lcdData);
-
- LCD_CS_HIGH;
}
void lcdWriteReg(uint16_t lcdReg, uint16_t lcdRegValue) {