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 101 of file hd44780_at91.c.

#define LCD_ROWS   2

Definition at line 113 of file hd44780_at91.c.

#define LCD_COLS   16

Definition at line 125 of file hd44780_at91.c.

#define LCD_PIO_ID   PIO_ID

GPIO controller ID.

Definition at line 138 of file hd44780_at91.c.

#define LCD_PIO_PE_REG   PIOA_PER

LCD GPIO enable register.

Definition at line 147 of file hd44780_at91.c.

#define LCD_PIO_OE_REG   PIOA_OER

LCD GPIO output enable register.

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

#define LCD_PIO_COD_REG   PIOA_CODR

LCD GPIO clear output data register.

Definition at line 209 of file hd44780_at91.c.

#define LCD_DATA_LSB   0

LCD GPIO pin data status register.

Definition at line 237 of file hd44780_at91.c.

#define LCD_DATA   (0xF << LCD_DATA_LSB)

Definition at line 241 of file hd44780_at91.c.

#define LCD_ENABLE_BIT   4

Definition at line 251 of file hd44780_at91.c.

#define LCD_EN   _BV(LCD_ENABLE_BIT)

Definition at line 253 of file hd44780_at91.c.

#define LCD_REGSEL_BIT   7

Definition at line 256 of file hd44780_at91.c.

#define LCD_RS   _BV(LCD_REGSEL_BIT)

Definition at line 258 of file hd44780_at91.c.

#define LCD_SHORT_DELAY   10

Definition at line 265 of file hd44780_at91.c.

#define LCD_LONG_DELAY   1000

Definition at line 269 of file hd44780_at91.c.


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