Nut/OS  4.10.3
API Reference
hd44780.c File Reference
#include <stdlib.h>
#include <string.h>
#include <cfg/arch/avr.h>
#include <dev/hd44780.h>
#include <dev/term.h>
#include <sys/timer.h>
Include dependency graph for hd44780.c:

Go to the source code of this file.

Defines

#define LCD_ROWS   2
#define LCD_COLS   16
#define LCD_DATA_PORT   PORTD
#define LCD_DATA_PIN   PIND
#define LCD_DATA_DDR   DDRD
#define LCD_DATA_BITS   0xF0
#define LCD_ENABLE_PORT   PORTE
#define LCD_ENABLE_DDR   DDRE
#define LCD_ENABLE_BIT   3
 LCD enable output.
#define LCD_REGSEL_PORT   PORTE
#define LCD_REGSEL_DDR   DDRE
#define LCD_REGSEL_BIT   2
 LCD register select output.
#define LCD_SHORT_DELAY   1
#define LCD_LONG_DELAY   2
#define LCD_DELAY   _NOP(); _NOP(); _NOP(); _NOP()

Variables

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

Define Documentation

#define LCD_ROWS   2

Definition at line 113 of file hd44780.c.

#define LCD_COLS   16

Definition at line 126 of file hd44780.c.

#define LCD_DATA_PORT   PORTD

Definition at line 166 of file hd44780.c.

#define LCD_DATA_PIN   PIND

Definition at line 167 of file hd44780.c.

#define LCD_DATA_DDR   DDRD

Definition at line 168 of file hd44780.c.

#define LCD_DATA_BITS   0xF0

Definition at line 173 of file hd44780.c.

#define LCD_ENABLE_PORT   PORTE

Definition at line 202 of file hd44780.c.

#define LCD_ENABLE_DDR   DDRE

Definition at line 203 of file hd44780.c.

#define LCD_ENABLE_BIT   3

LCD enable output.

Definition at line 208 of file hd44780.c.

#define LCD_REGSEL_PORT   PORTE

Definition at line 237 of file hd44780.c.

#define LCD_REGSEL_DDR   DDRE

Definition at line 238 of file hd44780.c.

#define LCD_REGSEL_BIT   2

LCD register select output.

Definition at line 243 of file hd44780.c.