Skip to content

Commit 0175ec8

Browse files
committed
Merge branch 'zero-core'
2 parents 78ae9a0 + 30f23fb commit 0175ec8

18 files changed

+430
-413
lines changed

cores/arduino/USB/samd21_host.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@
2121
#include <stdint.h>
2222
#include <string.h>
2323

24-
#include "variant.h"
24+
#include "../Arduino.h"
2525
#include "USB_host.h"
2626
#include "samd21_host.h"
27-
#include "sam.h"
2827
#include "wiring_digital.h"
2928

3029
#define HOST_DEFINED

cores/arduino/Uart.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
*/
1818

1919
#include "Uart.h"
20-
#include "WVariant.h"
21-
#include "wiring_digital.h"
20+
#include "Arduino.h"
21+
#include "wiring_private.h"
2222

2323
Uart::Uart(SERCOM *_s, uint8_t _pinRX, uint8_t _pinTX, SercomRXPad _padRX, SercomUartTXPad _padTX)
2424
{

cores/arduino/WInterrupts.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1717
*/
1818

19-
#include "WInterrupts.h"
20-
#include "variant.h"
21-
#include "wiring_digital.h"
19+
#include "Arduino.h"
2220

2321
#include <string.h>
2422

cores/arduino/avr/dtostrf.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
22
dtostrf - Emulation for dtostrf function from avr-libc
3-
Copyright (c) 2014 Arduino. All rights reserved.
4-
Written by Cristian Maglie <c.maglie@bug.st>
3+
Copyright (c) 2015 Arduino LLC. All rights reserved.
54
65
This library is free software; you can redistribute it and/or
76
modify it under the terms of the GNU Lesser General Public

cores/arduino/avr/dtostrf.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
22
dtostrf - Emulation for dtostrf function from avr-libc
33
Copyright (c) 2015 Arduino LLC. All rights reserved.
4-
Written by Cristian Maglie <c.maglie@arduino.cc>
54
65
This library is free software; you can redistribute it and/or
76
modify it under the terms of the GNU Lesser General Public
@@ -24,7 +23,7 @@
2423
extern "C" {
2524
#endif
2625

27-
char *dtostrf (double val, signed char width, unsigned char prec, char *sout);
26+
char *dtostrf(double val, signed char width, unsigned char prec, char *sout);
2827

2928
#ifdef __cplusplus
3029
}

cores/arduino/avr/interrupt.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2014 Arduino. All right reserved.
2+
Copyright (c) 2015 Arduino LCC. All right reserved.
33
44
This library is free software; you can redistribute it and/or
55
modify it under the terms of the GNU Lesser General Public
@@ -15,3 +15,9 @@
1515
License along with this library; if not, write to the Free Software
1616
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1717
*/
18+
19+
/*
20+
Empty file.
21+
This file is here to allow compatibility with sketches (made for AVR)
22+
that includes <AVR/interrupt.h>
23+
*/

cores/arduino/avr/pgmspace.h

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
/*
2-
Copyright (c) 2014 Arduino. All right reserved.
2+
pgmspace.h - Definitions for compatibility with AVR pgmspace macros
33
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.
4+
Copyright (c) 2015 Arduino LLC
85
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.
6+
Based on work of Paul Stoffregen on Teensy 3 (http://pjrc.com)
137
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
8+
Permission is hereby granted, free of charge, to any person obtaining a copy
9+
of this software and associated documentation files (the "Software"), to deal
10+
in the Software without restriction, including without limitation the rights
11+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
copies of the Software, and to permit persons to whom the Software is
13+
furnished to do so, subject to the following conditions:
14+
15+
The above copyright notice and this permission notice shall be included in
16+
all copies or substantial portions of the Software.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24+
THE SOFTWARE
1725
*/
1826

1927
#ifndef __PGMSPACE_H_

cores/arduino/wiring.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1717
*/
1818

19-
#include "variant.h"
20-
#include "wiring_analog.h"
21-
#include "wiring_digital.h"
22-
#include "wiring.h"
19+
#include "Arduino.h"
2320

2421
#ifdef __cplusplus
2522
extern "C" {

cores/arduino/wiring_analog.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1717
*/
1818

19-
#include "wiring_analog.h"
20-
#include "wiring_digital.h"
21-
#include "variant.h"
19+
#include "Arduino.h"
2220

2321
#ifdef __cplusplus
2422
extern "C" {

cores/arduino/wiring_constants.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
extern "C"{
2424
#endif // __cplusplus
2525

26-
// moved to wiring_digital.h
27-
//#define LOW (0x0)
28-
//#define HIGH (0x1)
26+
#define LOW (0x0)
27+
#define HIGH (0x1)
2928

30-
//#define INPUT (0x0)
31-
//#define OUTPUT (0x1)
32-
//#define INPUT_PULLUP (0x2)
29+
#define INPUT (0x0)
30+
#define OUTPUT (0x1)
31+
#define INPUT_PULLUP (0x2)
32+
#define INPUT_PULLDOWN (0x3)
3333

3434
#define PI 3.1415926535897932384626433832795
3535
#define HALF_PI 1.5707963267948966192313216916398

0 commit comments

Comments
 (0)