AVR Libc Home Page AVRs AVR Libc Development Pages
Main Page User Manual Reference FAQ Example Projects

defines.8h

011/*
	022* ----------------------------------------------------------------------------
	033* "THE BEER-WARE LICENSE" (Revision 42):
	044* <joerg@FreeBSD.ORG> wrote this file.  As long as you retain this notice you
	055* can do whatever you want with this stuff. If we meet some day, and you think
	066* this stuff is worth it, you can buy me a beer in return.        Joerg Wunsch
	077* ----------------------------------------------------------------------------
	088*
	099* General stdiodemo defines
	1010*
	1111* $Id: defines.h 2186 2010-09-22 10:25:15Z aboyapati $
	1212*/
	1313
	1414/* CPU frequency */
	1515#define F_CPU 1000000UL
	1616
	1717/* UART baud rate */
	1818#define UART_BAUD  9600
	1919
	2020/* HD44780 LCD port connections */
	2121#define HD44780_RS A, 6
	2222#define HD44780_RW A, 4
	2323#define HD44780_E  A, 5
	2424/* The data bits have to be not only in ascending order but also consecutive. */
	2525#define HD44780_D4 A, 0
	2626
	2727/* Whether to read the busy flag, or fall back to
	2828worst-time delays. */
	2929#define USE_BUSY_BIT 1