Skip to content

Commit ae42fd1

Browse files
committed
Adding license in files, update platform.txt
1 parent 908d103 commit ae42fd1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+832
-623
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

bootloaders/zero/Debug/List/samd21_sam_ba.map

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
###############################################################################
22
#
3-
# IAR ELF Linker V7.10.1.6676/W32 for ARM 15/Jul/2014 15:54:11
3+
# IAR ELF Linker V7.10.1.6676/W32 for ARM 15/Jul/2014 16:53:12
44
# Copyright 2007-2014 IAR Systems AB.
55
#
66
# Output file =

cores/arduino/Arduino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Arduino.h - Main include file for the Arduino SDK
3-
Copyright (c) 2005-2013 Arduino Team. All right reserved.
3+
Copyright (c) 2014 Arduino Team. All right reserved.
44
55
This library is free software; you can redistribute it and/or
66
modify it under the terms of the GNU Lesser General Public

cores/arduino/HOWTO_compiling_a_project_with_GCC.txt

-41
This file was deleted.

cores/arduino/HardwareSerial.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2011 Arduino. All right reserved.
2+
Copyright (c) 2014 Arduino. 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
@@ -8,7 +8,7 @@
88
99
This library is distributed in the hope that it will be useful,
1010
but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1212
See the GNU Lesser General Public License for more details.
1313
1414
You should have received a copy of the GNU Lesser General Public
@@ -42,9 +42,9 @@
4242
#define SERIAL_5N1 (HARDSER_STOP_BIT_1 | HARDSER_PARITY_NONE | HARDSER_DATA_5)
4343
#define SERIAL_6N1 (HARDSER_STOP_BIT_1 | HARDSER_PARITY_NONE | HARDSER_DATA_6)
4444
#define SERIAL_7N1 (HARDSER_STOP_BIT_1 | HARDSER_PARITY_NONE | HARDSER_DATA_7)
45-
#define SERIAL_8N1 (HARDSER_STOP_BIT_1 | HARDSER_PARITY_NONE | HARDSER_DATA_8)
46-
#define SERIAL_5N2 (HARDSER_STOP_BIT_2 | HARDSER_PARITY_NONE | HARDSER_DATA_5)
47-
#define SERIAL_6N2 (HARDSER_STOP_BIT_2 | HARDSER_PARITY_NONE | HARDSER_DATA_6)
45+
#define SERIAL_8N1 (HARDSER_STOP_BIT_1 | HARDSER_PARITY_NONE | HARDSER_DATA_8)
46+
#define SERIAL_5N2 (HARDSER_STOP_BIT_2 | HARDSER_PARITY_NONE | HARDSER_DATA_5)
47+
#define SERIAL_6N2 (HARDSER_STOP_BIT_2 | HARDSER_PARITY_NONE | HARDSER_DATA_6)
4848
#define SERIAL_7N2 (HARDSER_STOP_BIT_2 | HARDSER_PARITY_NONE | HARDSER_DATA_7)
4949
#define SERIAL_8N2 (HARDSER_STOP_BIT_2 | HARDSER_PARITY_NONE | HARDSER_DATA_8)
5050
#define SERIAL_5E1 (HARDSER_STOP_BIT_1 | HARDSER_PARITY_EVEN | HARDSER_DATA_5)

cores/arduino/IPAddress.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
IPAddress.cpp - Base class that provides IPAddress
3-
Copyright (c) 2011 Adrian McEwen. All right reserved.
2+
Copyright (c) 2014 Arduino. All right reserved.
43
54
This library is free software; you can redistribute it and/or
65
modify it under the terms of the GNU Lesser General Public
@@ -9,8 +8,8 @@
98
109
This library is distributed in the hope that it will be useful,
1110
but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13-
Lesser General Public License for more details.
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12+
See the GNU Lesser General Public License for more details.
1413
1514
You should have received a copy of the GNU Lesser General Public
1615
License along with this library; if not, write to the Free Software

cores/arduino/IPAddress.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
IPAddress.h - Base class that provides IPAddress
3-
Copyright (c) 2011 Adrian McEwen. All right reserved.
2+
Copyright (c) 2014 Arduino. All right reserved.
43
54
This library is free software; you can redistribute it and/or
65
modify it under the terms of the GNU Lesser General Public
@@ -9,8 +8,8 @@
98
109
This library is distributed in the hope that it will be useful,
1110
but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13-
Lesser General Public License for more details.
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12+
See the GNU Lesser General Public License for more details.
1413
1514
You should have received a copy of the GNU Lesser General Public
1615
License along with this library; if not, write to the Free Software

cores/arduino/Print.cpp

+25-28
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
/*
2-
Print.cpp - Base class that provides print() and println()
3-
Copyright (c) 2008 David A. Mellis. All right reserved.
4-
5-
This library is free software; you can redistribute it and/or
6-
modify it under the terms of the GNU Lesser General Public
7-
License as published by the Free Software Foundation; either
8-
version 2.1 of the License, or (at your option) any later version.
9-
10-
This library is distributed in the hope that it will be useful,
11-
but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13-
Lesser General Public License for more details.
14-
15-
You should have received a copy of the GNU Lesser General Public
16-
License along with this library; if not, write to the Free Software
17-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18-
19-
Modified 23 November 2006 by David A. Mellis
20-
*/
2+
Copyright (c) 2014 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+
*/
2118

2219
#include <stdlib.h>
2320
#include <stdio.h>
@@ -211,15 +208,15 @@ size_t Print::printNumber(unsigned long n, uint8_t base) {
211208
return write(str);
212209
}
213210

