Nut/OS  5.0.5
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:

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
#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.