diff options
author | Tectu <joel@unormal.org> | 2012-05-23 14:33:37 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-05-23 14:33:37 +0200 |
commit | 0eea8db0f3c470766e7120ab7dc7250d4e148021 (patch) | |
tree | f482517b0fb84861b4e8602159fc73682ab08158 | |
parent | ec2c5fd4c5d91a0cad30738b9627dc68fff31fb7 (diff) | |
download | uGFX-0eea8db0f3c470766e7120ab7dc7250d4e148021.tar.gz uGFX-0eea8db0f3c470766e7120ab7dc7250d4e148021.tar.bz2 uGFX-0eea8db0f3c470766e7120ab7dc7250d4e148021.zip |
nothing depends on chibios anymore
-rwxr-xr-x | glcd.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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
|