diff options
Diffstat (limited to 'boards/base/FireBull-STM32F103-FB')
-rw-r--r-- | boards/base/FireBull-STM32F103-FB/board_SSD1289.h | 22 | ||||
-rw-r--r-- | boards/base/FireBull-STM32F103-FB/gmouse_lld_ADS7843_board.h | 8 |
2 files changed, 15 insertions, 15 deletions
diff --git a/boards/base/FireBull-STM32F103-FB/board_SSD1289.h b/boards/base/FireBull-STM32F103-FB/board_SSD1289.h index e7c07c70..98e323de 100644 --- a/boards/base/FireBull-STM32F103-FB/board_SSD1289.h +++ b/boards/base/FireBull-STM32F103-FB/board_SSD1289.h @@ -19,7 +19,7 @@ #define SET_RD palSetPad(GPIOD, 15); #define CLR_RD palClearPad(GPIOD, 15); -static inline void init_board(GDisplay *g) +static GFXINLINE void init_board(GDisplay *g) { // As we are not using multiple displays we set g->board to NULL as we don't use it. @@ -43,12 +43,12 @@ static inline void init_board(GDisplay *g) } } -static inline void post_init_board(GDisplay *g) +static GFXINLINE void post_init_board(GDisplay *g) { (void) g; } -static inline void setpin_reset(GDisplay *g, bool_t state) +static GFXINLINE void setpin_reset(GDisplay *g, bool_t state) { (void) g; (void) state; @@ -56,7 +56,7 @@ static inline void setpin_reset(GDisplay *g, bool_t state) /* Nothing to do here - reset pin tied to Vcc */ } -static inline void set_backlight(GDisplay *g, uint8_t percent) +static GFXINLINE void set_backlight(GDisplay *g, uint8_t percent) { (void) g; (void) percent; @@ -64,17 +64,17 @@ static inline void set_backlight(GDisplay *g, uint8_t percent) /* Nothing to do here - Backlight always on */ } -static inline void acquire_bus(GDisplay *g) +static GFXINLINE void acquire_bus(GDisplay *g) { (void) g; } -static inline void release_bus(GDisplay *g) +static GFXINLINE void release_bus(GDisplay *g) { (void) g; } -static inline void write_index(GDisplay *g, uint16_t index) +static GFXINLINE void write_index(GDisplay *g, uint16_t index) { (void) g; @@ -85,7 +85,7 @@ static inline void write_index(GDisplay *g, uint16_t index) SET_RS; } -static inline void write_data(GDisplay *g, uint16_t data) +static GFXINLINE void write_data(GDisplay *g, uint16_t data) { (void) g; @@ -94,7 +94,7 @@ static inline void write_data(GDisplay *g, uint16_t data) SET_WR; } -static inline void setreadmode(GDisplay *g) +static GFXINLINE void setreadmode(GDisplay *g) { (void) g; @@ -103,7 +103,7 @@ static inline void setreadmode(GDisplay *g) CLR_RD; } -static inline void setwritemode(GDisplay *g) +static GFXINLINE void setwritemode(GDisplay *g) { (void) g; @@ -112,7 +112,7 @@ static inline void setwritemode(GDisplay *g) palSetGroupMode(GPIOE, PAL_WHOLE_PORT, 0, PAL_MODE_OUTPUT_PUSHPULL); } -static inline uint16_t read_data(GDisplay *g) { +static GFXINLINE uint16_t read_data(GDisplay *g) { (void) g; return palReadPort(GPIOE); diff --git a/boards/base/FireBull-STM32F103-FB/gmouse_lld_ADS7843_board.h b/boards/base/FireBull-STM32F103-FB/gmouse_lld_ADS7843_board.h index b202dd85..a49394ad 100644 --- a/boards/base/FireBull-STM32F103-FB/gmouse_lld_ADS7843_board.h +++ b/boards/base/FireBull-STM32F103-FB/gmouse_lld_ADS7843_board.h @@ -43,14 +43,14 @@ static bool_t init_board(GMouse* m, unsigned driverinstance) return TRUE; } -static inline bool_t getpin_pressed(GMouse* m) +static GFXINLINE bool_t getpin_pressed(GMouse* m) { (void) m; return (!palReadPad(GPIOC, 4)); } -static inline void aquire_bus(GMouse* m) +static GFXINLINE void aquire_bus(GMouse* m) { (void) m; @@ -58,7 +58,7 @@ static inline void aquire_bus(GMouse* m) palClearPad(GPIOC, 6); } -static inline void release_bus(GMouse* m) +static GFXINLINE void release_bus(GMouse* m) { (void) m; @@ -66,7 +66,7 @@ static inline void release_bus(GMouse* m) spiReleaseBus(&SPID1); } -static inline uint16_t read_value(GMouse* m, uint16_t port) +static GFXINLINE uint16_t read_value(GMouse* m, uint16_t port) { static uint8_t txbuf[3] = {0}; static uint8_t rxbuf[3] = {0}; |