aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/SSD1331/gdisp_lld_SSD1331.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-07-08 13:51:20 +1000
committerinmarket <andrewh@inmarket.com.au>2018-07-08 13:51:20 +1000
commite61f0ae4248bdafeace54c330d488904a495c045 (patch)
tree448c5f4e99ae94fd41a99b3082b35208b2ba7c5f /drivers/gdisp/SSD1331/gdisp_lld_SSD1331.c
parentd9258efd4dac2b7939bb11707cbbdfa135c02bf5 (diff)
downloaduGFX-e61f0ae4248bdafeace54c330d488904a495c045.tar.gz
uGFX-e61f0ae4248bdafeace54c330d488904a495c045.tar.bz2
uGFX-e61f0ae4248bdafeace54c330d488904a495c045.zip
Added type gOrientation to replace V2.x orientation_t, and values gOrientationX replace GDISP_ROTATE_X
Diffstat (limited to 'drivers/gdisp/SSD1331/gdisp_lld_SSD1331.c')
-rw-r--r--drivers/gdisp/SSD1331/gdisp_lld_SSD1331.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gdisp/SSD1331/gdisp_lld_SSD1331.c b/drivers/gdisp/SSD1331/gdisp_lld_SSD1331.c
index 5080aeef..60d6c344 100644
--- a/drivers/gdisp/SSD1331/gdisp_lld_SSD1331.c
+++ b/drivers/gdisp/SSD1331/gdisp_lld_SSD1331.c
@@ -120,7 +120,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) {
/* Initialise the GDISP structure */
g->g.Width = GDISP_SCREEN_WIDTH;
g->g.Height = GDISP_SCREEN_HEIGHT;
- g->g.Orientation = GDISP_ROTATE_0;
+ g->g.Orientation = gOrientation0;
g->g.Powermode = gPowerOn;
g->g.Backlight = GDISP_INITIAL_BACKLIGHT;
g->g.Contrast = GDISP_INITIAL_CONTRAST;
@@ -269,31 +269,31 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) {
/*
case GDISP_CONTROL_ORIENTATION:
- if (g->g.Orientation == (orientation_t)g->p.ptr)
+ if (g->g.Orientation == (gOrientation)g->p.ptr)
return;
- switch((orientation_t)g->p.ptr) {
- case GDISP_ROTATE_0:
+ switch((gOrientation)g->p.ptr) {
+ case gOrientation0:
acquire_bus(g);
//TODO
release_bus(g);
g->g.Height = GDISP_SCREEN_HEIGHT;
g->g.Width = GDISP_SCREEN_WIDTH;
break;
- case GDISP_ROTATE_90:
+ case gOrientation90:
acquire_bus(g);
//TODO
release_bus(g);
g->g.Height = GDISP_SCREEN_WIDTH;
g->g.Width = GDISP_SCREEN_HEIGHT;
break;
- case GDISP_ROTATE_180:
+ case gOrientation180:
acquire_bus(g);
//TODO
release_bus(g);
g->g.Height = GDISP_SCREEN_HEIGHT;
g->g.Width = GDISP_SCREEN_WIDTH;
break;
- case GDISP_ROTATE_270:
+ case gOrientation270:
acquire_bus(g);
//TODO
release_bus(g);
@@ -303,7 +303,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) {
default:
return;
}
- g->g.Orientation = (orientation_t)g->p.ptr;
+ g->g.Orientation = (gOrientation)g->p.ptr;
return;
*/