aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/SSD1289/board_SSD1289_template.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-10-18 16:44:56 +1000
committerinmarket <andrewh@inmarket.com.au>2013-10-18 16:44:56 +1000
commitc9311d9851c28f555a26de8757d7aca9caa255d3 (patch)
tree4df9e53a6ce21464ce051265557427982eaa0d84 /drivers/gdisp/SSD1289/board_SSD1289_template.h
parent66d2d279674852f9c8631e1eb6a82f68b01778c1 (diff)
downloaduGFX-c9311d9851c28f555a26de8757d7aca9caa255d3.tar.gz
uGFX-c9311d9851c28f555a26de8757d7aca9caa255d3.tar.bz2
uGFX-c9311d9851c28f555a26de8757d7aca9caa255d3.zip
Changed board_XXXX_template.h so that it can be directly copied to board_XXXX.h in the project directory and it will compile with stub functions.
Diffstat (limited to 'drivers/gdisp/SSD1289/board_SSD1289_template.h')
-rw-r--r--drivers/gdisp/SSD1289/board_SSD1289_template.h32
1 files changed, 23 insertions, 9 deletions
diff --git a/drivers/gdisp/SSD1289/board_SSD1289_template.h b/drivers/gdisp/SSD1289/board_SSD1289_template.h
index 941950b3..db841c2c 100644
--- a/drivers/gdisp/SSD1289/board_SSD1289_template.h
+++ b/drivers/gdisp/SSD1289/board_SSD1289_template.h
@@ -28,6 +28,8 @@
* @notapi
*/
static inline void init_board(GDisplay *g, unsigned display) {
+ (void) g;
+ (void) display;
}
/**
@@ -38,6 +40,7 @@ static inline void init_board(GDisplay *g, unsigned display) {
* @notapi
*/
static inline void post_init_board(GDisplay *g) {
+ (void) g;
}
/**
@@ -49,7 +52,8 @@ static inline void post_init_board(GDisplay *g) {
* @notapi
*/
static inline void setpin_reset(GDisplay *g, bool_t state) {
-
+ (void) g;
+ (void) state;
}
/**
@@ -61,7 +65,8 @@ static inline void setpin_reset(GDisplay *g, bool_t state) {
* @notapi
*/
static inline void set_backlight(GDisplay *g, uint8_t percent) {
-
+ (void) g;
+ (void) percent;
}
/**
@@ -72,7 +77,7 @@ static inline void set_backlight(GDisplay *g, uint8_t percent) {
* @notapi
*/
static inline void acquire_bus(GDisplay *g) {
-
+ (void) g;
}
/**
@@ -83,7 +88,7 @@ static inline void acquire_bus(GDisplay *g) {
* @notapi
*/
static inline void release_bus(GDisplay *g) {
-
+ (void) g;
}
/**
@@ -95,7 +100,8 @@ static inline void release_bus(GDisplay *g) {
* @notapi
*/
static inline void write_index(GDisplay *g, uint16_t index) {
-
+ (void) g;
+ (void) index;
}
/**
@@ -107,7 +113,8 @@ static inline void write_index(GDisplay *g, uint16_t index) {
* @notapi
*/
static inline void write_data(GDisplay *g, uint16_t data) {
-
+ (void) g;
+ (void) data;
}
/**
@@ -118,7 +125,7 @@ static inline void write_data(GDisplay *g, uint16_t data) {
* @notapi
*/
static inline void setreadmode(GDisplay *g) {
-
+ (void) g;
}
/**
@@ -129,7 +136,7 @@ static inline void setreadmode(GDisplay *g) {
* @notapi
*/
static inline void setwritemode(GDisplay *g) {
-
+ (void) g;
}
/**
@@ -144,7 +151,8 @@ static inline void setwritemode(GDisplay *g) {
* @notapi
*/
static inline uint16_t read_data(GDisplay *g) {
-
+ (void) g;
+ return 0;
}
/**
@@ -163,6 +171,9 @@ static inline uint16_t read_data(GDisplay *g) {
* @notapi
*/
static inline void dma_with_noinc(GDisplay *g, color_t *buffer, int area) {
+ (void) g;
+ (void) buffer;
+ (void) area;
}
/**
@@ -175,6 +186,9 @@ static inline uint16_t read_data(GDisplay *g) {
* @notapi
*/
static inline void dma_with_inc(GDisplay *g, color_t *buffer, int area) {
+ (void) g;
+ (void) buffer;
+ (void) area;
}
#endif