hd44780_at91.c File Reference

Go to the source code of this file.

Defines

#define LCD_2x16
#define LCD_ROWS   2
#define LCD_COLS   16
#define LCD_PIO_ID   PIO_ID
 GPIO controller ID.
#define LCD_PIO_PE_REG   PIOA_PER
 LCD GPIO enable register.
#define LCD_PIO_OE_REG   PIOA_OER
 LCD GPIO output enable register.
#define LCD_PIO_SOD_REG   PIOA_SODR
 LCD GPIO output disable register.
#define LCD_PIO_COD_REG   PIOA_CODR
 LCD GPIO clear output data register.
#define LCD_DATA_LSB   0
 LCD GPIO pin data status register.
#define LCD_DATA   (0xF << LCD_DATA_LSB)
#define LCD_ENABLE_BIT   4
#define LCD_EN   _BV(LCD_ENABLE_BIT)
#define LCD_REGSEL_BIT   7
#define LCD_RS   _BV(LCD_REGSEL_BIT)
#define LCD_SHORT_DELAY   10
#define LCD_LONG_DELAY   1000

Variables

TERMDCB dcb_term
 Terminal device control block structure.
NUTDEVICE devLcd
 LCD device information structure.


Define Documentation

#define LCD_2x16

Definition at line 107 of file hd44780_at91.c.

#define LCD_ROWS   2

Definition at line 119 of file hd44780_at91.c.

#define LCD_COLS   16

Definition at line 131 of file hd44780_at91.c.

#define LCD_PIO_ID   PIO_ID

GPIO controller ID.

Definition at line 144 of file hd44780_at91.c.

#define LCD_PIO_PE_REG   PIOA_PER

LCD GPIO enable register.

Definition at line 153 of file hd44780_at91.c.

#define LCD_PIO_OE_REG   PIOA_OER

LCD GPIO output enable register.

Definition at line 168 of file hd44780_at91.c.

#define LCD_PIO_SOD_REG   PIOA_SODR

LCD GPIO output disable register.

LCD GPIO set output data register.

Definition at line 200 of file hd44780_at91.c.

#define LCD_PIO_COD_REG   PIOA_CODR

LCD GPIO clear output data register.

Definition at line 215 of file hd44780_at91.c.

#define LCD_DATA_LSB   0

LCD GPIO pin data status register.

Definition at line 243 of file hd44780_at91.c.

#define LCD_DATA   (0xF << LCD_DATA_LSB)

Definition at line 247 of file hd44780_at91.c.

#define LCD_ENABLE_BIT   4

Definition at line 257 of file hd44780_at91.c.

#define LCD_EN   _BV(LCD_ENABLE_BIT)

Definition at line 259 of file hd44780_at91.c.

#define LCD_REGSEL_BIT   7

Definition at line 262 of file hd44780_at91.c.

#define LCD_RS   _BV(LCD_REGSEL_BIT)

Definition at line 264 of file hd44780_at91.c.

#define LCD_SHORT_DELAY   10

Definition at line 271 of file hd44780_at91.c.

#define LCD_LONG_DELAY   1000

Definition at line 275 of file hd44780_at91.c.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/