aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-06-25 12:44:35 +0200
committerTectu <joel@unormal.org>2012-06-25 12:44:35 +0200
commitccf2780be97616371395c974f1f59d1f664e32af (patch)
treebc30a8b574012029f17dfca1fadd569c82f6aad4 /drivers
parent9e5cd3140a56c3097b62029994cc33216e823c36 (diff)
downloaduGFX-ccf2780be97616371395c974f1f59d1f664e32af.tar.gz
uGFX-ccf2780be97616371395c974f1f59d1f664e32af.tar.bz2
uGFX-ccf2780be97616371395c974f1f59d1f664e32af.zip
lld GPIO lsb/msb order fix
Diffstat (limited to 'drivers')
-rw-r--r--drivers/lcd/ssd1289_lld.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/lcd/ssd1289_lld.c b/drivers/lcd/ssd1289_lld.c
index 9992ec93..5d5184a5 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) {
- 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);
+ 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) {