diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-06-23 13:02:07 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-06-23 13:02:07 +1000 |
commit | 41271d632b74f5cf47c30d3b699eb6b2786f2136 (patch) | |
tree | 78bcb729c6d6177ca598f28908fefd186c50e9b6 /boards/addons/gdisp/board_SSD1351_teensy.h | |
parent | 3b97fb798e96514057bcf17263c1e5dbdcd7da26 (diff) | |
download | uGFX-41271d632b74f5cf47c30d3b699eb6b2786f2136.tar.gz uGFX-41271d632b74f5cf47c30d3b699eb6b2786f2136.tar.bz2 uGFX-41271d632b74f5cf47c30d3b699eb6b2786f2136.zip |
Added new type definitions - moving towards V3.0
Diffstat (limited to 'boards/addons/gdisp/board_SSD1351_teensy.h')
-rw-r--r-- | boards/addons/gdisp/board_SSD1351_teensy.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/boards/addons/gdisp/board_SSD1351_teensy.h b/boards/addons/gdisp/board_SSD1351_teensy.h index 92a8ba4f..3273effb 100644 --- a/boards/addons/gdisp/board_SSD1351_teensy.h +++ b/boards/addons/gdisp/board_SSD1351_teensy.h @@ -8,17 +8,6 @@ #ifndef _GDISP_LLD_BOARD_H #define _GDISP_LLD_BOARD_H -#ifdef __cplusplus -extern "C" { -#endif // __cplusplus - -extern void ssd1351_init_board(void); -extern void ssd1351_setpin_reset(int state); -extern void ssd1351_acquire_bus(void); -extern void ssd1351_release_bus(void); -extern void ssd1351_write_cmd(unsigned char index); -extern void ssd1351_write_data(unsigned char data); - #define init_board(g) ssd1351_init_board() #define post_init_board(g) #define setpin_reset(g, s) ssd1351_setpin_reset(s) @@ -28,8 +17,20 @@ extern void ssd1351_write_data(unsigned char data); #define write_cmd(g, i) ssd1351_write_cmd(i) #define write_data(g, d) ssd1351_write_cmd(d) +/* This test is needed as this file is also included in the .cpp file providing the below functions */ +#ifdef __cplusplus +extern "C" { +#endif + +void ssd1351_init_board(void); +void ssd1351_setpin_reset(int state); +void ssd1351_acquire_bus(void); +void ssd1351_release_bus(void); +void ssd1351_write_cmd(unsigned char index); +void ssd1351_write_data(unsigned char data); + #ifdef __cplusplus } -#endif // __cplusplus +#endif #endif /* _GDISP_LLD_BOARD_H */ |