diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-11-03 10:51:23 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-11-03 10:51:23 +1000 |
commit | 7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d (patch) | |
tree | 95cf152ef65ff19c7b2515b427bbe86b92b611d0 /drivers/gdisp/UC8173 | |
parent | 8bd70d953bcd3e32ceb4e45a4e561c973726280a (diff) | |
download | uGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.tar.gz uGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.tar.bz2 uGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.zip |
For all source files update integer types to the new gI8 etc type names
Diffstat (limited to 'drivers/gdisp/UC8173')
-rw-r--r-- | drivers/gdisp/UC8173/UC8173_waveform_examples.h | 18 | ||||
-rw-r--r-- | drivers/gdisp/UC8173/board_UC8173_template.h | 8 | ||||
-rw-r--r-- | drivers/gdisp/UC8173/gdisp_lld_UC8173.c | 36 |
3 files changed, 31 insertions, 31 deletions
diff --git a/drivers/gdisp/UC8173/UC8173_waveform_examples.h b/drivers/gdisp/UC8173/UC8173_waveform_examples.h index e8ac919b..8bfaf93f 100644 --- a/drivers/gdisp/UC8173/UC8173_waveform_examples.h +++ b/drivers/gdisp/UC8173/UC8173_waveform_examples.h @@ -1,4 +1,4 @@ -static uint8_t const _lut_ft[] = { +static gU8 const _lut_ft[] = { 0x55,0x55,0x55,0x55,0x55,0xAA,0xAA,0xAA,0xAA,0xAA,0x55,0x55,0x55,0x55,0x55,0x55, 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x5A,0x5A, 0x5A,0x5A,0x5A,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0x5A,0x5A, @@ -9,11 +9,11 @@ static uint8_t const _lut_ft[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; -static uint8_t const _lut_KWvcom_DC_GU[] = { +static gU8 const _lut_KWvcom_DC_GU[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; -static uint8_t const _lut_kw_GU[] = { +static gU8 const _lut_kw_GU[] = { 0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80, 0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80, 0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40, @@ -48,11 +48,11 @@ static uint8_t const _lut_kw_GU[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; -static uint8_t const _lut_KWvcom_GC[] = { +static gU8 const _lut_KWvcom_GC[] = { 0x55,0x6A,0xA5,0x55,0x55,0x55,0x55,0x55,0x56,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0x0C, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; -static uint8_t const _lut_kw_GC[] = { +static gU8 const _lut_kw_GC[] = { 0x41,0x00,0x00,0x81,0x41,0x00,0x00,0x81,0x41,0x00,0x00,0x81,0x41,0x00,0x00,0x81, 0x41,0x00,0x00,0x81,0x81,0x00,0x00,0x82,0x81,0x00,0x00,0x82,0x81,0x00,0x00,0x82, 0x81,0x00,0x00,0x82,0x81,0x00,0x00,0x82,0x42,0x00,0x00,0x41,0x42,0x00,0x00,0x41, @@ -87,11 +87,11 @@ static uint8_t const _lut_kw_GC[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; -static uint8_t const _lut_KWvcom_DC_A2_240ms[] = { +static gU8 const _lut_KWvcom_DC_A2_240ms[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; -static uint8_t const _lut_kw_A2_240ms[] = { +static gU8 const _lut_kw_A2_240ms[] = { 0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40, 0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40, 0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40, @@ -126,11 +126,11 @@ static uint8_t const _lut_kw_A2_240ms[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; -static uint8_t const _lut_KWvcom_DC_A2_120ms[] = { +static gU8 const _lut_KWvcom_DC_A2_120ms[] = { 0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; -static uint8_t const _lut_kw_A2_120ms[] = { +static gU8 const _lut_kw_A2_120ms[] = { 0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40, 0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40, 0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40,0x02,0x00,0x00,0x40, diff --git a/drivers/gdisp/UC8173/board_UC8173_template.h b/drivers/gdisp/UC8173/board_UC8173_template.h index 94677979..5321afe7 100644 --- a/drivers/gdisp/UC8173/board_UC8173_template.h +++ b/drivers/gdisp/UC8173/board_UC8173_template.h @@ -61,19 +61,19 @@ static GFXINLINE void release_bus(GDisplay* g) (void) g; } -static GFXINLINE void write_cmd(GDisplay* g, uint8_t cmd) +static GFXINLINE void write_cmd(GDisplay* g, gU8 cmd) { (void) g; (void) cmd; } -static GFXINLINE void write_data(GDisplay* g, uint8_t data) +static GFXINLINE void write_data(GDisplay* g, gU8 data) { (void) g; (void) data; } -static GFXINLINE void write_data_burst(GDisplay* g, uint8_t* data, unsigned length) +static GFXINLINE void write_data_burst(GDisplay* g, gU8* data, unsigned length) { (void) g; (void) data; @@ -81,7 +81,7 @@ static GFXINLINE void write_data_burst(GDisplay* g, uint8_t* data, unsigned leng } #if UC8173_CAN_READ - static GFXINLINE uint8_t read_data(GDisplay* g) + static GFXINLINE gU8 read_data(GDisplay* g) { (void)g; return 0; diff --git a/drivers/gdisp/UC8173/gdisp_lld_UC8173.c b/drivers/gdisp/UC8173/gdisp_lld_UC8173.c index 05fcf557..fdd9fd23 100644 --- a/drivers/gdisp/UC8173/gdisp_lld_UC8173.c +++ b/drivers/gdisp/UC8173/gdisp_lld_UC8173.c @@ -25,9 +25,9 @@ /*------------------ Load the board file ------------------*/ typedef struct UC8173Lut { - uint8_t const *lutVCOM; // 32 bytes - uint8_t const *lutFW; // 512 bytes - uint8_t const *lutFT; // 128 bytes + gU8 const *lutVCOM; // 32 bytes + gU8 const *lutFW; // 512 bytes + gU8 const *lutFT; // 128 bytes gBool regal; } UC8173Lut; @@ -115,7 +115,7 @@ typedef struct UC8173_Private { } UC8173_Private; #if !UC8173_INIT_REAL_LUT - static uint8_t const UC8173_LUT_None[] = { + static gU8 const UC8173_LUT_None[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, @@ -234,7 +234,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay* g) write_data(g, UC8173_VCOM_VOLTAGEBYTE); // was 0x12 in example code = -1.0V #elif UC8173_CAN_READ { - uint8_t vc; + gU8 vc; write_cmd(g, VV); vc = read_data(g); @@ -340,12 +340,12 @@ LLDSPEC gBool gdisp_lld_init(GDisplay* g) // Setup the window // Datasheet says x,y,w,h but in practice it needs to be x,y,w-1,h-1 write_cmd(g, DTMW); - write_data(g, (uint8_t)((priv->fb.fa0.x >> 0) & 0xFF)); - write_data(g, (uint8_t)((priv->fb.fa0.y >> 8) & 0x03)); - write_data(g, (uint8_t)((priv->fb.fa0.y >> 0) & 0xFF)); - write_data(g, (uint8_t)(((cx-1) >> 0) & 0xFF)); - write_data(g, (uint8_t)(((cy-1) >> 8) & 0x03)); - write_data(g, (uint8_t)(((cy-1) >> 0) & 0xFF)); + write_data(g, (gU8)((priv->fb.fa0.x >> 0) & 0xFF)); + write_data(g, (gU8)((priv->fb.fa0.y >> 8) & 0x03)); + write_data(g, (gU8)((priv->fb.fa0.y >> 0) & 0xFF)); + write_data(g, (gU8)(((cx-1) >> 0) & 0xFF)); + write_data(g, (gU8)(((cy-1) >> 8) & 0x03)); + write_data(g, (gU8)(((cy-1) >> 0) & 0xFF)); // Transfer the buffer #if GDISP_LLD_PIXELFORMAT == GDISP_PIXELFORMAT_MONO @@ -357,7 +357,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay* g) #endif dx = (cx+FB_TYPE_PIXELS-1)/FB_TYPE_PIXELS * (LLDCOLOR_TYPE_BITS/8); for (fb = FB_ADDR(&priv->fb, 0, priv->fb.fa0.x, priv->fb.fa0.y), dy = cy; dy; dy--, fb += FB_LINE_TYPES) - write_data_burst(g, (uint8_t *)fb, dx); + write_data_burst(g, (gU8 *)fb, dx); // Power-up the DC/DC converter to update the display panel write_cmd(g, PON); @@ -367,12 +367,12 @@ LLDSPEC gBool gdisp_lld_init(GDisplay* g) // Datasheet says x,y,w,h but in practice it needs to be x,y,w-1,h-1 write_cmd(g, DRF); // data: Partial Scan = 0x10, REGAL = 0x08, VCOM_DoNothing = 0x04 (GC4/A2 = 0x00, GU4 = 0x08) write_data(g, (priv->lut->regal ? 0x08 : 0x00)); - write_data(g, (uint8_t)((priv->fb.fa0.x >> 0) & 0xFF)); - write_data(g, (uint8_t)((priv->fb.fa0.y >> 8) & 0x03)); - write_data(g, (uint8_t)((priv->fb.fa0.y >> 0) & 0xFF)); - write_data(g, (uint8_t)(((cx-1) >> 0) & 0xFF)); - write_data(g, (uint8_t)(((cy-1) >> 8) & 0x03)); - write_data(g, (uint8_t)(((cy-1) >> 0) & 0xFF)); + write_data(g, (gU8)((priv->fb.fa0.x >> 0) & 0xFF)); + write_data(g, (gU8)((priv->fb.fa0.y >> 8) & 0x03)); + write_data(g, (gU8)((priv->fb.fa0.y >> 0) & 0xFF)); + write_data(g, (gU8)(((cx-1) >> 0) & 0xFF)); + write_data(g, (gU8)(((cy-1) >> 8) & 0x03)); + write_data(g, (gU8)(((cy-1) >> 0) & 0xFF)); while (!getpin_busy(g)); // Power-down the DC/DC converter |