AVRTools
A Library for the AVR ATmega328 and ATmega2560 Microcontrollers
Loading...
Searching...
No Matches
ArduinoPins.h
Go to the documentation of this file.
1/*
2 ArduinoPins.h - Macros naming the Arduino pins (selects the appropriate variant).
3 For AVR ATMega328p (Arduino Uno) and ATMega2560 (Arduino Mega).
4 This is part of the AVRTools library.
5 Copyright (c) 2014 Igor Mikolic-Torreira. All right reserved.
6
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21
43#ifndef ArduinoPins_h
44#define ArduinoPins_h
45
46
47#if defined(__AVR_ATmega328P__)
48
49#include "ArduinoUnoPins.h"
50
51#elif defined(__AVR_ATmega2560__)
52
53#include "ArduinoMegaPins.h"
54
55#else
56
57#error "Undefined AVR processor type"
58
59#endif
60
61
62#endif
63
This file defines the standard Arduino Uno pin name macros. It may be included directly by user code,...
This file defines the standard Arduino Uno pin name macros. It may be included directly by user code,...