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. LCD GPIO set output data 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 95 of file hd44780_at91.c.

#define LCD_ROWS   2

Definition at line 107 of file hd44780_at91.c.

#define LCD_COLS   16

Definition at line 119 of file hd44780_at91.c.

#define LCD_PIO_ID   PIO_ID

GPIO controller ID.

Definition at line 132 of file hd44780_at91.c.

#define LCD_PIO_PE_REG   PIOA_PER

LCD GPIO enable register.

Definition at line 141 of file hd44780_at91.c.

#define LCD_PIO_OE_REG   PIOA_OER

LCD GPIO output enable register.

Definition at line 156 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 188 of file hd44780_at91.c.

#define LCD_PIO_COD_REG   PIOA_CODR

LCD GPIO clear output data register.

Definition at line 203 of file hd44780_at91.c.

#define LCD_DATA_LSB   0

LCD GPIO pin data status register.

Definition at line 231 of file hd44780_at91.c.

#define LCD_DATA   (0xF << LCD_DATA_LSB)

Definition at line 235 of file hd44780_at91.c.

#define LCD_ENABLE_BIT   4

Definition at line 245 of file hd44780_at91.c.

#define LCD_EN   _BV(LCD_ENABLE_BIT)

Definition at line 247 of file hd44780_at91.c.

#define LCD_REGSEL_BIT   7

Definition at line 250 of file hd44780_at91.c.

#define LCD_RS   _BV(LCD_REGSEL_BIT)

Definition at line 252 of file hd44780_at91.c.

#define LCD_SHORT_DELAY   10

Definition at line 259 of file hd44780_at91.c.

#define LCD_LONG_DELAY   1000

Definition at line 263 of file hd44780_at91.c.


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