aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/SSD1963/ssd1963.h
diff options
context:
space:
mode:
authormobyfab <mobyfab@free.fr>2012-09-04 12:51:35 +0200
committermobyfab <mobyfab@free.fr>2012-09-04 12:51:35 +0200
commit75a3a98228913840c8f63e7e80118b18b29dc109 (patch)
tree3d6b282c11fa619dcec5d02ea7dd62aacb8bd90a /drivers/gdisp/SSD1963/ssd1963.h
parentf47bbcb9a70abcfe7a281b468398143b9a4bf184 (diff)
downloaduGFX-75a3a98228913840c8f63e7e80118b18b29dc109.tar.gz
uGFX-75a3a98228913840c8f63e7e80118b18b29dc109.tar.bz2
uGFX-75a3a98228913840c8f63e7e80118b18b29dc109.zip
Adding GPIO to SSD1963
Diffstat (limited to 'drivers/gdisp/SSD1963/ssd1963.h')
-rw-r--r--drivers/gdisp/SSD1963/ssd1963.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/gdisp/SSD1963/ssd1963.h b/drivers/gdisp/SSD1963/ssd1963.h
index 19e3094a..198a160b 100644
--- a/drivers/gdisp/SSD1963/ssd1963.h
+++ b/drivers/gdisp/SSD1963/ssd1963.h
@@ -31,7 +31,7 @@
#include "gdisp_lld_panel.h"
-#ifdef LCD_USE_GPIO
+#if defined(LCD_USE_GPIO)
#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);
@@ -42,16 +42,10 @@
#define Clr_RD palClearPad(LCD_CMD_PORT, LCD_RD);
#endif
-#ifdef LCD_USE_SPI
- /* TODO */
-#endif
-
-#ifdef LCD_USE_FSMC
-
-/* Using FSMC A16 as RS */
-#define LCD_REG (*((volatile uint16_t *) 0x60000000)) /* RS = 0 */
-#define LCD_RAM (*((volatile uint16_t *) 0x60020000)) /* RS = 1 */
-
+#if defined(LCD_USE_FSMC)
+ /* Using FSMC A16 as RS */
+ #define LCD_REG (*((volatile uint16_t *) 0x60000000)) /* RS = 0 */
+ #define LCD_RAM (*((volatile uint16_t *) 0x60020000)) /* RS = 1 */
#endif
#define mHIGH(x) (x >> 8)