aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/ILI9342/gdisp_lld_ILI9342.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gdisp/ILI9342/gdisp_lld_ILI9342.c')
-rw-r--r--drivers/gdisp/ILI9342/gdisp_lld_ILI9342.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gdisp/ILI9342/gdisp_lld_ILI9342.c b/drivers/gdisp/ILI9342/gdisp_lld_ILI9342.c
index 8c98da1f..394a4b47 100644
--- a/drivers/gdisp/ILI9342/gdisp_lld_ILI9342.c
+++ b/drivers/gdisp/ILI9342/gdisp_lld_ILI9342.c
@@ -49,21 +49,21 @@
/*===========================================================================*/
// Some common routines and macros
-#define dummy_read(g) { volatile uint16_t dummy; dummy = read_data(g); (void) dummy; }
+#define dummy_read(g) { volatile gU16 dummy; dummy = read_data(g); (void) dummy; }
#define write_reg(g, reg, data) { write_index(g, reg); write_data(g, data); }
static void set_viewport(GDisplay *g) {
write_index(g, 0x2A);
write_data(g, (g->p.x >> 8));
- write_data(g, (uint8_t) g->p.x);
+ write_data(g, (gU8) g->p.x);
write_data(g, (g->p.x + g->p.cx - 1) >> 8);
- write_data(g, (uint8_t) (g->p.x + g->p.cx - 1));
+ write_data(g, (gU8) (g->p.x + g->p.cx - 1));
write_index(g, 0x2B);
write_data(g, (g->p.y >> 8));
- write_data(g, (uint8_t) g->p.y);
+ write_data(g, (gU8) g->p.y);
write_data(g, (g->p.y + g->p.cy - 1) >> 8);
- write_data(g, (uint8_t) (g->p.y + g->p.cy - 1));
+ write_data(g, (gU8) (g->p.y + g->p.cy - 1));
}
/*===========================================================================*/
@@ -261,7 +261,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) {
dummy_read(g);
}
LLDSPEC gColor gdisp_lld_read_color(GDisplay *g) {
- uint16_t data;
+ gU16 data;
data = read_data(g);
return gdispNative2Color(data);