aboutsummaryrefslogtreecommitdiffstats
path: root/glcd.h
diff options
context:
space:
mode:
Diffstat (limited to 'glcd.h')
-rwxr-xr-xglcd.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/glcd.h b/glcd.h
index 27c8bf6e..fa3d94f3 100755
--- a/glcd.h
+++ b/glcd.h
@@ -7,14 +7,14 @@
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
-#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 );
+#define Set_Cs LCD_CMD_PORT->ODR |= (1 << GPIOD_LCD_CS);
+#define Clr_Cs LCD_CMD_PORT->ODR &= ~(1 << GPIOD_LCD_CS);
+#define Set_Rs LCD_CMD_PORT->ODR |= (1 << GPIOD_LCD_RS);
+#define Clr_Rs LCD_CMD_PORT->ODR &= ~(1 << GPIOD_LCD_RS);
+#define Set_nWr LCD_CMD_PORT->ODR |= (1 << GPIOD_LCD_WR);
+#define Clr_nWr LCD_CMD_PORT->ODR &= ~(1 << GPIOD_LCD_WR);
+#define Set_nRd LCD_CMD_PORT->ODR |= (1 << GPIOD_LCD_RD);
+#define Clr_nRd LCD_CMD_PORT->ODR &= ~(1 << GPIOD_LCD_RD);
/* LCD color */
#define White 0xFFFF