aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/SSD1289/gdisp_lld.c
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2012-10-05 09:12:57 +0200
committerJoel Bodenmann <joel@unormal.org>2012-10-05 09:12:57 +0200
commitec637ad2df8bc938813ece64496f0965743fabfc (patch)
tree576ff32fc989b9c85d0c324148a21712002d92a0 /drivers/gdisp/SSD1289/gdisp_lld.c
parentd6b17a157392b40a1131fe70d798ad3eaab6378f (diff)
downloaduGFX-ec637ad2df8bc938813ece64496f0965743fabfc.tar.gz
uGFX-ec637ad2df8bc938813ece64496f0965743fabfc.tar.bz2
uGFX-ec637ad2df8bc938813ece64496f0965743fabfc.zip
Revert "rename of orientation"
This reverts commit d6b17a157392b40a1131fe70d798ad3eaab6378f.
Diffstat (limited to 'drivers/gdisp/SSD1289/gdisp_lld.c')
-rw-r--r--drivers/gdisp/SSD1289/gdisp_lld.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gdisp/SSD1289/gdisp_lld.c b/drivers/gdisp/SSD1289/gdisp_lld.c
index 2b2afb60..b8d36ab0 100644
--- a/drivers/gdisp/SSD1289/gdisp_lld.c
+++ b/drivers/gdisp/SSD1289/gdisp_lld.c
@@ -121,7 +121,7 @@ bool_t GDISP_LLD(init)(void) {
/* Initialise the GDISP structure */
GDISP.Width = SCREEN_WIDTH;
GDISP.Height = SCREEN_HEIGHT;
- GDISP.Orientation = GDISP_ROTATE_0;
+ GDISP.Orientation = portrait;
GDISP.Powermode = powerOn;
GDISP.Backlight = 100;
GDISP.Contrast = 50;
@@ -407,28 +407,28 @@ void GDISP_LLD(drawpixel)(coord_t x, coord_t y, color_t color) {
if (GDISP.Orientation == (gdisp_orientation_t)value)
return;
switch((gdisp_orientation_t)value) {
- case GDISP_ROTATE_0:
+ case portrait:
lld_lcdWriteReg(0x0001, 0x2B3F);
/* ID = 11 AM = 0 */
lld_lcdWriteReg(0x0011, 0x6070);
GDISP.Height = SCREEN_HEIGHT;
GDISP.Width = SCREEN_WIDTH;
break;
- case GDISP_ROTATE_90:
+ case landscape:
lld_lcdWriteReg(0x0001, 0x293F);
/* ID = 11 AM = 1 */
lld_lcdWriteReg(0x0011, 0x6078);
GDISP.Height = SCREEN_WIDTH;
GDISP.Width = SCREEN_HEIGHT;
break;
- case GDISP_ROTATE_0Inv:
+ case portraitInv:
lld_lcdWriteReg(0x0001, 0x2B3F);
/* ID = 01 AM = 0 */
lld_lcdWriteReg(0x0011, 0x6040);
GDISP.Height = SCREEN_HEIGHT;
GDISP.Width = SCREEN_WIDTH;
break;
- case GDISP_ROTATE_90Inv:
+ case landscapeInv:
lld_lcdWriteReg(0x0001, 0x293F);
/* ID = 01 AM = 1 */
lld_lcdWriteReg(0x0011, 0x6048);