aboutsummaryrefslogtreecommitdiffstats
path: root/boards/base/eCos-Synthetic-Framebuffer/board_framebuffer.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-11-03 10:51:23 +1000
committerinmarket <andrewh@inmarket.com.au>2018-11-03 10:51:23 +1000
commit7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d (patch)
tree95cf152ef65ff19c7b2515b427bbe86b92b611d0 /boards/base/eCos-Synthetic-Framebuffer/board_framebuffer.h
parent8bd70d953bcd3e32ceb4e45a4e561c973726280a (diff)
downloaduGFX-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 'boards/base/eCos-Synthetic-Framebuffer/board_framebuffer.h')
-rw-r--r--boards/base/eCos-Synthetic-Framebuffer/board_framebuffer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/boards/base/eCos-Synthetic-Framebuffer/board_framebuffer.h b/boards/base/eCos-Synthetic-Framebuffer/board_framebuffer.h
index 9407713e..cc7c070b 100644
--- a/boards/base/eCos-Synthetic-Framebuffer/board_framebuffer.h
+++ b/boards/base/eCos-Synthetic-Framebuffer/board_framebuffer.h
@@ -63,7 +63,7 @@
#endif
#if GDISP_NEED_CONTROL
- static void board_backlight(GDisplay *g, uint8_t percent) {
+ static void board_backlight(GDisplay *g, gU8 percent) {
(void) g;
#if (CYG_FB_FLAGS0(FRAMEBUF) & CYG_FB_FLAGS0_BACKLIGHT)
cyg_fb_ioctl_backlight backlight;
@@ -74,12 +74,12 @@
if (backlight.fbbl_max == 1)
backlight.fbbl_current = percent ? 1 : 0;
else
- backlight.fbbl_current = (((uint32_t)percent)*backlight.fbbl_max)/100;
+ backlight.fbbl_current = (((gU32)percent)*backlight.fbbl_max)/100;
CYG_FB_IOCTL(FRAMEBUF, CYG_FB_IOCTL_BACKLIGHT_SET, &backlight, &len);
#endif
}
- static void board_contrast(GDisplay *g, uint8_t percent) {
+ static void board_contrast(GDisplay *g, gU8 percent) {
(void) g;
(void) percent;
}