avr-libc  2.1.0
Standard C library for AVR-GCC

AVR Libc Home Page

AVRs

AVR Libc Development Pages

Main Page

User Manual

Library Reference

FAQ

Example Projects

All Data Structures Files Functions Variables Typedefs Enumerations Macros Modules Pages
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  * $Id: defines_8h_source.html,v 1.1.1.7 2022/01/29 09:21:57 joerg_wunsch Exp $
12  */
13 
14 /* CPU frequency */
15 #define F_CPU 1000000UL
16 
17 /* UART baud rate */
18 #define UART_BAUD 9600
19 
20 /* HD44780 LCD port connections */
21 #define HD44780_RS A, 6
22 #define HD44780_RW A, 4
23 #define HD44780_E A, 5
24 /* The data bits have to be not only in ascending order but also consecutive. */
25 #define HD44780_D4 A, 0
26 
27 /* Whether to read the busy flag, or fall back to
28  worst-time delays. */
29 #define USE_BUSY_BIT 1