Robobo
chip.h
1 /*
2  Copyright (c) 2011 Arduino. All right reserved.
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12  See the GNU Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef _LIB_SAM_
20 #define _LIB_SAM_
21 
22 /*
23  * Core and peripherals registers definitions
24  */
25 #include "sam.h"
26 
27 /* Define attribute */
28 #if defined ( __GNUC__ ) /* GCC CS3 */
29  #define WEAK __attribute__ ((weak))
30 #elif defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */
31  #define WEAK __weak
32 #endif
33 
34 /* Define NO_INIT attribute */
35 #if defined ( __GNUC__ )
36  #define NO_INIT
37 #elif defined ( __ICCARM__ )
38  #define NO_INIT __no_init
39 #endif
40 
41 /*
42  * Peripherals
43  */
44 #include "include/adc.h"
45 #if (SAM3XA_SERIES) || (SAM3N_SERIES) || (SAM3S_SERIES)
46 #include "include/dacc.h"
47 #endif // (SAM3XA_SERIES) || (SAM3N_SERIES) || (SAM3S_SERIES)
48 
49 #include "include/interrupt_sam_nvic.h"
50 #include "include/efc.h"
51 #include "include/gpbr.h"
52 #include "include/pio.h"
53 #include "include/pmc.h"
54 #include "include/pwmc.h"
55 #include "include/rstc.h"
56 #include "include/rtc.h"
57 #include "include/rtt.h"
58 #include "include/spi.h"
59 #include "include/ssc.h"
60 #include "include/tc.h"
61 #include "include/twi.h"
62 #include "include/usart.h"
63 #include "include/wdt.h"
64 
65 #include "include/timetick.h"
66 #include "include/USB_device.h"
67 #include "include/USB_host.h"
68 
69 #if (SAM3XA_SERIES)
70 #include "include/can.h"
71 #include "include/emac.h"
72 #include "include/trng.h"
73 #include "include/uotghs_device.h"
74 #include "include/uotghs_host.h"
75 #endif /* (SAM3XA_SERIES) */
76 
77 #endif /* _LIB_SAM_ */
EMAC (Ethernet MAC) driver for SAM.
Synchronous Serial Controller (SSC) driver for SAM.
Embedded Flash Controller (EFC) driver for SAM.
API for SAM TRNG.
Reset Controller (RSTC) driver for SAM.
General Purpose Backup Registers (GPBR) driver for SAM.
Controller Area Network (CAN) driver module for SAM.