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/SSD1963/gdisp_lld_SSD1963.c | |
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/SSD1963/gdisp_lld_SSD1963.c')
-rw-r--r-- | drivers/gdisp/SSD1963/gdisp_lld_SSD1963.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/gdisp/SSD1963/gdisp_lld_SSD1963.c b/drivers/gdisp/SSD1963/gdisp_lld_SSD1963.c index 9c5ad960..145e9728 100644 --- a/drivers/gdisp/SSD1963/gdisp_lld_SSD1963.c +++ b/drivers/gdisp/SSD1963/gdisp_lld_SSD1963.c @@ -18,16 +18,16 @@ typedef struct LCD_Parameters { gCoord width, height; // Panel width and height - uint16_t hbporch; // Horizontal Back Porch - uint16_t hfporch; // Horizontal Front Porch - uint16_t hpulse; // Horizontal Pulse - uint16_t hperiod; // Horizontal Period (Total) - uint16_t vbporch; // Vertical Back Porch - uint16_t vfporch; // Vertical Front Porch - uint16_t vpulse; // Vertical Pulse - uint16_t vperiod; // Vertical Period (Total) - uint32_t fpr; // Calculated FPR - uint16_t mode; // For command "SSD1963_SET_LCD_MODE" + gU16 hbporch; // Horizontal Back Porch + gU16 hfporch; // Horizontal Front Porch + gU16 hpulse; // Horizontal Pulse + gU16 hperiod; // Horizontal Period (Total) + gU16 vbporch; // Vertical Back Porch + gU16 vfporch; // Vertical Front Porch + gU16 vpulse; // Vertical Pulse + gU16 vperiod; // Vertical Period (Total) + gU32 fpr; // Calculated FPR + gU16 mode; // For command "SSD1963_SET_LCD_MODE" /* Set the pannel data width */ #define LCD_PANEL_DATA_WIDTH_24BIT (1<<5) // 18bit default /* Set the color deeph enhancement */ @@ -71,7 +71,7 @@ typedef struct LCD_Parameters { #include "ssd1963.h" -#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); } #define write_data16(g, data) { write_data(g, (data)>>8); write_data(g, (data) & 0xFF); } #define read_reg(g, reg) { write_index(g, reg); read_data(g); } @@ -124,7 +124,7 @@ static GFXINLINE void set_viewport(GDisplay* g) { * * Backlight appears to be forced off (by chip) when display blanked */ -static GFXINLINE void set_backlight(GDisplay *g, uint8_t percent) { +static GFXINLINE void set_backlight(GDisplay *g, gU8 percent) { // The SSD1963 has a built-in PWM (duty_cycle 00..FF). // Its output can be used by a Dynamic Background Control or by a host (user) // Check your LCD's hardware, the PWM connection is default left open and instead |