cleanups
This commit is contained in:
parent
9bb981d4da
commit
c9bcd5daea
1 changed files with 8 additions and 8 deletions
16
glcd.h
16
glcd.h
|
@ -10,14 +10,14 @@
|
|||
#define PORTRAIT (lcdGetOrientation() == portrait || lcdGetOrientation() == portraitInv)
|
||||
#define LANDSCAPE (lcdGetOrientation() == landscape || lcdGetOrientation() == landscapeInv)
|
||||
|
||||
#define Set_CS LCD_CMD_PORT->ODR |= (1 << LCD_CS);
|
||||
#define Clr_CS LCD_CMD_PORT->ODR &= ~(1 << LCD_CS);
|
||||
#define Set_RS LCD_CMD_PORT->ODR |= (1 << LCD_RS);
|
||||
#define Clr_RS LCD_CMD_PORT->ODR &= ~(1 << LCD_RS);
|
||||
#define Set_WR LCD_CMD_PORT->ODR |= (1 << LCD_WR);
|
||||
#define Clr_WR LCD_CMD_PORT->ODR &= ~(1 << LCD_WR);
|
||||
#define Set_RD LCD_CMD_PORT->ODR |= (1 << LCD_RD);
|
||||
#define Clr_RD LCD_CMD_PORT->ODR &= ~(1 << LCD_RD);
|
||||
#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
|
||||
|
|
Loading…
Add table
Reference in a new issue