Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit eb1d553

Browse files
committed
added pins_arduino.h and modified pins name and related file
1 parent 20a6306 commit eb1d553

File tree

5 files changed

+183
-253
lines changed

5 files changed

+183
-253
lines changed

cores/arduino/boards.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
#include "memory.h"
5151
#include "gpio.h"
5252
#include "timer.h"
53-
5453
#include "wiring_types.h"
54+
#include "variant.h"
5555

5656
/* Set of all possible pin names; not all boards have all these (note
5757
* that we use the Dx convention since all of the Maple's pins are
@@ -134,8 +134,6 @@ bool boardUsesPin(uint8 pin);
134134
* (...RBT6) on it. Maple Rev6 (as of March 2011) DOES NOT EXIST.
135135
*/
136136

137-
#include "otto.h"
138-
139137
/*
140138
* TODO turn this into a warning so people can:
141139
*

variants/otto/otto.h

Lines changed: 0 additions & 246 deletions
This file was deleted.

variants/otto/pins_arduino.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
Copyright (c) 2011 Arduino. All right reserved.
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12+
See the GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17+
*/
18+
19+
// API compatibility
20+
#include "variant.h"
21+

variants/otto/otto.cpp renamed to variants/otto/variant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
* 2016 Dec 20: Modified for HW rev 3
4141
*/
4242

43-
#include "otto.h"
43+
//#include "otto.h"
44+
#include "variant.h"
4445

4546
#include "gpio.h"
4647
#include "rcc.h"
@@ -243,4 +244,3 @@ extern const uint8 boardPWMPins[BOARD_NR_PWM_PINS] __FLASH__ = {
243244
extern const uint8 boardADCPins[BOARD_NR_ADC_PINS] __FLASH__ = {
244245
54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67
245246
};
246-

0 commit comments

Comments
 (0)