aboutsummaryrefslogtreecommitdiffstats
path: root/boards/addons/gdisp/board_SSD1351_teensy.h
diff options
context:
space:
mode:
Diffstat (limited to 'boards/addons/gdisp/board_SSD1351_teensy.h')
-rw-r--r--boards/addons/gdisp/board_SSD1351_teensy.h25
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 */