Skip to content
Snippets Groups Projects
Commit 1a1856c2 authored by Cristian Maglie's avatar Cristian Maglie
Browse files

License fix and cosmetic changes.

parent 8bf65ca9
No related branches found
No related tags found
No related merge requests found
Showing
with 78 additions and 72 deletions
# Copyright (c) 2014-2015 Arduino LLC. All right reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
arduino_zero_edbg.name=Arduino Zero (Programming Port)
arduino_zero_edbg.vid.0=0x03eb
arduino_zero_edbg.pid.0=0x2157
......
/*
Arduino.h - Main include file for the Arduino SDK
Copyright (c) 2014 Arduino Team. All right reserved.
Copyright (c) 2014 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......
/*
Copyright (c) 2014 Arduino. All right reserved.
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......
/*
Copyright (c) 2014 Arduino. All right reserved.
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......
/*
Copyright (c) 2012 Arduino. All right reserved.
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -16,8 +16,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef RESET_H
#define RESET_H
#pragma once
#ifdef __cplusplus
extern "C" {
......@@ -30,5 +29,3 @@ void cancelReset();
#ifdef __cplusplus
}
#endif
#endif
/*
Copyright (c) 2015 Arduino. All right reserved.
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......
/*
Copyright (c) 2015 Arduino. All right reserved.
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -16,8 +16,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _WIRING_TONE_
#define _WIRING_TONE_
#pragma once
#ifdef __cplusplus
......@@ -28,6 +27,4 @@ void noTone(uint32_t _pin);
void toneAccurateClock (uint32_t);
#endif /* __cplusplus */
#endif /* _WIRING_TONE_ */
#endif
/*
Copyright (c) 2014 Arduino. All right reserved.
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......
/*
Copyright (c) 2014 Arduino. All right reserved.
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -16,8 +16,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _SERCOM_UART_CLASS
#define _SERCOM_UART_CLASS
#pragma once
#include "HardwareSerial.h"
#include "SERCOM.h"
......@@ -56,5 +55,3 @@ class Uart : public HardwareSerial
SercomUartCharSize extractCharSize(uint8_t config);
SercomParityMode extractParity(uint8_t config);
};
#endif
/*
Copyright (c) 2014 Arduino. All right reserved.
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -35,24 +35,13 @@ static struct
/* Configure I/O interrupt sources */
static void __initialize()
{
#if 0
int i ;
for ( i = 0 ; i < EXTERNAL_NUM_INTERRUPTS ; i++ )
{
callbacksInt[i]._callback = NULL ;
}
#else
memset( callbacksInt, 0, sizeof( callbacksInt ) ) ;
#endif
NVIC_DisableIRQ( EIC_IRQn ) ;
NVIC_ClearPendingIRQ( EIC_IRQn ) ;
NVIC_SetPriority( EIC_IRQn, 0 ) ;
NVIC_EnableIRQ( EIC_IRQn ) ;
// Enable GCLK for IEC (External Interrupt Controller)
GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID( GCM_EIC )) ;
......
/*
Copyright (c) 2014 Arduino. All right reserved.
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -16,15 +16,14 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _VARIANTS_
#define _VARIANTS_
#pragma once
#include <stdint.h>
#include "sam.h"
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
#endif
/* Definitions and types for pins */
typedef enum _EAnalogChannel
......@@ -227,6 +226,4 @@ extern const PinDescription g_APinDescription[] ;
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
#endif // _VARIANTS_
#endif
/*
Copyright (c) 2014 Arduino. All right reserved.
Copyright (c) 2014 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......
/*
dtostrf - Emulation for dtostrf function from avr-libc
Copyright (c) 2014 Arduino. All rights reserved.
Written by Cristian Maglie <c.maglie@bug.st>
Copyright (c) 2015 Arduino LLC. All rights reserved.
Written by Cristian Maglie <c.maglie@arduino.cc>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -18,6 +18,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
......
/*
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library 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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "delay.h"
#include "Arduino.h"
......
/*
Copyright (c) 2014 Arduino. All right reserved.
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......
/*
Copyright (c) 2014 Arduino. All right reserved.
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......
/*
Copyright (c) 2014 Arduino. All right reserved.
Copyright (c) 2014 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -20,11 +20,11 @@
#include <string.h>
#ifdef __cplusplus
extern "C"{
#endif // __cplusplus
extern "C" {
#endif
#if 0
/* reverse: reverse string s in place */
/*
static void reverse( char s[] )
{
int i, j ;
......@@ -37,22 +37,24 @@ static void reverse( char s[] )
s[j] = c ;
}
}
*/
/* itoa: convert n to characters in s */
/*
extern void itoa( int n, char s[] )
{
int i, sign ;
if ( (sign = n) < 0 ) /* record sign */
if ( (sign = n) < 0 ) // record sign
{
n = -n; /* make n positive */
n = -n; // make n positive
}
i = 0;
do
{ /* generate digits in reverse order */
s[i++] = n % 10 + '0'; /* get next digit */
} while ((n /= 10) > 0) ; /* delete it */
{ // generate digits in reverse order
s[i++] = n % 10 + '0'; // get next digit
} while ((n /= 10) > 0) ; // delete it
if (sign < 0 )
{
......@@ -63,8 +65,7 @@ extern void itoa( int n, char s[] )
reverse( s ) ;
}
#else
*/
extern char* itoa( int value, char *string, int radix )
{
......@@ -163,8 +164,7 @@ extern char* ultoa( unsigned long value, char *string, int radix )
return string;
}
#endif /* 0 */
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
#endif
/*
Copyright (c) 2014 Arduino. All right reserved.
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -16,27 +16,20 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _ITOA_
#define _ITOA_
#pragma once
#ifdef __cplusplus
extern "C"{
#endif // __cplusplus
#endif
#if 0
extern void itoa( int n, char s[] ) ;
#else
//extern void itoa( int n, char s[] ) ;
extern char* itoa( int value, char *string, int radix ) ;
extern char* ltoa( long value, char *string, int radix ) ;
extern char* utoa( unsigned long value, char *string, int radix ) ;
extern char* ultoa( unsigned long value, char *string, int radix ) ;
#endif /* 0 */
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
#endif
#endif // _ITOA_
/*
Copyright (c) 2014 Arduino. All right reserved.
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......
/*
Copyright (c) 2014 Arduino. All right reserved.
Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment