From d6b17a157392b40a1131fe70d798ad3eaab6378f Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Fri, 5 Oct 2012 09:09:59 +0200 Subject: rename of orientation --- drivers/gdisp/SSD1289/gdisp_lld.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'drivers/gdisp/SSD1289/gdisp_lld.c') diff --git a/drivers/gdisp/SSD1289/gdisp_lld.c b/drivers/gdisp/SSD1289/gdisp_lld.c index b8d36ab0..2b2afb60 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 = portrait; + GDISP.Orientation = GDISP_ROTATE_0; 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 portrait: + case GDISP_ROTATE_0: lld_lcdWriteReg(0x0001, 0x2B3F); /* ID = 11 AM = 0 */ lld_lcdWriteReg(0x0011, 0x6070); GDISP.Height = SCREEN_HEIGHT; GDISP.Width = SCREEN_WIDTH; break; - case landscape: + case GDISP_ROTATE_90: lld_lcdWriteReg(0x0001, 0x293F); /* ID = 11 AM = 1 */ lld_lcdWriteReg(0x0011, 0x6078); GDISP.Height = SCREEN_WIDTH; GDISP.Width = SCREEN_HEIGHT; break; - case portraitInv: + case GDISP_ROTATE_0Inv: lld_lcdWriteReg(0x0001, 0x2B3F); /* ID = 01 AM = 0 */ lld_lcdWriteReg(0x0011, 0x6040); GDISP.Height = SCREEN_HEIGHT; GDISP.Width = SCREEN_WIDTH; break; - case landscapeInv: + case GDISP_ROTATE_90Inv: lld_lcdWriteReg(0x0001, 0x293F); /* ID = 01 AM = 1 */ lld_lcdWriteReg(0x0011, 0x6048); -- cgit v1.2.3