aboutsummaryrefslogtreecommitdiffstats
path: root/templates/gdispXXXXX/gdisp_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'templates/gdispXXXXX/gdisp_lld.c')
-rw-r--r--templates/gdispXXXXX/gdisp_lld.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/gdispXXXXX/gdisp_lld.c b/templates/gdispXXXXX/gdisp_lld.c
index 0df36596..f9a159ed 100644
--- a/templates/gdispXXXXX/gdisp_lld.c
+++ b/templates/gdispXXXXX/gdisp_lld.c
@@ -75,7 +75,7 @@ bool_t GDISP_LLD(init)(void) {
/* Initialise the GDISP structure to match */
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;
@@ -465,22 +465,22 @@ 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:
/* Code here */
GDISP.Height = SCREEN_HEIGHT;
GDISP.Width = SCREEN_WIDTH;
break;
- case GDISP_ROTATE_90:
+ case landscape:
/* Code here */
GDISP.Height = SCREEN_WIDTH;
GDISP.Width = SCREEN_HEIGHT;
break;
- case GDISP_ROTATE_0Inv:
+ case portraitInv:
/* Code here */
GDISP.Height = SCREEN_HEIGHT;
GDISP.Width = SCREEN_WIDTH;
break;
- case GDISP_ROTATE_90Inv:
+ case landscapeInv:
/* Code here */
GDISP.Height = SCREEN_WIDTH;
GDISP.Width = SCREEN_HEIGHT;