diff options
Diffstat (limited to 'drivers/gdisp/ED060SC4')
-rw-r--r-- | drivers/gdisp/ED060SC4/board_ED060SC4_example.h | 2 | ||||
-rw-r--r-- | drivers/gdisp/ED060SC4/board_ED060SC4_template.h | 2 | ||||
-rw-r--r-- | drivers/gdisp/ED060SC4/gdisp_lld_ED060SC4.c | 16 |
3 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gdisp/ED060SC4/board_ED060SC4_example.h b/drivers/gdisp/ED060SC4/board_ED060SC4_example.h index 96dd8be2..13311089 100644 --- a/drivers/gdisp/ED060SC4/board_ED060SC4_example.h +++ b/drivers/gdisp/ED060SC4/board_ED060SC4_example.h @@ -105,7 +105,7 @@ static GFXINLINE void setpin_sph(gBool on) { } /* Set the state of the D0-D7 (source driver Data) pins. */ -static GFXINLINE void setpins_data(uint8_t value) { +static GFXINLINE void setpins_data(gU8 value) { palWriteGroup(GPIOB, 0xFF, GPIOB_EINK_D0, value); } diff --git a/drivers/gdisp/ED060SC4/board_ED060SC4_template.h b/drivers/gdisp/ED060SC4/board_ED060SC4_template.h index 93e6d23b..65f77095 100644 --- a/drivers/gdisp/ED060SC4/board_ED060SC4_template.h +++ b/drivers/gdisp/ED060SC4/board_ED060SC4_template.h @@ -89,7 +89,7 @@ static GFXINLINE void setpin_sph(GDisplay *g, gBool on) { (void) on; } -static GFXINLINE void setpins_data(GDisplay *g, uint8_t value) { +static GFXINLINE void setpins_data(GDisplay *g, gU8 value) { (void) g; (void) value; } diff --git a/drivers/gdisp/ED060SC4/gdisp_lld_ED060SC4.c b/drivers/gdisp/ED060SC4/gdisp_lld_ED060SC4.c index ba1baee8..b5d1e08b 100644 --- a/drivers/gdisp/ED060SC4/gdisp_lld_ED060SC4.c +++ b/drivers/gdisp/ED060SC4/gdisp_lld_ED060SC4.c @@ -200,7 +200,7 @@ static void hscan_start(GDisplay *g) } /* Write data to the horizontal row. */ -static void hscan_write(GDisplay *g, const uint8_t *data, int count) +static void hscan_write(GDisplay *g, const gU8 *data, int count) { while (count--) { @@ -317,18 +317,18 @@ static void power_off(GDisplay *g) /* Buffers that store the data for a small area of the display. */ typedef struct { - uint8_t data[EINK_BLOCKHEIGHT][WIDTH_BYTES]; + gU8 data[EINK_BLOCKHEIGHT][WIDTH_BYTES]; } block_t; typedef struct drvPriv { - uint8_t g_next_block; /* Index of the next free block buffer. */ + gU8 g_next_block; /* Index of the next free block buffer. */ block_t g_blocks[EINK_NUMBUFFERS]; /* Map that stores the buffers associated to each area of the display. * Value of 0 means that the block is not allocated. * Other values are the index in g_blocks + 1. */ - uint8_t g_blockmap[BLOCKS_Y][BLOCKS_X]; + gU8 g_blockmap[BLOCKS_Y][BLOCKS_X]; } drvPriv; /* Check if the row contains any allocated blocks. */ @@ -358,7 +358,7 @@ static void write_block_row(GDisplay *g, unsigned by) { for (dx = 0; dx < WIDTH_BYTES; dx++) { - const uint8_t dummy = 0; + const gU8 dummy = 0; hscan_write(g, &dummy, 1); } } @@ -483,9 +483,9 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) { #if GDISP_HARDWARE_DRAWPIXEL void gdisp_lld_draw_pixel(GDisplay *g) { block_t *block; - uint8_t byte; + gU8 byte; unsigned bx, by, dx, dy; - uint8_t bitpos; + gU8 bitpos; switch(g->g.Orientation) { default: @@ -583,7 +583,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) { #if GDISP_HARDWARE_CLEARS static void subclear(GDisplay *g, gColor color) { unsigned x, y; - uint8_t byte; + gU8 byte; hscan_start(g); byte = color ? BYTE_WHITE : BYTE_BLACK; |