diff options
author | Tectu <joel@unormal.org> | 2012-06-25 12:34:38 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-06-25 12:34:38 +0200 |
commit | 9e5cd3140a56c3097b62029994cc33216e823c36 (patch) | |
tree | de7157f9bcdfcea5c47d3179825a0ffdd10180e6 | |
parent | 84c868d5f5ae60b893441cb9f2b8b10f2ac8034b (diff) | |
download | uGFX-9e5cd3140a56c3097b62029994cc33216e823c36.tar.gz uGFX-9e5cd3140a56c3097b62029994cc33216e823c36.tar.bz2 uGFX-9e5cd3140a56c3097b62029994cc33216e823c36.zip |
ssd1289 driver fix
-rw-r--r-- | drivers/lcd/ssd1289_lld.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/lcd/ssd1289_lld.c b/drivers/lcd/ssd1289_lld.c index e0d7fb28..9992ec93 100644 --- a/drivers/lcd/ssd1289_lld.c +++ b/drivers/lcd/ssd1289_lld.c @@ -9,10 +9,10 @@ extern uint16_t lcd_width, lcd_height; #ifdef LCD_USE_GPIO static __inline void lld_lcdWriteGPIO(uint16_t d) { - LCD_DATA_PORT_1->BSRR = ((((~d >> 12 & 0xF) << 16) | (d >> 12 & 0xF)) << LCD_DATA_PORT_1_BASE); - LCD_DATA_PORT_2->BSRR = ((((~d >> 8 & 0xF) << 16) | (d >> 8 & 0xF)) << LCD_DATA_PORT_2_BASE); - LCD_DATA_PORT_3->BSRR = ((((~d >> 4 & 0xF) << 16) | (d >> 4 & 0xF)) << LCD_DATA_PORT_3_BASE); - LCD_DATA_PORT_4->BSRR = ((((~d >> 0 & 0xF) << 16) | (d >> 0 & 0xF)) << LCD_DATA_PORT_4_BASE); + palWriteGroup(LCD_DATA_PORT_1, PAL_GROUP_MASK(4), LCD_DATA_PORT_1_BASE, d >> 12); + palWriteGroup(LCD_DATA_PORT_2, PAL_GROUP_MASK(4), LCD_DATA_PORT_2_BASE, d >> 8); + palWriteGroup(LCD_DATA_PORT_3, PAL_GROUP_MASK(4), LCD_DATA_PORT_3_BASE, d >> 4); + palWriteGroup(LCD_DATA_PORT_4, PAL_GROUP_MASK(4), LCD_DATA_PORT_4_BASE, d >> 0); } static __inline void lld_lcdWriteIndex(uint16_t index) { |