You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
894 B
C
30 lines
894 B
C
4 years ago
|
/*
|
||
|
* ----------------------------------------------------------------------------
|
||
|
* "THE BEER-WARE LICENSE" (Revision 42):
|
||
|
* <joerg@FreeBSD.ORG> wrote this file. As long as you retain this notice you
|
||
|
* can do whatever you want with this stuff. If we meet some day, and you think
|
||
|
* this stuff is worth it, you can buy me a beer in return. Joerg Wunsch
|
||
|
* ----------------------------------------------------------------------------
|
||
|
*
|
||
|
* General stdiodemo defines
|
||
|
*
|
||
|
* $Id$
|
||
|
*/
|
||
|
|
||
|
/* CPU frequency */
|
||
|
#define F_CPU 1000000UL
|
||
|
|
||
|
/* UART baud rate */
|
||
|
#define UART_BAUD 9600
|
||
|
|
||
|
/* HD44780 LCD port connections */
|
||
|
#define HD44780_RS A, 6
|
||
|
#define HD44780_RW A, 4
|
||
|
#define HD44780_E A, 5
|
||
|
/* The data bits have to be not only in ascending order but also consecutive. */
|
||
|
#define HD44780_D4 A, 0
|
||
|
|
||
|
/* Whether to read the busy flag, or fall back to
|
||
|
worst-time delays. */
|
||
|
#define USE_BUSY_BIT 1
|