AVR-LibC  2.3.0git
Standard C library for AVR-GCC
 

AVR-LibC Documen­tation

AVR-LibC Development Pages

Main Page

User Manual

Library Refe­rence

FAQ

Example Projects

File List

Index

Loading...
Searching...
No Matches
defines.h
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <joerg@FreeBSD.ORG> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Joerg Wunsch
7 * ----------------------------------------------------------------------------
8 *
9 * General stdiodemo defines
10 */
11
12/* CPU frequency */
13#define F_CPU 1000000UL
14
15/* UART baud rate */
16#define UART_BAUD 9600
17
18/* HD44780 LCD port connections */
19#define HD44780_RS A, 6
20#define HD44780_RW A, 4
21#define HD44780_E A, 5
22/* The data bits have to be not only in ascending order but also consecutive. */
23#define HD44780_D4 A, 0
24
25/* Whether to read the busy flag, or fall back to
26 worst-time delays. */
27#define USE_BUSY_BIT 1