Go to the source code of this file.
Defines | |
#define | LCD_ROWS 2 |
#define | LCD_COLS 16 |
#define | LCD_SHORT_DELAY 100 |
#define | LCD_LONG_DELAY 1000 |
#define | LCD_CS_PIO_ID PIO_ID |
GPIO controller ID. | |
#define | LCD_CS_BIT 0 |
#define | LCD_RS_PIO_ID PIO_ID |
#define | LCD_RS_BIT 3 |
#define | LCD_CLK_PIO_ID PIO_ID |
#define | LCD_CLK_BIT 1 |
#define | LCD_MOSI_PIO_ID PIO_ID |
#define | LCD_MOSI_BIT 2 |
#define | LCD_CS _BV(LCD_CS_BIT) |
#define | LCD_RS _BV(LCD_RS_BIT) |
#define | LCD_CLK _BV(LCD_CLK_BIT) |
#define | LCD_MOSI _BV(LCD_MOSI_BIT) |
#define | LCD_CS_SET() { outr(PIOA_PER, LCD_CS); outr(PIOA_SODR, LCD_CS); outr(PIOA_OER, LCD_CS); } |
#define | LCD_CS_CLR() { outr(PIOA_PER, LCD_CS); outr(PIOA_CODR, LCD_CS); outr(PIOA_OER, LCD_CS); } |
#define | LCD_RS_SET() { outr(PIOA_PER, LCD_RS); outr(PIOA_SODR, LCD_RS); outr(PIOA_OER, LCD_RS); } |
#define | LCD_RS_CLR() { outr(PIOA_PER, LCD_RS); outr(PIOA_CODR, LCD_RS); outr(PIOA_OER, LCD_RS); } |
#define | LCD_CLK_SET() { outr(PIOA_PER, LCD_CLK); outr(PIOA_SODR, LCD_CLK); outr(PIOA_OER, LCD_CLK); } |
#define | LCD_CLK_CLR() { outr(PIOA_PER, LCD_CLK); outr(PIOA_CODR, LCD_CLK); outr(PIOA_OER, LCD_CLK); } |
#define | LCD_MOSI_SET() { outr(PIOA_PER, LCD_MOSI); outr(PIOA_SODR, LCD_MOSI); outr(PIOA_OER, LCD_MOSI); } |
#define | LCD_MOSI_CLR() { outr(PIOA_PER, LCD_MOSI); outr(PIOA_CODR, LCD_MOSI); outr(PIOA_OER, LCD_MOSI); } |
Variables | |
NUTDEVICE | devSbiLcd |
LCD device information structure. |
#define LCD_ROWS 2 |
Definition at line 57 of file st7036_at91.c.
#define LCD_COLS 16 |
Definition at line 61 of file st7036_at91.c.
#define LCD_SHORT_DELAY 100 |
Definition at line 65 of file st7036_at91.c.
#define LCD_LONG_DELAY 1000 |
Definition at line 69 of file st7036_at91.c.
#define LCD_CS_PIO_ID PIO_ID |
#define LCD_CS_BIT 0 |
Definition at line 171 of file st7036_at91.c.
#define LCD_RS_PIO_ID PIO_ID |
Definition at line 175 of file st7036_at91.c.
#define LCD_RS_BIT 3 |
Definition at line 178 of file st7036_at91.c.
#define LCD_CLK_PIO_ID PIO_ID |
Definition at line 182 of file st7036_at91.c.
#define LCD_CLK_BIT 1 |
Definition at line 185 of file st7036_at91.c.
#define LCD_MOSI_PIO_ID PIO_ID |
Definition at line 189 of file st7036_at91.c.
#define LCD_MOSI_BIT 2 |
Definition at line 192 of file st7036_at91.c.
#define LCD_CS _BV(LCD_CS_BIT) |
Definition at line 197 of file st7036_at91.c.
#define LCD_RS _BV(LCD_RS_BIT) |
Definition at line 198 of file st7036_at91.c.
#define LCD_CLK _BV(LCD_CLK_BIT) |
Definition at line 199 of file st7036_at91.c.
#define LCD_MOSI _BV(LCD_MOSI_BIT) |
Definition at line 200 of file st7036_at91.c.
#define LCD_CS_SET | ( | ) | { outr(PIOA_PER, LCD_CS); outr(PIOA_SODR, LCD_CS); outr(PIOA_OER, LCD_CS); } |
Definition at line 204 of file st7036_at91.c.
#define LCD_CS_CLR | ( | ) | { outr(PIOA_PER, LCD_CS); outr(PIOA_CODR, LCD_CS); outr(PIOA_OER, LCD_CS); } |
Definition at line 205 of file st7036_at91.c.
#define LCD_RS_SET | ( | ) | { outr(PIOA_PER, LCD_RS); outr(PIOA_SODR, LCD_RS); outr(PIOA_OER, LCD_RS); } |
Definition at line 218 of file st7036_at91.c.
#define LCD_RS_CLR | ( | ) | { outr(PIOA_PER, LCD_RS); outr(PIOA_CODR, LCD_RS); outr(PIOA_OER, LCD_RS); } |
Definition at line 219 of file st7036_at91.c.
#define LCD_CLK_SET | ( | ) | { outr(PIOA_PER, LCD_CLK); outr(PIOA_SODR, LCD_CLK); outr(PIOA_OER, LCD_CLK); } |
Definition at line 232 of file st7036_at91.c.
#define LCD_CLK_CLR | ( | ) | { outr(PIOA_PER, LCD_CLK); outr(PIOA_CODR, LCD_CLK); outr(PIOA_OER, LCD_CLK); } |
Definition at line 233 of file st7036_at91.c.
#define LCD_MOSI_SET | ( | ) | { outr(PIOA_PER, LCD_MOSI); outr(PIOA_SODR, LCD_MOSI); outr(PIOA_OER, LCD_MOSI); } |
Definition at line 246 of file st7036_at91.c.
#define LCD_MOSI_CLR | ( | ) | { outr(PIOA_PER, LCD_MOSI); outr(PIOA_CODR, LCD_MOSI); outr(PIOA_OER, LCD_MOSI); } |
Definition at line 247 of file st7036_at91.c.