1 /**
2  * \file
3  *
4  * \brief Instance description for EVSYS
5  *
6  * Copyright (c) 2018 Microchip Technology Inc.
7  *
8  * \asf_license_start
9  *
10  * \page License
11  *
12  * SPDX-License-Identifier: Apache-2.0
13  *
14  * Licensed under the Apache License, Version 2.0 (the "License"); you may
15  * not use this file except in compliance with the License.
16  * You may obtain a copy of the Licence at
17  *
18  * http://www.apache.org/licenses/LICENSE-2.0
19  *
20  * Unless required by applicable law or agreed to in writing, software
21  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
22  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23  * See the License for the specific language governing permissions and
24  * limitations under the License.
25  *
26  * \asf_license_stop
27  *
28  */
29 
30 #ifndef _SAMR34_EVSYS_INSTANCE_
31 #define _SAMR34_EVSYS_INSTANCE_
32 
33 /* ========== Register definition for EVSYS peripheral ========== */
34 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
35 #define REG_EVSYS_CTRLA            (0x43000000) /**< \brief (EVSYS) Control */
36 #define REG_EVSYS_CHSTATUS         (0x4300000C) /**< \brief (EVSYS) Channel Status */
37 #define REG_EVSYS_INTENCLR         (0x43000010) /**< \brief (EVSYS) Interrupt Enable Clear */
38 #define REG_EVSYS_INTENSET         (0x43000014) /**< \brief (EVSYS) Interrupt Enable Set */
39 #define REG_EVSYS_INTFLAG          (0x43000018) /**< \brief (EVSYS) Interrupt Flag Status and Clear */
40 #define REG_EVSYS_SWEVT            (0x4300001C) /**< \brief (EVSYS) Software Event */
41 #define REG_EVSYS_CHANNEL0         (0x43000020) /**< \brief (EVSYS) Channel 0 */
42 #define REG_EVSYS_CHANNEL1         (0x43000024) /**< \brief (EVSYS) Channel 1 */
43 #define REG_EVSYS_CHANNEL2         (0x43000028) /**< \brief (EVSYS) Channel 2 */
44 #define REG_EVSYS_CHANNEL3         (0x4300002C) /**< \brief (EVSYS) Channel 3 */
45 #define REG_EVSYS_CHANNEL4         (0x43000030) /**< \brief (EVSYS) Channel 4 */
46 #define REG_EVSYS_CHANNEL5         (0x43000034) /**< \brief (EVSYS) Channel 5 */
47 #define REG_EVSYS_CHANNEL6         (0x43000038) /**< \brief (EVSYS) Channel 6 */
48 #define REG_EVSYS_CHANNEL7         (0x4300003C) /**< \brief (EVSYS) Channel 7 */
49 #define REG_EVSYS_CHANNEL8         (0x43000040) /**< \brief (EVSYS) Channel 8 */
50 #define REG_EVSYS_CHANNEL9         (0x43000044) /**< \brief (EVSYS) Channel 9 */
51 #define REG_EVSYS_CHANNEL10        (0x43000048) /**< \brief (EVSYS) Channel 10 */
52 #define REG_EVSYS_CHANNEL11        (0x4300004C) /**< \brief (EVSYS) Channel 11 */
53 #define REG_EVSYS_USER0            (0x43000080) /**< \brief (EVSYS) User Multiplexer 0 */
54 #define REG_EVSYS_USER1            (0x43000084) /**< \brief (EVSYS) User Multiplexer 1 */
55 #define REG_EVSYS_USER2            (0x43000088) /**< \brief (EVSYS) User Multiplexer 2 */
56 #define REG_EVSYS_USER3            (0x4300008C) /**< \brief (EVSYS) User Multiplexer 3 */
57 #define REG_EVSYS_USER4            (0x43000090) /**< \brief (EVSYS) User Multiplexer 4 */
58 #define REG_EVSYS_USER5            (0x43000094) /**< \brief (EVSYS) User Multiplexer 5 */
59 #define REG_EVSYS_USER6            (0x43000098) /**< \brief (EVSYS) User Multiplexer 6 */
60 #define REG_EVSYS_USER7            (0x4300009C) /**< \brief (EVSYS) User Multiplexer 7 */
61 #define REG_EVSYS_USER8            (0x430000A0) /**< \brief (EVSYS) User Multiplexer 8 */
62 #define REG_EVSYS_USER9            (0x430000A4) /**< \brief (EVSYS) User Multiplexer 9 */
63 #define REG_EVSYS_USER10           (0x430000A8) /**< \brief (EVSYS) User Multiplexer 10 */
64 #define REG_EVSYS_USER11           (0x430000AC) /**< \brief (EVSYS) User Multiplexer 11 */
65 #define REG_EVSYS_USER12           (0x430000B0) /**< \brief (EVSYS) User Multiplexer 12 */
66 #define REG_EVSYS_USER13           (0x430000B4) /**< \brief (EVSYS) User Multiplexer 13 */
67 #define REG_EVSYS_USER14           (0x430000B8) /**< \brief (EVSYS) User Multiplexer 14 */
68 #define REG_EVSYS_USER15           (0x430000BC) /**< \brief (EVSYS) User Multiplexer 15 */
69 #define REG_EVSYS_USER16           (0x430000C0) /**< \brief (EVSYS) User Multiplexer 16 */
70 #define REG_EVSYS_USER17           (0x430000C4) /**< \brief (EVSYS) User Multiplexer 17 */
71 #define REG_EVSYS_USER18           (0x430000C8) /**< \brief (EVSYS) User Multiplexer 18 */
72 #define REG_EVSYS_USER19           (0x430000CC) /**< \brief (EVSYS) User Multiplexer 19 */
73 #define REG_EVSYS_USER20           (0x430000D0) /**< \brief (EVSYS) User Multiplexer 20 */
74 #define REG_EVSYS_USER21           (0x430000D4) /**< \brief (EVSYS) User Multiplexer 21 */
75 #define REG_EVSYS_USER22           (0x430000D8) /**< \brief (EVSYS) User Multiplexer 22 */
76 #define REG_EVSYS_USER23           (0x430000DC) /**< \brief (EVSYS) User Multiplexer 23 */
77 #define REG_EVSYS_USER24           (0x430000E0) /**< \brief (EVSYS) User Multiplexer 24 */
78 #define REG_EVSYS_USER25           (0x430000E4) /**< \brief (EVSYS) User Multiplexer 25 */
79 #define REG_EVSYS_USER26           (0x430000E8) /**< \brief (EVSYS) User Multiplexer 26 */
80 #define REG_EVSYS_USER27           (0x430000EC) /**< \brief (EVSYS) User Multiplexer 27 */
81 #define REG_EVSYS_USER28           (0x430000F0) /**< \brief (EVSYS) User Multiplexer 28 */
82 #define REG_EVSYS_USER29           (0x430000F4) /**< \brief (EVSYS) User Multiplexer 29 */
83 #define REG_EVSYS_USER30           (0x430000F8) /**< \brief (EVSYS) User Multiplexer 30 */
84 #define REG_EVSYS_USER31           (0x430000FC) /**< \brief (EVSYS) User Multiplexer 31 */
85 #define REG_EVSYS_USER32           (0x43000100) /**< \brief (EVSYS) User Multiplexer 32 */
86 #define REG_EVSYS_USER33           (0x43000104) /**< \brief (EVSYS) User Multiplexer 33 */
87 #define REG_EVSYS_USER34           (0x43000108) /**< \brief (EVSYS) User Multiplexer 34 */
88 #define REG_EVSYS_USER35           (0x4300010C) /**< \brief (EVSYS) User Multiplexer 35 */
89 #define REG_EVSYS_USER36           (0x43000110) /**< \brief (EVSYS) User Multiplexer 36 */
90 #define REG_EVSYS_USER37           (0x43000114) /**< \brief (EVSYS) User Multiplexer 37 */
91 #define REG_EVSYS_USER38           (0x43000118) /**< \brief (EVSYS) User Multiplexer 38 */
92 #define REG_EVSYS_USER39           (0x4300011C) /**< \brief (EVSYS) User Multiplexer 39 */
93 #define REG_EVSYS_USER40           (0x43000120) /**< \brief (EVSYS) User Multiplexer 40 */
94 #define REG_EVSYS_USER41           (0x43000124) /**< \brief (EVSYS) User Multiplexer 41 */
95 #define REG_EVSYS_USER42           (0x43000128) /**< \brief (EVSYS) User Multiplexer 42 */
96 #define REG_EVSYS_USER43           (0x4300012C) /**< \brief (EVSYS) User Multiplexer 43 */
97 #define REG_EVSYS_USER44           (0x43000130) /**< \brief (EVSYS) User Multiplexer 44 */
98 #else
99 #define REG_EVSYS_CTRLA            (*(RwReg8 *)0x43000000UL) /**< \brief (EVSYS) Control */
100 #define REG_EVSYS_CHSTATUS         (*(RoReg  *)0x4300000CUL) /**< \brief (EVSYS) Channel Status */
101 #define REG_EVSYS_INTENCLR         (*(RwReg  *)0x43000010UL) /**< \brief (EVSYS) Interrupt Enable Clear */
102 #define REG_EVSYS_INTENSET         (*(RwReg  *)0x43000014UL) /**< \brief (EVSYS) Interrupt Enable Set */
103 #define REG_EVSYS_INTFLAG          (*(RwReg  *)0x43000018UL) /**< \brief (EVSYS) Interrupt Flag Status and Clear */
104 #define REG_EVSYS_SWEVT            (*(WoReg  *)0x4300001CUL) /**< \brief (EVSYS) Software Event */
105 #define REG_EVSYS_CHANNEL0         (*(RwReg  *)0x43000020UL) /**< \brief (EVSYS) Channel 0 */
106 #define REG_EVSYS_CHANNEL1         (*(RwReg  *)0x43000024UL) /**< \brief (EVSYS) Channel 1 */
107 #define REG_EVSYS_CHANNEL2         (*(RwReg  *)0x43000028UL) /**< \brief (EVSYS) Channel 2 */
108 #define REG_EVSYS_CHANNEL3         (*(RwReg  *)0x4300002CUL) /**< \brief (EVSYS) Channel 3 */
109 #define REG_EVSYS_CHANNEL4         (*(RwReg  *)0x43000030UL) /**< \brief (EVSYS) Channel 4 */
110 #define REG_EVSYS_CHANNEL5         (*(RwReg  *)0x43000034UL) /**< \brief (EVSYS) Channel 5 */
111 #define REG_EVSYS_CHANNEL6         (*(RwReg  *)0x43000038UL) /**< \brief (EVSYS) Channel 6 */
112 #define REG_EVSYS_CHANNEL7         (*(RwReg  *)0x4300003CUL) /**< \brief (EVSYS) Channel 7 */
113 #define REG_EVSYS_CHANNEL8         (*(RwReg  *)0x43000040UL) /**< \brief (EVSYS) Channel 8 */
114 #define REG_EVSYS_CHANNEL9         (*(RwReg  *)0x43000044UL) /**< \brief (EVSYS) Channel 9 */
115 #define REG_EVSYS_CHANNEL10        (*(RwReg  *)0x43000048UL) /**< \brief (EVSYS) Channel 10 */
116 #define REG_EVSYS_CHANNEL11        (*(RwReg  *)0x4300004CUL) /**< \brief (EVSYS) Channel 11 */
117 #define REG_EVSYS_USER0            (*(RwReg  *)0x43000080UL) /**< \brief (EVSYS) User Multiplexer 0 */
118 #define REG_EVSYS_USER1            (*(RwReg  *)0x43000084UL) /**< \brief (EVSYS) User Multiplexer 1 */
119 #define REG_EVSYS_USER2            (*(RwReg  *)0x43000088UL) /**< \brief (EVSYS) User Multiplexer 2 */
120 #define REG_EVSYS_USER3            (*(RwReg  *)0x4300008CUL) /**< \brief (EVSYS) User Multiplexer 3 */
121 #define REG_EVSYS_USER4            (*(RwReg  *)0x43000090UL) /**< \brief (EVSYS) User Multiplexer 4 */
122 #define REG_EVSYS_USER5            (*(RwReg  *)0x43000094UL) /**< \brief (EVSYS) User Multiplexer 5 */
123 #define REG_EVSYS_USER6            (*(RwReg  *)0x43000098UL) /**< \brief (EVSYS) User Multiplexer 6 */
124 #define REG_EVSYS_USER7            (*(RwReg  *)0x4300009CUL) /**< \brief (EVSYS) User Multiplexer 7 */
125 #define REG_EVSYS_USER8            (*(RwReg  *)0x430000A0UL) /**< \brief (EVSYS) User Multiplexer 8 */
126 #define REG_EVSYS_USER9            (*(RwReg  *)0x430000A4UL) /**< \brief (EVSYS) User Multiplexer 9 */
127 #define REG_EVSYS_USER10           (*(RwReg  *)0x430000A8UL) /**< \brief (EVSYS) User Multiplexer 10 */
128 #define REG_EVSYS_USER11           (*(RwReg  *)0x430000ACUL) /**< \brief (EVSYS) User Multiplexer 11 */
129 #define REG_EVSYS_USER12           (*(RwReg  *)0x430000B0UL) /**< \brief (EVSYS) User Multiplexer 12 */
130 #define REG_EVSYS_USER13           (*(RwReg  *)0x430000B4UL) /**< \brief (EVSYS) User Multiplexer 13 */
131 #define REG_EVSYS_USER14           (*(RwReg  *)0x430000B8UL) /**< \brief (EVSYS) User Multiplexer 14 */
132 #define REG_EVSYS_USER15           (*(RwReg  *)0x430000BCUL) /**< \brief (EVSYS) User Multiplexer 15 */
133 #define REG_EVSYS_USER16           (*(RwReg  *)0x430000C0UL) /**< \brief (EVSYS) User Multiplexer 16 */
134 #define REG_EVSYS_USER17           (*(RwReg  *)0x430000C4UL) /**< \brief (EVSYS) User Multiplexer 17 */
135 #define REG_EVSYS_USER18           (*(RwReg  *)0x430000C8UL) /**< \brief (EVSYS) User Multiplexer 18 */
136 #define REG_EVSYS_USER19           (*(RwReg  *)0x430000CCUL) /**< \brief (EVSYS) User Multiplexer 19 */
137 #define REG_EVSYS_USER20           (*(RwReg  *)0x430000D0UL) /**< \brief (EVSYS) User Multiplexer 20 */
138 #define REG_EVSYS_USER21           (*(RwReg  *)0x430000D4UL) /**< \brief (EVSYS) User Multiplexer 21 */
139 #define REG_EVSYS_USER22           (*(RwReg  *)0x430000D8UL) /**< \brief (EVSYS) User Multiplexer 22 */
140 #define REG_EVSYS_USER23           (*(RwReg  *)0x430000DCUL) /**< \brief (EVSYS) User Multiplexer 23 */
141 #define REG_EVSYS_USER24           (*(RwReg  *)0x430000E0UL) /**< \brief (EVSYS) User Multiplexer 24 */
142 #define REG_EVSYS_USER25           (*(RwReg  *)0x430000E4UL) /**< \brief (EVSYS) User Multiplexer 25 */
143 #define REG_EVSYS_USER26           (*(RwReg  *)0x430000E8UL) /**< \brief (EVSYS) User Multiplexer 26 */
144 #define REG_EVSYS_USER27           (*(RwReg  *)0x430000ECUL) /**< \brief (EVSYS) User Multiplexer 27 */
145 #define REG_EVSYS_USER28           (*(RwReg  *)0x430000F0UL) /**< \brief (EVSYS) User Multiplexer 28 */
146 #define REG_EVSYS_USER29           (*(RwReg  *)0x430000F4UL) /**< \brief (EVSYS) User Multiplexer 29 */
147 #define REG_EVSYS_USER30           (*(RwReg  *)0x430000F8UL) /**< \brief (EVSYS) User Multiplexer 30 */
148 #define REG_EVSYS_USER31           (*(RwReg  *)0x430000FCUL) /**< \brief (EVSYS) User Multiplexer 31 */
149 #define REG_EVSYS_USER32           (*(RwReg  *)0x43000100UL) /**< \brief (EVSYS) User Multiplexer 32 */
150 #define REG_EVSYS_USER33           (*(RwReg  *)0x43000104UL) /**< \brief (EVSYS) User Multiplexer 33 */
151 #define REG_EVSYS_USER34           (*(RwReg  *)0x43000108UL) /**< \brief (EVSYS) User Multiplexer 34 */
152 #define REG_EVSYS_USER35           (*(RwReg  *)0x4300010CUL) /**< \brief (EVSYS) User Multiplexer 35 */
153 #define REG_EVSYS_USER36           (*(RwReg  *)0x43000110UL) /**< \brief (EVSYS) User Multiplexer 36 */
154 #define REG_EVSYS_USER37           (*(RwReg  *)0x43000114UL) /**< \brief (EVSYS) User Multiplexer 37 */
155 #define REG_EVSYS_USER38           (*(RwReg  *)0x43000118UL) /**< \brief (EVSYS) User Multiplexer 38 */
156 #define REG_EVSYS_USER39           (*(RwReg  *)0x4300011CUL) /**< \brief (EVSYS) User Multiplexer 39 */
157 #define REG_EVSYS_USER40           (*(RwReg  *)0x43000120UL) /**< \brief (EVSYS) User Multiplexer 40 */
158 #define REG_EVSYS_USER41           (*(RwReg  *)0x43000124UL) /**< \brief (EVSYS) User Multiplexer 41 */
159 #define REG_EVSYS_USER42           (*(RwReg  *)0x43000128UL) /**< \brief (EVSYS) User Multiplexer 42 */
160 #define REG_EVSYS_USER43           (*(RwReg  *)0x4300012CUL) /**< \brief (EVSYS) User Multiplexer 43 */
161 #define REG_EVSYS_USER44           (*(RwReg  *)0x43000130UL) /**< \brief (EVSYS) User Multiplexer 44 */
162 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
163 
164 /* ========== Instance parameters for EVSYS peripheral ========== */
165 #define EVSYS_CHANNELS              12       // Number of Channels
166 #define EVSYS_CHANNELS_BITS         4        // Number of bits to select Channel
167 #define EVSYS_CHANNELS_MSB          11       // Number of Channels - 1
168 #define EVSYS_EXTEVT_NUM            0        // Number of External Event Generators
169 #define EVSYS_GCLK_ID_0             5
170 #define EVSYS_GCLK_ID_1             6
171 #define EVSYS_GCLK_ID_2             7
172 #define EVSYS_GCLK_ID_3             8
173 #define EVSYS_GCLK_ID_4             9
174 #define EVSYS_GCLK_ID_5             10
175 #define EVSYS_GCLK_ID_6             11
176 #define EVSYS_GCLK_ID_7             12
177 #define EVSYS_GCLK_ID_8             13
178 #define EVSYS_GCLK_ID_9             14
179 #define EVSYS_GCLK_ID_10            15
180 #define EVSYS_GCLK_ID_11            16
181 #define EVSYS_GCLK_ID_LSB           5
182 #define EVSYS_GCLK_ID_MSB           16
183 #define EVSYS_GCLK_ID_SIZE          12
184 #define EVSYS_GENERATORS            83       // Total Number of Event Generators
185 #define EVSYS_GENERATORS_BITS       7        // Number of bits to select Event Generator
186 #define EVSYS_USERS                 45       // Total Number of Event Users
187 #define EVSYS_USERS_BITS            6        // Number of bits to select Event User
188 
189 // GENERATORS
190 #define EVSYS_ID_GEN_RTC_CMP_0      1
191 #define EVSYS_ID_GEN_RTC_CMP_1      2
192 #define EVSYS_ID_GEN_RTC_OVF        3
193 #define EVSYS_ID_GEN_RTC_PER_0      4
194 #define EVSYS_ID_GEN_RTC_PER_1      5
195 #define EVSYS_ID_GEN_RTC_PER_2      6
196 #define EVSYS_ID_GEN_RTC_PER_3      7
197 #define EVSYS_ID_GEN_RTC_PER_4      8
198 #define EVSYS_ID_GEN_RTC_PER_5      9
199 #define EVSYS_ID_GEN_RTC_PER_6      10
200 #define EVSYS_ID_GEN_RTC_PER_7      11
201 #define EVSYS_ID_GEN_EIC_EXTINT_0   12
202 #define EVSYS_ID_GEN_EIC_EXTINT_1   13
203 #define EVSYS_ID_GEN_EIC_EXTINT_2   14
204 #define EVSYS_ID_GEN_EIC_EXTINT_3   15
205 #define EVSYS_ID_GEN_EIC_EXTINT_4   16
206 #define EVSYS_ID_GEN_EIC_EXTINT_5   17
207 #define EVSYS_ID_GEN_EIC_EXTINT_6   18
208 #define EVSYS_ID_GEN_EIC_EXTINT_7   19
209 #define EVSYS_ID_GEN_EIC_EXTINT_8   20
210 #define EVSYS_ID_GEN_EIC_EXTINT_9   21
211 #define EVSYS_ID_GEN_EIC_EXTINT_10  22
212 #define EVSYS_ID_GEN_EIC_EXTINT_11  23
213 #define EVSYS_ID_GEN_EIC_EXTINT_12  24
214 #define EVSYS_ID_GEN_EIC_EXTINT_13  25
215 #define EVSYS_ID_GEN_EIC_EXTINT_14  26
216 #define EVSYS_ID_GEN_EIC_EXTINT_15  27
217 #define EVSYS_ID_GEN_DMAC_CH_0      28
218 #define EVSYS_ID_GEN_DMAC_CH_1      29
219 #define EVSYS_ID_GEN_DMAC_CH_2      30
220 #define EVSYS_ID_GEN_DMAC_CH_3      31
221 #define EVSYS_ID_GEN_DMAC_CH_4      32
222 #define EVSYS_ID_GEN_DMAC_CH_5      33
223 #define EVSYS_ID_GEN_DMAC_CH_6      34
224 #define EVSYS_ID_GEN_DMAC_CH_7      35
225 #define EVSYS_ID_GEN_TCC0_OVF       36
226 #define EVSYS_ID_GEN_TCC0_TRG       37
227 #define EVSYS_ID_GEN_TCC0_CNT       38
228 #define EVSYS_ID_GEN_TCC0_MCX_0     39
229 #define EVSYS_ID_GEN_TCC0_MCX_1     40
230 #define EVSYS_ID_GEN_TCC0_MCX_2     41
231 #define EVSYS_ID_GEN_TCC0_MCX_3     42
232 #define EVSYS_ID_GEN_TCC1_OVF       43
233 #define EVSYS_ID_GEN_TCC1_TRG       44
234 #define EVSYS_ID_GEN_TCC1_CNT       45
235 #define EVSYS_ID_GEN_TCC1_MCX_0     46
236 #define EVSYS_ID_GEN_TCC1_MCX_1     47
237 #define EVSYS_ID_GEN_TCC2_OVF       48
238 #define EVSYS_ID_GEN_TCC2_TRG       49
239 #define EVSYS_ID_GEN_TCC2_CNT       50
240 #define EVSYS_ID_GEN_TCC2_MCX_0     51
241 #define EVSYS_ID_GEN_TCC2_MCX_1     52
242 #define EVSYS_ID_GEN_TC0_OVF        53
243 #define EVSYS_ID_GEN_TC0_MCX_0      54
244 #define EVSYS_ID_GEN_TC0_MCX_1      55
245 #define EVSYS_ID_GEN_TC1_OVF        56
246 #define EVSYS_ID_GEN_TC1_MCX_0      57
247 #define EVSYS_ID_GEN_TC1_MCX_1      58
248 #define EVSYS_ID_GEN_TC2_OVF        59
249 #define EVSYS_ID_GEN_TC2_MCX_0      60
250 #define EVSYS_ID_GEN_TC2_MCX_1      61
251 #define EVSYS_ID_GEN_TC3_OVF        62
252 #define EVSYS_ID_GEN_TC3_MCX_0      63
253 #define EVSYS_ID_GEN_TC3_MCX_1      64
254 #define EVSYS_ID_GEN_TC4_OVF        65
255 #define EVSYS_ID_GEN_TC4_MCX_0      66
256 #define EVSYS_ID_GEN_TC4_MCX_1      67
257 #define EVSYS_ID_GEN_ADC_RESRDY     68
258 #define EVSYS_ID_GEN_ADC_WINMON     69
259 #define EVSYS_ID_GEN_AC_COMP_0      70
260 #define EVSYS_ID_GEN_AC_COMP_1      71
261 #define EVSYS_ID_GEN_AC_WIN_0       72
262 #define EVSYS_ID_GEN_DAC_EMPTY_0    73
263 #define EVSYS_ID_GEN_DAC_EMPTY_1    74
264 #define EVSYS_ID_GEN_TRNG_READY     77
265 #define EVSYS_ID_GEN_CCL_LUTOUT_0   78
266 #define EVSYS_ID_GEN_CCL_LUTOUT_1   79
267 #define EVSYS_ID_GEN_CCL_LUTOUT_2   80
268 #define EVSYS_ID_GEN_CCL_LUTOUT_3   81
269 #define EVSYS_ID_GEN_PAC_ACCERR     82
270 
271 // USERS
272 #define EVSYS_ID_USER_PORT_EV_0     0
273 #define EVSYS_ID_USER_PORT_EV_1     1
274 #define EVSYS_ID_USER_PORT_EV_2     2
275 #define EVSYS_ID_USER_PORT_EV_3     3
276 #define EVSYS_ID_USER_DMAC_CH_0     4
277 #define EVSYS_ID_USER_DMAC_CH_1     5
278 #define EVSYS_ID_USER_DMAC_CH_2     6
279 #define EVSYS_ID_USER_DMAC_CH_3     7
280 #define EVSYS_ID_USER_DMAC_CH_4     8
281 #define EVSYS_ID_USER_DMAC_CH_5     9
282 #define EVSYS_ID_USER_DMAC_CH_6     10
283 #define EVSYS_ID_USER_DMAC_CH_7     11
284 #define EVSYS_ID_USER_TCC0_EV_0     12
285 #define EVSYS_ID_USER_TCC0_EV_1     13
286 #define EVSYS_ID_USER_TCC0_MC_0     14
287 #define EVSYS_ID_USER_TCC0_MC_1     15
288 #define EVSYS_ID_USER_TCC0_MC_2     16
289 #define EVSYS_ID_USER_TCC0_MC_3     17
290 #define EVSYS_ID_USER_TCC1_EV_0     18
291 #define EVSYS_ID_USER_TCC1_EV_1     19
292 #define EVSYS_ID_USER_TCC1_MC_0     20
293 #define EVSYS_ID_USER_TCC1_MC_1     21
294 #define EVSYS_ID_USER_TCC2_EV_0     22
295 #define EVSYS_ID_USER_TCC2_EV_1     23
296 #define EVSYS_ID_USER_TCC2_MC_0     24
297 #define EVSYS_ID_USER_TCC2_MC_1     25
298 #define EVSYS_ID_USER_TC0_EVU       26
299 #define EVSYS_ID_USER_TC1_EVU       27
300 #define EVSYS_ID_USER_TC2_EVU       28
301 #define EVSYS_ID_USER_TC3_EVU       29
302 #define EVSYS_ID_USER_TC4_EVU       30
303 #define EVSYS_ID_USER_ADC_START     31
304 #define EVSYS_ID_USER_ADC_SYNC      32
305 #define EVSYS_ID_USER_AC_SOC_0      33
306 #define EVSYS_ID_USER_AC_SOC_1      34
307 #define EVSYS_ID_USER_DAC_START_0   35
308 #define EVSYS_ID_USER_DAC_START_1   36
309 #define EVSYS_ID_USER_CCL_LUTIN_0   38
310 #define EVSYS_ID_USER_CCL_LUTIN_1   39
311 #define EVSYS_ID_USER_CCL_LUTIN_2   40
312 #define EVSYS_ID_USER_CCL_LUTIN_3   41
313 #define EVSYS_ID_USER_MTB_START     43
314 #define EVSYS_ID_USER_MTB_STOP      44
315 
316 #endif /* _SAMR34_EVSYS_INSTANCE_ */
317