diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-10-23 18:24:49 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-10-23 18:24:49 +1000 |
commit | 48a9d334b7a5b462b32c17a5fde07159deb4c280 (patch) | |
tree | 0f7032657b98730750a74ba6d09d01f2de119d4d /boards/base/STM32F429i-Discovery | |
parent | 17c940423ba2159b20965ea6d004386bc392aa68 (diff) | |
download | uGFX-48a9d334b7a5b462b32c17a5fde07159deb4c280.tar.gz uGFX-48a9d334b7a5b462b32c17a5fde07159deb4c280.tar.bz2 uGFX-48a9d334b7a5b462b32c17a5fde07159deb4c280.zip |
Replace all inline definitions with GFXINLINE
Diffstat (limited to 'boards/base/STM32F429i-Discovery')
-rw-r--r-- | boards/base/STM32F429i-Discovery/board_STM32F429iDiscovery.h | 14 | ||||
-rw-r--r-- | boards/base/STM32F429i-Discovery/gmouse_lld_STMPE811_board.h | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/boards/base/STM32F429i-Discovery/board_STM32F429iDiscovery.h b/boards/base/STM32F429i-Discovery/board_STM32F429iDiscovery.h index 274c97cd..cdea4b54 100644 --- a/boards/base/STM32F429i-Discovery/board_STM32F429iDiscovery.h +++ b/boards/base/STM32F429i-Discovery/board_STM32F429iDiscovery.h @@ -48,7 +48,7 @@ static const ltdcConfig driverCfg = { LTDC_UNUSED_LAYER_CONFIG }; -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. g->board = 0; @@ -88,28 +88,28 @@ 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 set_backlight(GDisplay *g, uint8_t percent) { +static GFXINLINE void set_backlight(GDisplay *g, uint8_t percent) { (void) g; (void) percent; } -static inline void acquire_bus(GDisplay *g) { +static GFXINLINE void acquire_bus(GDisplay *g) { (void) g; spiSelect(SPI_PORT); } -static inline void release_bus(GDisplay *g) { +static GFXINLINE void release_bus(GDisplay *g) { (void) g; spiUnselect(SPI_PORT); } -static inline void write_index(GDisplay *g, uint8_t index) { +static GFXINLINE void write_index(GDisplay *g, uint8_t index) { static uint8_t sindex; (void) g; @@ -118,7 +118,7 @@ static inline void write_index(GDisplay *g, uint8_t index) { spiSend(SPI_PORT, 1, &sindex); } -static inline void write_data(GDisplay *g, uint8_t data) { +static GFXINLINE void write_data(GDisplay *g, uint8_t data) { static uint8_t sdata; (void) g; diff --git a/boards/base/STM32F429i-Discovery/gmouse_lld_STMPE811_board.h b/boards/base/STM32F429i-Discovery/gmouse_lld_STMPE811_board.h index f5bab2b9..10b757bc 100644 --- a/boards/base/STM32F429i-Discovery/gmouse_lld_STMPE811_board.h +++ b/boards/base/STM32F429i-Discovery/gmouse_lld_STMPE811_board.h @@ -68,12 +68,12 @@ static bool_t init_board(GMouse* m, unsigned driverinstance) { } #endif -static inline void aquire_bus(GMouse* m) { +static GFXINLINE void aquire_bus(GMouse* m) { (void) m; } -static inline void release_bus(GMouse* m) { +static GFXINLINE void release_bus(GMouse* m) { (void) m; } |