diff options
Diffstat (limited to 'drivers/gdisp/SSD2119')
-rw-r--r-- | drivers/gdisp/SSD2119/gdisp_lld.c | 6 | ||||
-rw-r--r-- | drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb_fsmc.h | 18 | ||||
-rw-r--r-- | drivers/gdisp/SSD2119/gdisp_lld_config.h | 2 | ||||
-rw-r--r-- | drivers/gdisp/SSD2119/ssd2119.h | 2 |
4 files changed, 14 insertions, 14 deletions
diff --git a/drivers/gdisp/SSD2119/gdisp_lld.c b/drivers/gdisp/SSD2119/gdisp_lld.c index b478c6d8..b7550794 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld.c +++ b/drivers/gdisp/SSD2119/gdisp_lld.c @@ -1,5 +1,5 @@ /* - ChibiOS/GFX - Copyright (C) 2012 + ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu <joel@unormal.org> This file is part of ChibiOS/GFX. @@ -72,7 +72,7 @@ #define delay(us) chThdSleepMicroseconds(us) #define delayms(ms) chThdSleepMilliseconds(ms) -static __inline void set_cursor(coord_t x, coord_t y) { +static inline void set_cursor(coord_t x, coord_t y) { /* Reg SSD2119_REG_X_RAM_ADDR is 9 bit value * Reg SSD2119_REG_Y_RAM_ADDR is an 8 bit * Use a bit mask to make sure they are not set too high @@ -136,7 +136,7 @@ static void set_viewport(coord_t x, coord_t y, coord_t cx, coord_t cy) { set_cursor(x, y); } -static __inline void reset_viewport(void) { +static inline void reset_viewport(void) { set_viewport(0, 0, GDISP.Width, GDISP.Height); } diff --git a/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb_fsmc.h b/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb_fsmc.h index c6e11493..bf7b3890 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb_fsmc.h +++ b/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb_fsmc.h @@ -1,5 +1,5 @@ /* - ChibiOS/GFX - Copyright (C) 2012 + ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu <joel@unormal.org> This file is part of ChibiOS/GFX. @@ -56,7 +56,7 @@ static const PWMConfig pwmcfg = { * * @notapi */ -static __inline void init_board(void) { +static inline void init_board(void) { unsigned char FSMC_Bank; /* STM32F4 FSMC init */ @@ -98,7 +98,7 @@ static __inline void init_board(void) { * * @notapi */ -static __inline void setpin_reset(bool_t state) { +static inline void setpin_reset(bool_t state) { if (state) { CLR_RST; } else { @@ -113,7 +113,7 @@ static __inline void setpin_reset(bool_t state) { * * @notapi */ -static __inline void set_backlight(uint8_t percent) { +static inline void set_backlight(uint8_t percent) { pwmEnableChannel(&PWMD4, 1, percent); } @@ -123,7 +123,7 @@ static __inline void set_backlight(uint8_t percent) { * * @notapi */ -static __inline void acquire_bus(void) { +static inline void acquire_bus(void) { /* Nothing to do here since LCD is the only device on that bus */ } @@ -133,7 +133,7 @@ static __inline void acquire_bus(void) { * * @notapi */ -static __inline void release_bus(void) { +static inline void release_bus(void) { /* Nothing to do here since LCD is the only device on that bus */ } @@ -144,7 +144,7 @@ static __inline void release_bus(void) { * * @notapi */ -static __inline void write_index(uint16_t index) { +static inline void write_index(uint16_t index) { GDISP_REG = index; } @@ -155,7 +155,7 @@ static __inline void write_index(uint16_t index) { * * @notapi */ -static __inline void write_data(uint16_t data) { +static inline void write_data(uint16_t data) { GDISP_RAM = data; } @@ -169,7 +169,7 @@ static __inline void write_data(uint16_t data) { * * @notapi */ -static __inline uint16_t read_data(void) { +static inline uint16_t read_data(void) { return GDISP_RAM; } #endif diff --git a/drivers/gdisp/SSD2119/gdisp_lld_config.h b/drivers/gdisp/SSD2119/gdisp_lld_config.h index 05c007b0..b5af495c 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld_config.h +++ b/drivers/gdisp/SSD2119/gdisp_lld_config.h @@ -1,5 +1,5 @@ /* - ChibiOS/GFX - Copyright (C) 2012 + ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu <joel@unormal.org> This file is part of ChibiOS/GFX. diff --git a/drivers/gdisp/SSD2119/ssd2119.h b/drivers/gdisp/SSD2119/ssd2119.h index a907fcbb..c3ffa00f 100644 --- a/drivers/gdisp/SSD2119/ssd2119.h +++ b/drivers/gdisp/SSD2119/ssd2119.h @@ -1,5 +1,5 @@ /* - ChibiOS/GFX - Copyright (C) 2012 + ChibiOS/GFX - Copyright (C) 2012, 2013 Joel Bodenmann aka Tectu <joel@unormal.org> This file is part of ChibiOS/GFX. |