]>
git.zerfleddert.de Git - fnordlicht-mini/blob - firmware/fnordlicht-bootloader/io.h
1 /* vim:ts=4 sts=4 et tw=80
5 * for additional information please
6 * see http://lochraster.org/fnordlichtmini
8 * (c) by Alexander Neumann <alexander@bumpern.de>
9 * Lars Noschinski <lars@public.noschinski.de>
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.
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
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/>.
29 /* cpu specific configuration registers */
30 #if defined(__AVR_ATmega8__)
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
63 #elif defined(__AVR_ATmega88__) || defined(__AVR_ATmega168__)
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