aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/Nokia6610/gdisp_lld_board_example.h
diff options
context:
space:
mode:
authorAndrew Hannam <andrewh@inmarket.com.au>2012-11-15 15:31:22 +1000
committerAndrew Hannam <andrewh@inmarket.com.au>2012-11-15 15:31:22 +1000
commite34ebdcae5d457dda0d9d109951983c7e24bd588 (patch)
tree1be8216663266c9284cca4a2e29d34c81777a75a /drivers/gdisp/Nokia6610/gdisp_lld_board_example.h
parentf6455189f809f651038ec8e35131ffbe22867d16 (diff)
downloaduGFX-e34ebdcae5d457dda0d9d109951983c7e24bd588.tar.gz
uGFX-e34ebdcae5d457dda0d9d109951983c7e24bd588.tar.bz2
uGFX-e34ebdcae5d457dda0d9d109951983c7e24bd588.zip
Updates to gdisp Nokia driver
For gdisp Nokia driver - Add get_bus and release_bus into the board interface definition - Tidy the code up for readability using some macros.
Diffstat (limited to 'drivers/gdisp/Nokia6610/gdisp_lld_board_example.h')
-rw-r--r--drivers/gdisp/Nokia6610/gdisp_lld_board_example.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/drivers/gdisp/Nokia6610/gdisp_lld_board_example.h b/drivers/gdisp/Nokia6610/gdisp_lld_board_example.h
index e78c1653..3a547d09 100644
--- a/drivers/gdisp/Nokia6610/gdisp_lld_board_example.h
+++ b/drivers/gdisp/Nokia6610/gdisp_lld_board_example.h
@@ -72,13 +72,31 @@ static __inline void GDISP_LLD(set_backlight)(uint8_t percent) {
}
/**
+ * @brief Take exclusive control of the bus
+ *
+ * @notapi
+ */
+static __inline void GDISP_LLD(get_bus)(void) {
+#error "gdispNokia6610: You must supply a definition for get_bus for your board"
+}
+
+/**
+ * @brief Release exclusive control of the bus
+ *
+ * @notapi
+ */
+static __inline void GDISP_LLD(release_bus)(void) {
+#error "gdispNokia6610: You must supply a definition for release_bus for your board"
+}
+
+/**
* @brief Send an 8 bit command to the lcd.
*
- * @param[in] data The command to send
+ * @param[in] cmd The command to send
*
* @notapi
*/
-static __inline void GDISP_LLD(write_cmd)(uint16_t data) {
+static __inline void GDISP_LLD(write_cmd)(uint16_t cmd) {
/* Code here */
#error "gdispNokia6610: You must supply a definition for write_cmd for your board"
}