diff options
author | Tectu <joel@unormal.org> | 2012-06-25 13:02:54 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-06-25 13:02:54 +0200 |
commit | 484daa395a7b74692657730b4f487e58b2e231fd (patch) | |
tree | 98fd54e6964c1a4c3033bd3f4ea6b7102c98c173 /drivers | |
parent | ccf2780be97616371395c974f1f59d1f664e32af (diff) | |
download | uGFX-484daa395a7b74692657730b4f487e58b2e231fd.tar.gz uGFX-484daa395a7b74692657730b4f487e58b2e231fd.tar.bz2 uGFX-484daa395a7b74692657730b4f487e58b2e231fd.zip |
GPIO interfacing rewrite
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/lcd/ssd1289_lld.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/lcd/ssd1289_lld.c b/drivers/lcd/ssd1289_lld.c index 5d5184a5..033114cf 100644 --- a/drivers/lcd/ssd1289_lld.c +++ b/drivers/lcd/ssd1289_lld.c @@ -8,13 +8,6 @@ extern uint16_t lcd_width, lcd_height; #ifdef LCD_USE_GPIO -static __inline void lld_lcdWriteGPIO(uint16_t d) { - palWriteGroup(LCD_DATA_PORT_1, PAL_GROUP_MASK(4), LCD_DATA_PORT_1_BASE, d >> 0); - palWriteGroup(LCD_DATA_PORT_2, PAL_GROUP_MASK(4), LCD_DATA_PORT_2_BASE, d >> 4); - palWriteGroup(LCD_DATA_PORT_3, PAL_GROUP_MASK(4), LCD_DATA_PORT_3_BASE, d >> 8); - palWriteGroup(LCD_DATA_PORT_4, PAL_GROUP_MASK(4), LCD_DATA_PORT_4_BASE, d >> 12); -} - static __inline void lld_lcdWriteIndex(uint16_t index) { Clr_RS; Set_RD; @@ -48,16 +41,7 @@ static __inline uint16_t lld_lcdReadData(void) { Set_WR; Clr_RD; - // change pin mode to digital input - LCD_DATA_PORT->CRH = 0x44444444; - LCD_DATA_PORT->CRL = 0x44444444; - - value = palReadPort(LCD_DATA_PORT); // dummy - value = palReadPort(LCD_DATA_PORT); - - // change pin mode back to digital output - LCD_DATA_PORT->CRH = 0x33333333; - LCD_DATA_PORT->CRL = 0x33333333; + value = lld_lcdReadGPIO(LCD_DATA_PORT); Set_RD; |