214-
size_t Print::printFloat(double number, uint8_t digits)
215-
{
211+
size_t Print::printFloat(double number, uint8_t digits)
212+
{
216213
size_t n = 0;
217-
214+
218215
if (isnan(number)) return print("nan");
219216
if (isinf(number)) return print("inf");
220217
if (number > 4294967040.0) return print ("ovf"); // constant determined empirically
221218
if (number <-4294967040.0) return print ("ovf"); // constant determined empirically
222-
219+
223220
// Handle negative numbers
224221
if (number < 0.0)
225222
{
@@ -231,7 +228,7 @@ size_t Print::printFloat(double number, uint8_t digits)
231228
double rounding = 0.5;
232229
for (uint8_t i=0; i<digits; ++i)
233230
rounding /= 10.0;
234-
231+
235232
number += rounding;
236233

237234
// Extract the integer part of the number and print it
@@ -241,7 +238,7 @@ size_t Print::printFloat(double number, uint8_t digits)
241238

242239
// Print the decimal point, but only if there are digits beyond
243240
if (digits > 0) {
244-
n += print(".");
241+
n += print(".");
245242
}
246243

247244
// Extract digits from the remainder one at a time
@@ -250,8 +247,8 @@ size_t Print::printFloat(double number, uint8_t digits)
250247
remainder *= 10.0;
251248
int toPrint = int(remainder);
252249
n += print(toPrint);
253-
remainder -= toPrint;
254-
}
255-
250+
remainder -= toPrint;
251+
}
252+
256253
return n;
257254
}

cores/arduino/Print.h

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
Print.h - Base class that provides print() and println()
3-
Copyright (c) 2008 David A. Mellis. All right reserved.
2+
Copyright (c) 2014 Arduino. All right reserved.
43
54
This library is free software; you can redistribute it and/or
65
modify it under the terms of the GNU Lesser General Public
@@ -9,8 +8,8 @@
98
109
This library is distributed in the hope that it will be useful,
1110
but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13-
Lesser General Public License for more details.
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12+
See the GNU Lesser General Public License for more details.
1413
1514
You should have received a copy of the GNU Lesser General Public
1615
License along with this library; if not, write to the Free Software
@@ -41,10 +40,10 @@ class Print
4140
void setWriteError(int err = 1) { write_error = err; }
4241
public:
4342
Print() : write_error(0) {}
44-
43+
4544
int getWriteError() { return write_error; }
4645
void clearWriteError() { setWriteError(0); }
47-
46+
4847
virtual size_t write(uint8_t) = 0;
4948
size_t write(const char *str) {
5049
if (str == NULL) return 0;
@@ -54,7 +53,7 @@ class Print
5453
size_t write(const char *buffer, size_t size) {
5554
return write((const uint8_t *)buffer, size);
5655
}
57-
56+
5857
size_t print(const __FlashStringHelper *);
5958
size_t print(const String &);
6059
size_t print(const char[]);

cores/arduino/Printable.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
Printable.h - Interface class that allows printing of complex types
3-
Copyright (c) 2011 Adrian McEwen. All right reserved.
2+
Copyright (c) 2014 Arduino. All right reserved.
43
54
This library is free software; you can redistribute it and/or
65
modify it under the terms of the GNU Lesser General Public
@@ -9,8 +8,8 @@
98
109
This library is distributed in the hope that it will be useful,
1110
but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13-
Lesser General Public License for more details.
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12+
See the GNU Lesser General Public License for more details.
1413
1514
You should have received a copy of the GNU Lesser General Public
1615
License along with this library; if not, write to the Free Software

cores/arduino/Reset.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2012 Arduino. All right reserved.
2+
Copyright (c) 2014 Arduino. 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

cores/arduino/RingBuffer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2011 Arduino. All right reserved.
2+
Copyright (c) 2014 Arduino. 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

cores/arduino/RingBuffer.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2011 Arduino. All right reserved.
2+
Copyright (c) 2014 Arduino. 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
@@ -8,7 +8,7 @@
88
99
This library is distributed in the hope that it will be useful,
1010
but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1212
See the GNU Lesser General Public License for more details.
1313
1414
You should have received a copy of the GNU Lesser General Public
@@ -42,7 +42,7 @@ class RingBuffer
4242
int available();
4343
int peek();
4444
bool isFull();
45-
45+
4646
private:
4747
int nextIndex(int index);
4848
} ;

cores/arduino/SERCOM.cpp

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
Copyright (c) 2014 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+
119
#include "SERCOM.h"
220
#include "variant.h"
321

cores/arduino/SERCOM.h

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
Copyright (c) 2014 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+
119
#ifndef _SERCOM_CLASS_
220
#define _SERCOM_CLASS_
321

cores/arduino/Server.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
Server.h - Base class that provides Server
3-
Copyright (c) 2011 Adrian McEwen. All right reserved.
2+
Copyright (c) 2014 Arduino. All right reserved.
43
54
This library is free software; you can redistribute it and/or
65
modify it under the terms of the GNU Lesser General Public
@@ -9,8 +8,8 @@
98
109
This library is distributed in the hope that it will be useful,
1110
but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13-
Lesser General Public License for more details.
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12+
See the GNU Lesser General Public License for more details.
1413
1514
You should have received a copy of the GNU Lesser General Public
1615
License along with this library; if not, write to the Free Software

0 commit comments

Comments
 (0)