Robobo
instance_tc1.h
1 /* ----------------------------------------------------------------------------
2  * SAM Software Package License
3  * ----------------------------------------------------------------------------
4  * Copyright (c) 2012, Atmel Corporation
5  *
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following condition is met:
10  *
11  * - Redistributions of source code must retain the above copyright notice,
12  * this list of conditions and the disclaimer below.
13  *
14  * Atmel's name may not be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20  * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  * ----------------------------------------------------------------------------
28  */
29 
30 #ifndef _SAM3N_TC1_INSTANCE_
31 #define _SAM3N_TC1_INSTANCE_
32 
33 /* ========== Register definition for TC1 peripheral ========== */
34 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
35 #define REG_TC1_CCR0 (0x40014000U)
36 #define REG_TC1_CMR0 (0x40014004U)
37 #define REG_TC1_SMMR0 (0x40014008U)
38 #define REG_TC1_CV0 (0x40014010U)
39 #define REG_TC1_RA0 (0x40014014U)
40 #define REG_TC1_RB0 (0x40014018U)
41 #define REG_TC1_RC0 (0x4001401CU)
42 #define REG_TC1_SR0 (0x40014020U)
43 #define REG_TC1_IER0 (0x40014024U)
44 #define REG_TC1_IDR0 (0x40014028U)
45 #define REG_TC1_IMR0 (0x4001402CU)
46 #define REG_TC1_CCR1 (0x40014040U)
47 #define REG_TC1_CMR1 (0x40014044U)
48 #define REG_TC1_SMMR1 (0x40014048U)
49 #define REG_TC1_CV1 (0x40014050U)
50 #define REG_TC1_RA1 (0x40014054U)
51 #define REG_TC1_RB1 (0x40014058U)
52 #define REG_TC1_RC1 (0x4001405CU)
53 #define REG_TC1_SR1 (0x40014060U)
54 #define REG_TC1_IER1 (0x40014064U)
55 #define REG_TC1_IDR1 (0x40014068U)
56 #define REG_TC1_IMR1 (0x4001406CU)
57 #define REG_TC1_CCR2 (0x40014080U)
58 #define REG_TC1_CMR2 (0x40014084U)
59 #define REG_TC1_SMMR2 (0x40014088U)
60 #define REG_TC1_CV2 (0x40014090U)
61 #define REG_TC1_RA2 (0x40014094U)
62 #define REG_TC1_RB2 (0x40014098U)
63 #define REG_TC1_RC2 (0x4001409CU)
64 #define REG_TC1_SR2 (0x400140A0U)
65 #define REG_TC1_IER2 (0x400140A4U)
66 #define REG_TC1_IDR2 (0x400140A8U)
67 #define REG_TC1_IMR2 (0x400140ACU)
68 #define REG_TC1_BCR (0x400140C0U)
69 #define REG_TC1_BMR (0x400140C4U)
70 #define REG_TC1_QIER (0x400140C8U)
71 #define REG_TC1_QIDR (0x400140CCU)
72 #define REG_TC1_QIMR (0x400140D0U)
73 #define REG_TC1_QISR (0x400140D4U)
74 #define REG_TC1_WPMR (0x400140E4U)
75 #else
76 #define REG_TC1_CCR0 (*(WoReg*)0x40014000U)
77 #define REG_TC1_CMR0 (*(RwReg*)0x40014004U)
78 #define REG_TC1_SMMR0 (*(RwReg*)0x40014008U)
79 #define REG_TC1_CV0 (*(RoReg*)0x40014010U)
80 #define REG_TC1_RA0 (*(RwReg*)0x40014014U)
81 #define REG_TC1_RB0 (*(RwReg*)0x40014018U)
82 #define REG_TC1_RC0 (*(RwReg*)0x4001401CU)
83 #define REG_TC1_SR0 (*(RoReg*)0x40014020U)
84 #define REG_TC1_IER0 (*(WoReg*)0x40014024U)
85 #define REG_TC1_IDR0 (*(WoReg*)0x40014028U)
86 #define REG_TC1_IMR0 (*(RoReg*)0x4001402CU)
87 #define REG_TC1_CCR1 (*(WoReg*)0x40014040U)
88 #define REG_TC1_CMR1 (*(RwReg*)0x40014044U)
89 #define REG_TC1_SMMR1 (*(RwReg*)0x40014048U)
90 #define REG_TC1_CV1 (*(RoReg*)0x40014050U)
91 #define REG_TC1_RA1 (*(RwReg*)0x40014054U)
92 #define REG_TC1_RB1 (*(RwReg*)0x40014058U)
93 #define REG_TC1_RC1 (*(RwReg*)0x4001405CU)
94 #define REG_TC1_SR1 (*(RoReg*)0x40014060U)
95 #define REG_TC1_IER1 (*(WoReg*)0x40014064U)
96 #define REG_TC1_IDR1 (*(WoReg*)0x40014068U)
97 #define REG_TC1_IMR1 (*(RoReg*)0x4001406CU)
98 #define REG_TC1_CCR2 (*(WoReg*)0x40014080U)
99 #define REG_TC1_CMR2 (*(RwReg*)0x40014084U)
100 #define REG_TC1_SMMR2 (*(RwReg*)0x40014088U)
101 #define REG_TC1_CV2 (*(RoReg*)0x40014090U)
102 #define REG_TC1_RA2 (*(RwReg*)0x40014094U)
103 #define REG_TC1_RB2 (*(RwReg*)0x40014098U)
104 #define REG_TC1_RC2 (*(RwReg*)0x4001409CU)
105 #define REG_TC1_SR2 (*(RoReg*)0x400140A0U)
106 #define REG_TC1_IER2 (*(WoReg*)0x400140A4U)
107 #define REG_TC1_IDR2 (*(WoReg*)0x400140A8U)
108 #define REG_TC1_IMR2 (*(RoReg*)0x400140ACU)
109 #define REG_TC1_BCR (*(WoReg*)0x400140C0U)
110 #define REG_TC1_BMR (*(RwReg*)0x400140C4U)
111 #define REG_TC1_QIER (*(WoReg*)0x400140C8U)
112 #define REG_TC1_QIDR (*(WoReg*)0x400140CCU)
113 #define REG_TC1_QIMR (*(RoReg*)0x400140D0U)
114 #define REG_TC1_QISR (*(RoReg*)0x400140D4U)
115 #define REG_TC1_WPMR (*(RwReg*)0x400140E4U)
116 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
117 
118 #endif /* _SAM3N_TC1_INSTANCE_ */