aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2013-05-15 18:00:42 +0200
committerJoel Bodenmann <joel@unormal.org>2013-05-15 18:00:42 +0200
commit11a71cb080d7548f362583baaced74675b6718ad (patch)
treed88f72c3e2a4e42f27c5bd824a978e783c89de5c /drivers
parent4ba223030d6d2044e16c54560e00d93df32eacd8 (diff)
downloaduGFX-11a71cb080d7548f362583baaced74675b6718ad.tar.gz
uGFX-11a71cb080d7548f362583baaced74675b6718ad.tar.bz2
uGFX-11a71cb080d7548f362583baaced74675b6718ad.zip
TDISP fixes
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tdisp/HD44780/tdisp_lld.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/tdisp/HD44780/tdisp_lld.c b/drivers/tdisp/HD44780/tdisp_lld.c
index ad38df8e..bfe202fc 100644
--- a/drivers/tdisp/HD44780/tdisp_lld.c
+++ b/drivers/tdisp/HD44780/tdisp_lld.c
@@ -112,7 +112,7 @@ bool_t tdisp_lld_init(void) {
// write_cmd(0x38);
// chThdSleepMilliseconds(64);
//
-// displaycontrol = DISPLAY_ON | CURSOR_ON | CURSOR_BLINK; // The default displaycontrol
+// displaycontrol = TDISP_DISPLAY_ON | TDISP_CURSOR_ON | TDISP_CURSOR_BLINK; // The default displaycontrol
// write_cmd(0x08 | displaycontrol);
// chThdSleepMicroseconds(50);
//
@@ -171,26 +171,26 @@ void tdisp_lld_control(uint16_t what, uint16_t value) {
switch(what) {
case TDISP_CTRL_BACKLIGHT:
if ((uint8_t)value)
- displaycontrol |= DISPLAY_ON;
+ displaycontrol |= TDISP_DISPLAY_ON;
else
- displaycontrol &= ~DISPLAY_ON;
+ displaycontrol &= ~TDISP_DISPLAY_ON;
write_cmd(0x08 | displaycontrol);
break;
case TDISP_CTRL_CURSOR:
switch((uint8_t)value) {
case cursorOff:
- displaycontrol &= ~CURSOR_ON;
+ displaycontrol &= ~TDISP_CURSOR_ON;
break;
case cursorBlock:
case cursorUnderline:
case cursorBar:
- displaycontrol = (displaycontrol | CURSOR_ON) & ~CURSOR_BLINK;
+ displaycontrol = (displaycontrol | TDISP_CURSOR_ON) & ~TDISP_CURSOR_BLINK;
break;
case cursorBlinkingBlock:
case cursorBlinkingUnderline:
case cursorBlinkingBar:
default:
- displaycontrol |= (CURSOR_ON | CURSOR_BLINK);
+ displaycontrol |= (TDISP_CURSOR_ON | TDISP_CURSOR_BLINK);
break;
}
write_cmd(0x08 | displaycontrol);