aboutsummaryrefslogtreecommitdiffstats
path: root/glcd.h
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-06-07 22:49:58 +0200
committerTectu <joel@unormal.org>2012-06-07 22:49:58 +0200
commitc9bcd5daea16ecb2244ca2173f84508722c5303f (patch)
treee9da114c9e8cc26790407cf25ace1b46f1d8a461 /glcd.h
parent9bb981d4da5ffc48fb59f2d8866d5a34a85aadb3 (diff)
downloaduGFX-c9bcd5daea16ecb2244ca2173f84508722c5303f.tar.gz
uGFX-c9bcd5daea16ecb2244ca2173f84508722c5303f.tar.bz2
uGFX-c9bcd5daea16ecb2244ca2173f84508722c5303f.zip
cleanups
Diffstat (limited to 'glcd.h')
-rw-r--r--glcd.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/glcd.h b/glcd.h
index fcb5461d..cc237655 100644
--- a/glcd.h
+++ b/glcd.h
@@ -10,14 +10,14 @@
#define PORTRAIT (lcdGetOrientation() == portrait || lcdGetOrientation() == portraitInv)
#define LANDSCAPE (lcdGetOrientation() == landscape || lcdGetOrientation() == landscapeInv)
-#define Set_CS LCD_CMD_PORT->ODR |= (1 << LCD_CS);
-#define Clr_CS LCD_CMD_PORT->ODR &= ~(1 << LCD_CS);
-#define Set_RS LCD_CMD_PORT->ODR |= (1 << LCD_RS);
-#define Clr_RS LCD_CMD_PORT->ODR &= ~(1 << LCD_RS);
-#define Set_WR LCD_CMD_PORT->ODR |= (1 << LCD_WR);
-#define Clr_WR LCD_CMD_PORT->ODR &= ~(1 << LCD_WR);
-#define Set_RD LCD_CMD_PORT->ODR |= (1 << LCD_RD);
-#define Clr_RD LCD_CMD_PORT->ODR &= ~(1 << LCD_RD);
+#define Set_CS palSetPad(LCD_CMD_PORT, LCD_CS);
+#define Clr_CS palClearPad(LCD_CMD_PORT, LCD_CS);
+#define Set_RS palSetPad(LCD_CMD_PORT, LCD_RS);
+#define Clr_RS palClearPad(LCD_CMD_PORT, LCD_RS);
+#define Set_WR palSetPad(LCD_CMD_PORT, LCD_WR);
+#define Clr_WR palClearPad(LCD_CMD_PORT, LCD_WR);
+#define Set_RD palSetPad(LCD_CMD_PORT, LCD_RD);
+#define Clr_RD palClearPad(LCD_CMD_PORT, LCD_RD);
/* LCD color */
#define White 0xFFFF