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

#define LCD_ROWS   2

Definition at line 110 of file hd44780_at91.c.

#define LCD_COLS   16

Definition at line 122 of file hd44780_at91.c.

#define LCD_PIO_ID   PIO_ID

GPIO controller ID.

Definition at line 135 of file hd44780_at91.c.

#define LCD_PIO_PE_REG   PIOA_PER

LCD GPIO enable register.

Definition at line 144 of file hd44780_at91.c.

#define LCD_PIO_OE_REG   PIOA_OER

LCD GPIO output enable register.

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

#define LCD_PIO_COD_REG   PIOA_CODR

LCD GPIO clear output data register.

Definition at line 206 of file hd44780_at91.c.

#define LCD_DATA_LSB   0

LCD GPIO pin data status register.

Definition at line 234 of file hd44780_at91.c.

#define LCD_DATA   (0xF << LCD_DATA_LSB)

Definition at line 238 of file hd44780_at91.c.

#define LCD_ENABLE_BIT   4

Definition at line 248 of file hd44780_at91.c.

#define LCD_EN   _BV(LCD_ENABLE_BIT)

Definition at line 250 of file hd44780_at91.c.

#define LCD_REGSEL_BIT   7

Definition at line 253 of file hd44780_at91.c.

#define LCD_RS   _BV(LCD_REGSEL_BIT)

Definition at line 255 of file hd44780_at91.c.

#define LCD_SHORT_DELAY   10

Definition at line 262 of file hd44780_at91.c.

#define LCD_LONG_DELAY   1000

Definition at line 266 of file hd44780_at91.c.


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