aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-05-23 14:33:37 +0200
committerTectu <joel@unormal.org>2012-05-23 14:33:37 +0200
commit0eea8db0f3c470766e7120ab7dc7250d4e148021 (patch)
treef482517b0fb84861b4e8602159fc73682ab08158
parentec2c5fd4c5d91a0cad30738b9627dc68fff31fb7 (diff)
downloaduGFX-0eea8db0f3c470766e7120ab7dc7250d4e148021.tar.gz
uGFX-0eea8db0f3c470766e7120ab7dc7250d4e148021.tar.bz2
uGFX-0eea8db0f3c470766e7120ab7dc7250d4e148021.zip
nothing depends on chibios anymore
-rwxr-xr-xglcd.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/glcd.h b/glcd.h
index 02a07737..27c8bf6e 100755
--- a/glcd.h
+++ b/glcd.h
@@ -7,14 +7,14 @@
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
-#define Set_Cs palSetPad(GPIOD, GPIOD_LCD_CS);
-#define Clr_Cs palClearPad(GPIOD, GPIOD_LCD_CS);
-#define Set_Rs palSetPad(GPIOD, GPIOD_LCD_RS);
-#define Clr_Rs palClearPad(GPIOD, GPIOD_LCD_RS);
-#define Set_nWr palSetPad(GPIOD, GPIOD_LCD_WR);
-#define Clr_nWr palClearPad(GPIOD, GPIOD_LCD_WR);
-#define Set_nRd palSetPad(GPIOD, GPIOD_LCD_RD);
-#define Clr_nRd palClearPad(GPIOD, GPIOD_LCD_RD);
+#define Set_Cs LCD_PORT->ODR |= ( 1<<12 );
+#define Clr_Cs LCD_PORT->ODR &= ~( 1<<12 );
+#define Set_Rs LCD_PORT->ODR |= ( 1<<13 );
+#define Clr_Rs LCD_PORT->ODR &= ~( 1<<13 );
+#define Set_nWr LCD_PORT->ODR |= ( 1<<14 );
+#define Clr_nWr LCD_PORT->ODR &= ~( 1<<14 );
+#define Set_nRd LCD_PORT->ODR |= ( 1<<15 );
+#define Clr_nRd LCD_PORT->ODR &= ~( 1<<15 );
/* LCD color */
#define White 0xFFFF