diff --git a/hardware/arduino/sam/system/libsam/include/USB_device.h b/hardware/arduino/sam/system/libsam/include/USB_device.h index 6b6700831..8c64d43d1 100644 --- a/hardware/arduino/sam/system/libsam/include/USB_device.h +++ b/hardware/arduino/sam/system/libsam/include/USB_device.h @@ -1,20 +1,31 @@ -/* - Copyright (c) 2011 Arduino. 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 -*/ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following condition is met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- + */ #ifndef USB_DEVICE_H_INCLUDED #define USB_DEVICE_H_INCLUDED diff --git a/hardware/arduino/sam/system/libsam/include/USB_host.h b/hardware/arduino/sam/system/libsam/include/USB_host.h index 7dc822508..4257a6d30 100644 --- a/hardware/arduino/sam/system/libsam/include/USB_host.h +++ b/hardware/arduino/sam/system/libsam/include/USB_host.h @@ -1,20 +1,31 @@ -/* - Copyright (c) 2011 Arduino. 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 -*/ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following condition is met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- + */ #ifndef USB_HOST_H_INCLUDED #define USB_HOST_H_INCLUDED diff --git a/hardware/arduino/sam/system/libsam/include/adc.h b/hardware/arduino/sam/system/libsam/include/adc.h index 4ca4a91ab..c3168fb69 100644 --- a/hardware/arduino/sam/system/libsam/include/adc.h +++ b/hardware/arduino/sam/system/libsam/include/adc.h @@ -1,42 +1,30 @@ -/** - * \file +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation * - * \brief Analog-to-Digital Converter (ADC/ADC12B) driver for SAM. - * - * Copyright (c) 2011 Atmel Corporation. All rights reserved. - * - * \asf_license_start + * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. * - * 3. The name of Atmel may not be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * 4. This software may only be redistributed and used in connection with an - * Atmel microcontroller product. - * - * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE - * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * \asf_license_stop - * + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- */ #ifndef ADC_H_INCLUDED @@ -83,20 +71,20 @@ enum adc_resolution_t { /* Definitions for ADC trigger */ enum adc_trigger_t { ADC_TRIG_SW = ADC_MR_TRGEN_DIS, /* Starting a conversion is only possible by software. */ - ADC_TRIG_EXT = ((ADC_MR_TRGSEL_ADC_TRIG0 << ADC_MR_TRGSEL_Pos) & + ADC_TRIG_EXT = ((ADC_MR_TRGSEL_ADC_TRIG0 << ADC_MR_TRGSEL_Pos) & ADC_MR_TRGSEL_Msk) | ADC_MR_TRGEN, /* External trigger */ - ADC_TRIG_TIO_CH_0 = (ADC_MR_TRGSEL_ADC_TRIG1 & ADC_MR_TRGSEL_Msk) | + ADC_TRIG_TIO_CH_0 = (ADC_MR_TRGSEL_ADC_TRIG1 & ADC_MR_TRGSEL_Msk) | ADC_MR_TRGEN, /* TIO Output of the Timer Counter Channel 0 */ - ADC_TRIG_TIO_CH_1 = (ADC_MR_TRGSEL_ADC_TRIG2 & ADC_MR_TRGSEL_Msk) | + ADC_TRIG_TIO_CH_1 = (ADC_MR_TRGSEL_ADC_TRIG2 & ADC_MR_TRGSEL_Msk) | ADC_MR_TRGEN, /* TIO Output of the Timer Counter Channel 1 */ - ADC_TRIG_TIO_CH_2 = (ADC_MR_TRGSEL_ADC_TRIG3 & ADC_MR_TRGSEL_Msk) | + ADC_TRIG_TIO_CH_2 = (ADC_MR_TRGSEL_ADC_TRIG3 & ADC_MR_TRGSEL_Msk) | ADC_MR_TRGEN, /* TIO Output of the Timer Counter Channel 2 */ #if SAM3S_SERIES || SAM4S_SERIES || SAM3XA_SERIES || SAM3U_SERIES ADC_TRIG_PWM_EVENT_LINE_0 = (ADC_MR_TRGSEL_ADC_TRIG4 & ADC_MR_TRGSEL_Msk) | ADC_MR_TRGEN, /* PWM Event Line 0 */ - ADC_TRIG_PWM_EVENT_LINE_1 = (ADC_MR_TRGSEL_ADC_TRIG5 & ADC_MR_TRGSEL_Msk) | + ADC_TRIG_PWM_EVENT_LINE_1 = (ADC_MR_TRGSEL_ADC_TRIG5 & ADC_MR_TRGSEL_Msk) | ADC_MR_TRGEN /* PWM Event Line 1 */ -#endif +#endif } ; #if SAM3S_SERIES || SAM4S_SERIES || SAM3N_SERIES || SAM3XA_SERIES @@ -138,7 +126,7 @@ enum adc_gainvalue_t{ ADC_GAINVALUE_1 = 1, ADC_GAINVALUE_2 = 2, ADC_GAINVALUE_3 = 3 -}; +}; /* Definitions for ADC analog settling time */ #if SAM3S_SERIES || SAM4S_SERIES || SAM3XA_SERIES enum adc_settling_time_t{ @@ -146,13 +134,13 @@ enum adc_settling_time_t{ ADC_SETTLING_TIME_1 = ADC_MR_SETTLING_AST5, ADC_SETTLING_TIME_2 = ADC_MR_SETTLING_AST9, ADC_SETTLING_TIME_3 = ADC_MR_SETTLING_AST17 -}; +}; #endif #if SAM3S_SERIES || SAM4S_SERIES || SAM3N_SERIES || SAM3XA_SERIES -uint32_t adc_init(Adc *p_adc, const uint32_t ul_mck, +uint32_t adc_init(Adc *p_adc, const uint32_t ul_mck, const uint32_t ul_adc_clock, const uint8_t uc_startup); -void adc_configure_trigger(Adc *p_adc, const enum adc_trigger_t trigger, +void adc_configure_trigger(Adc *p_adc, const enum adc_trigger_t trigger, const uint8_t uc_freerun); void adc_configure_power_save(Adc *p_adc, const uint8_t uc_sleep, const uint8_t uc_fwup); void adc_configure_sequence(Adc *p_adc, const enum adc_channel_num_t ch_list[], @@ -196,7 +184,7 @@ uint32_t adc_get_interrupt_mask(const Adc *p_adc); Pdc *adc_get_pdc_base(const Adc *p_adc); #if SAM3S_SERIES || SAM4S_SERIES || SAM3XA_SERIES -void adc_configure_timing(Adc *p_adc, const uint8_t uc_tracking, +void adc_configure_timing(Adc *p_adc, const uint8_t uc_tracking, const enum adc_settling_time_t settling, const uint8_t uc_transfer); void adc_enable_anch( Adc *p_adc ); void adc_disable_anch( Adc *p_adc ); @@ -204,12 +192,12 @@ void adc_enable_channel_differential_input(Adc *p_adc, const enum adc_channel_nu void adc_disable_channel_differential_input(Adc *p_adc, const enum adc_channel_num_t channel); void adc_enable_channel_input_offset(Adc *p_adc, const enum adc_channel_num_t channel); void adc_disable_channel_input_offset(Adc *p_adc, const enum adc_channel_num_t channel); -void adc_set_channel_input_gain(Adc *p_adc, const enum adc_channel_num_t channel, +void adc_set_channel_input_gain(Adc *p_adc, const enum adc_channel_num_t channel, const enum adc_gainvalue_t uc_gain); void adc_set_bias_current(Adc *p_adc, const uint8_t uc_ibctl); void adc_enable_ts(Adc *p_adc); void adc_disable_ts(Adc *p_adc); -#elif SAM3N_SERIES +#elif SAM3N_SERIES void adc_configure_timing(Adc *p_adc, const uint8_t uc_tracking); #elif SAM3U_SERIES void adc_configure_timing(Adc *p_adc, const uint32_t ul_sh); @@ -220,7 +208,7 @@ void adc_set_calibmode(Adc *p_adc); #endif #if SAM3U_SERIES -uint32_t adc12b_init(Adc12b *p_adc, const uint32_t ul_mck, const uint32_t ul_adc_clock, +uint32_t adc12b_init(Adc12b *p_adc, const uint32_t ul_mck, const uint32_t ul_adc_clock, const uint32_t ul_startuptime, const uint32_t ul_offmode_startuptime); void adc12b_set_resolution(Adc12b *p_adc, const enum adc_resolution_t resolution); void adc12b_configure_trigger(Adc12b *p_adc, const enum adc_trigger_t trigger); diff --git a/hardware/arduino/sam/system/libsam/include/interrupt_sam_nvic.h b/hardware/arduino/sam/system/libsam/include/interrupt_sam_nvic.h index 38dbb2542..5fd78bdb4 100644 --- a/hardware/arduino/sam/system/libsam/include/interrupt_sam_nvic.h +++ b/hardware/arduino/sam/system/libsam/include/interrupt_sam_nvic.h @@ -1,42 +1,30 @@ -/** - * \file +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation * - * \brief Global interrupt management for SAM3 and SAM4 (NVIC based) - * - * Copyright (c) 2012 Atmel Corporation. All rights reserved. - * - * \asf_license_start + * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. * - * 3. The name of Atmel may not be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * 4. This software may only be redistributed and used in connection with an - * Atmel microcontroller product. - * - * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE - * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * \asf_license_stop - * + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- */ #ifndef UTILS_INTERRUPT_INTERRUPT_H diff --git a/hardware/arduino/sam/system/libsam/include/pio.h b/hardware/arduino/sam/system/libsam/include/pio.h index 2a7708fd2..0938e9ac9 100644 --- a/hardware/arduino/sam/system/libsam/include/pio.h +++ b/hardware/arduino/sam/system/libsam/include/pio.h @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/include/pio_it.h b/hardware/arduino/sam/system/libsam/include/pio_it.h index 9d38cd2b2..ccb54bace 100644 --- a/hardware/arduino/sam/system/libsam/include/pio_it.h +++ b/hardware/arduino/sam/system/libsam/include/pio_it.h @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/include/pmc.h b/hardware/arduino/sam/system/libsam/include/pmc.h index ec784a609..45e76983f 100644 --- a/hardware/arduino/sam/system/libsam/include/pmc.h +++ b/hardware/arduino/sam/system/libsam/include/pmc.h @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. @@ -26,7 +26,6 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ---------------------------------------------------------------------------- */ - #ifndef PMC_H_INCLUDED #define PMC_H_INCLUDED diff --git a/hardware/arduino/sam/system/libsam/include/pwmc.h b/hardware/arduino/sam/system/libsam/include/pwmc.h index b33568b9d..a88b5442e 100644 --- a/hardware/arduino/sam/system/libsam/include/pwmc.h +++ b/hardware/arduino/sam/system/libsam/include/pwmc.h @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/include/rtc.h b/hardware/arduino/sam/system/libsam/include/rtc.h index 6393bccf0..d705b16bb 100644 --- a/hardware/arduino/sam/system/libsam/include/rtc.h +++ b/hardware/arduino/sam/system/libsam/include/rtc.h @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/include/rtt.h b/hardware/arduino/sam/system/libsam/include/rtt.h index 9823d8502..9d66945c4 100644 --- a/hardware/arduino/sam/system/libsam/include/rtt.h +++ b/hardware/arduino/sam/system/libsam/include/rtt.h @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/include/spi.h b/hardware/arduino/sam/system/libsam/include/spi.h index 1fb69addb..fad8f8f42 100644 --- a/hardware/arduino/sam/system/libsam/include/spi.h +++ b/hardware/arduino/sam/system/libsam/include/spi.h @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/include/tc.h b/hardware/arduino/sam/system/libsam/include/tc.h index 92c0b0367..ef69ec09b 100644 --- a/hardware/arduino/sam/system/libsam/include/tc.h +++ b/hardware/arduino/sam/system/libsam/include/tc.h @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/include/timetick.h b/hardware/arduino/sam/system/libsam/include/timetick.h index 62bdf2e18..e42255d94 100644 --- a/hardware/arduino/sam/system/libsam/include/timetick.h +++ b/hardware/arduino/sam/system/libsam/include/timetick.h @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/include/twi.h b/hardware/arduino/sam/system/libsam/include/twi.h index c4ef4f009..3d383f4fd 100644 --- a/hardware/arduino/sam/system/libsam/include/twi.h +++ b/hardware/arduino/sam/system/libsam/include/twi.h @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/include/udp.h b/hardware/arduino/sam/system/libsam/include/udp.h index 11bb326ab..e298735c5 100644 --- a/hardware/arduino/sam/system/libsam/include/udp.h +++ b/hardware/arduino/sam/system/libsam/include/udp.h @@ -1,20 +1,31 @@ -/* - Copyright (c) 2012 Arduino. 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 -*/ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following condition is met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- + */ #ifndef UDPHS_H_INCLUDED #define UDPHS_H_INCLUDED diff --git a/hardware/arduino/sam/system/libsam/include/udphs.h b/hardware/arduino/sam/system/libsam/include/udphs.h index beb02bf69..6656f063d 100644 --- a/hardware/arduino/sam/system/libsam/include/udphs.h +++ b/hardware/arduino/sam/system/libsam/include/udphs.h @@ -1,20 +1,31 @@ -/* - Copyright (c) 2012 Arduino. 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 -*/ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following condition is met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- + */ #ifndef UDPHS_H_INCLUDED #define UDPHS_H_INCLUDED @@ -66,8 +77,8 @@ #ifndef TXLED1 #define TXLED0 #define RXLED0 -#define TXLED1 -#define RXLED1 +#define TXLED1 +#define RXLED1 #endif diff --git a/hardware/arduino/sam/system/libsam/include/uotghs_device.h b/hardware/arduino/sam/system/libsam/include/uotghs_device.h index 13a113ae2..3f266bd27 100644 --- a/hardware/arduino/sam/system/libsam/include/uotghs_device.h +++ b/hardware/arduino/sam/system/libsam/include/uotghs_device.h @@ -1,20 +1,31 @@ -/* - Copyright (c) 2012 Arduino. 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 -*/ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following condition is met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- + */ #ifndef UOTGHS_DEVICE_H_INCLUDED #define UOTGHS_DEVICE_H_INCLUDED diff --git a/hardware/arduino/sam/system/libsam/include/uotghs_host.h b/hardware/arduino/sam/system/libsam/include/uotghs_host.h index 93ef2974f..bb16793da 100644 --- a/hardware/arduino/sam/system/libsam/include/uotghs_host.h +++ b/hardware/arduino/sam/system/libsam/include/uotghs_host.h @@ -1,20 +1,31 @@ -/* - Copyright (c) 2012 Arduino. 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 -*/ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following condition is met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- + */ #ifndef UOTGHS_HOST_H_INCLUDED #define UOTGHS_HOST_H_INCLUDED diff --git a/hardware/arduino/sam/system/libsam/include/usart.h b/hardware/arduino/sam/system/libsam/include/usart.h index d20ae07b1..1a152e0d1 100644 --- a/hardware/arduino/sam/system/libsam/include/usart.h +++ b/hardware/arduino/sam/system/libsam/include/usart.h @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/include/wdt.h b/hardware/arduino/sam/system/libsam/include/wdt.h index 8a3f4a4e5..c76db0158 100644 --- a/hardware/arduino/sam/system/libsam/include/wdt.h +++ b/hardware/arduino/sam/system/libsam/include/wdt.h @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/source/adc.c b/hardware/arduino/sam/system/libsam/source/adc.c index af78eb734..c4be3bb71 100644 --- a/hardware/arduino/sam/system/libsam/source/adc.c +++ b/hardware/arduino/sam/system/libsam/source/adc.c @@ -1,42 +1,30 @@ -/** - * \file +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation * - * \brief Analog-to-Digital Converter (ADC/ADC12B) driver for SAM. - * - * Copyright (c) 2011 - 2012 Atmel Corporation. All rights reserved. - * - * \asf_license_start + * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. * - * 3. The name of Atmel may not be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * 4. This software may only be redistributed and used in connection with an - * Atmel microcontroller product. - * - * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE - * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * \asf_license_stop - * + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- */ #include "../chip.h" @@ -52,7 +40,7 @@ extern "C" { /** * \defgroup sam_drivers_adc_group Analog-to-digital Converter (ADC) * - * Driver for the Analog-to-digital Converter. This driver provides access to the main + * Driver for the Analog-to-digital Converter. This driver provides access to the main * features of the ADC controller. * * @{ @@ -65,7 +53,7 @@ extern "C" { * \param p_adc Pointer to an ADC instance. * \param ul_mck Main clock of the device (value in Hz). * \param ul_adc_clock Analog-to-Digital conversion clock (value in Hz). - * \param uc_startup ADC start up time. Please refer to the product datasheet + * \param uc_startup ADC start up time. Please refer to the product datasheet * for details. * * \return 0 on success. @@ -99,11 +87,11 @@ uint32_t adc_init(Adc *p_adc, const uint32_t ul_mck, * \param p_adc Pointer to an ADC instance. * \param ul_mck Main clock of the device (value in Hz). * \param ul_adc_clock Analog-to-Digital conversion clock (in Hz). - * \param ul_startuptime ADC startup time value (value in us). + * \param ul_startuptime ADC startup time value (value in us). * Please refer to the product datasheet for details. - * \param ul_offmode_startuptime ADC off mode startup time value (in us). + * \param ul_offmode_startuptime ADC off mode startup time value (in us). * Please refer to the product datasheet for details. - * + * * \return 0 on success. */ uint32_t adc_init(Adc *p_adc, const uint32_t ul_mck, const uint32_t ul_adc_clock, @@ -148,7 +136,7 @@ void adc_set_resolution(Adc *p_adc,const enum adc_resolution_t resolution) * * \param p_adc Pointer to an ADC instance. * \param trigger Conversion trigger. - * \param uc_freerun ADC_MR_FREERUN_ON enables freerun mode, + * \param uc_freerun ADC_MR_FREERUN_ON enables freerun mode, * ADC_MR_FREERUN_OFF disables freerun mode. * */ @@ -175,11 +163,11 @@ void adc_configure_trigger(Adc *p_adc, const enum adc_trigger_t trigger) * \brief Configures ADC power saving mode. * * \param p_adc Pointer to an ADC instance. - * \param uc_sleep ADC_MR_SLEEP_NORMAL keeps the ADC Core and reference voltage + * \param uc_sleep ADC_MR_SLEEP_NORMAL keeps the ADC Core and reference voltage * circuitry ON between conversions. - * ADC_MR_SLEEP_SLEEP keeps the ADC Core and reference voltage circuitry OFF + * ADC_MR_SLEEP_SLEEP keeps the ADC Core and reference voltage circuitry OFF * between conversions. - * \param uc_fwup ADC_MR_FWUP_OFF configures sleep mode as uc_sleep setting, + * \param uc_fwup ADC_MR_FWUP_OFF configures sleep mode as uc_sleep setting, * ADC_MR_FWUP_ON keeps voltage reference ON and ADC Core OFF between conversions. */ void adc_configure_power_save(Adc *p_adc, const uint8_t uc_sleep, const uint8_t uc_fwup) @@ -192,9 +180,9 @@ void adc_configure_power_save(Adc *p_adc, const uint8_t uc_sleep, const uint8_t * \brief Configure ADC power saving mode. * * \param p_adc Pointer to an ADC instance. - * \param uc_sleep ADC_MR_SLEEP_NORMAL keeps the ADC Core and reference + * \param uc_sleep ADC_MR_SLEEP_NORMAL keeps the ADC Core and reference * voltage circuitry ON between conversions. - * ADC_MR_SLEEP_SLEEP keeps the ADC Core and reference voltage circuitry + * ADC_MR_SLEEP_SLEEP keeps the ADC Core and reference voltage circuitry * OFF between conversions. * \param uc_offmode 0 for Standby Mode (if Sleep Bit = 1), 1 for Off Mode. */ @@ -290,7 +278,7 @@ void adc_enable_anch(Adc *p_adc) #if SAM3S_SERIES || SAM4S_SERIES || SAM3XA_SERIES /** * \brief Disable analog change. - * + * * \note DIFF0, GAIN0 and OFF0 are used for all channels. * * \param p_Adc Pointer to an ADC instance. @@ -304,7 +292,7 @@ void adc_disable_anch(Adc *p_adc) /** * \brief Start analog-to-digital conversion. * - * \note If one of the hardware event is selected as ADC trigger, + * \note If one of the hardware event is selected as ADC trigger, * this function can NOT start analog to digital conversion. * * \param p_adc Pointer to an ADC instance. @@ -422,7 +410,7 @@ uint32_t adc_get_latest_value(const Adc *p_adc) #if SAM3S_SERIES || SAM4S_SERIES || SAM3N_SERIES || SAM3XA_SERIES /** - * \brief Enable TAG option so that the number of the last converted channel + * \brief Enable TAG option so that the number of the last converted channel * can be indicated. * * \param p_adc Pointer to an ADC instance. @@ -449,7 +437,7 @@ void adc_disable_tag(Adc *p_adc) /** * \brief Indicate the last converted channel. * - * \note If TAG option is NOT enabled before, an incorrect channel + * \note If TAG option is NOT enabled before, an incorrect channel * number is returned. * * \param p_adc Pointer to an ADC instance. @@ -729,7 +717,7 @@ uint32_t adc_get_interrupt_mask(const Adc *p_adc) /** * \brief Adapt performance versus power consumption. * - * \note Please refer to ADC Characteristics in the product datasheet + * \note Please refer to ADC Characteristics in the product datasheet * for more details. * * \param p_adc Pointer to an ADC instance. @@ -784,7 +772,7 @@ void adc_set_writeprotect(Adc *p_adc, const uint32_t ul_enable) * * \param p_adc Pointer to an ADC instance. * - * \return 0 if the peripheral is not protected, or 16-bit write protect + * \return 0 if the peripheral is not protected, or 16-bit write protect * violation Status. */ uint32_t adc_get_writeprotect_status(const Adc *p_adc) @@ -856,11 +844,11 @@ void adc_check(Adc *p_adc, const uint32_t ul_mck) printf("ADC clock frequency = %d Hz\r\n", (int)ul_adcfreq); if (ul_adcfreq < ADC_FREQ_MIN) { - printf("adc frequency too low (out of specification: %d Hz)\r\n", + printf("adc frequency too low (out of specification: %d Hz)\r\n", (int)ADC_FREQ_MIN); } if (ul_adcfreq > ADC_FREQ_MAX) { - printf("adc frequency too high (out of specification: %d Hz)\r\n", + printf("adc frequency too high (out of specification: %d Hz)\r\n", (int)ADC_FREQ_MAX); } @@ -883,8 +871,8 @@ void adc_check(Adc *p_adc, const uint32_t ul_mck) /* Sleep 40ms */ if (ADC_STARTUP_NORM * ul_adcfreq / 1000000 > calcul_startup(ul_startup)) { - printf("Startup time too small: %d, programmed: %d\r\n", - (int)(ADC_STARTUP_NORM * ul_adcfreq / 1000000), + printf("Startup time too small: %d, programmed: %d\r\n", + (int)(ADC_STARTUP_NORM * ul_adcfreq / 1000000), (int)(calcul_startup(ul_startup))); } } else { @@ -892,8 +880,8 @@ void adc_check(Adc *p_adc, const uint32_t ul_mck) /* Fast Wake Up Sleep Mode: 12ms */ if (ADC_STARTUP_FAST * ul_adcfreq / 1000000 > calcul_startup(ul_startup)) { - printf("Startup time too small: %d, programmed: %d\r\n", - (int)(ADC_STARTUP_NORM * ul_adcfreq / 1000000), + printf("Startup time too small: %d, programmed: %d\r\n", + (int)(ADC_STARTUP_NORM * ul_adcfreq / 1000000), (int)(calcul_startup(ul_startup))); } } diff --git a/hardware/arduino/sam/system/libsam/source/adc12_sam3u.c b/hardware/arduino/sam/system/libsam/source/adc12_sam3u.c index a1c2faef4..64e392337 100644 --- a/hardware/arduino/sam/system/libsam/source/adc12_sam3u.c +++ b/hardware/arduino/sam/system/libsam/source/adc12_sam3u.c @@ -1,42 +1,30 @@ -/** - * \file +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation * - * \brief Analog-to-Digital Converter (ADC/ADC12B) driver for SAM. - * - * Copyright (c) 2011 - 2012 Atmel Corporation. All rights reserved. - * - * \asf_license_start + * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. * - * 3. The name of Atmel may not be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * 4. This software may only be redistributed and used in connection with an - * Atmel microcontroller product. - * - * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE - * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * \asf_license_stop - * + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- */ #include "../chip.h" @@ -52,12 +40,12 @@ extern "C" { /** * \defgroup sam_drivers_adc_group Analog-to-digital Converter (ADC) * - * Driver for the Analog-to-digital Converter. This driver provides access to the main + * Driver for the Analog-to-digital Converter. This driver provides access to the main * features of the ADC controller. * * @{ */ - + #if SAM3U_SERIES /** @@ -66,9 +54,9 @@ extern "C" { * \param p_adc Pointer to an ADC instance. * \param ul_mck Main clock of the device (in Hz). * \param ul_adc_clock Analog-to-Digital conversion clock (in Hz). - * \param ul_startuptime ADC startup time value (value in us). + * \param ul_startuptime ADC startup time value (value in us). * Please refer to the product datasheet for more details. - * \param ul_offmode_startuptime ADC off mode startup time value (value in us). + * \param ul_offmode_startuptime ADC off mode startup time value (value in us). * Please refer to the product datasheet for more details. * * \return 0 on success. @@ -124,7 +112,7 @@ void adc12b_configure_trigger(Adc12b *p_adc, const enum adc_trigger_t trigger) * \brief Configure ADC power saving mode. * * \param p_adc Pointer to an ADC instance. - * \param uc_sleep ADC_MR_SLEEP_NORMAL keeps the ADC Core and reference + * \param uc_sleep ADC_MR_SLEEP_NORMAL keeps the ADC Core and reference * voltage circuitry ON between conversions. * ADC_MR_SLEEP_SLEEP keeps the ADC Core and reference voltage circuitry * OFF between conversions. @@ -151,7 +139,7 @@ void adc12b_configure_timing(Adc12b *p_adc, const uint32_t ul_sh) /** * \brief Start ADC conversion. * - * \note If one of the hardware event is selected as ADC trigger, + * \note If one of the hardware event is selected as ADC trigger, * this function can NOT start ADC conversion. * * \param p_adc Pointer to an ADC instance. @@ -376,7 +364,7 @@ uint32_t adc12b_get_status(const Adc12b *p_adc) /** * \brief Adapt performance versus power consumption. * - * \note Please refer to ADC Characteristics in the product datasheet + * \note Please refer to ADC Characteristics in the product datasheet * for more details. * * \param p_adc Pointer to an ADC instance. diff --git a/hardware/arduino/sam/system/libsam/source/interrupt_sam_nvic.c b/hardware/arduino/sam/system/libsam/source/interrupt_sam_nvic.c index c560797eb..bbfe17263 100644 --- a/hardware/arduino/sam/system/libsam/source/interrupt_sam_nvic.c +++ b/hardware/arduino/sam/system/libsam/source/interrupt_sam_nvic.c @@ -1,42 +1,30 @@ -/** - * \file +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation * - * \brief Global interrupt management for SAM3 and SAM4 (NVIC based) - * - * Copyright (c) 2012 Atmel Corporation. All rights reserved. - * - * \asf_license_start + * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. * - * 3. The name of Atmel may not be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * 4. This software may only be redistributed and used in connection with an - * Atmel microcontroller product. - * - * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE - * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * \asf_license_stop - * + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- */ #include "interrupt_sam_nvic.h" diff --git a/hardware/arduino/sam/system/libsam/source/pio.c b/hardware/arduino/sam/system/libsam/source/pio.c index 3c0597063..3450cbbcf 100644 --- a/hardware/arduino/sam/system/libsam/source/pio.c +++ b/hardware/arduino/sam/system/libsam/source/pio.c @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/source/pmc.c b/hardware/arduino/sam/system/libsam/source/pmc.c index 93e9d8f33..b01dc60a8 100644 --- a/hardware/arduino/sam/system/libsam/source/pmc.c +++ b/hardware/arduino/sam/system/libsam/source/pmc.c @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2012, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. @@ -27,7 +27,6 @@ * ---------------------------------------------------------------------------- */ - #include "chip.h" #if (SAM3N_SERIES) diff --git a/hardware/arduino/sam/system/libsam/source/pwmc.c b/hardware/arduino/sam/system/libsam/source/pwmc.c index d8703eb5d..7d816c4fb 100644 --- a/hardware/arduino/sam/system/libsam/source/pwmc.c +++ b/hardware/arduino/sam/system/libsam/source/pwmc.c @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/source/rtc.c b/hardware/arduino/sam/system/libsam/source/rtc.c index 185043678..2fe856624 100644 --- a/hardware/arduino/sam/system/libsam/source/rtc.c +++ b/hardware/arduino/sam/system/libsam/source/rtc.c @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/source/rtt.c b/hardware/arduino/sam/system/libsam/source/rtt.c index 84e7c5121..41dd333a1 100644 --- a/hardware/arduino/sam/system/libsam/source/rtt.c +++ b/hardware/arduino/sam/system/libsam/source/rtt.c @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/source/spi.c b/hardware/arduino/sam/system/libsam/source/spi.c index acda7d9f9..be3638f28 100644 --- a/hardware/arduino/sam/system/libsam/source/spi.c +++ b/hardware/arduino/sam/system/libsam/source/spi.c @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/source/tc.c b/hardware/arduino/sam/system/libsam/source/tc.c index 35439db5a..c3f935ee7 100644 --- a/hardware/arduino/sam/system/libsam/source/tc.c +++ b/hardware/arduino/sam/system/libsam/source/tc.c @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/source/timetick.c b/hardware/arduino/sam/system/libsam/source/timetick.c index 99ab5c9e1..1661dca77 100644 --- a/hardware/arduino/sam/system/libsam/source/timetick.c +++ b/hardware/arduino/sam/system/libsam/source/timetick.c @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/source/twi.c b/hardware/arduino/sam/system/libsam/source/twi.c index 44287680c..2a961f6fd 100644 --- a/hardware/arduino/sam/system/libsam/source/twi.c +++ b/hardware/arduino/sam/system/libsam/source/twi.c @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/source/udp.c b/hardware/arduino/sam/system/libsam/source/udp.c index 47515aa57..7d90f3e2e 100644 --- a/hardware/arduino/sam/system/libsam/source/udp.c +++ b/hardware/arduino/sam/system/libsam/source/udp.c @@ -1,20 +1,31 @@ -/* - Copyright (c) 2012 Arduino. 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 -*/ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following condition is met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- + */ #include "chip.h" diff --git a/hardware/arduino/sam/system/libsam/source/udphs.c b/hardware/arduino/sam/system/libsam/source/udphs.c index 40267a229..06555514c 100644 --- a/hardware/arduino/sam/system/libsam/source/udphs.c +++ b/hardware/arduino/sam/system/libsam/source/udphs.c @@ -1,20 +1,31 @@ -/* - Copyright (c) 2012 Arduino. 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 -*/ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following condition is met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- + */ #include "chip.h" diff --git a/hardware/arduino/sam/system/libsam/source/uotghs.c b/hardware/arduino/sam/system/libsam/source/uotghs.c index 061746571..1fe00fc87 100644 --- a/hardware/arduino/sam/system/libsam/source/uotghs.c +++ b/hardware/arduino/sam/system/libsam/source/uotghs.c @@ -1,20 +1,31 @@ -/* - Copyright (c) 2012 Arduino. 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 -*/ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following condition is met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- + */ #include "chip.h" diff --git a/hardware/arduino/sam/system/libsam/source/uotghs_device.c b/hardware/arduino/sam/system/libsam/source/uotghs_device.c index a589767f2..2f8bb881b 100644 --- a/hardware/arduino/sam/system/libsam/source/uotghs_device.c +++ b/hardware/arduino/sam/system/libsam/source/uotghs_device.c @@ -1,20 +1,31 @@ -/* - Copyright (c) 2012 Arduino. 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 -*/ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following condition is met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- + */ #include "chip.h" #include diff --git a/hardware/arduino/sam/system/libsam/source/uotghs_host.c b/hardware/arduino/sam/system/libsam/source/uotghs_host.c index dd23a792f..1090c774d 100644 --- a/hardware/arduino/sam/system/libsam/source/uotghs_host.c +++ b/hardware/arduino/sam/system/libsam/source/uotghs_host.c @@ -1,20 +1,31 @@ -/* - Copyright (c) 2012 Arduino. 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 -*/ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011-2012, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following condition is met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ---------------------------------------------------------------------------- + */ #include "chip.h" #include @@ -253,9 +264,6 @@ uint32_t UHD_EP0_Alloc(uint32_t ul_add, uint32_t ul_ep_size) /** * \brief Allocate FIFO for the specified pipe. * - * \param ul_add Address of remote device for pipe 0. - * \param ul_ep_size Actual size of the FIFO in bytes. - * * \retval 0 success. * \retval 1 error. */ diff --git a/hardware/arduino/sam/system/libsam/source/usart.c b/hardware/arduino/sam/system/libsam/source/usart.c index 163b26b21..d19613235 100644 --- a/hardware/arduino/sam/system/libsam/source/usart.c +++ b/hardware/arduino/sam/system/libsam/source/usart.c @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below. diff --git a/hardware/arduino/sam/system/libsam/source/wdt.c b/hardware/arduino/sam/system/libsam/source/wdt.c index 7328042f2..45287aa5a 100644 --- a/hardware/arduino/sam/system/libsam/source/wdt.c +++ b/hardware/arduino/sam/system/libsam/source/wdt.c @@ -1,12 +1,12 @@ /* ---------------------------------------------------------------------------- - * SAM Software Package License + * SAM Software Package License * ---------------------------------------------------------------------------- - * Copyright (c) 2011, Atmel Corporation + * Copyright (c) 2011-2012, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following condition is met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the disclaimer below.