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 02:55:21 +1000
committerAndrew Hannam <andrewh@inmarket.com.au>2012-11-15 02:55:21 +1000
commit4d521cff13cb24ee839986e2c2ddcdd56874d279 (patch)
treee3f7c410ab7c0694741c6da077f3f5dcce6d3e10 /drivers/gdisp/Nokia6610/gdisp_lld_board_example.h
parent00f95af7f8164b1300fc40748134bada9acf0483 (diff)
downloaduGFX-4d521cff13cb24ee839986e2c2ddcdd56874d279.tar.gz
uGFX-4d521cff13cb24ee839986e2c2ddcdd56874d279.tar.bz2
uGFX-4d521cff13cb24ee839986e2c2ddcdd56874d279.zip
Gdisp lld driver corrections
Corrections to Nokia gdisp driver - Fix for the application calling the unsupported gdispSetOrientation and gdispSetPower - Implemented full backlight control (on/off only currently) Corrections to the Ili9320 driver - Fix for the application calling the unsupported gdispSetOrientation - Fix for initialisation of the backlight - Fix for backlight when using display low power modes.
Diffstat (limited to 'drivers/gdisp/Nokia6610/gdisp_lld_board_example.h')
-rw-r--r--drivers/gdisp/Nokia6610/gdisp_lld_board_example.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gdisp/Nokia6610/gdisp_lld_board_example.h b/drivers/gdisp/Nokia6610/gdisp_lld_board_example.h
index c76cf83c..e78c1653 100644
--- a/drivers/gdisp/Nokia6610/gdisp_lld_board_example.h
+++ b/drivers/gdisp/Nokia6610/gdisp_lld_board_example.h
@@ -57,6 +57,21 @@ static __inline void GDISP_LLD(setpin_reset)(bool_t state) {
}
/**
+ * @brief Set the lcd back-light level.
+ * @note For now 0% turns the backlight off, anything else the backlight is on.
+ * While the hardware supports PWM backlight control, we are not using it
+ * yet.
+ *
+ * @param[in] percent 0 to 100%
+ *
+ * @notapi
+ */
+static __inline void GDISP_LLD(set_backlight)(uint8_t percent) {
+ /* Code here */
+#error "gdispNokia6610: You must supply a definition for set_backlight for your board"
+}
+
+/**
* @brief Send an 8 bit command to the lcd.
*
* @param[in] data The command to send