From e8c4fc8e31fb1c5dc6884102adf4ac6be208b570 Mon Sep 17 00:00:00 2001 From: Tectu Date: Mon, 11 Jun 2012 17:38:26 +0200 Subject: [PATCH] fixes --- drivers/ssd1289_lld.h | 9 +++++++++ glcd.h | 9 --------- 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