]> git.zerfleddert.de Git - fnordlicht-mini/blame - firmware/fnordlicht-bootloader/io.h
reference eeprom contents
[fnordlicht-mini] / firmware / fnordlicht-bootloader / io.h
CommitLineData
ec1bef8e 1/* vim:ts=4 sts=4 et tw=80
2 *
3 * fnordlicht firmware
4 *
5 * for additional information please
6 * see http://lochraster.org/fnordlichtmini
7 *
8 * (c) by Alexander Neumann <alexander@bumpern.de>
9 * Lars Noschinski <lars@public.noschinski.de>
10 *
11 * This program is free software: you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License version 3 as published by
13 * the Free Software Foundation.
14 *
15 * This program is distributed in the hope that it will be useful, but WITHOUT
16 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18 * more details.
19 *
20 * You should have received a copy of the GNU General Public License along with
21 * this program. If not, see <http://www.gnu.org/licenses/>.
22 */
23
24#ifndef IO_H
25#define IO_H
26
27#include <avr/io.h>
28
29/* cpu specific configuration registers */
30#if defined(__AVR_ATmega8__)
31
32#define _TIMSK_TIMER1 TIMSK
33#define _UCSRB_UART0 UCSRB
34#define _UCSRA_UART0 UCSRA
35#define _UDRIE_UART0 UDRIE
36#define _RXC_UART0 RXC
37#define _TXEN_UART0 TXEN
38#define _RXEN_UART0 RXEN
39#define _RXCIE_UART0 RXCIE
40#define _UBRRH_UART0 UBRRH
41#define _UBRRL_UART0 UBRRL
42#define _UCSRC_UART0 UCSRC
43#define _UCSZ0_UART0 UCSZ0
44#define _UCSZ1_UART0 UCSZ1
45#define _SIG_UART_RECV_UART0 SIG_UART_RECV
46#define _SIG_UART_DATA_UART0 SIG_UART_DATA
47#define _UDR_UART0 UDR
48#define UCSR0A UCSRA
49#define UCSR0C UCSRC
50#define MPCM0 MPCM
51#define UCSZ00 UCSZ0
52#define UCSZ01 UCSZ1
53#define UCSZ02 UCSZ2
54#define UBRR0H UBRRH
55#define UBRR0L UBRRL
56#define UCSR0B UCSRB
57#define RXEN0 RXEN
58#define TXEN0 TXEN
59#define RXC0 RXC
60#define RXB80 RXB8
61#define UDR0 UDR
62
63#elif defined(__AVR_ATmega88__) || defined(__AVR_ATmega168__)
64
65#define _TIMSK_TIMER1 TIMSK1
66#define _UCSRA_UART0 UCSR0A
67#define _UCSRB_UART0 UCSR0B
68#define _UDRIE_UART0 UDRIE0
69#define _RXC_UART0 RXC0
70#define _TXEN_UART0 TXEN0
71#define _RXEN_UART0 RXEN0
72#define _RXCIE_UART0 RXCIE0
73#define _UBRRH_UART0 UBRR0H
74#define _UBRRL_UART0 UBRR0L
75#define _UCSRC_UART0 UCSR0C
76#define _UCSZ0_UART0 UCSZ00
77#define _UCSZ1_UART0 UCSZ01
78#define _SIG_UART_RECV_UART0 SIG_USART_RECV
79#define _SIG_UART_DATA_UART0 SIG_USART_DATA
80#define _UDR_UART0 UDR0
81#endif
82
83
84#endif
Impressum, Datenschutz