2011-10-25 16:19:43 +02:00
|
|
|
/*
|
|
|
|
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
|
2012-04-28 11:49:28 +02:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
2011-10-25 16:19:43 +02:00
|
|
|
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
|
|
|
|
*/
|
2011-09-06 21:05:41 +02:00
|
|
|
|
2011-10-25 16:19:43 +02:00
|
|
|
#ifndef _LIB_SAM_
|
|
|
|
#define _LIB_SAM_
|
2011-05-31 23:09:42 +02:00
|
|
|
|
|
|
|
/*
|
2011-09-06 21:05:41 +02:00
|
|
|
* Core and peripherals registers definitions
|
2011-05-31 23:09:42 +02:00
|
|
|
*/
|
2012-03-26 16:50:47 +02:00
|
|
|
#include "sam.h"
|
2011-05-31 23:09:42 +02:00
|
|
|
|
|
|
|
/* Define attribute */
|
|
|
|
#if defined ( __GNUC__ ) /* GCC CS3 */
|
|
|
|
#define WEAK __attribute__ ((weak))
|
2011-09-06 21:05:41 +02:00
|
|
|
#elif defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */
|
|
|
|
#define WEAK __weak
|
2011-05-31 23:09:42 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Define NO_INIT attribute */
|
|
|
|
#if defined ( __GNUC__ )
|
|
|
|
#define NO_INIT
|
2011-09-06 21:05:41 +02:00
|
|
|
#elif defined ( __ICCARM__ )
|
|
|
|
#define NO_INIT __no_init
|
2011-05-31 23:09:42 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Peripherals
|
|
|
|
*/
|
|
|
|
#include "include/adc.h"
|
2012-06-13 13:30:43 +02:00
|
|
|
#include "include/dacc.h"
|
2012-04-30 13:42:04 +02:00
|
|
|
#include "include/interrupt_sam_nvic.h"
|
2011-05-31 23:09:42 +02:00
|
|
|
#include "include/pio.h"
|
|
|
|
#include "include/pmc.h"
|
|
|
|
#include "include/pwmc.h"
|
|
|
|
#include "include/rtc.h"
|
|
|
|
#include "include/rtt.h"
|
|
|
|
#include "include/spi.h"
|
|
|
|
#include "include/tc.h"
|
|
|
|
#include "include/twi.h"
|
|
|
|
#include "include/usart.h"
|
|
|
|
#include "include/wdt.h"
|
|
|
|
|
2011-07-11 01:51:24 +02:00
|
|
|
#include "include/timetick.h"
|
2012-04-28 11:49:28 +02:00
|
|
|
#include "include/USB_device.h"
|
2012-06-07 16:11:26 +02:00
|
|
|
#include "include/USB_host.h"
|
2012-04-26 20:22:15 +02:00
|
|
|
|
|
|
|
#if SAM3XA_SERIES
|
2012-06-07 16:11:26 +02:00
|
|
|
#include "include/uotghs_device.h"
|
|
|
|
#include "include/uotghs_host.h"
|
2012-04-26 20:22:15 +02:00
|
|
|
#endif /* SAM3XA_SERIES */
|
2011-07-11 01:51:24 +02:00
|
|
|
|
2011-10-25 16:19:43 +02:00
|
|
|
#endif /* _LIB_SAM_ */
|