1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-12 23:08:52 +01:00
Arduino/hardware/arduino/sam/system/libsam/chip.h

68 lines
1.8 KiB
C
Raw Normal View History

/*
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.
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
#ifndef _LIB_SAM_
#define _LIB_SAM_
/*
2011-09-06 21:05:41 +02:00
* Core and peripherals registers definitions
*/
2012-03-26 16:50:47 +02:00
#include "sam.h"
/* 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
#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
#endif
/*
* Peripherals
*/
#include "include/adc.h"
#include "include/dacc.h"
#include "include/interrupt_sam_nvic.h"
#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"
#include "include/USB_host.h"
2012-04-26 20:22:15 +02:00
#if SAM3XA_SERIES
#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
#endif /* _LIB_SAM_ */