-
Notifications
You must be signed in to change notification settings - Fork 3
/
serial.h
35 lines (34 loc) · 1.4 KB
/
serial.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* This file is part of oniudra-headers.
*
* oniudra-headers is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or(at your option) any later version.
*
* oniudra-headers is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with oniudra-headers. If not, see <http://www.gnu.org/licenses/>.
*/
#if defined(__AVR_ATmega8__)
# error "arduino/serial.h: Not implemented for ATmega8 chips yet"
#elif defined(__AVR_ATmega168__) \
|| defined(__AVR_ATmega328P__)
# include <arduino/ATmegaX8/serial.h>
#elif defined(__AVR_ATmega1280__)
# error "arduino/serial.h: Not implemented for ATmega1280 chips yet"
#elif defined(__AVR_ATtiny25__) \
|| defined(__AVR_ATtiny45__) \
|| defined(__AVR_ATtiny85__)
# error "arduino/serial.h: Not implemented for ATtiny25/45/85 chips yet"
#elif defined(__AVR_ATmega8U2__) \
|| defined(__AVR_ATmega16U2__) \
|| defined(__AVR_ATmega32U2__)
# error "arduino/serial.h: Not implemented for ATmega8U2/16U2/32U2 chips yet"
#else
# error "arduino/serial.h: Unknown chip type"
#endif