aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-06-11 17:38:26 +0200
committerTectu <joel@unormal.org>2012-06-11 17:38:26 +0200
commite8c4fc8e31fb1c5dc6884102adf4ac6be208b570 (patch)
treec1e5d8ae6a64141d285a3a72f5ca9b0dd24c6396
parent4080e2788cf40c5d54e9af03d1c5053995c215b6 (diff)
downloaduGFX-e8c4fc8e31fb1c5dc6884102adf4ac6be208b570.tar.gz
uGFX-e8c4fc8e31fb1c5dc6884102adf4ac6be208b570.tar.bz2
uGFX-e8c4fc8e31fb1c5dc6884102adf4ac6be208b570.zip
fixes
-rw-r--r--drivers/ssd1289_lld.h9
-rw-r--r--glcd.h9
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/ssd1289_lld.h b/drivers/ssd1289_lld.h
index 650ceb04..bfcfe105 100644
--- a/drivers/ssd1289_lld.h
+++ b/drivers/ssd1289_lld.h
@@ -5,6 +5,15 @@
#include "glcd.h"
+#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);
+
void lld_lcdInit(void);
void lld_lcdSetCursor(uint16_t x, uint16_t y);
void lld_lcdSetOrientation(uint8_t newOrientation);
diff --git a/glcd.h b/glcd.h
index 38e5ea68..5a2ac0c8 100644
--- a/glcd.h
+++ b/glcd.h
@@ -12,15 +12,6 @@
#define PORTRAIT (lcdGetOrientation() == portrait || lcdGetOrientation() == portraitInv)
#define LANDSCAPE (lcdGetOrientation() == landscape || lcdGetOrientation() == landscapeInv)
-#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
#define Black 0x0000