EE445M RTOS
Taken at the University of Texas Spring 2015
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
tm4c123fe6pm.h
Go to the documentation of this file.
1
//*****************************************************************************
2
//
3
// tm4c123fe6pm.h - TM4C123FE6PM Register Definitions
4
//
5
// Copyright (c) 2013-2014 Texas Instruments Incorporated. All rights reserved.
6
// Software License Agreement
7
//
8
// Redistribution and use in source and binary forms, with or without
9
// modification, are permitted provided that the following conditions
10
// are met:
11
//
12
// Redistributions of source code must retain the above copyright
13
// notice, this list of conditions and the following disclaimer.
14
//
15
// Redistributions in binary form must reproduce the above copyright
16
// notice, this list of conditions and the following disclaimer in the
17
// documentation and/or other materials provided with the
18
// distribution.
19
//
20
// Neither the name of Texas Instruments Incorporated nor the names of
21
// its contributors may be used to endorse or promote products derived
22
// from this software without specific prior written permission.
23
//
24
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
27
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
28
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
29
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
//
36
// This is part of revision 2.1.0.12573 of the Tiva Firmware Development Package.
37
//
38
//*****************************************************************************
39
40
#ifndef __TM4C123FE6PM_H__
41
#define __TM4C123FE6PM_H__
42
43
//*****************************************************************************
44
//
45
// Interrupt assignments
46
//
47
//*****************************************************************************
48
#define INT_GPIOA 16 // GPIO Port A
49
#define INT_GPIOB 17 // GPIO Port B
50
#define INT_GPIOC 18 // GPIO Port C
51
#define INT_GPIOD 19 // GPIO Port D
52
#define INT_GPIOE 20 // GPIO Port E
53
#define INT_UART0 21 // UART0
54
#define INT_UART1 22 // UART1
55
#define INT_SSI0 23 // SSI0
56
#define INT_I2C0 24 // I2C0
57
#define INT_PWM0_FAULT 25 // PWM0 Fault
58
#define INT_PWM0_0 26 // PWM0 Generator 0
59
#define INT_PWM0_1 27 // PWM0 Generator 1
60
#define INT_PWM0_2 28 // PWM0 Generator 2
61
#define INT_QEI0 29 // QEI0
62
#define INT_ADC0SS0 30 // ADC0 Sequence 0
63
#define INT_ADC0SS1 31 // ADC0 Sequence 1
64
#define INT_ADC0SS2 32 // ADC0 Sequence 2
65
#define INT_ADC0SS3 33 // ADC0 Sequence 3
66
#define INT_WATCHDOG 34 // Watchdog Timers 0 and 1
67
#define INT_TIMER0A 35 // 16/32-Bit Timer 0A
68
#define INT_TIMER0B 36 // 16/32-Bit Timer 0B
69
#define INT_TIMER1A 37 // 16/32-Bit Timer 1A
70
#define INT_TIMER1B 38 // 16/32-Bit Timer 1B
71
#define INT_TIMER2A 39 // 16/32-Bit Timer 2A
72
#define INT_TIMER2B 40 // 16/32-Bit Timer 2B
73
#define INT_COMP0 41 // Analog Comparator 0
74
#define INT_COMP1 42 // Analog Comparator 1
75
#define INT_SYSCTL 44 // System Control
76
#define INT_FLASH 45 // Flash Memory Control and EEPROM
77
// Control
78
#define INT_GPIOF 46 // GPIO Port F
79
#define INT_GPIOG 47 // GPIO Port G
80
#define INT_UART2 49 // UART2
81
#define INT_SSI1 50 // SSI1
82
#define INT_TIMER3A 51 // 16/32-Bit Timer 3A
83
#define INT_TIMER3B 52 // Timer 3B
84
#define INT_I2C1 53 // I2C1
85
#define INT_QEI1 54 // QEI1
86
#define INT_CAN0 55 // CAN0
87
#define INT_CAN1 56 // CAN1
88
#define INT_USB0 60 // USB
89
#define INT_PWM0_3 61 // PWM Generator 3
90
#define INT_UDMA 62 // uDMA Software
91
#define INT_UDMAERR 63 // uDMA Error
92
#define INT_ADC1SS0 64 // ADC1 Sequence 0
93
#define INT_ADC1SS1 65 // ADC1 Sequence 1
94
#define INT_ADC1SS2 66 // ADC1 Sequence 2
95
#define INT_ADC1SS3 67 // ADC1 Sequence 3
96
#define INT_SSI2 73 // SSI2
97
#define INT_SSI3 74 // SSI3
98
#define INT_UART3 75 // UART3
99
#define INT_UART4 76 // UART4
100
#define INT_UART5 77 // UART5
101
#define INT_UART6 78 // UART6
102
#define INT_UART7 79 // UART7
103
#define INT_I2C2 84 // I2C2
104
#define INT_I2C3 85 // I2C3
105
#define INT_TIMER4A 86 // 16/32-Bit Timer 4A
106
#define INT_TIMER4B 87 // 16/32-Bit Timer 4B
107
#define INT_TIMER5A 108 // 16/32-Bit Timer 5A
108
#define INT_TIMER5B 109 // 16/32-Bit Timer 5B
109
#define INT_WTIMER0A 110 // 32/64-Bit Timer 0A
110
#define INT_WTIMER0B 111 // 32/64-Bit Timer 0B
111
#define INT_WTIMER1A 112 // 32/64-Bit Timer 1A
112
#define INT_WTIMER1B 113 // 32/64-Bit Timer 1B
113
#define INT_WTIMER2A 114 // 32/64-Bit Timer 2A
114
#define INT_WTIMER2B 115 // 32/64-Bit Timer 2B
115
#define INT_WTIMER3A 116 // 32/64-Bit Timer 3A
116
#define INT_WTIMER3B 117 // 32/64-Bit Timer 3B
117
#define INT_WTIMER4A 118 // 32/64-Bit Timer 4A
118
#define INT_WTIMER4B 119 // 32/64-Bit Timer 4B
119
#define INT_WTIMER5A 120 // 32/64-Bit Timer 5A
120
#define INT_WTIMER5B 121 // 32/64-Bit Timer 5B
121
#define INT_SYSEXC 122 // System Exception (imprecise)
122
#define INT_I2C4 125 // I2C4
123
#define INT_I2C5 126 // I2C5
124
#define INT_PWM1_0 150 // PWM1 Generator 0
125
#define INT_PWM1_1 151 // PWM1 Generator 1
126
#define INT_PWM1_2 152 // PWM1 Generator 2
127
#define INT_PWM1_3 153 // PWM1 Generator 3
128
#define INT_PWM1_FAULT 154 // PWM1 Fault
129
130
//*****************************************************************************
131
//
132
// Watchdog Timer registers (WATCHDOG0)
133
//
134
//*****************************************************************************
135
#define WATCHDOG0_LOAD_R (*((volatile uint32_t *)0x40000000))
136
#define WATCHDOG0_VALUE_R (*((volatile uint32_t *)0x40000004))
137
#define WATCHDOG0_CTL_R (*((volatile uint32_t *)0x40000008))
138
#define WATCHDOG0_ICR_R (*((volatile uint32_t *)0x4000000C))
139
#define WATCHDOG0_RIS_R (*((volatile uint32_t *)0x40000010))
140
#define WATCHDOG0_MIS_R (*((volatile uint32_t *)0x40000014))
141
#define WATCHDOG0_TEST_R (*((volatile uint32_t *)0x40000418))
142
#define WATCHDOG0_LOCK_R (*((volatile uint32_t *)0x40000C00))
143
144
//*****************************************************************************
145
//
146
// Watchdog Timer registers (WATCHDOG1)
147
//
148
//*****************************************************************************
149
#define WATCHDOG1_LOAD_R (*((volatile uint32_t *)0x40001000))
150
#define WATCHDOG1_VALUE_R (*((volatile uint32_t *)0x40001004))
151
#define WATCHDOG1_CTL_R (*((volatile uint32_t *)0x40001008))
152
#define WATCHDOG1_ICR_R (*((volatile uint32_t *)0x4000100C))
153
#define WATCHDOG1_RIS_R (*((volatile uint32_t *)0x40001010))
154
#define WATCHDOG1_MIS_R (*((volatile uint32_t *)0x40001014))
155
#define WATCHDOG1_TEST_R (*((volatile uint32_t *)0x40001418))
156
#define WATCHDOG1_LOCK_R (*((volatile uint32_t *)0x40001C00))
157
158
//*****************************************************************************
159
//
160
// GPIO registers (PORTA)
161
//
162
//*****************************************************************************
163
#define GPIO_PORTA_DATA_BITS_R ((volatile uint32_t *)0x40004000)
164
#define GPIO_PORTA_DATA_R (*((volatile uint32_t *)0x400043FC))
165
#define GPIO_PORTA_DIR_R (*((volatile uint32_t *)0x40004400))
166
#define GPIO_PORTA_IS_R (*((volatile uint32_t *)0x40004404))
167
#define GPIO_PORTA_IBE_R (*((volatile uint32_t *)0x40004408))
168
#define GPIO_PORTA_IEV_R (*((volatile uint32_t *)0x4000440C))
169
#define GPIO_PORTA_IM_R (*((volatile uint32_t *)0x40004410))
170
#define GPIO_PORTA_RIS_R (*((volatile uint32_t *)0x40004414))
171
#define GPIO_PORTA_MIS_R (*((volatile uint32_t *)0x40004418))
172
#define GPIO_PORTA_ICR_R (*((volatile uint32_t *)0x4000441C))
173
#define GPIO_PORTA_AFSEL_R (*((volatile uint32_t *)0x40004420))
174
#define GPIO_PORTA_DR2R_R (*((volatile uint32_t *)0x40004500))
175
#define GPIO_PORTA_DR4R_R (*((volatile uint32_t *)0x40004504))
176
#define GPIO_PORTA_DR8R_R (*((volatile uint32_t *)0x40004508))
177
#define GPIO_PORTA_ODR_R (*((volatile uint32_t *)0x4000450C))
178
#define GPIO_PORTA_PUR_R (*((volatile uint32_t *)0x40004510))
179
#define GPIO_PORTA_PDR_R (*((volatile uint32_t *)0x40004514))
180
#define GPIO_PORTA_SLR_R (*((volatile uint32_t *)0x40004518))
181
#define GPIO_PORTA_DEN_R (*((volatile uint32_t *)0x4000451C))
182
#define GPIO_PORTA_LOCK_R (*((volatile uint32_t *)0x40004520))
183
#define GPIO_PORTA_CR_R (*((volatile uint32_t *)0x40004524))
184
#define GPIO_PORTA_AMSEL_R (*((volatile uint32_t *)0x40004528))
185
#define GPIO_PORTA_PCTL_R (*((volatile uint32_t *)0x4000452C))
186
#define GPIO_PORTA_ADCCTL_R (*((volatile uint32_t *)0x40004530))
187
#define GPIO_PORTA_DMACTL_R (*((volatile uint32_t *)0x40004534))
188
189
//*****************************************************************************
190
//
191
// GPIO registers (PORTB)
192
//
193
//*****************************************************************************
194
#define GPIO_PORTB_DATA_BITS_R ((volatile uint32_t *)0x40005000)
195
#define GPIO_PORTB_DATA_R (*((volatile uint32_t *)0x400053FC))
196
#define GPIO_PORTB_DIR_R (*((volatile uint32_t *)0x40005400))
197
#define GPIO_PORTB_IS_R (*((volatile uint32_t *)0x40005404))
198
#define GPIO_PORTB_IBE_R (*((volatile uint32_t *)0x40005408))
199
#define GPIO_PORTB_IEV_R (*((volatile uint32_t *)0x4000540C))
200
#define GPIO_PORTB_IM_R (*((volatile uint32_t *)0x40005410))
201
#define GPIO_PORTB_RIS_R (*((volatile uint32_t *)0x40005414))
202
#define GPIO_PORTB_MIS_R (*((volatile uint32_t *)0x40005418))
203
#define GPIO_PORTB_ICR_R (*((volatile uint32_t *)0x4000541C))
204
#define GPIO_PORTB_AFSEL_R (*((volatile uint32_t *)0x40005420))
205
#define GPIO_PORTB_DR2R_R (*((volatile uint32_t *)0x40005500))
206
#define GPIO_PORTB_DR4R_R (*((volatile uint32_t *)0x40005504))
207
#define GPIO_PORTB_DR8R_R (*((volatile uint32_t *)0x40005508))
208
#define GPIO_PORTB_ODR_R (*((volatile uint32_t *)0x4000550C))
209
#define GPIO_PORTB_PUR_R (*((volatile uint32_t *)0x40005510))
210
#define GPIO_PORTB_PDR_R (*((volatile uint32_t *)0x40005514))
211
#define GPIO_PORTB_SLR_R (*((volatile uint32_t *)0x40005518))
212
#define GPIO_PORTB_DEN_R (*((volatile uint32_t *)0x4000551C))
213
#define GPIO_PORTB_LOCK_R (*((volatile uint32_t *)0x40005520))
214
#define GPIO_PORTB_CR_R (*((volatile uint32_t *)0x40005524))
215
#define GPIO_PORTB_AMSEL_R (*((volatile uint32_t *)0x40005528))
216
#define GPIO_PORTB_PCTL_R (*((volatile uint32_t *)0x4000552C))
217
#define GPIO_PORTB_ADCCTL_R (*((volatile uint32_t *)0x40005530))
218
#define GPIO_PORTB_DMACTL_R (*((volatile uint32_t *)0x40005534))
219
220
//*****************************************************************************
221
//
222
// GPIO registers (PORTC)
223
//
224
//*****************************************************************************
225
#define GPIO_PORTC_DATA_BITS_R ((volatile uint32_t *)0x40006000)
226
#define GPIO_PORTC_DATA_R (*((volatile uint32_t *)0x400063FC))
227
#define GPIO_PORTC_DIR_R (*((volatile uint32_t *)0x40006400))
228
#define GPIO_PORTC_IS_R (*((volatile uint32_t *)0x40006404))
229
#define GPIO_PORTC_IBE_R (*((volatile uint32_t *)0x40006408))
230
#define GPIO_PORTC_IEV_R (*((volatile uint32_t *)0x4000640C))
231
#define GPIO_PORTC_IM_R (*((volatile uint32_t *)0x40006410))
232
#define GPIO_PORTC_RIS_R (*((volatile uint32_t *)0x40006414))
233
#define GPIO_PORTC_MIS_R (*((volatile uint32_t *)0x40006418))
234
#define GPIO_PORTC_ICR_R (*((volatile uint32_t *)0x4000641C))
235
#define GPIO_PORTC_AFSEL_R (*((volatile uint32_t *)0x40006420))
236
#define GPIO_PORTC_DR2R_R (*((volatile uint32_t *)0x40006500))
237
#define GPIO_PORTC_DR4R_R (*((volatile uint32_t *)0x40006504))
238
#define GPIO_PORTC_DR8R_R (*((volatile uint32_t *)0x40006508))
239
#define GPIO_PORTC_ODR_R (*((volatile uint32_t *)0x4000650C))
240
#define GPIO_PORTC_PUR_R (*((volatile uint32_t *)0x40006510))
241
#define GPIO_PORTC_PDR_R (*((volatile uint32_t *)0x40006514))
242
#define GPIO_PORTC_SLR_R (*((volatile uint32_t *)0x40006518))
243
#define GPIO_PORTC_DEN_R (*((volatile uint32_t *)0x4000651C))
244
#define GPIO_PORTC_LOCK_R (*((volatile uint32_t *)0x40006520))
245
#define GPIO_PORTC_CR_R (*((volatile uint32_t *)0x40006524))
246
#define GPIO_PORTC_AMSEL_R (*((volatile uint32_t *)0x40006528))
247
#define GPIO_PORTC_PCTL_R (*((volatile uint32_t *)0x4000652C))
248
#define GPIO_PORTC_ADCCTL_R (*((volatile uint32_t *)0x40006530))
249
#define GPIO_PORTC_DMACTL_R (*((volatile uint32_t *)0x40006534))
250
251
//*****************************************************************************
252
//
253
// GPIO registers (PORTD)
254
//
255
//*****************************************************************************
256
#define GPIO_PORTD_DATA_BITS_R ((volatile uint32_t *)0x40007000)
257
#define GPIO_PORTD_DATA_R (*((volatile uint32_t *)0x400073FC))
258
#define GPIO_PORTD_DIR_R (*((volatile uint32_t *)0x40007400))
259
#define GPIO_PORTD_IS_R (*((volatile uint32_t *)0x40007404))
260
#define GPIO_PORTD_IBE_R (*((volatile uint32_t *)0x40007408))
261
#define GPIO_PORTD_IEV_R (*((volatile uint32_t *)0x4000740C))
262
#define GPIO_PORTD_IM_R (*((volatile uint32_t *)0x40007410))
263
#define GPIO_PORTD_RIS_R (*((volatile uint32_t *)0x40007414))
264
#define GPIO_PORTD_MIS_R (*((volatile uint32_t *)0x40007418))
265
#define GPIO_PORTD_ICR_R (*((volatile uint32_t *)0x4000741C))
266
#define GPIO_PORTD_AFSEL_R (*((volatile uint32_t *)0x40007420))
267
#define GPIO_PORTD_DR2R_R (*((volatile uint32_t *)0x40007500))
268
#define GPIO_PORTD_DR4R_R (*((volatile uint32_t *)0x40007504))
269
#define GPIO_PORTD_DR8R_R (*((volatile uint32_t *)0x40007508))
270
#define GPIO_PORTD_ODR_R (*((volatile uint32_t *)0x4000750C))
271
#define GPIO_PORTD_PUR_R (*((volatile uint32_t *)0x40007510))
272
#define GPIO_PORTD_PDR_R (*((volatile uint32_t *)0x40007514))
273
#define GPIO_PORTD_SLR_R (*((volatile uint32_t *)0x40007518))
274
#define GPIO_PORTD_DEN_R (*((volatile uint32_t *)0x4000751C))
275
#define GPIO_PORTD_LOCK_R (*((volatile uint32_t *)0x40007520))
276
#define GPIO_PORTD_CR_R (*((volatile uint32_t *)0x40007524))
277
#define GPIO_PORTD_AMSEL_R (*((volatile uint32_t *)0x40007528))
278
#define GPIO_PORTD_PCTL_R (*((volatile uint32_t *)0x4000752C))
279
#define GPIO_PORTD_ADCCTL_R (*((volatile uint32_t *)0x40007530))
280
#define GPIO_PORTD_DMACTL_R (*((volatile uint32_t *)0x40007534))
281
282
//*****************************************************************************
283
//
284
// SSI registers (SSI0)
285
//
286
//*****************************************************************************
287
#define SSI0_CR0_R (*((volatile uint32_t *)0x40008000))
288
#define SSI0_CR1_R (*((volatile uint32_t *)0x40008004))
289
#define SSI0_DR_R (*((volatile uint32_t *)0x40008008))
290
#define SSI0_SR_R (*((volatile uint32_t *)0x4000800C))
291
#define SSI0_CPSR_R (*((volatile uint32_t *)0x40008010))
292
#define SSI0_IM_R (*((volatile uint32_t *)0x40008014))
293
#define SSI0_RIS_R (*((volatile uint32_t *)0x40008018))
294
#define SSI0_MIS_R (*((volatile uint32_t *)0x4000801C))
295
#define SSI0_ICR_R (*((volatile uint32_t *)0x40008020))
296
#define SSI0_DMACTL_R (*((volatile uint32_t *)0x40008024))
297
#define SSI0_CC_R (*((volatile uint32_t *)0x40008FC8))
298
299
//*****************************************************************************
300
//
301
// SSI registers (SSI1)
302
//
303
//*****************************************************************************
304
#define SSI1_CR0_R (*((volatile uint32_t *)0x40009000))
305
#define SSI1_CR1_R (*((volatile uint32_t *)0x40009004))
306
#define SSI1_DR_R (*((volatile uint32_t *)0x40009008))
307
#define SSI1_SR_R (*((volatile uint32_t *)0x4000900C))
308
#define SSI1_CPSR_R (*((volatile uint32_t *)0x40009010))
309
#define SSI1_IM_R (*((volatile uint32_t *)0x40009014))
310
#define SSI1_RIS_R (*((volatile uint32_t *)0x40009018))
311
#define SSI1_MIS_R (*((volatile uint32_t *)0x4000901C))
312
#define SSI1_ICR_R (*((volatile uint32_t *)0x40009020))
313
#define SSI1_DMACTL_R (*((volatile uint32_t *)0x40009024))
314
#define SSI1_CC_R (*((volatile uint32_t *)0x40009FC8))
315
316
//*****************************************************************************
317
//
318
// SSI registers (SSI2)
319
//
320
//*****************************************************************************
321
#define SSI2_CR0_R (*((volatile uint32_t *)0x4000A000))
322
#define SSI2_CR1_R (*((volatile uint32_t *)0x4000A004))
323
#define SSI2_DR_R (*((volatile uint32_t *)0x4000A008))
324
#define SSI2_SR_R (*((volatile uint32_t *)0x4000A00C))
325
#define SSI2_CPSR_R (*((volatile uint32_t *)0x4000A010))
326
#define SSI2_IM_R (*((volatile uint32_t *)0x4000A014))
327
#define SSI2_RIS_R (*((volatile uint32_t *)0x4000A018))
328
#define SSI2_MIS_R (*((volatile uint32_t *)0x4000A01C))
329
#define SSI2_ICR_R (*((volatile uint32_t *)0x4000A020))
330
#define SSI2_DMACTL_R (*((volatile uint32_t *)0x4000A024))
331
#define SSI2_CC_R (*((volatile uint32_t *)0x4000AFC8))
332
333
//*****************************************************************************
334
//
335
// SSI registers (SSI3)
336
//
337
//*****************************************************************************
338
#define SSI3_CR0_R (*((volatile uint32_t *)0x4000B000))
339
#define SSI3_CR1_R (*((volatile uint32_t *)0x4000B004))
340
#define SSI3_DR_R (*((volatile uint32_t *)0x4000B008))
341
#define SSI3_SR_R (*((volatile uint32_t *)0x4000B00C))
342
#define SSI3_CPSR_R (*((volatile uint32_t *)0x4000B010))
343
#define SSI3_IM_R (*((volatile uint32_t *)0x4000B014))
344
#define SSI3_RIS_R (*((volatile uint32_t *)0x4000B018))
345
#define SSI3_MIS_R (*((volatile uint32_t *)0x4000B01C))
346
#define SSI3_ICR_R (*((volatile uint32_t *)0x4000B020))
347
#define SSI3_DMACTL_R (*((volatile uint32_t *)0x4000B024))
348
#define SSI3_CC_R (*((volatile uint32_t *)0x4000BFC8))
349
350
//*****************************************************************************
351
//
352
// UART registers (UART0)
353
//
354
//*****************************************************************************
355
#define UART0_DR_R (*((volatile uint32_t *)0x4000C000))
356
#define UART0_RSR_R (*((volatile uint32_t *)0x4000C004))
357
#define UART0_ECR_R (*((volatile uint32_t *)0x4000C004))
358
#define UART0_FR_R (*((volatile uint32_t *)0x4000C018))
359
#define UART0_ILPR_R (*((volatile uint32_t *)0x4000C020))
360
#define UART0_IBRD_R (*((volatile uint32_t *)0x4000C024))
361
#define UART0_FBRD_R (*((volatile uint32_t *)0x4000C028))
362
#define UART0_LCRH_R (*((volatile uint32_t *)0x4000C02C))
363
#define UART0_CTL_R (*((volatile uint32_t *)0x4000C030))
364
#define UART0_IFLS_R (*((volatile uint32_t *)0x4000C034))
365
#define UART0_IM_R (*((volatile uint32_t *)0x4000C038))
366
#define UART0_RIS_R (*((volatile uint32_t *)0x4000C03C))
367
#define UART0_MIS_R (*((volatile uint32_t *)0x4000C040))
368
#define UART0_ICR_R (*((volatile uint32_t *)0x4000C044))
369
#define UART0_DMACTL_R (*((volatile uint32_t *)0x4000C048))
370
#define UART0_9BITADDR_R (*((volatile uint32_t *)0x4000C0A4))
371
#define UART0_9BITAMASK_R (*((volatile uint32_t *)0x4000C0A8))
372
#define UART0_PP_R (*((volatile uint32_t *)0x4000CFC0))
373
#define UART0_CC_R (*((volatile uint32_t *)0x4000CFC8))
374
375
//*****************************************************************************
376
//
377
// UART registers (UART1)
378
//
379
//*****************************************************************************
380
#define UART1_DR_R (*((volatile uint32_t *)0x4000D000))
381
#define UART1_RSR_R (*((volatile uint32_t *)0x4000D004))
382
#define UART1_ECR_R (*((volatile uint32_t *)0x4000D004))
383
#define UART1_FR_R (*((volatile uint32_t *)0x4000D018))
384
#define UART1_ILPR_R (*((volatile uint32_t *)0x4000D020))
385
#define UART1_IBRD_R (*((volatile uint32_t *)0x4000D024))
386
#define UART1_FBRD_R (*((volatile uint32_t *)0x4000D028))
387
#define UART1_LCRH_R (*((volatile uint32_t *)0x4000D02C))
388
#define UART1_CTL_R (*((volatile uint32_t *)0x4000D030))
389
#define UART1_IFLS_R (*((volatile uint32_t *)0x4000D034))
390
#define UART1_IM_R (*((volatile uint32_t *)0x4000D038))
391
#define UART1_RIS_R (*((volatile uint32_t *)0x4000D03C))
392
#define UART1_MIS_R (*((volatile uint32_t *)0x4000D040))
393
#define UART1_ICR_R (*((volatile uint32_t *)0x4000D044))
394
#define UART1_DMACTL_R (*((volatile uint32_t *)0x4000D048))
395
#define UART1_9BITADDR_R (*((volatile uint32_t *)0x4000D0A4))
396
#define UART1_9BITAMASK_R (*((volatile uint32_t *)0x4000D0A8))
397
#define UART1_PP_R (*((volatile uint32_t *)0x4000DFC0))
398
#define UART1_CC_R (*((volatile uint32_t *)0x4000DFC8))
399
400
//*****************************************************************************
401
//
402
// UART registers (UART2)
403
//
404
//*****************************************************************************
405
#define UART2_DR_R (*((volatile uint32_t *)0x4000E000))
406
#define UART2_RSR_R (*((volatile uint32_t *)0x4000E004))
407
#define UART2_ECR_R (*((volatile uint32_t *)0x4000E004))
408
#define UART2_FR_R (*((volatile uint32_t *)0x4000E018))
409
#define UART2_ILPR_R (*((volatile uint32_t *)0x4000E020))
410
#define UART2_IBRD_R (*((volatile uint32_t *)0x4000E024))
411
#define UART2_FBRD_R (*((volatile uint32_t *)0x4000E028))
412
#define UART2_LCRH_R (*((volatile uint32_t *)0x4000E02C))
413
#define UART2_CTL_R (*((volatile uint32_t *)0x4000E030))
414
#define UART2_IFLS_R (*((volatile uint32_t *)0x4000E034))
415
#define UART2_IM_R (*((volatile uint32_t *)0x4000E038))
416
#define UART2_RIS_R (*((volatile uint32_t *)0x4000E03C))
417
#define UART2_MIS_R (*((volatile uint32_t *)0x4000E040))
418
#define UART2_ICR_R (*((volatile uint32_t *)0x4000E044))
419
#define UART2_DMACTL_R (*((volatile uint32_t *)0x4000E048))
420
#define UART2_9BITADDR_R (*((volatile uint32_t *)0x4000E0A4))
421
#define UART2_9BITAMASK_R (*((volatile uint32_t *)0x4000E0A8))
422
#define UART2_PP_R (*((volatile uint32_t *)0x4000EFC0))
423
#define UART2_CC_R (*((volatile uint32_t *)0x4000EFC8))
424
425
//*****************************************************************************
426
//
427
// UART registers (UART3)
428
//
429
//*****************************************************************************
430
#define UART3_DR_R (*((volatile uint32_t *)0x4000F000))
431
#define UART3_RSR_R (*((volatile uint32_t *)0x4000F004))
432
#define UART3_ECR_R (*((volatile uint32_t *)0x4000F004))
433
#define UART3_FR_R (*((volatile uint32_t *)0x4000F018))
434
#define UART3_ILPR_R (*((volatile uint32_t *)0x4000F020))
435
#define UART3_IBRD_R (*((volatile uint32_t *)0x4000F024))
436
#define UART3_FBRD_R (*((volatile uint32_t *)0x4000F028))
437
#define UART3_LCRH_R (*((volatile uint32_t *)0x4000F02C))
438
#define UART3_CTL_R (*((volatile uint32_t *)0x4000F030))
439
#define UART3_IFLS_R (*((volatile uint32_t *)0x4000F034))
440
#define UART3_IM_R (*((volatile uint32_t *)0x4000F038))
441
#define UART3_RIS_R (*((volatile uint32_t *)0x4000F03C))
442
#define UART3_MIS_R (*((volatile uint32_t *)0x4000F040))
443
#define UART3_ICR_R (*((volatile uint32_t *)0x4000F044))
444
#define UART3_DMACTL_R (*((volatile uint32_t *)0x4000F048))
445
#define UART3_9BITADDR_R (*((volatile uint32_t *)0x4000F0A4))
446
#define UART3_9BITAMASK_R (*((volatile uint32_t *)0x4000F0A8))
447
#define UART3_PP_R (*((volatile uint32_t *)0x4000FFC0))
448
#define UART3_CC_R (*((volatile uint32_t *)0x4000FFC8))
449
450
//*****************************************************************************
451
//
452
// UART registers (UART4)
453
//
454
//*****************************************************************************
455
#define UART4_DR_R (*((volatile uint32_t *)0x40010000))
456
#define UART4_RSR_R (*((volatile uint32_t *)0x40010004))
457
#define UART4_ECR_R (*((volatile uint32_t *)0x40010004))
458
#define UART4_FR_R (*((volatile uint32_t *)0x40010018))
459
#define UART4_ILPR_R (*((volatile uint32_t *)0x40010020))
460
#define UART4_IBRD_R (*((volatile uint32_t *)0x40010024))
461
#define UART4_FBRD_R (*((volatile uint32_t *)0x40010028))
462
#define UART4_LCRH_R (*((volatile uint32_t *)0x4001002C))
463
#define UART4_CTL_R (*((volatile uint32_t *)0x40010030))
464
#define UART4_IFLS_R (*((volatile uint32_t *)0x40010034))
465
#define UART4_IM_R (*((volatile uint32_t *)0x40010038))
466
#define UART4_RIS_R (*((volatile uint32_t *)0x4001003C))
467
#define UART4_MIS_R (*((volatile uint32_t *)0x40010040))
468
#define UART4_ICR_R (*((volatile uint32_t *)0x40010044))
469
#define UART4_DMACTL_R (*((volatile uint32_t *)0x40010048))
470
#define UART4_9BITADDR_R (*((volatile uint32_t *)0x400100A4))
471
#define UART4_9BITAMASK_R (*((volatile uint32_t *)0x400100A8))
472
#define UART4_PP_R (*((volatile uint32_t *)0x40010FC0))
473
#define UART4_CC_R (*((volatile uint32_t *)0x40010FC8))
474
475
//*****************************************************************************
476
//
477
// UART registers (UART5)
478
//
479
//*****************************************************************************
480
#define UART5_DR_R (*((volatile uint32_t *)0x40011000))
481
#define UART5_RSR_R (*((volatile uint32_t *)0x40011004))
482
#define UART5_ECR_R (*((volatile uint32_t *)0x40011004))
483
#define UART5_FR_R (*((volatile uint32_t *)0x40011018))
484
#define UART5_ILPR_R (*((volatile uint32_t *)0x40011020))
485
#define UART5_IBRD_R (*((volatile uint32_t *)0x40011024))
486
#define UART5_FBRD_R (*((volatile uint32_t *)0x40011028))
487
#define UART5_LCRH_R (*((volatile uint32_t *)0x4001102C))
488
#define UART5_CTL_R (*((volatile uint32_t *)0x40011030))
489
#define UART5_IFLS_R (*((volatile uint32_t *)0x40011034))
490
#define UART5_IM_R (*((volatile uint32_t *)0x40011038))
491
#define UART5_RIS_R (*((volatile uint32_t *)0x4001103C))
492
#define UART5_MIS_R (*((volatile uint32_t *)0x40011040))
493
#define UART5_ICR_R (*((volatile uint32_t *)0x40011044))
494
#define UART5_DMACTL_R (*((volatile uint32_t *)0x40011048))
495
#define UART5_9BITADDR_R (*((volatile uint32_t *)0x400110A4))
496
#define UART5_9BITAMASK_R (*((volatile uint32_t *)0x400110A8))
497
#define UART5_PP_R (*((volatile uint32_t *)0x40011FC0))
498
#define UART5_CC_R (*((volatile uint32_t *)0x40011FC8))
499
500
//*****************************************************************************
501
//
502
// UART registers (UART6)
503
//
504
//*****************************************************************************
505
#define UART6_DR_R (*((volatile uint32_t *)0x40012000))
506
#define UART6_RSR_R (*((volatile uint32_t *)0x40012004))
507
#define UART6_ECR_R (*((volatile uint32_t *)0x40012004))
508
#define UART6_FR_R (*((volatile uint32_t *)0x40012018))
509
#define UART6_ILPR_R (*((volatile uint32_t *)0x40012020))
510
#define UART6_IBRD_R (*((volatile uint32_t *)0x40012024))
511
#define UART6_FBRD_R (*((volatile uint32_t *)0x40012028))
512
#define UART6_LCRH_R (*((volatile uint32_t *)0x4001202C))
513
#define UART6_CTL_R (*((volatile uint32_t *)0x40012030))
514
#define UART6_IFLS_R (*((volatile uint32_t *)0x40012034))
515
#define UART6_IM_R (*((volatile uint32_t *)0x40012038))
516
#define UART6_RIS_R (*((volatile uint32_t *)0x4001203C))
517
#define UART6_MIS_R (*((volatile uint32_t *)0x40012040))
518
#define UART6_ICR_R (*((volatile uint32_t *)0x40012044))
519
#define UART6_DMACTL_R (*((volatile uint32_t *)0x40012048))
520
#define UART6_9BITADDR_R (*((volatile uint32_t *)0x400120A4))
521
#define UART6_9BITAMASK_R (*((volatile uint32_t *)0x400120A8))
522
#define UART6_PP_R (*((volatile uint32_t *)0x40012FC0))
523
#define UART6_CC_R (*((volatile uint32_t *)0x40012FC8))
524
525
//*****************************************************************************
526
//
527
// UART registers (UART7)
528
//
529
//*****************************************************************************
530
#define UART7_DR_R (*((volatile uint32_t *)0x40013000))
531
#define UART7_RSR_R (*((volatile uint32_t *)0x40013004))
532
#define UART7_ECR_R (*((volatile uint32_t *)0x40013004))
533
#define UART7_FR_R (*((volatile uint32_t *)0x40013018))
534
#define UART7_ILPR_R (*((volatile uint32_t *)0x40013020))
535
#define UART7_IBRD_R (*((volatile uint32_t *)0x40013024))
536
#define UART7_FBRD_R (*((volatile uint32_t *)0x40013028))
537
#define UART7_LCRH_R (*((volatile uint32_t *)0x4001302C))
538
#define UART7_CTL_R (*((volatile uint32_t *)0x40013030))
539
#define UART7_IFLS_R (*((volatile uint32_t *)0x40013034))
540
#define UART7_IM_R (*((volatile uint32_t *)0x40013038))
541
#define UART7_RIS_R (*((volatile uint32_t *)0x4001303C))
542
#define UART7_MIS_R (*((volatile uint32_t *)0x40013040))
543
#define UART7_ICR_R (*((volatile uint32_t *)0x40013044))
544
#define UART7_DMACTL_R (*((volatile uint32_t *)0x40013048))
545
#define UART7_9BITADDR_R (*((volatile uint32_t *)0x400130A4))
546
#define UART7_9BITAMASK_R (*((volatile uint32_t *)0x400130A8))
547
#define UART7_PP_R (*((volatile uint32_t *)0x40013FC0))
548
#define UART7_CC_R (*((volatile uint32_t *)0x40013FC8))
549
550
//*****************************************************************************
551
//
552
// I2C registers (I2C0)
553
//
554
//*****************************************************************************
555
#define I2C0_MSA_R (*((volatile uint32_t *)0x40020000))
556
#define I2C0_MCS_R (*((volatile uint32_t *)0x40020004))
557
#define I2C0_MDR_R (*((volatile uint32_t *)0x40020008))
558
#define I2C0_MTPR_R (*((volatile uint32_t *)0x4002000C))
559
#define I2C0_MIMR_R (*((volatile uint32_t *)0x40020010))
560
#define I2C0_MRIS_R (*((volatile uint32_t *)0x40020014))
561
#define I2C0_MMIS_R (*((volatile uint32_t *)0x40020018))
562
#define I2C0_MICR_R (*((volatile uint32_t *)0x4002001C))
563
#define I2C0_MCR_R (*((volatile uint32_t *)0x40020020))
564
#define I2C0_MCLKOCNT_R (*((volatile uint32_t *)0x40020024))
565
#define I2C0_MBMON_R (*((volatile uint32_t *)0x4002002C))
566
#define I2C0_MCR2_R (*((volatile uint32_t *)0x40020038))
567
#define I2C0_SOAR_R (*((volatile uint32_t *)0x40020800))
568
#define I2C0_SCSR_R (*((volatile uint32_t *)0x40020804))
569
#define I2C0_SDR_R (*((volatile uint32_t *)0x40020808))
570
#define I2C0_SIMR_R (*((volatile uint32_t *)0x4002080C))
571
#define I2C0_SRIS_R (*((volatile uint32_t *)0x40020810))
572
#define I2C0_SMIS_R (*((volatile uint32_t *)0x40020814))
573
#define I2C0_SICR_R (*((volatile uint32_t *)0x40020818))
574
#define I2C0_SOAR2_R (*((volatile uint32_t *)0x4002081C))
575
#define I2C0_SACKCTL_R (*((volatile uint32_t *)0x40020820))
576
#define I2C0_PP_R (*((volatile uint32_t *)0x40020FC0))
577
#define I2C0_PC_R (*((volatile uint32_t *)0x40020FC4))
578
579
//*****************************************************************************
580
//
581
// I2C registers (I2C1)
582
//
583
//*****************************************************************************
584
#define I2C1_MSA_R (*((volatile uint32_t *)0x40021000))
585
#define I2C1_MCS_R (*((volatile uint32_t *)0x40021004))
586
#define I2C1_MDR_R (*((volatile uint32_t *)0x40021008))
587
#define I2C1_MTPR_R (*((volatile uint32_t *)0x4002100C))
588
#define I2C1_MIMR_R (*((volatile uint32_t *)0x40021010))
589
#define I2C1_MRIS_R (*((volatile uint32_t *)0x40021014))
590
#define I2C1_MMIS_R (*((volatile uint32_t *)0x40021018))
591
#define I2C1_MICR_R (*((volatile uint32_t *)0x4002101C))
592
#define I2C1_MCR_R (*((volatile uint32_t *)0x40021020))
593
#define I2C1_MCLKOCNT_R (*((volatile uint32_t *)0x40021024))
594
#define I2C1_MBMON_R (*((volatile uint32_t *)0x4002102C))
595
#define I2C1_MCR2_R (*((volatile uint32_t *)0x40021038))
596
#define I2C1_SOAR_R (*((volatile uint32_t *)0x40021800))
597
#define I2C1_SCSR_R (*((volatile uint32_t *)0x40021804))
598
#define I2C1_SDR_R (*((volatile uint32_t *)0x40021808))
599
#define I2C1_SIMR_R (*((volatile uint32_t *)0x4002180C))
600
#define I2C1_SRIS_R (*((volatile uint32_t *)0x40021810))
601
#define I2C1_SMIS_R (*((volatile uint32_t *)0x40021814))
602
#define I2C1_SICR_R (*((volatile uint32_t *)0x40021818))
603
#define I2C1_SOAR2_R (*((volatile uint32_t *)0x4002181C))
604
#define I2C1_SACKCTL_R (*((volatile uint32_t *)0x40021820))
605
#define I2C1_PP_R (*((volatile uint32_t *)0x40021FC0))
606
#define I2C1_PC_R (*((volatile uint32_t *)0x40021FC4))
607
608
//*****************************************************************************
609
//
610
// I2C registers (I2C2)
611
//
612
//*****************************************************************************
613
#define I2C2_MSA_R (*((volatile uint32_t *)0x40022000))
614
#define I2C2_MCS_R (*((volatile uint32_t *)0x40022004))
615
#define I2C2_MDR_R (*((volatile uint32_t *)0x40022008))
616
#define I2C2_MTPR_R (*((volatile uint32_t *)0x4002200C))
617
#define I2C2_MIMR_R (*((volatile uint32_t *)0x40022010))
618
#define I2C2_MRIS_R (*((volatile uint32_t *)0x40022014))
619
#define I2C2_MMIS_R (*((volatile uint32_t *)0x40022018))
620
#define I2C2_MICR_R (*((volatile uint32_t *)0x4002201C))
621
#define I2C2_MCR_R (*((volatile uint32_t *)0x40022020))
622
#define I2C2_MCLKOCNT_R (*((volatile uint32_t *)0x40022024))
623
#define I2C2_MBMON_R (*((volatile uint32_t *)0x4002202C))
624
#define I2C2_MCR2_R (*((volatile uint32_t *)0x40022038))
625
#define I2C2_SOAR_R (*((volatile uint32_t *)0x40022800))
626
#define I2C2_SCSR_R (*((volatile uint32_t *)0x40022804))
627
#define I2C2_SDR_R (*((volatile uint32_t *)0x40022808))
628
#define I2C2_SIMR_R (*((volatile uint32_t *)0x4002280C))
629
#define I2C2_SRIS_R (*((volatile uint32_t *)0x40022810))
630
#define I2C2_SMIS_R (*((volatile uint32_t *)0x40022814))
631
#define I2C2_SICR_R (*((volatile uint32_t *)0x40022818))
632
#define I2C2_SOAR2_R (*((volatile uint32_t *)0x4002281C))
633
#define I2C2_SACKCTL_R (*((volatile uint32_t *)0x40022820))
634
#define I2C2_PP_R (*((volatile uint32_t *)0x40022FC0))
635
#define I2C2_PC_R (*((volatile uint32_t *)0x40022FC4))
636
637
//*****************************************************************************
638
//
639
// I2C registers (I2C3)
640
//
641
//*****************************************************************************
642
#define I2C3_MSA_R (*((volatile uint32_t *)0x40023000))
643
#define I2C3_MCS_R (*((volatile uint32_t *)0x40023004))
644
#define I2C3_MDR_R (*((volatile uint32_t *)0x40023008))
645
#define I2C3_MTPR_R (*((volatile uint32_t *)0x4002300C))
646
#define I2C3_MIMR_R (*((volatile uint32_t *)0x40023010))
647
#define I2C3_MRIS_R (*((volatile uint32_t *)0x40023014))
648
#define I2C3_MMIS_R (*((volatile uint32_t *)0x40023018))
649
#define I2C3_MICR_R (*((volatile uint32_t *)0x4002301C))
650
#define I2C3_MCR_R (*((volatile uint32_t *)0x40023020))
651
#define I2C3_MCLKOCNT_R (*((volatile uint32_t *)0x40023024))
652
#define I2C3_MBMON_R (*((volatile uint32_t *)0x4002302C))
653
#define I2C3_MCR2_R (*((volatile uint32_t *)0x40023038))
654
#define I2C3_SOAR_R (*((volatile uint32_t *)0x40023800))
655
#define I2C3_SCSR_R (*((volatile uint32_t *)0x40023804))
656
#define I2C3_SDR_R (*((volatile uint32_t *)0x40023808))
657
#define I2C3_SIMR_R (*((volatile uint32_t *)0x4002380C))
658
#define I2C3_SRIS_R (*((volatile uint32_t *)0x40023810))
659
#define I2C3_SMIS_R (*((volatile uint32_t *)0x40023814))
660
#define I2C3_SICR_R (*((volatile uint32_t *)0x40023818))
661
#define I2C3_SOAR2_R (*((volatile uint32_t *)0x4002381C))
662
#define I2C3_SACKCTL_R (*((volatile uint32_t *)0x40023820))
663
#define I2C3_PP_R (*((volatile uint32_t *)0x40023FC0))
664
#define I2C3_PC_R (*((volatile uint32_t *)0x40023FC4))
665
666
//*****************************************************************************
667
//
668
// GPIO registers (PORTE)
669
//
670
//*****************************************************************************
671
#define GPIO_PORTE_DATA_BITS_R ((volatile uint32_t *)0x40024000)
672
#define GPIO_PORTE_DATA_R (*((volatile uint32_t *)0x400243FC))
673
#define GPIO_PORTE_DIR_R (*((volatile uint32_t *)0x40024400))
674
#define GPIO_PORTE_IS_R (*((volatile uint32_t *)0x40024404))
675
#define GPIO_PORTE_IBE_R (*((volatile uint32_t *)0x40024408))
676
#define GPIO_PORTE_IEV_R (*((volatile uint32_t *)0x4002440C))
677
#define GPIO_PORTE_IM_R (*((volatile uint32_t *)0x40024410))
678
#define GPIO_PORTE_RIS_R (*((volatile uint32_t *)0x40024414))
679
#define GPIO_PORTE_MIS_R (*((volatile uint32_t *)0x40024418))
680
#define GPIO_PORTE_ICR_R (*((volatile uint32_t *)0x4002441C))
681
#define GPIO_PORTE_AFSEL_R (*((volatile uint32_t *)0x40024420))
682
#define GPIO_PORTE_DR2R_R (*((volatile uint32_t *)0x40024500))
683
#define GPIO_PORTE_DR4R_R (*((volatile uint32_t *)0x40024504))
684
#define GPIO_PORTE_DR8R_R (*((volatile uint32_t *)0x40024508))
685
#define GPIO_PORTE_ODR_R (*((volatile uint32_t *)0x4002450C))
686
#define GPIO_PORTE_PUR_R (*((volatile uint32_t *)0x40024510))
687
#define GPIO_PORTE_PDR_R (*((volatile uint32_t *)0x40024514))
688
#define GPIO_PORTE_SLR_R (*((volatile uint32_t *)0x40024518))
689
#define GPIO_PORTE_DEN_R (*((volatile uint32_t *)0x4002451C))
690
#define GPIO_PORTE_LOCK_R (*((volatile uint32_t *)0x40024520))
691
#define GPIO_PORTE_CR_R (*((volatile uint32_t *)0x40024524))
692
#define GPIO_PORTE_AMSEL_R (*((volatile uint32_t *)0x40024528))
693
#define GPIO_PORTE_PCTL_R (*((volatile uint32_t *)0x4002452C))
694
#define GPIO_PORTE_ADCCTL_R (*((volatile uint32_t *)0x40024530))
695
#define GPIO_PORTE_DMACTL_R (*((volatile uint32_t *)0x40024534))
696
697
//*****************************************************************************
698
//
699
// GPIO registers (PORTF)
700
//
701
//*****************************************************************************
702
#define GPIO_PORTF_DATA_BITS_R ((volatile uint32_t *)0x40025000)
703
#define GPIO_PORTF_DATA_R (*((volatile uint32_t *)0x400253FC))
704
#define GPIO_PORTF_DIR_R (*((volatile uint32_t *)0x40025400))
705
#define GPIO_PORTF_IS_R (*((volatile uint32_t *)0x40025404))
706
#define GPIO_PORTF_IBE_R (*((volatile uint32_t *)0x40025408))
707
#define GPIO_PORTF_IEV_R (*((volatile uint32_t *)0x4002540C))
708
#define GPIO_PORTF_IM_R (*((volatile uint32_t *)0x40025410))
709
#define GPIO_PORTF_RIS_R (*((volatile uint32_t *)0x40025414))
710
#define GPIO_PORTF_MIS_R (*((volatile uint32_t *)0x40025418))
711
#define GPIO_PORTF_ICR_R (*((volatile uint32_t *)0x4002541C))
712
#define GPIO_PORTF_AFSEL_R (*((volatile uint32_t *)0x40025420))
713
#define GPIO_PORTF_DR2R_R (*((volatile uint32_t *)0x40025500))
714
#define GPIO_PORTF_DR4R_R (*((volatile uint32_t *)0x40025504))
715
#define GPIO_PORTF_DR8R_R (*((volatile uint32_t *)0x40025508))
716
#define GPIO_PORTF_ODR_R (*((volatile uint32_t *)0x4002550C))
717
#define GPIO_PORTF_PUR_R (*((volatile uint32_t *)0x40025510))
718
#define GPIO_PORTF_PDR_R (*((volatile uint32_t *)0x40025514))
719
#define GPIO_PORTF_SLR_R (*((volatile uint32_t *)0x40025518))
720
#define GPIO_PORTF_DEN_R (*((volatile uint32_t *)0x4002551C))
721
#define GPIO_PORTF_LOCK_R (*((volatile uint32_t *)0x40025520))
722
#define GPIO_PORTF_CR_R (*((volatile uint32_t *)0x40025524))
723
#define GPIO_PORTF_AMSEL_R (*((volatile uint32_t *)0x40025528))
724
#define GPIO_PORTF_PCTL_R (*((volatile uint32_t *)0x4002552C))
725
#define GPIO_PORTF_ADCCTL_R (*((volatile uint32_t *)0x40025530))
726
#define GPIO_PORTF_DMACTL_R (*((volatile uint32_t *)0x40025534))
727
728
//*****************************************************************************
729
//
730
// GPIO registers (PORTG)
731
//
732
//*****************************************************************************
733
#define GPIO_PORTG_DATA_BITS_R ((volatile uint32_t *)0x40026000)
734
#define GPIO_PORTG_DATA_R (*((volatile uint32_t *)0x400263FC))
735
#define GPIO_PORTG_DIR_R (*((volatile uint32_t *)0x40026400))
736
#define GPIO_PORTG_IS_R (*((volatile uint32_t *)0x40026404))
737
#define GPIO_PORTG_IBE_R (*((volatile uint32_t *)0x40026408))
738
#define GPIO_PORTG_IEV_R (*((volatile uint32_t *)0x4002640C))
739
#define GPIO_PORTG_IM_R (*((volatile uint32_t *)0x40026410))
740
#define GPIO_PORTG_RIS_R (*((volatile uint32_t *)0x40026414))
741
#define GPIO_PORTG_MIS_R (*((volatile uint32_t *)0x40026418))
742
#define GPIO_PORTG_ICR_R (*((volatile uint32_t *)0x4002641C))
743
#define GPIO_PORTG_AFSEL_R (*((volatile uint32_t *)0x40026420))
744
#define GPIO_PORTG_DR2R_R (*((volatile uint32_t *)0x40026500))
745
#define GPIO_PORTG_DR4R_R (*((volatile uint32_t *)0x40026504))
746
#define GPIO_PORTG_DR8R_R (*((volatile uint32_t *)0x40026508))
747
#define GPIO_PORTG_ODR_R (*((volatile uint32_t *)0x4002650C))
748
#define GPIO_PORTG_PUR_R (*((volatile uint32_t *)0x40026510))
749
#define GPIO_PORTG_PDR_R (*((volatile uint32_t *)0x40026514))
750
#define GPIO_PORTG_SLR_R (*((volatile uint32_t *)0x40026518))
751
#define GPIO_PORTG_DEN_R (*((volatile uint32_t *)0x4002651C))
752
#define GPIO_PORTG_LOCK_R (*((volatile uint32_t *)0x40026520))
753
#define GPIO_PORTG_CR_R (*((volatile uint32_t *)0x40026524))
754
#define GPIO_PORTG_AMSEL_R (*((volatile uint32_t *)0x40026528))
755
#define GPIO_PORTG_PCTL_R (*((volatile uint32_t *)0x4002652C))
756
#define GPIO_PORTG_ADCCTL_R (*((volatile uint32_t *)0x40026530))
757
#define GPIO_PORTG_DMACTL_R (*((volatile uint32_t *)0x40026534))
758
759
//*****************************************************************************
760
//
761
// PWM registers (PWM0)
762
//
763
//*****************************************************************************
764
#define PWM0_CTL_R (*((volatile uint32_t *)0x40028000))
765
#define PWM0_SYNC_R (*((volatile uint32_t *)0x40028004))
766
#define PWM0_ENABLE_R (*((volatile uint32_t *)0x40028008))
767
#define PWM0_INVERT_R (*((volatile uint32_t *)0x4002800C))
768
#define PWM0_FAULT_R (*((volatile uint32_t *)0x40028010))
769
#define PWM0_INTEN_R (*((volatile uint32_t *)0x40028014))
770
#define PWM0_RIS_R (*((volatile uint32_t *)0x40028018))
771
#define PWM0_ISC_R (*((volatile uint32_t *)0x4002801C))
772
#define PWM0_STATUS_R (*((volatile uint32_t *)0x40028020))
773
#define PWM0_FAULTVAL_R (*((volatile uint32_t *)0x40028024))
774
#define PWM0_ENUPD_R (*((volatile uint32_t *)0x40028028))
775
#define PWM0_0_CTL_R (*((volatile uint32_t *)0x40028040))
776
#define PWM0_0_INTEN_R (*((volatile uint32_t *)0x40028044))
777
#define PWM0_0_RIS_R (*((volatile uint32_t *)0x40028048))
778
#define PWM0_0_ISC_R (*((volatile uint32_t *)0x4002804C))
779
#define PWM0_0_LOAD_R (*((volatile uint32_t *)0x40028050))
780
#define PWM0_0_COUNT_R (*((volatile uint32_t *)0x40028054))
781
#define PWM0_0_CMPA_R (*((volatile uint32_t *)0x40028058))
782
#define PWM0_0_CMPB_R (*((volatile uint32_t *)0x4002805C))
783
#define PWM0_0_GENA_R (*((volatile uint32_t *)0x40028060))
784
#define PWM0_0_GENB_R (*((volatile uint32_t *)0x40028064))
785
#define PWM0_0_DBCTL_R (*((volatile uint32_t *)0x40028068))
786
#define PWM0_0_DBRISE_R (*((volatile uint32_t *)0x4002806C))
787
#define PWM0_0_DBFALL_R (*((volatile uint32_t *)0x40028070))
788
#define PWM0_0_FLTSRC0_R (*((volatile uint32_t *)0x40028074))
789
#define PWM0_0_FLTSRC1_R (*((volatile uint32_t *)0x40028078))
790
#define PWM0_0_MINFLTPER_R (*((volatile uint32_t *)0x4002807C))
791
#define PWM0_1_CTL_R (*((volatile uint32_t *)0x40028080))
792
#define PWM0_1_INTEN_R (*((volatile uint32_t *)0x40028084))
793
#define PWM0_1_RIS_R (*((volatile uint32_t *)0x40028088))
794
#define PWM0_1_ISC_R (*((volatile uint32_t *)0x4002808C))
795
#define PWM0_1_LOAD_R (*((volatile uint32_t *)0x40028090))
796
#define PWM0_1_COUNT_R (*((volatile uint32_t *)0x40028094))
797
#define PWM0_1_CMPA_R (*((volatile uint32_t *)0x40028098))
798
#define PWM0_1_CMPB_R (*((volatile uint32_t *)0x4002809C))
799
#define PWM0_1_GENA_R (*((volatile uint32_t *)0x400280A0))
800
#define PWM0_1_GENB_R (*((volatile uint32_t *)0x400280A4))
801
#define PWM0_1_DBCTL_R (*((volatile uint32_t *)0x400280A8))
802
#define PWM0_1_DBRISE_R (*((volatile uint32_t *)0x400280AC))
803
#define PWM0_1_DBFALL_R (*((volatile uint32_t *)0x400280B0))
804
#define PWM0_1_FLTSRC0_R (*((volatile uint32_t *)0x400280B4))
805
#define PWM0_1_FLTSRC1_R (*((volatile uint32_t *)0x400280B8))
806
#define PWM0_1_MINFLTPER_R (*((volatile uint32_t *)0x400280BC))
807
#define PWM0_2_CTL_R (*((volatile uint32_t *)0x400280C0))
808
#define PWM0_2_INTEN_R (*((volatile uint32_t *)0x400280C4))
809
#define PWM0_2_RIS_R (*((volatile uint32_t *)0x400280C8))
810
#define PWM0_2_ISC_R (*((volatile uint32_t *)0x400280CC))
811
#define PWM0_2_LOAD_R (*((volatile uint32_t *)0x400280D0))
812
#define PWM0_2_COUNT_R (*((volatile uint32_t *)0x400280D4))
813
#define PWM0_2_CMPA_R (*((volatile uint32_t *)0x400280D8))
814
#define PWM0_2_CMPB_R (*((volatile uint32_t *)0x400280DC))
815
#define PWM0_2_GENA_R (*((volatile uint32_t *)0x400280E0))
816
#define PWM0_2_GENB_R (*((volatile uint32_t *)0x400280E4))
817
#define PWM0_2_DBCTL_R (*((volatile uint32_t *)0x400280E8))
818
#define PWM0_2_DBRISE_R (*((volatile uint32_t *)0x400280EC))
819
#define PWM0_2_DBFALL_R (*((volatile uint32_t *)0x400280F0))
820
#define PWM0_2_FLTSRC0_R (*((volatile uint32_t *)0x400280F4))
821
#define PWM0_2_FLTSRC1_R (*((volatile uint32_t *)0x400280F8))
822
#define PWM0_2_MINFLTPER_R (*((volatile uint32_t *)0x400280FC))
823
#define PWM0_3_CTL_R (*((volatile uint32_t *)0x40028100))
824
#define PWM0_3_INTEN_R (*((volatile uint32_t *)0x40028104))
825
#define PWM0_3_RIS_R (*((volatile uint32_t *)0x40028108))
826
#define PWM0_3_ISC_R (*((volatile uint32_t *)0x4002810C))
827
#define PWM0_3_LOAD_R (*((volatile uint32_t *)0x40028110))
828
#define PWM0_3_COUNT_R (*((volatile uint32_t *)0x40028114))
829
#define PWM0_3_CMPA_R (*((volatile uint32_t *)0x40028118))
830
#define PWM0_3_CMPB_R (*((volatile uint32_t *)0x4002811C))
831
#define PWM0_3_GENA_R (*((volatile uint32_t *)0x40028120))
832
#define PWM0_3_GENB_R (*((volatile uint32_t *)0x40028124))
833
#define PWM0_3_DBCTL_R (*((volatile uint32_t *)0x40028128))
834
#define PWM0_3_DBRISE_R (*((volatile uint32_t *)0x4002812C))
835
#define PWM0_3_DBFALL_R (*((volatile uint32_t *)0x40028130))
836
#define PWM0_3_FLTSRC0_R (*((volatile uint32_t *)0x40028134))
837
#define PWM0_3_FLTSRC1_R (*((volatile uint32_t *)0x40028138))
838
#define PWM0_3_MINFLTPER_R (*((volatile uint32_t *)0x4002813C))
839
#define PWM0_0_FLTSEN_R (*((volatile uint32_t *)0x40028800))
840
#define PWM0_0_FLTSTAT0_R (*((volatile uint32_t *)0x40028804))
841
#define PWM0_0_FLTSTAT1_R (*((volatile uint32_t *)0x40028808))
842
#define PWM0_1_FLTSEN_R (*((volatile uint32_t *)0x40028880))
843
#define PWM0_1_FLTSTAT0_R (*((volatile uint32_t *)0x40028884))
844
#define PWM0_1_FLTSTAT1_R (*((volatile uint32_t *)0x40028888))
845
#define PWM0_2_FLTSEN_R (*((volatile uint32_t *)0x40028900))
846
#define PWM0_2_FLTSTAT0_R (*((volatile uint32_t *)0x40028904))
847
#define PWM0_2_FLTSTAT1_R (*((volatile uint32_t *)0x40028908))
848
#define PWM0_3_FLTSEN_R (*((volatile uint32_t *)0x40028980))
849
#define PWM0_3_FLTSTAT0_R (*((volatile uint32_t *)0x40028984))
850
#define PWM0_3_FLTSTAT1_R (*((volatile uint32_t *)0x40028988))
851
#define PWM0_PP_R (*((volatile uint32_t *)0x40028FC0))
852
853
//*****************************************************************************
854
//
855
// PWM registers (PWM1)
856
//
857
//*****************************************************************************
858
#define PWM1_CTL_R (*((volatile uint32_t *)0x40029000))
859
#define PWM1_SYNC_R (*((volatile uint32_t *)0x40029004))
860
#define PWM1_ENABLE_R (*((volatile uint32_t *)0x40029008))
861
#define PWM1_INVERT_R (*((volatile uint32_t *)0x4002900C))
862
#define PWM1_FAULT_R (*((volatile uint32_t *)0x40029010))
863
#define PWM1_INTEN_R (*((volatile uint32_t *)0x40029014))
864
#define PWM1_RIS_R (*((volatile uint32_t *)0x40029018))
865
#define PWM1_ISC_R (*((volatile uint32_t *)0x4002901C))
866
#define PWM1_STATUS_R (*((volatile uint32_t *)0x40029020))
867
#define PWM1_FAULTVAL_R (*((volatile uint32_t *)0x40029024))
868
#define PWM1_ENUPD_R (*((volatile uint32_t *)0x40029028))
869
#define PWM1_0_CTL_R (*((volatile uint32_t *)0x40029040))
870
#define PWM1_0_INTEN_R (*((volatile uint32_t *)0x40029044))
871
#define PWM1_0_RIS_R (*((volatile uint32_t *)0x40029048))
872
#define PWM1_0_ISC_R (*((volatile uint32_t *)0x4002904C))
873
#define PWM1_0_LOAD_R (*((volatile uint32_t *)0x40029050))
874
#define PWM1_0_COUNT_R (*((volatile uint32_t *)0x40029054))
875
#define PWM1_0_CMPA_R (*((volatile uint32_t *)0x40029058))
876
#define PWM1_0_CMPB_R (*((volatile uint32_t *)0x4002905C))
877
#define PWM1_0_GENA_R (*((volatile uint32_t *)0x40029060))
878
#define PWM1_0_GENB_R (*((volatile uint32_t *)0x40029064))
879
#define PWM1_0_DBCTL_R (*((volatile uint32_t *)0x40029068))
880
#define PWM1_0_DBRISE_R (*((volatile uint32_t *)0x4002906C))
881
#define PWM1_0_DBFALL_R (*((volatile uint32_t *)0x40029070))
882
#define PWM1_0_FLTSRC0_R (*((volatile uint32_t *)0x40029074))
883
#define PWM1_0_FLTSRC1_R (*((volatile uint32_t *)0x40029078))
884
#define PWM1_0_MINFLTPER_R (*((volatile uint32_t *)0x4002907C))
885
#define PWM1_1_CTL_R (*((volatile uint32_t *)0x40029080))
886
#define PWM1_1_INTEN_R (*((volatile uint32_t *)0x40029084))
887
#define PWM1_1_RIS_R (*((volatile uint32_t *)0x40029088))
888
#define PWM1_1_ISC_R (*((volatile uint32_t *)0x4002908C))
889
#define PWM1_1_LOAD_R (*((volatile uint32_t *)0x40029090))
890
#define PWM1_1_COUNT_R (*((volatile uint32_t *)0x40029094))
891
#define PWM1_1_CMPA_R (*((volatile uint32_t *)0x40029098))
892
#define PWM1_1_CMPB_R (*((volatile uint32_t *)0x4002909C))
893
#define PWM1_1_GENA_R (*((volatile uint32_t *)0x400290A0))
894
#define PWM1_1_GENB_R (*((volatile uint32_t *)0x400290A4))
895
#define PWM1_1_DBCTL_R (*((volatile uint32_t *)0x400290A8))
896
#define PWM1_1_DBRISE_R (*((volatile uint32_t *)0x400290AC))
897
#define PWM1_1_DBFALL_R (*((volatile uint32_t *)0x400290B0))
898
#define PWM1_1_FLTSRC0_R (*((volatile uint32_t *)0x400290B4))
899
#define PWM1_1_FLTSRC1_R (*((volatile uint32_t *)0x400290B8))
900
#define PWM1_1_MINFLTPER_R (*((volatile uint32_t *)0x400290BC))
901
#define PWM1_2_CTL_R (*((volatile uint32_t *)0x400290C0))
902
#define PWM1_2_INTEN_R (*((volatile uint32_t *)0x400290C4))
903
#define PWM1_2_RIS_R (*((volatile uint32_t *)0x400290C8))
904
#define PWM1_2_ISC_R (*((volatile uint32_t *)0x400290CC))
905
#define PWM1_2_LOAD_R (*((volatile uint32_t *)0x400290D0))
906
#define PWM1_2_COUNT_R (*((volatile uint32_t *)0x400290D4))
907
#define PWM1_2_CMPA_R (*((volatile uint32_t *)0x400290D8))
908
#define PWM1_2_CMPB_R (*((volatile uint32_t *)0x400290DC))
909
#define PWM1_2_GENA_R (*((volatile uint32_t *)0x400290E0))
910
#define PWM1_2_GENB_R (*((volatile uint32_t *)0x400290E4))
911
#define PWM1_2_DBCTL_R (*((volatile uint32_t *)0x400290E8))
912
#define PWM1_2_DBRISE_R (*((volatile uint32_t *)0x400290EC))
913
#define PWM1_2_DBFALL_R (*((volatile uint32_t *)0x400290F0))
914
#define PWM1_2_FLTSRC0_R (*((volatile uint32_t *)0x400290F4))
915
#define PWM1_2_FLTSRC1_R (*((volatile uint32_t *)0x400290F8))
916
#define PWM1_2_MINFLTPER_R (*((volatile uint32_t *)0x400290FC))
917
#define PWM1_3_CTL_R (*((volatile uint32_t *)0x40029100))
918
#define PWM1_3_INTEN_R (*((volatile uint32_t *)0x40029104))
919
#define PWM1_3_RIS_R (*((volatile uint32_t *)0x40029108))
920
#define PWM1_3_ISC_R (*((volatile uint32_t *)0x4002910C))
921
#define PWM1_3_LOAD_R (*((volatile uint32_t *)0x40029110))
922
#define PWM1_3_COUNT_R (*((volatile uint32_t *)0x40029114))
923
#define PWM1_3_CMPA_R (*((volatile uint32_t *)0x40029118))
924
#define PWM1_3_CMPB_R (*((volatile uint32_t *)0x4002911C))
925
#define PWM1_3_GENA_R (*((volatile uint32_t *)0x40029120))
926
#define PWM1_3_GENB_R (*((volatile uint32_t *)0x40029124))
927
#define PWM1_3_DBCTL_R (*((volatile uint32_t *)0x40029128))
928
#define PWM1_3_DBRISE_R (*((volatile uint32_t *)0x4002912C))
929
#define PWM1_3_DBFALL_R (*((volatile uint32_t *)0x40029130))
930
#define PWM1_3_FLTSRC0_R (*((volatile uint32_t *)0x40029134))
931
#define PWM1_3_FLTSRC1_R (*((volatile uint32_t *)0x40029138))
932
#define PWM1_3_MINFLTPER_R (*((volatile uint32_t *)0x4002913C))
933
#define PWM1_0_FLTSEN_R (*((volatile uint32_t *)0x40029800))
934
#define PWM1_0_FLTSTAT0_R (*((volatile uint32_t *)0x40029804))
935
#define PWM1_0_FLTSTAT1_R (*((volatile uint32_t *)0x40029808))
936
#define PWM1_1_FLTSEN_R (*((volatile uint32_t *)0x40029880))
937
#define PWM1_1_FLTSTAT0_R (*((volatile uint32_t *)0x40029884))
938
#define PWM1_1_FLTSTAT1_R (*((volatile uint32_t *)0x40029888))
939
#define PWM1_2_FLTSEN_R (*((volatile uint32_t *)0x40029900))
940
#define PWM1_2_FLTSTAT0_R (*((volatile uint32_t *)0x40029904))
941
#define PWM1_2_FLTSTAT1_R (*((volatile uint32_t *)0x40029908))
942
#define PWM1_3_FLTSEN_R (*((volatile uint32_t *)0x40029980))
943
#define PWM1_3_FLTSTAT0_R (*((volatile uint32_t *)0x40029984))
944
#define PWM1_3_FLTSTAT1_R (*((volatile uint32_t *)0x40029988))
945
#define PWM1_PP_R (*((volatile uint32_t *)0x40029FC0))
946
947
//*****************************************************************************
948
//
949
// QEI registers (QEI0)
950
//
951
//*****************************************************************************
952
#define QEI0_CTL_R (*((volatile uint32_t *)0x4002C000))
953
#define QEI0_STAT_R (*((volatile uint32_t *)0x4002C004))
954
#define QEI0_POS_R (*((volatile uint32_t *)0x4002C008))
955
#define QEI0_MAXPOS_R (*((volatile uint32_t *)0x4002C00C))
956
#define QEI0_LOAD_R (*((volatile uint32_t *)0x4002C010))
957
#define QEI0_TIME_R (*((volatile uint32_t *)0x4002C014))
958
#define QEI0_COUNT_R (*((volatile uint32_t *)0x4002C018))
959
#define QEI0_SPEED_R (*((volatile uint32_t *)0x4002C01C))
960
#define QEI0_INTEN_R (*((volatile uint32_t *)0x4002C020))
961
#define QEI0_RIS_R (*((volatile uint32_t *)0x4002C024))
962
#define QEI0_ISC_R (*((volatile uint32_t *)0x4002C028))
963
964
//*****************************************************************************
965
//
966
// QEI registers (QEI1)
967
//
968
//*****************************************************************************
969
#define QEI1_CTL_R (*((volatile uint32_t *)0x4002D000))
970
#define QEI1_STAT_R (*((volatile uint32_t *)0x4002D004))
971
#define QEI1_POS_R (*((volatile uint32_t *)0x4002D008))
972
#define QEI1_MAXPOS_R (*((volatile uint32_t *)0x4002D00C))
973
#define QEI1_LOAD_R (*((volatile uint32_t *)0x4002D010))
974
#define QEI1_TIME_R (*((volatile uint32_t *)0x4002D014))
975
#define QEI1_COUNT_R (*((volatile uint32_t *)0x4002D018))
976
#define QEI1_SPEED_R (*((volatile uint32_t *)0x4002D01C))
977
#define QEI1_INTEN_R (*((volatile uint32_t *)0x4002D020))
978
#define QEI1_RIS_R (*((volatile uint32_t *)0x4002D024))
979
#define QEI1_ISC_R (*((volatile uint32_t *)0x4002D028))
980
981
//*****************************************************************************
982
//
983
// Timer registers (TIMER0)
984
//
985
//*****************************************************************************
986
#define TIMER0_CFG_R (*((volatile uint32_t *)0x40030000))
987
#define TIMER0_TAMR_R (*((volatile uint32_t *)0x40030004))
988
#define TIMER0_TBMR_R (*((volatile uint32_t *)0x40030008))
989
#define TIMER0_CTL_R (*((volatile uint32_t *)0x4003000C))
990
#define TIMER0_SYNC_R (*((volatile uint32_t *)0x40030010))
991
#define TIMER0_IMR_R (*((volatile uint32_t *)0x40030018))
992
#define TIMER0_RIS_R (*((volatile uint32_t *)0x4003001C))
993
#define TIMER0_MIS_R (*((volatile uint32_t *)0x40030020))
994
#define TIMER0_ICR_R (*((volatile uint32_t *)0x40030024))
995
#define TIMER0_TAILR_R (*((volatile uint32_t *)0x40030028))
996
#define TIMER0_TBILR_R (*((volatile uint32_t *)0x4003002C))
997
#define TIMER0_TAMATCHR_R (*((volatile uint32_t *)0x40030030))
998
#define TIMER0_TBMATCHR_R (*((volatile uint32_t *)0x40030034))
999
#define TIMER0_TAPR_R (*((volatile uint32_t *)0x40030038))
1000
#define TIMER0_TBPR_R (*((volatile uint32_t *)0x4003003C))
1001
#define TIMER0_TAPMR_R (*((volatile uint32_t *)0x40030040))
1002
#define TIMER0_TBPMR_R (*((volatile uint32_t *)0x40030044))
1003
#define TIMER0_TAR_R (*((volatile uint32_t *)0x40030048))
1004
#define TIMER0_TBR_R (*((volatile uint32_t *)0x4003004C))
1005
#define TIMER0_TAV_R (*((volatile uint32_t *)0x40030050))
1006
#define TIMER0_TBV_R (*((volatile uint32_t *)0x40030054))
1007
#define TIMER0_RTCPD_R (*((volatile uint32_t *)0x40030058))
1008
#define TIMER0_TAPS_R (*((volatile uint32_t *)0x4003005C))
1009
#define TIMER0_TBPS_R (*((volatile uint32_t *)0x40030060))
1010
#define TIMER0_TAPV_R (*((volatile uint32_t *)0x40030064))
1011
#define TIMER0_TBPV_R (*((volatile uint32_t *)0x40030068))
1012
#define TIMER0_PP_R (*((volatile uint32_t *)0x40030FC0))
1013
1014
//*****************************************************************************
1015
//
1016
// Timer registers (TIMER1)
1017
//
1018
//*****************************************************************************
1019
#define TIMER1_CFG_R (*((volatile uint32_t *)0x40031000))
1020
#define TIMER1_TAMR_R (*((volatile uint32_t *)0x40031004))
1021
#define TIMER1_TBMR_R (*((volatile uint32_t *)0x40031008))
1022
#define TIMER1_CTL_R (*((volatile uint32_t *)0x4003100C))
1023
#define TIMER1_SYNC_R (*((volatile uint32_t *)0x40031010))
1024
#define TIMER1_IMR_R (*((volatile uint32_t *)0x40031018))
1025
#define TIMER1_RIS_R (*((volatile uint32_t *)0x4003101C))
1026
#define TIMER1_MIS_R (*((volatile uint32_t *)0x40031020))
1027
#define TIMER1_ICR_R (*((volatile uint32_t *)0x40031024))
1028
#define TIMER1_TAILR_R (*((volatile uint32_t *)0x40031028))
1029
#define TIMER1_TBILR_R (*((volatile uint32_t *)0x4003102C))
1030
#define TIMER1_TAMATCHR_R (*((volatile uint32_t *)0x40031030))
1031
#define TIMER1_TBMATCHR_R (*((volatile uint32_t *)0x40031034))
1032
#define TIMER1_TAPR_R (*((volatile uint32_t *)0x40031038))
1033
#define TIMER1_TBPR_R (*((volatile uint32_t *)0x4003103C))
1034
#define TIMER1_TAPMR_R (*((volatile uint32_t *)0x40031040))
1035
#define TIMER1_TBPMR_R (*((volatile uint32_t *)0x40031044))
1036
#define TIMER1_TAR_R (*((volatile uint32_t *)0x40031048))
1037
#define TIMER1_TBR_R (*((volatile uint32_t *)0x4003104C))
1038
#define TIMER1_TAV_R (*((volatile uint32_t *)0x40031050))
1039
#define TIMER1_TBV_R (*((volatile uint32_t *)0x40031054))
1040
#define TIMER1_RTCPD_R (*((volatile uint32_t *)0x40031058))
1041
#define TIMER1_TAPS_R (*((volatile uint32_t *)0x4003105C))
1042
#define TIMER1_TBPS_R (*((volatile uint32_t *)0x40031060))
1043
#define TIMER1_TAPV_R (*((volatile uint32_t *)0x40031064))
1044
#define TIMER1_TBPV_R (*((volatile uint32_t *)0x40031068))
1045
#define TIMER1_PP_R (*((volatile uint32_t *)0x40031FC0))
1046
1047
//*****************************************************************************
1048
//
1049
// Timer registers (TIMER2)
1050
//
1051
//*****************************************************************************
1052
#define TIMER2_CFG_R (*((volatile uint32_t *)0x40032000))
1053
#define TIMER2_TAMR_R (*((volatile uint32_t *)0x40032004))
1054
#define TIMER2_TBMR_R (*((volatile uint32_t *)0x40032008))
1055
#define TIMER2_CTL_R (*((volatile uint32_t *)0x4003200C))
1056
#define TIMER2_SYNC_R (*((volatile uint32_t *)0x40032010))
1057
#define TIMER2_IMR_R (*((volatile uint32_t *)0x40032018))
1058
#define TIMER2_RIS_R (*((volatile uint32_t *)0x4003201C))
1059
#define TIMER2_MIS_R (*((volatile uint32_t *)0x40032020))
1060
#define TIMER2_ICR_R (*((volatile uint32_t *)0x40032024))
1061
#define TIMER2_TAILR_R (*((volatile uint32_t *)0x40032028))
1062
#define TIMER2_TBILR_R (*((volatile uint32_t *)0x4003202C))
1063
#define TIMER2_TAMATCHR_R (*((volatile uint32_t *)0x40032030))
1064
#define TIMER2_TBMATCHR_R (*((volatile uint32_t *)0x40032034))
1065
#define TIMER2_TAPR_R (*((volatile uint32_t *)0x40032038))
1066
#define TIMER2_TBPR_R (*((volatile uint32_t *)0x4003203C))
1067
#define TIMER2_TAPMR_R (*((volatile uint32_t *)0x40032040))
1068
#define TIMER2_TBPMR_R (*((volatile uint32_t *)0x40032044))
1069
#define TIMER2_TAR_R (*((volatile uint32_t *)0x40032048))
1070
#define TIMER2_TBR_R (*((volatile uint32_t *)0x4003204C))
1071
#define TIMER2_TAV_R (*((volatile uint32_t *)0x40032050))
1072
#define TIMER2_TBV_R (*((volatile uint32_t *)0x40032054))
1073
#define TIMER2_RTCPD_R (*((volatile uint32_t *)0x40032058))
1074
#define TIMER2_TAPS_R (*((volatile uint32_t *)0x4003205C))
1075
#define TIMER2_TBPS_R (*((volatile uint32_t *)0x40032060))
1076
#define TIMER2_TAPV_R (*((volatile uint32_t *)0x40032064))
1077
#define TIMER2_TBPV_R (*((volatile uint32_t *)0x40032068))
1078
#define TIMER2_PP_R (*((volatile uint32_t *)0x40032FC0))
1079
1080
//*****************************************************************************
1081
//
1082
// Timer registers (TIMER3)
1083
//
1084
//*****************************************************************************
1085
#define TIMER3_CFG_R (*((volatile uint32_t *)0x40033000))
1086
#define TIMER3_TAMR_R (*((volatile uint32_t *)0x40033004))
1087
#define TIMER3_TBMR_R (*((volatile uint32_t *)0x40033008))
1088
#define TIMER3_CTL_R (*((volatile uint32_t *)0x4003300C))
1089
#define TIMER3_SYNC_R (*((volatile uint32_t *)0x40033010))
1090
#define TIMER3_IMR_R (*((volatile uint32_t *)0x40033018))
1091
#define TIMER3_RIS_R (*((volatile uint32_t *)0x4003301C))
1092
#define TIMER3_MIS_R (*((volatile uint32_t *)0x40033020))
1093
#define TIMER3_ICR_R (*((volatile uint32_t *)0x40033024))
1094
#define TIMER3_TAILR_R (*((volatile uint32_t *)0x40033028))
1095
#define TIMER3_TBILR_R (*((volatile uint32_t *)0x4003302C))
1096
#define TIMER3_TAMATCHR_R (*((volatile uint32_t *)0x40033030))
1097
#define TIMER3_TBMATCHR_R (*((volatile uint32_t *)0x40033034))
1098
#define TIMER3_TAPR_R (*((volatile uint32_t *)0x40033038))
1099
#define TIMER3_TBPR_R (*((volatile uint32_t *)0x4003303C))
1100
#define TIMER3_TAPMR_R (*((volatile uint32_t *)0x40033040))
1101
#define TIMER3_TBPMR_R (*((volatile uint32_t *)0x40033044))
1102
#define TIMER3_TAR_R (*((volatile uint32_t *)0x40033048))
1103
#define TIMER3_TBR_R (*((volatile uint32_t *)0x4003304C))
1104
#define TIMER3_TAV_R (*((volatile uint32_t *)0x40033050))
1105
#define TIMER3_TBV_R (*((volatile uint32_t *)0x40033054))
1106
#define TIMER3_RTCPD_R (*((volatile uint32_t *)0x40033058))
1107
#define TIMER3_TAPS_R (*((volatile uint32_t *)0x4003305C))
1108
#define TIMER3_TBPS_R (*((volatile uint32_t *)0x40033060))
1109
#define TIMER3_TAPV_R (*((volatile uint32_t *)0x40033064))
1110
#define TIMER3_TBPV_R (*((volatile uint32_t *)0x40033068))
1111
#define TIMER3_PP_R (*((volatile uint32_t *)0x40033FC0))
1112
1113
//*****************************************************************************
1114
//
1115
// Timer registers (TIMER4)
1116
//
1117
//*****************************************************************************
1118
#define TIMER4_CFG_R (*((volatile uint32_t *)0x40034000))
1119
#define TIMER4_TAMR_R (*((volatile uint32_t *)0x40034004))
1120
#define TIMER4_TBMR_R (*((volatile uint32_t *)0x40034008))
1121
#define TIMER4_CTL_R (*((volatile uint32_t *)0x4003400C))
1122
#define TIMER4_SYNC_R (*((volatile uint32_t *)0x40034010))
1123
#define TIMER4_IMR_R (*((volatile uint32_t *)0x40034018))
1124
#define TIMER4_RIS_R (*((volatile uint32_t *)0x4003401C))
1125
#define TIMER4_MIS_R (*((volatile uint32_t *)0x40034020))
1126
#define TIMER4_ICR_R (*((volatile uint32_t *)0x40034024))
1127
#define TIMER4_TAILR_R (*((volatile uint32_t *)0x40034028))
1128
#define TIMER4_TBILR_R (*((volatile uint32_t *)0x4003402C))
1129
#define TIMER4_TAMATCHR_R (*((volatile uint32_t *)0x40034030))
1130
#define TIMER4_TBMATCHR_R (*((volatile uint32_t *)0x40034034))
1131
#define TIMER4_TAPR_R (*((volatile uint32_t *)0x40034038))
1132
#define TIMER4_TBPR_R (*((volatile uint32_t *)0x4003403C))
1133
#define TIMER4_TAPMR_R (*((volatile uint32_t *)0x40034040))
1134
#define TIMER4_TBPMR_R (*((volatile uint32_t *)0x40034044))
1135
#define TIMER4_TAR_R (*((volatile uint32_t *)0x40034048))
1136
#define TIMER4_TBR_R (*((volatile uint32_t *)0x4003404C))
1137
#define TIMER4_TAV_R (*((volatile uint32_t *)0x40034050))
1138
#define TIMER4_TBV_R (*((volatile uint32_t *)0x40034054))
1139
#define TIMER4_RTCPD_R (*((volatile uint32_t *)0x40034058))
1140
#define TIMER4_TAPS_R (*((volatile uint32_t *)0x4003405C))
1141
#define TIMER4_TBPS_R (*((volatile uint32_t *)0x40034060))
1142
#define TIMER4_TAPV_R (*((volatile uint32_t *)0x40034064))
1143
#define TIMER4_TBPV_R (*((volatile uint32_t *)0x40034068))
1144
#define TIMER4_PP_R (*((volatile uint32_t *)0x40034FC0))
1145
1146
//*****************************************************************************
1147
//
1148
// Timer registers (TIMER5)
1149
//
1150
//*****************************************************************************
1151
#define TIMER5_CFG_R (*((volatile uint32_t *)0x40035000))
1152
#define TIMER5_TAMR_R (*((volatile uint32_t *)0x40035004))
1153
#define TIMER5_TBMR_R (*((volatile uint32_t *)0x40035008))
1154
#define TIMER5_CTL_R (*((volatile uint32_t *)0x4003500C))
1155
#define TIMER5_SYNC_R (*((volatile uint32_t *)0x40035010))
1156
#define TIMER5_IMR_R (*((volatile uint32_t *)0x40035018))
1157
#define TIMER5_RIS_R (*((volatile uint32_t *)0x4003501C))
1158
#define TIMER5_MIS_R (*((volatile uint32_t *)0x40035020))
1159
#define TIMER5_ICR_R (*((volatile uint32_t *)0x40035024))
1160
#define TIMER5_TAILR_R (*((volatile uint32_t *)0x40035028))
1161
#define TIMER5_TBILR_R (*((volatile uint32_t *)0x4003502C))
1162
#define TIMER5_TAMATCHR_R (*((volatile uint32_t *)0x40035030))
1163
#define TIMER5_TBMATCHR_R (*((volatile uint32_t *)0x40035034))
1164
#define TIMER5_TAPR_R (*((volatile uint32_t *)0x40035038))
1165
#define TIMER5_TBPR_R (*((volatile uint32_t *)0x4003503C))
1166
#define TIMER5_TAPMR_R (*((volatile uint32_t *)0x40035040))
1167
#define TIMER5_TBPMR_R (*((volatile uint32_t *)0x40035044))
1168
#define TIMER5_TAR_R (*((volatile uint32_t *)0x40035048))
1169
#define TIMER5_TBR_R (*((volatile uint32_t *)0x4003504C))
1170
#define TIMER5_TAV_R (*((volatile uint32_t *)0x40035050))
1171
#define TIMER5_TBV_R (*((volatile uint32_t *)0x40035054))
1172
#define TIMER5_RTCPD_R (*((volatile uint32_t *)0x40035058))
1173
#define TIMER5_TAPS_R (*((volatile uint32_t *)0x4003505C))
1174
#define TIMER5_TBPS_R (*((volatile uint32_t *)0x40035060))
1175
#define TIMER5_TAPV_R (*((volatile uint32_t *)0x40035064))
1176
#define TIMER5_TBPV_R (*((volatile uint32_t *)0x40035068))
1177
#define TIMER5_PP_R (*((volatile uint32_t *)0x40035FC0))
1178
1179
//*****************************************************************************
1180
//
1181
// Timer registers (WTIMER0)
1182
//
1183
//*****************************************************************************
1184
#define WTIMER0_CFG_R (*((volatile uint32_t *)0x40036000))
1185
#define WTIMER0_TAMR_R (*((volatile uint32_t *)0x40036004))
1186
#define WTIMER0_TBMR_R (*((volatile uint32_t *)0x40036008))
1187
#define WTIMER0_CTL_R (*((volatile uint32_t *)0x4003600C))
1188
#define WTIMER0_SYNC_R (*((volatile uint32_t *)0x40036010))
1189
#define WTIMER0_IMR_R (*((volatile uint32_t *)0x40036018))
1190
#define WTIMER0_RIS_R (*((volatile uint32_t *)0x4003601C))
1191
#define WTIMER0_MIS_R (*((volatile uint32_t *)0x40036020))
1192
#define WTIMER0_ICR_R (*((volatile uint32_t *)0x40036024))
1193
#define WTIMER0_TAILR_R (*((volatile uint32_t *)0x40036028))
1194
#define WTIMER0_TBILR_R (*((volatile uint32_t *)0x4003602C))
1195
#define WTIMER0_TAMATCHR_R (*((volatile uint32_t *)0x40036030))
1196
#define WTIMER0_TBMATCHR_R (*((volatile uint32_t *)0x40036034))
1197
#define WTIMER0_TAPR_R (*((volatile uint32_t *)0x40036038))
1198
#define WTIMER0_TBPR_R (*((volatile uint32_t *)0x4003603C))
1199
#define WTIMER0_TAPMR_R (*((volatile uint32_t *)0x40036040))
1200
#define WTIMER0_TBPMR_R (*((volatile uint32_t *)0x40036044))
1201
#define WTIMER0_TAR_R (*((volatile uint32_t *)0x40036048))
1202
#define WTIMER0_TBR_R (*((volatile uint32_t *)0x4003604C))
1203
#define WTIMER0_TAV_R (*((volatile uint32_t *)0x40036050))
1204
#define WTIMER0_TBV_R (*((volatile uint32_t *)0x40036054))
1205
#define WTIMER0_RTCPD_R (*((volatile uint32_t *)0x40036058))
1206
#define WTIMER0_TAPS_R (*((volatile uint32_t *)0x4003605C))
1207
#define WTIMER0_TBPS_R (*((volatile uint32_t *)0x40036060))
1208
#define WTIMER0_TAPV_R (*((volatile uint32_t *)0x40036064))
1209
#define WTIMER0_TBPV_R (*((volatile uint32_t *)0x40036068))
1210
#define WTIMER0_PP_R (*((volatile uint32_t *)0x40036FC0))
1211
1212
//*****************************************************************************
1213
//
1214
// Timer registers (WTIMER1)
1215
//
1216
//*****************************************************************************
1217
#define WTIMER1_CFG_R (*((volatile uint32_t *)0x40037000))
1218
#define WTIMER1_TAMR_R (*((volatile uint32_t *)0x40037004))
1219
#define WTIMER1_TBMR_R (*((volatile uint32_t *)0x40037008))
1220
#define WTIMER1_CTL_R (*((volatile uint32_t *)0x4003700C))
1221
#define WTIMER1_SYNC_R (*((volatile uint32_t *)0x40037010))
1222
#define WTIMER1_IMR_R (*((volatile uint32_t *)0x40037018))
1223
#define WTIMER1_RIS_R (*((volatile uint32_t *)0x4003701C))
1224
#define WTIMER1_MIS_R (*((volatile uint32_t *)0x40037020))
1225
#define WTIMER1_ICR_R (*((volatile uint32_t *)0x40037024))
1226
#define WTIMER1_TAILR_R (*((volatile uint32_t *)0x40037028))
1227
#define WTIMER1_TBILR_R (*((volatile uint32_t *)0x4003702C))
1228
#define WTIMER1_TAMATCHR_R (*((volatile uint32_t *)0x40037030))
1229
#define WTIMER1_TBMATCHR_R (*((volatile uint32_t *)0x40037034))
1230
#define WTIMER1_TAPR_R (*((volatile uint32_t *)0x40037038))
1231
#define WTIMER1_TBPR_R (*((volatile uint32_t *)0x4003703C))
1232
#define WTIMER1_TAPMR_R (*((volatile uint32_t *)0x40037040))
1233
#define WTIMER1_TBPMR_R (*((volatile uint32_t *)0x40037044))
1234
#define WTIMER1_TAR_R (*((volatile uint32_t *)0x40037048))
1235
#define WTIMER1_TBR_R (*((volatile uint32_t *)0x4003704C))
1236
#define WTIMER1_TAV_R (*((volatile uint32_t *)0x40037050))
1237
#define WTIMER1_TBV_R (*((volatile uint32_t *)0x40037054))
1238
#define WTIMER1_RTCPD_R (*((volatile uint32_t *)0x40037058))
1239
#define WTIMER1_TAPS_R (*((volatile uint32_t *)0x4003705C))
1240
#define WTIMER1_TBPS_R (*((volatile uint32_t *)0x40037060))
1241
#define WTIMER1_TAPV_R (*((volatile uint32_t *)0x40037064))
1242
#define WTIMER1_TBPV_R (*((volatile uint32_t *)0x40037068))
1243
#define WTIMER1_PP_R (*((volatile uint32_t *)0x40037FC0))
1244
1245
//*****************************************************************************
1246
//
1247
// ADC registers (ADC0)
1248
//
1249
//*****************************************************************************
1250
#define ADC0_ACTSS_R (*((volatile uint32_t *)0x40038000))
1251
#define ADC0_RIS_R (*((volatile uint32_t *)0x40038004))
1252
#define ADC0_IM_R (*((volatile uint32_t *)0x40038008))
1253
#define ADC0_ISC_R (*((volatile uint32_t *)0x4003800C))
1254
#define ADC0_OSTAT_R (*((volatile uint32_t *)0x40038010))
1255
#define ADC0_EMUX_R (*((volatile uint32_t *)0x40038014))
1256
#define ADC0_USTAT_R (*((volatile uint32_t *)0x40038018))
1257
#define ADC0_TSSEL_R (*((volatile uint32_t *)0x4003801C))
1258
#define ADC0_SSPRI_R (*((volatile uint32_t *)0x40038020))
1259
#define ADC0_SPC_R (*((volatile uint32_t *)0x40038024))
1260
#define ADC0_PSSI_R (*((volatile uint32_t *)0x40038028))
1261
#define ADC0_SAC_R (*((volatile uint32_t *)0x40038030))
1262
#define ADC0_DCISC_R (*((volatile uint32_t *)0x40038034))
1263
#define ADC0_CTL_R (*((volatile uint32_t *)0x40038038))
1264
#define ADC0_SSMUX0_R (*((volatile uint32_t *)0x40038040))
1265
#define ADC0_SSCTL0_R (*((volatile uint32_t *)0x40038044))
1266
#define ADC0_SSFIFO0_R (*((volatile uint32_t *)0x40038048))
1267
#define ADC0_SSFSTAT0_R (*((volatile uint32_t *)0x4003804C))
1268
#define ADC0_SSOP0_R (*((volatile uint32_t *)0x40038050))
1269
#define ADC0_SSDC0_R (*((volatile uint32_t *)0x40038054))
1270
#define ADC0_SSMUX1_R (*((volatile uint32_t *)0x40038060))
1271
#define ADC0_SSCTL1_R (*((volatile uint32_t *)0x40038064))
1272
#define ADC0_SSFIFO1_R (*((volatile uint32_t *)0x40038068))
1273
#define ADC0_SSFSTAT1_R (*((volatile uint32_t *)0x4003806C))
1274
#define ADC0_SSOP1_R (*((volatile uint32_t *)0x40038070))
1275
#define ADC0_SSDC1_R (*((volatile uint32_t *)0x40038074))
1276
#define ADC0_SSMUX2_R (*((volatile uint32_t *)0x40038080))
1277
#define ADC0_SSCTL2_R (*((volatile uint32_t *)0x40038084))
1278
#define ADC0_SSFIFO2_R (*((volatile uint32_t *)0x40038088))
1279
#define ADC0_SSFSTAT2_R (*((volatile uint32_t *)0x4003808C))
1280
#define ADC0_SSOP2_R (*((volatile uint32_t *)0x40038090))
1281
#define ADC0_SSDC2_R (*((volatile uint32_t *)0x40038094))
1282
#define ADC0_SSMUX3_R (*((volatile uint32_t *)0x400380A0))
1283
#define ADC0_SSCTL3_R (*((volatile uint32_t *)0x400380A4))
1284
#define ADC0_SSFIFO3_R (*((volatile uint32_t *)0x400380A8))
1285
#define ADC0_SSFSTAT3_R (*((volatile uint32_t *)0x400380AC))
1286
#define ADC0_SSOP3_R (*((volatile uint32_t *)0x400380B0))
1287
#define ADC0_SSDC3_R (*((volatile uint32_t *)0x400380B4))
1288
#define ADC0_DCRIC_R (*((volatile uint32_t *)0x40038D00))
1289
#define ADC0_DCCTL0_R (*((volatile uint32_t *)0x40038E00))
1290
#define ADC0_DCCTL1_R (*((volatile uint32_t *)0x40038E04))
1291
#define ADC0_DCCTL2_R (*((volatile uint32_t *)0x40038E08))
1292
#define ADC0_DCCTL3_R (*((volatile uint32_t *)0x40038E0C))
1293
#define ADC0_DCCTL4_R (*((volatile uint32_t *)0x40038E10))
1294
#define ADC0_DCCTL5_R (*((volatile uint32_t *)0x40038E14))
1295
#define ADC0_DCCTL6_R (*((volatile uint32_t *)0x40038E18))
1296
#define ADC0_DCCTL7_R (*((volatile uint32_t *)0x40038E1C))
1297
#define ADC0_DCCMP0_R (*((volatile uint32_t *)0x40038E40))
1298
#define ADC0_DCCMP1_R (*((volatile uint32_t *)0x40038E44))
1299
#define ADC0_DCCMP2_R (*((volatile uint32_t *)0x40038E48))
1300
#define ADC0_DCCMP3_R (*((volatile uint32_t *)0x40038E4C))
1301
#define ADC0_DCCMP4_R (*((volatile uint32_t *)0x40038E50))
1302
#define ADC0_DCCMP5_R (*((volatile uint32_t *)0x40038E54))
1303
#define ADC0_DCCMP6_R (*((volatile uint32_t *)0x40038E58))
1304
#define ADC0_DCCMP7_R (*((volatile uint32_t *)0x40038E5C))
1305
#define ADC0_PP_R (*((volatile uint32_t *)0x40038FC0))
1306
#define ADC0_PC_R (*((volatile uint32_t *)0x40038FC4))
1307
#define ADC0_CC_R (*((volatile uint32_t *)0x40038FC8))
1308
1309
//*****************************************************************************
1310
//
1311
// ADC registers (ADC1)
1312
//
1313
//*****************************************************************************
1314
#define ADC1_ACTSS_R (*((volatile uint32_t *)0x40039000))
1315
#define ADC1_RIS_R (*((volatile uint32_t *)0x40039004))
1316
#define ADC1_IM_R (*((volatile uint32_t *)0x40039008))
1317
#define ADC1_ISC_R (*((volatile uint32_t *)0x4003900C))
1318
#define ADC1_OSTAT_R (*((volatile uint32_t *)0x40039010))
1319
#define ADC1_EMUX_R (*((volatile uint32_t *)0x40039014))
1320
#define ADC1_USTAT_R (*((volatile uint32_t *)0x40039018))
1321
#define ADC1_TSSEL_R (*((volatile uint32_t *)0x4003901C))
1322
#define ADC1_SSPRI_R (*((volatile uint32_t *)0x40039020))
1323
#define ADC1_SPC_R (*((volatile uint32_t *)0x40039024))
1324
#define ADC1_PSSI_R (*((volatile uint32_t *)0x40039028))
1325
#define ADC1_SAC_R (*((volatile uint32_t *)0x40039030))
1326
#define ADC1_DCISC_R (*((volatile uint32_t *)0x40039034))
1327
#define ADC1_CTL_R (*((volatile uint32_t *)0x40039038))
1328
#define ADC1_SSMUX0_R (*((volatile uint32_t *)0x40039040))
1329
#define ADC1_SSCTL0_R (*((volatile uint32_t *)0x40039044))
1330
#define ADC1_SSFIFO0_R (*((volatile uint32_t *)0x40039048))
1331
#define ADC1_SSFSTAT0_R (*((volatile uint32_t *)0x4003904C))
1332
#define ADC1_SSOP0_R (*((volatile uint32_t *)0x40039050))
1333
#define ADC1_SSDC0_R (*((volatile uint32_t *)0x40039054))
1334
#define ADC1_SSMUX1_R (*((volatile uint32_t *)0x40039060))
1335
#define ADC1_SSCTL1_R (*((volatile uint32_t *)0x40039064))
1336
#define ADC1_SSFIFO1_R (*((volatile uint32_t *)0x40039068))
1337
#define ADC1_SSFSTAT1_R (*((volatile uint32_t *)0x4003906C))
1338
#define ADC1_SSOP1_R (*((volatile uint32_t *)0x40039070))
1339
#define ADC1_SSDC1_R (*((volatile uint32_t *)0x40039074))
1340
#define ADC1_SSMUX2_R (*((volatile uint32_t *)0x40039080))
1341
#define ADC1_SSCTL2_R (*((volatile uint32_t *)0x40039084))
1342
#define ADC1_SSFIFO2_R (*((volatile uint32_t *)0x40039088))
1343
#define ADC1_SSFSTAT2_R (*((volatile uint32_t *)0x4003908C))
1344
#define ADC1_SSOP2_R (*((volatile uint32_t *)0x40039090))
1345
#define ADC1_SSDC2_R (*((volatile uint32_t *)0x40039094))
1346
#define ADC1_SSMUX3_R (*((volatile uint32_t *)0x400390A0))
1347
#define ADC1_SSCTL3_R (*((volatile uint32_t *)0x400390A4))
1348
#define ADC1_SSFIFO3_R (*((volatile uint32_t *)0x400390A8))
1349
#define ADC1_SSFSTAT3_R (*((volatile uint32_t *)0x400390AC))
1350
#define ADC1_SSOP3_R (*((volatile uint32_t *)0x400390B0))
1351
#define ADC1_SSDC3_R (*((volatile uint32_t *)0x400390B4))
1352
#define ADC1_DCRIC_R (*((volatile uint32_t *)0x40039D00))
1353
#define ADC1_DCCTL0_R (*((volatile uint32_t *)0x40039E00))
1354
#define ADC1_DCCTL1_R (*((volatile uint32_t *)0x40039E04))
1355
#define ADC1_DCCTL2_R (*((volatile uint32_t *)0x40039E08))
1356
#define ADC1_DCCTL3_R (*((volatile uint32_t *)0x40039E0C))
1357
#define ADC1_DCCTL4_R (*((volatile uint32_t *)0x40039E10))
1358
#define ADC1_DCCTL5_R (*((volatile uint32_t *)0x40039E14))
1359
#define ADC1_DCCTL6_R (*((volatile uint32_t *)0x40039E18))
1360
#define ADC1_DCCTL7_R (*((volatile uint32_t *)0x40039E1C))
1361
#define ADC1_DCCMP0_R (*((volatile uint32_t *)0x40039E40))
1362
#define ADC1_DCCMP1_R (*((volatile uint32_t *)0x40039E44))
1363
#define ADC1_DCCMP2_R (*((volatile uint32_t *)0x40039E48))
1364
#define ADC1_DCCMP3_R (*((volatile uint32_t *)0x40039E4C))
1365
#define ADC1_DCCMP4_R (*((volatile uint32_t *)0x40039E50))
1366
#define ADC1_DCCMP5_R (*((volatile uint32_t *)0x40039E54))
1367
#define ADC1_DCCMP6_R (*((volatile uint32_t *)0x40039E58))
1368
#define ADC1_DCCMP7_R (*((volatile uint32_t *)0x40039E5C))
1369
#define ADC1_PP_R (*((volatile uint32_t *)0x40039FC0))
1370
#define ADC1_PC_R (*((volatile uint32_t *)0x40039FC4))
1371
#define ADC1_CC_R (*((volatile uint32_t *)0x40039FC8))
1372
1373
//*****************************************************************************
1374
//
1375
// Comparator registers (COMP)
1376
//
1377
//*****************************************************************************
1378
#define COMP_ACMIS_R (*((volatile uint32_t *)0x4003C000))
1379
#define COMP_ACRIS_R (*((volatile uint32_t *)0x4003C004))
1380
#define COMP_ACINTEN_R (*((volatile uint32_t *)0x4003C008))
1381
#define COMP_ACREFCTL_R (*((volatile uint32_t *)0x4003C010))
1382
#define COMP_ACSTAT0_R (*((volatile uint32_t *)0x4003C020))
1383
#define COMP_ACCTL0_R (*((volatile uint32_t *)0x4003C024))
1384
#define COMP_ACSTAT1_R (*((volatile uint32_t *)0x4003C040))
1385
#define COMP_ACCTL1_R (*((volatile uint32_t *)0x4003C044))
1386
#define COMP_PP_R (*((volatile uint32_t *)0x4003CFC0))
1387
1388
//*****************************************************************************
1389
//
1390
// CAN registers (CAN0)
1391
//
1392
//*****************************************************************************
1393
#define CAN0_CTL_R (*((volatile uint32_t *)0x40040000))
1394
#define CAN0_STS_R (*((volatile uint32_t *)0x40040004))
1395
#define CAN0_ERR_R (*((volatile uint32_t *)0x40040008))
1396
#define CAN0_BIT_R (*((volatile uint32_t *)0x4004000C))
1397
#define CAN0_INT_R (*((volatile uint32_t *)0x40040010))
1398
#define CAN0_TST_R (*((volatile uint32_t *)0x40040014))
1399
#define CAN0_BRPE_R (*((volatile uint32_t *)0x40040018))
1400
#define CAN0_IF1CRQ_R (*((volatile uint32_t *)0x40040020))
1401
#define CAN0_IF1CMSK_R (*((volatile uint32_t *)0x40040024))
1402
#define CAN0_IF1MSK1_R (*((volatile uint32_t *)0x40040028))
1403
#define CAN0_IF1MSK2_R (*((volatile uint32_t *)0x4004002C))
1404
#define CAN0_IF1ARB1_R (*((volatile uint32_t *)0x40040030))
1405
#define CAN0_IF1ARB2_R (*((volatile uint32_t *)0x40040034))
1406
#define CAN0_IF1MCTL_R (*((volatile uint32_t *)0x40040038))
1407
#define CAN0_IF1DA1_R (*((volatile uint32_t *)0x4004003C))
1408
#define CAN0_IF1DA2_R (*((volatile uint32_t *)0x40040040))
1409
#define CAN0_IF1DB1_R (*((volatile uint32_t *)0x40040044))
1410
#define CAN0_IF1DB2_R (*((volatile uint32_t *)0x40040048))
1411
#define CAN0_IF2CRQ_R (*((volatile uint32_t *)0x40040080))
1412
#define CAN0_IF2CMSK_R (*((volatile uint32_t *)0x40040084))
1413
#define CAN0_IF2MSK1_R (*((volatile uint32_t *)0x40040088))
1414
#define CAN0_IF2MSK2_R (*((volatile uint32_t *)0x4004008C))
1415
#define CAN0_IF2ARB1_R (*((volatile uint32_t *)0x40040090))
1416
#define CAN0_IF2ARB2_R (*((volatile uint32_t *)0x40040094))
1417
#define CAN0_IF2MCTL_R (*((volatile uint32_t *)0x40040098))
1418
#define CAN0_IF2DA1_R (*((volatile uint32_t *)0x4004009C))
1419
#define CAN0_IF2DA2_R (*((volatile uint32_t *)0x400400A0))
1420
#define CAN0_IF2DB1_R (*((volatile uint32_t *)0x400400A4))
1421
#define CAN0_IF2DB2_R (*((volatile uint32_t *)0x400400A8))
1422
#define CAN0_TXRQ1_R (*((volatile uint32_t *)0x40040100))
1423
#define CAN0_TXRQ2_R (*((volatile uint32_t *)0x40040104))
1424
#define CAN0_NWDA1_R (*((volatile uint32_t *)0x40040120))
1425
#define CAN0_NWDA2_R (*((volatile uint32_t *)0x40040124))
1426
#define CAN0_MSG1INT_R (*((volatile uint32_t *)0x40040140))
1427
#define CAN0_MSG2INT_R (*((volatile uint32_t *)0x40040144))
1428
#define CAN0_MSG1VAL_R (*((volatile uint32_t *)0x40040160))
1429
#define CAN0_MSG2VAL_R (*((volatile uint32_t *)0x40040164))
1430
1431
//*****************************************************************************
1432
//
1433
// CAN registers (CAN1)
1434
//
1435
//*****************************************************************************
1436
#define CAN1_CTL_R (*((volatile uint32_t *)0x40041000))
1437
#define CAN1_STS_R (*((volatile uint32_t *)0x40041004))
1438
#define CAN1_ERR_R (*((volatile uint32_t *)0x40041008))
1439
#define CAN1_BIT_R (*((volatile uint32_t *)0x4004100C))
1440
#define CAN1_INT_R (*((volatile uint32_t *)0x40041010))
1441
#define CAN1_TST_R (*((volatile uint32_t *)0x40041014))
1442
#define CAN1_BRPE_R (*((volatile uint32_t *)0x40041018))
1443
#define CAN1_IF1CRQ_R (*((volatile uint32_t *)0x40041020))
1444
#define CAN1_IF1CMSK_R (*((volatile uint32_t *)0x40041024))
1445
#define CAN1_IF1MSK1_R (*((volatile uint32_t *)0x40041028))
1446
#define CAN1_IF1MSK2_R (*((volatile uint32_t *)0x4004102C))
1447
#define CAN1_IF1ARB1_R (*((volatile uint32_t *)0x40041030))
1448
#define CAN1_IF1ARB2_R (*((volatile uint32_t *)0x40041034))
1449
#define CAN1_IF1MCTL_R (*((volatile uint32_t *)0x40041038))
1450
#define CAN1_IF1DA1_R (*((volatile uint32_t *)0x4004103C))
1451
#define CAN1_IF1DA2_R (*((volatile uint32_t *)0x40041040))
1452
#define CAN1_IF1DB1_R (*((volatile uint32_t *)0x40041044))
1453
#define CAN1_IF1DB2_R (*((volatile uint32_t *)0x40041048))
1454
#define CAN1_IF2CRQ_R (*((volatile uint32_t *)0x40041080))
1455
#define CAN1_IF2CMSK_R (*((volatile uint32_t *)0x40041084))
1456
#define CAN1_IF2MSK1_R (*((volatile uint32_t *)0x40041088))
1457
#define CAN1_IF2MSK2_R (*((volatile uint32_t *)0x4004108C))
1458
#define CAN1_IF2ARB1_R (*((volatile uint32_t *)0x40041090))
1459
#define CAN1_IF2ARB2_R (*((volatile uint32_t *)0x40041094))
1460
#define CAN1_IF2MCTL_R (*((volatile uint32_t *)0x40041098))
1461
#define CAN1_IF2DA1_R (*((volatile uint32_t *)0x4004109C))
1462
#define CAN1_IF2DA2_R (*((volatile uint32_t *)0x400410A0))
1463
#define CAN1_IF2DB1_R (*((volatile uint32_t *)0x400410A4))
1464
#define CAN1_IF2DB2_R (*((volatile uint32_t *)0x400410A8))
1465
#define CAN1_TXRQ1_R (*((volatile uint32_t *)0x40041100))
1466
#define CAN1_TXRQ2_R (*((volatile uint32_t *)0x40041104))
1467
#define CAN1_NWDA1_R (*((volatile uint32_t *)0x40041120))
1468
#define CAN1_NWDA2_R (*((volatile uint32_t *)0x40041124))
1469
#define CAN1_MSG1INT_R (*((volatile uint32_t *)0x40041140))
1470
#define CAN1_MSG2INT_R (*((volatile uint32_t *)0x40041144))
1471
#define CAN1_MSG1VAL_R (*((volatile uint32_t *)0x40041160))
1472
#define CAN1_MSG2VAL_R (*((volatile uint32_t *)0x40041164))
1473
1474
//*****************************************************************************
1475
//
1476
// Timer registers (WTIMER2)
1477
//
1478
//*****************************************************************************
1479
#define WTIMER2_CFG_R (*((volatile uint32_t *)0x4004C000))
1480
#define WTIMER2_TAMR_R (*((volatile uint32_t *)0x4004C004))
1481
#define WTIMER2_TBMR_R (*((volatile uint32_t *)0x4004C008))
1482
#define WTIMER2_CTL_R (*((volatile uint32_t *)0x4004C00C))
1483
#define WTIMER2_SYNC_R (*((volatile uint32_t *)0x4004C010))
1484
#define WTIMER2_IMR_R (*((volatile uint32_t *)0x4004C018))
1485
#define WTIMER2_RIS_R (*((volatile uint32_t *)0x4004C01C))
1486
#define WTIMER2_MIS_R (*((volatile uint32_t *)0x4004C020))
1487
#define WTIMER2_ICR_R (*((volatile uint32_t *)0x4004C024))
1488
#define WTIMER2_TAILR_R (*((volatile uint32_t *)0x4004C028))
1489
#define WTIMER2_TBILR_R (*((volatile uint32_t *)0x4004C02C))
1490
#define WTIMER2_TAMATCHR_R (*((volatile uint32_t *)0x4004C030))
1491
#define WTIMER2_TBMATCHR_R (*((volatile uint32_t *)0x4004C034))
1492
#define WTIMER2_TAPR_R (*((volatile uint32_t *)0x4004C038))
1493
#define WTIMER2_TBPR_R (*((volatile uint32_t *)0x4004C03C))
1494
#define WTIMER2_TAPMR_R (*((volatile uint32_t *)0x4004C040))
1495
#define WTIMER2_TBPMR_R (*((volatile uint32_t *)0x4004C044))
1496
#define WTIMER2_TAR_R (*((volatile uint32_t *)0x4004C048))
1497
#define WTIMER2_TBR_R (*((volatile uint32_t *)0x4004C04C))
1498
#define WTIMER2_TAV_R (*((volatile uint32_t *)0x4004C050))
1499
#define WTIMER2_TBV_R (*((volatile uint32_t *)0x4004C054))
1500
#define WTIMER2_RTCPD_R (*((volatile uint32_t *)0x4004C058))
1501
#define WTIMER2_TAPS_R (*((volatile uint32_t *)0x4004C05C))
1502
#define WTIMER2_TBPS_R (*((volatile uint32_t *)0x4004C060))
1503
#define WTIMER2_TAPV_R (*((volatile uint32_t *)0x4004C064))
1504
#define WTIMER2_TBPV_R (*((volatile uint32_t *)0x4004C068))
1505
#define WTIMER2_PP_R (*((volatile uint32_t *)0x4004CFC0))
1506
1507
//*****************************************************************************
1508
//
1509
// Timer registers (WTIMER3)
1510
//
1511
//*****************************************************************************
1512
#define WTIMER3_CFG_R (*((volatile uint32_t *)0x4004D000))
1513
#define WTIMER3_TAMR_R (*((volatile uint32_t *)0x4004D004))
1514
#define WTIMER3_TBMR_R (*((volatile uint32_t *)0x4004D008))
1515
#define WTIMER3_CTL_R (*((volatile uint32_t *)0x4004D00C))
1516
#define WTIMER3_SYNC_R (*((volatile uint32_t *)0x4004D010))
1517
#define WTIMER3_IMR_R (*((volatile uint32_t *)0x4004D018))
1518
#define WTIMER3_RIS_R (*((volatile uint32_t *)0x4004D01C))
1519
#define WTIMER3_MIS_R (*((volatile uint32_t *)0x4004D020))
1520
#define WTIMER3_ICR_R (*((volatile uint32_t *)0x4004D024))
1521
#define WTIMER3_TAILR_R (*((volatile uint32_t *)0x4004D028))
1522
#define WTIMER3_TBILR_R (*((volatile uint32_t *)0x4004D02C))
1523
#define WTIMER3_TAMATCHR_R (*((volatile uint32_t *)0x4004D030))
1524
#define WTIMER3_TBMATCHR_R (*((volatile uint32_t *)0x4004D034))
1525
#define WTIMER3_TAPR_R (*((volatile uint32_t *)0x4004D038))
1526
#define WTIMER3_TBPR_R (*((volatile uint32_t *)0x4004D03C))
1527
#define WTIMER3_TAPMR_R (*((volatile uint32_t *)0x4004D040))
1528
#define WTIMER3_TBPMR_R (*((volatile uint32_t *)0x4004D044))
1529
#define WTIMER3_TAR_R (*((volatile uint32_t *)0x4004D048))
1530
#define WTIMER3_TBR_R (*((volatile uint32_t *)0x4004D04C))
1531
#define WTIMER3_TAV_R (*((volatile uint32_t *)0x4004D050))
1532
#define WTIMER3_TBV_R (*((volatile uint32_t *)0x4004D054))
1533
#define WTIMER3_RTCPD_R (*((volatile uint32_t *)0x4004D058))
1534
#define WTIMER3_TAPS_R (*((volatile uint32_t *)0x4004D05C))
1535
#define WTIMER3_TBPS_R (*((volatile uint32_t *)0x4004D060))
1536
#define WTIMER3_TAPV_R (*((volatile uint32_t *)0x4004D064))
1537
#define WTIMER3_TBPV_R (*((volatile uint32_t *)0x4004D068))
1538
#define WTIMER3_PP_R (*((volatile uint32_t *)0x4004DFC0))
1539
1540
//*****************************************************************************
1541
//
1542
// Timer registers (WTIMER4)
1543
//
1544
//*****************************************************************************
1545
#define WTIMER4_CFG_R (*((volatile uint32_t *)0x4004E000))
1546
#define WTIMER4_TAMR_R (*((volatile uint32_t *)0x4004E004))
1547
#define WTIMER4_TBMR_R (*((volatile uint32_t *)0x4004E008))
1548
#define WTIMER4_CTL_R (*((volatile uint32_t *)0x4004E00C))
1549
#define WTIMER4_SYNC_R (*((volatile uint32_t *)0x4004E010))
1550
#define WTIMER4_IMR_R (*((volatile uint32_t *)0x4004E018))
1551
#define WTIMER4_RIS_R (*((volatile uint32_t *)0x4004E01C))
1552
#define WTIMER4_MIS_R (*((volatile uint32_t *)0x4004E020))
1553
#define WTIMER4_ICR_R (*((volatile uint32_t *)0x4004E024))
1554
#define WTIMER4_TAILR_R (*((volatile uint32_t *)0x4004E028))
1555
#define WTIMER4_TBILR_R (*((volatile uint32_t *)0x4004E02C))
1556
#define WTIMER4_TAMATCHR_R (*((volatile uint32_t *)0x4004E030))
1557
#define WTIMER4_TBMATCHR_R (*((volatile uint32_t *)0x4004E034))
1558
#define WTIMER4_TAPR_R (*((volatile uint32_t *)0x4004E038))
1559
#define WTIMER4_TBPR_R (*((volatile uint32_t *)0x4004E03C))
1560
#define WTIMER4_TAPMR_R (*((volatile uint32_t *)0x4004E040))
1561
#define WTIMER4_TBPMR_R (*((volatile uint32_t *)0x4004E044))
1562
#define WTIMER4_TAR_R (*((volatile uint32_t *)0x4004E048))
1563
#define WTIMER4_TBR_R (*((volatile uint32_t *)0x4004E04C))
1564
#define WTIMER4_TAV_R (*((volatile uint32_t *)0x4004E050))
1565
#define WTIMER4_TBV_R (*((volatile uint32_t *)0x4004E054))
1566
#define WTIMER4_RTCPD_R (*((volatile uint32_t *)0x4004E058))
1567
#define WTIMER4_TAPS_R (*((volatile uint32_t *)0x4004E05C))
1568
#define WTIMER4_TBPS_R (*((volatile uint32_t *)0x4004E060))
1569
#define WTIMER4_TAPV_R (*((volatile uint32_t *)0x4004E064))
1570
#define WTIMER4_TBPV_R (*((volatile uint32_t *)0x4004E068))
1571
#define WTIMER4_PP_R (*((volatile uint32_t *)0x4004EFC0))
1572
1573
//*****************************************************************************
1574
//
1575
// Timer registers (WTIMER5)
1576
//
1577
//*****************************************************************************
1578
#define WTIMER5_CFG_R (*((volatile uint32_t *)0x4004F000))
1579
#define WTIMER5_TAMR_R (*((volatile uint32_t *)0x4004F004))
1580
#define WTIMER5_TBMR_R (*((volatile uint32_t *)0x4004F008))
1581
#define WTIMER5_CTL_R (*((volatile uint32_t *)0x4004F00C))
1582
#define WTIMER5_SYNC_R (*((volatile uint32_t *)0x4004F010))
1583
#define WTIMER5_IMR_R (*((volatile uint32_t *)0x4004F018))
1584
#define WTIMER5_RIS_R (*((volatile uint32_t *)0x4004F01C))
1585
#define WTIMER5_MIS_R (*((volatile uint32_t *)0x4004F020))
1586
#define WTIMER5_ICR_R (*((volatile uint32_t *)0x4004F024))
1587
#define WTIMER5_TAILR_R (*((volatile uint32_t *)0x4004F028))
1588
#define WTIMER5_TBILR_R (*((volatile uint32_t *)0x4004F02C))
1589
#define WTIMER5_TAMATCHR_R (*((volatile uint32_t *)0x4004F030))
1590
#define WTIMER5_TBMATCHR_R (*((volatile uint32_t *)0x4004F034))
1591
#define WTIMER5_TAPR_R (*((volatile uint32_t *)0x4004F038))
1592
#define WTIMER5_TBPR_R (*((volatile uint32_t *)0x4004F03C))
1593
#define WTIMER5_TAPMR_R (*((volatile uint32_t *)0x4004F040))
1594
#define WTIMER5_TBPMR_R (*((volatile uint32_t *)0x4004F044))
1595
#define WTIMER5_TAR_R (*((volatile uint32_t *)0x4004F048))
1596
#define WTIMER5_TBR_R (*((volatile uint32_t *)0x4004F04C))
1597
#define WTIMER5_TAV_R (*((volatile uint32_t *)0x4004F050))
1598
#define WTIMER5_TBV_R (*((volatile uint32_t *)0x4004F054))
1599
#define WTIMER5_RTCPD_R (*((volatile uint32_t *)0x4004F058))
1600
#define WTIMER5_TAPS_R (*((volatile uint32_t *)0x4004F05C))
1601
#define WTIMER5_TBPS_R (*((volatile uint32_t *)0x4004F060))
1602
#define WTIMER5_TAPV_R (*((volatile uint32_t *)0x4004F064))
1603
#define WTIMER5_TBPV_R (*((volatile uint32_t *)0x4004F068))
1604
#define WTIMER5_PP_R (*((volatile uint32_t *)0x4004FFC0))
1605
1606
//*****************************************************************************
1607
//
1608
// Univeral Serial Bus registers (USB0)
1609
//
1610
//*****************************************************************************
1611
#define USB0_FADDR_R (*((volatile uint8_t *)0x40050000))
1612
#define USB0_POWER_R (*((volatile uint8_t *)0x40050001))
1613
#define USB0_TXIS_R (*((volatile uint16_t *)0x40050002))
1614
#define USB0_RXIS_R (*((volatile uint16_t *)0x40050004))
1615
#define USB0_TXIE_R (*((volatile uint16_t *)0x40050006))
1616
#define USB0_RXIE_R (*((volatile uint16_t *)0x40050008))
1617
#define USB0_IS_R (*((volatile uint8_t *)0x4005000A))
1618
#define USB0_IE_R (*((volatile uint8_t *)0x4005000B))
1619
#define USB0_FRAME_R (*((volatile uint16_t *)0x4005000C))
1620
#define USB0_EPIDX_R (*((volatile uint8_t *)0x4005000E))
1621
#define USB0_TEST_R (*((volatile uint8_t *)0x4005000F))
1622
#define USB0_FIFO0_R (*((volatile uint32_t *)0x40050020))
1623
#define USB0_FIFO1_R (*((volatile uint32_t *)0x40050024))
1624
#define USB0_FIFO2_R (*((volatile uint32_t *)0x40050028))
1625
#define USB0_FIFO3_R (*((volatile uint32_t *)0x4005002C))
1626
#define USB0_FIFO4_R (*((volatile uint32_t *)0x40050030))
1627
#define USB0_FIFO5_R (*((volatile uint32_t *)0x40050034))
1628
#define USB0_FIFO6_R (*((volatile uint32_t *)0x40050038))
1629
#define USB0_FIFO7_R (*((volatile uint32_t *)0x4005003C))
1630
#define USB0_DEVCTL_R (*((volatile uint8_t *)0x40050060))
1631
#define USB0_TXFIFOSZ_R (*((volatile uint8_t *)0x40050062))
1632
#define USB0_RXFIFOSZ_R (*((volatile uint8_t *)0x40050063))
1633
#define USB0_TXFIFOADD_R (*((volatile uint16_t *)0x40050064))
1634
#define USB0_RXFIFOADD_R (*((volatile uint16_t *)0x40050066))
1635
#define USB0_CONTIM_R (*((volatile uint8_t *)0x4005007A))
1636
#define USB0_VPLEN_R (*((volatile uint8_t *)0x4005007B))
1637
#define USB0_FSEOF_R (*((volatile uint8_t *)0x4005007D))
1638
#define USB0_LSEOF_R (*((volatile uint8_t *)0x4005007E))
1639
#define USB0_TXFUNCADDR0_R (*((volatile uint8_t *)0x40050080))
1640
#define USB0_TXHUBADDR0_R (*((volatile uint8_t *)0x40050082))
1641
#define USB0_TXHUBPORT0_R (*((volatile uint8_t *)0x40050083))
1642
#define USB0_TXFUNCADDR1_R (*((volatile uint8_t *)0x40050088))
1643
#define USB0_TXHUBADDR1_R (*((volatile uint8_t *)0x4005008A))
1644
#define USB0_TXHUBPORT1_R (*((volatile uint8_t *)0x4005008B))
1645
#define USB0_RXFUNCADDR1_R (*((volatile uint8_t *)0x4005008C))
1646
#define USB0_RXHUBADDR1_R (*((volatile uint8_t *)0x4005008E))
1647
#define USB0_RXHUBPORT1_R (*((volatile uint8_t *)0x4005008F))
1648
#define USB0_TXFUNCADDR2_R (*((volatile uint8_t *)0x40050090))
1649
#define USB0_TXHUBADDR2_R (*((volatile uint8_t *)0x40050092))
1650
#define USB0_TXHUBPORT2_R (*((volatile uint8_t *)0x40050093))
1651
#define USB0_RXFUNCADDR2_R (*((volatile uint8_t *)0x40050094))
1652
#define USB0_RXHUBADDR2_R (*((volatile uint8_t *)0x40050096))
1653
#define USB0_RXHUBPORT2_R (*((volatile uint8_t *)0x40050097))
1654
#define USB0_TXFUNCADDR3_R (*((volatile uint8_t *)0x40050098))
1655
#define USB0_TXHUBADDR3_R (*((volatile uint8_t *)0x4005009A))
1656
#define USB0_TXHUBPORT3_R (*((volatile uint8_t *)0x4005009B))
1657
#define USB0_RXFUNCADDR3_R (*((volatile uint8_t *)0x4005009C))
1658
#define USB0_RXHUBADDR3_R (*((volatile uint8_t *)0x4005009E))
1659
#define USB0_RXHUBPORT3_R (*((volatile uint8_t *)0x4005009F))
1660
#define USB0_TXFUNCADDR4_R (*((volatile uint8_t *)0x400500A0))
1661
#define USB0_TXHUBADDR4_R (*((volatile uint8_t *)0x400500A2))
1662
#define USB0_TXHUBPORT4_R (*((volatile uint8_t *)0x400500A3))
1663
#define USB0_RXFUNCADDR4_R (*((volatile uint8_t *)0x400500A4))
1664
#define USB0_RXHUBADDR4_R (*((volatile uint8_t *)0x400500A6))
1665
#define USB0_RXHUBPORT4_R (*((volatile uint8_t *)0x400500A7))
1666
#define USB0_TXFUNCADDR5_R (*((volatile uint8_t *)0x400500A8))
1667
#define USB0_TXHUBADDR5_R (*((volatile uint8_t *)0x400500AA))
1668
#define USB0_TXHUBPORT5_R (*((volatile uint8_t *)0x400500AB))
1669
#define USB0_RXFUNCADDR5_R (*((volatile uint8_t *)0x400500AC))
1670
#define USB0_RXHUBADDR5_R (*((volatile uint8_t *)0x400500AE))
1671
#define USB0_RXHUBPORT5_R (*((volatile uint8_t *)0x400500AF))
1672
#define USB0_TXFUNCADDR6_R (*((volatile uint8_t *)0x400500B0))
1673
#define USB0_TXHUBADDR6_R (*((volatile uint8_t *)0x400500B2))
1674
#define USB0_TXHUBPORT6_R (*((volatile uint8_t *)0x400500B3))
1675
#define USB0_RXFUNCADDR6_R (*((volatile uint8_t *)0x400500B4))
1676
#define USB0_RXHUBADDR6_R (*((volatile uint8_t *)0x400500B6))
1677
#define USB0_RXHUBPORT6_R (*((volatile uint8_t *)0x400500B7))
1678
#define USB0_TXFUNCADDR7_R (*((volatile uint8_t *)0x400500B8))
1679
#define USB0_TXHUBADDR7_R (*((volatile uint8_t *)0x400500BA))
1680
#define USB0_TXHUBPORT7_R (*((volatile uint8_t *)0x400500BB))
1681
#define USB0_RXFUNCADDR7_R (*((volatile uint8_t *)0x400500BC))
1682
#define USB0_RXHUBADDR7_R (*((volatile uint8_t *)0x400500BE))
1683
#define USB0_RXHUBPORT7_R (*((volatile uint8_t *)0x400500BF))
1684
#define USB0_CSRL0_R (*((volatile uint8_t *)0x40050102))
1685
#define USB0_CSRH0_R (*((volatile uint8_t *)0x40050103))
1686
#define USB0_COUNT0_R (*((volatile uint8_t *)0x40050108))
1687
#define USB0_TYPE0_R (*((volatile uint8_t *)0x4005010A))
1688
#define USB0_NAKLMT_R (*((volatile uint8_t *)0x4005010B))
1689
#define USB0_TXMAXP1_R (*((volatile uint16_t *)0x40050110))
1690
#define USB0_TXCSRL1_R (*((volatile uint8_t *)0x40050112))
1691
#define USB0_TXCSRH1_R (*((volatile uint8_t *)0x40050113))
1692
#define USB0_RXMAXP1_R (*((volatile uint16_t *)0x40050114))
1693
#define USB0_RXCSRL1_R (*((volatile uint8_t *)0x40050116))
1694
#define USB0_RXCSRH1_R (*((volatile uint8_t *)0x40050117))
1695
#define USB0_RXCOUNT1_R (*((volatile uint16_t *)0x40050118))
1696
#define USB0_TXTYPE1_R (*((volatile uint8_t *)0x4005011A))
1697
#define USB0_TXINTERVAL1_R (*((volatile uint8_t *)0x4005011B))
1698
#define USB0_RXTYPE1_R (*((volatile uint8_t *)0x4005011C))
1699
#define USB0_RXINTERVAL1_R (*((volatile uint8_t *)0x4005011D))
1700
#define USB0_TXMAXP2_R (*((volatile uint16_t *)0x40050120))
1701
#define USB0_TXCSRL2_R (*((volatile uint8_t *)0x40050122))
1702
#define USB0_TXCSRH2_R (*((volatile uint8_t *)0x40050123))
1703
#define USB0_RXMAXP2_R (*((volatile uint16_t *)0x40050124))
1704
#define USB0_RXCSRL2_R (*((volatile uint8_t *)0x40050126))
1705
#define USB0_RXCSRH2_R (*((volatile uint8_t *)0x40050127))
1706
#define USB0_RXCOUNT2_R (*((volatile uint16_t *)0x40050128))
1707
#define USB0_TXTYPE2_R (*((volatile uint8_t *)0x4005012A))
1708
#define USB0_TXINTERVAL2_R (*((volatile uint8_t *)0x4005012B))
1709
#define USB0_RXTYPE2_R (*((volatile uint8_t *)0x4005012C))
1710
#define USB0_RXINTERVAL2_R (*((volatile uint8_t *)0x4005012D))
1711
#define USB0_TXMAXP3_R (*((volatile uint16_t *)0x40050130))
1712
#define USB0_TXCSRL3_R (*((volatile uint8_t *)0x40050132))
1713
#define USB0_TXCSRH3_R (*((volatile uint8_t *)0x40050133))
1714
#define USB0_RXMAXP3_R (*((volatile uint16_t *)0x40050134))
1715
#define USB0_RXCSRL3_R (*((volatile uint8_t *)0x40050136))
1716
#define USB0_RXCSRH3_R (*((volatile uint8_t *)0x40050137))
1717
#define USB0_RXCOUNT3_R (*((volatile uint16_t *)0x40050138))
1718
#define USB0_TXTYPE3_R (*((volatile uint8_t *)0x4005013A))
1719
#define USB0_TXINTERVAL3_R (*((volatile uint8_t *)0x4005013B))
1720
#define USB0_RXTYPE3_R (*((volatile uint8_t *)0x4005013C))
1721
#define USB0_RXINTERVAL3_R (*((volatile uint8_t *)0x4005013D))
1722
#define USB0_TXMAXP4_R (*((volatile uint16_t *)0x40050140))
1723
#define USB0_TXCSRL4_R (*((volatile uint8_t *)0x40050142))
1724
#define USB0_TXCSRH4_R (*((volatile uint8_t *)0x40050143))
1725
#define USB0_RXMAXP4_R (*((volatile uint16_t *)0x40050144))
1726
#define USB0_RXCSRL4_R (*((volatile uint8_t *)0x40050146))
1727
#define USB0_RXCSRH4_R (*((volatile uint8_t *)0x40050147))
1728
#define USB0_RXCOUNT4_R (*((volatile uint16_t *)0x40050148))
1729
#define USB0_TXTYPE4_R (*((volatile uint8_t *)0x4005014A))
1730
#define USB0_TXINTERVAL4_R (*((volatile uint8_t *)0x4005014B))
1731
#define USB0_RXTYPE4_R (*((volatile uint8_t *)0x4005014C))
1732
#define USB0_RXINTERVAL4_R (*((volatile uint8_t *)0x4005014D))
1733
#define USB0_TXMAXP5_R (*((volatile uint16_t *)0x40050150))
1734
#define USB0_TXCSRL5_R (*((volatile uint8_t *)0x40050152))
1735
#define USB0_TXCSRH5_R (*((volatile uint8_t *)0x40050153))
1736
#define USB0_RXMAXP5_R (*((volatile uint16_t *)0x40050154))
1737
#define USB0_RXCSRL5_R (*((volatile uint8_t *)0x40050156))
1738
#define USB0_RXCSRH5_R (*((volatile uint8_t *)0x40050157))
1739
#define USB0_RXCOUNT5_R (*((volatile uint16_t *)0x40050158))
1740
#define USB0_TXTYPE5_R (*((volatile uint8_t *)0x4005015A))
1741
#define USB0_TXINTERVAL5_R (*((volatile uint8_t *)0x4005015B))
1742
#define USB0_RXTYPE5_R (*((volatile uint8_t *)0x4005015C))
1743
#define USB0_RXINTERVAL5_R (*((volatile uint8_t *)0x4005015D))
1744
#define USB0_TXMAXP6_R (*((volatile uint16_t *)0x40050160))
1745
#define USB0_TXCSRL6_R (*((volatile uint8_t *)0x40050162))
1746
#define USB0_TXCSRH6_R (*((volatile uint8_t *)0x40050163))
1747
#define USB0_RXMAXP6_R (*((volatile uint16_t *)0x40050164))
1748
#define USB0_RXCSRL6_R (*((volatile uint8_t *)0x40050166))
1749
#define USB0_RXCSRH6_R (*((volatile uint8_t *)0x40050167))
1750
#define USB0_RXCOUNT6_R (*((volatile uint16_t *)0x40050168))
1751
#define USB0_TXTYPE6_R (*((volatile uint8_t *)0x4005016A))
1752
#define USB0_TXINTERVAL6_R (*((volatile uint8_t *)0x4005016B))
1753
#define USB0_RXTYPE6_R (*((volatile uint8_t *)0x4005016C))
1754
#define USB0_RXINTERVAL6_R (*((volatile uint8_t *)0x4005016D))
1755
#define USB0_TXMAXP7_R (*((volatile uint16_t *)0x40050170))
1756
#define USB0_TXCSRL7_R (*((volatile uint8_t *)0x40050172))
1757
#define USB0_TXCSRH7_R (*((volatile uint8_t *)0x40050173))
1758
#define USB0_RXMAXP7_R (*((volatile uint16_t *)0x40050174))
1759
#define USB0_RXCSRL7_R (*((volatile uint8_t *)0x40050176))
1760
#define USB0_RXCSRH7_R (*((volatile uint8_t *)0x40050177))
1761
#define USB0_RXCOUNT7_R (*((volatile uint16_t *)0x40050178))
1762
#define USB0_TXTYPE7_R (*((volatile uint8_t *)0x4005017A))
1763
#define USB0_TXINTERVAL7_R (*((volatile uint8_t *)0x4005017B))
1764
#define USB0_RXTYPE7_R (*((volatile uint8_t *)0x4005017C))
1765
#define USB0_RXINTERVAL7_R (*((volatile uint8_t *)0x4005017D))
1766
#define USB0_RQPKTCOUNT1_R (*((volatile uint16_t *)0x40050304))
1767
#define USB0_RQPKTCOUNT2_R (*((volatile uint16_t *)0x40050308))
1768
#define USB0_RQPKTCOUNT3_R (*((volatile uint16_t *)0x4005030C))
1769
#define USB0_RQPKTCOUNT4_R (*((volatile uint16_t *)0x40050310))
1770
#define USB0_RQPKTCOUNT5_R (*((volatile uint16_t *)0x40050314))
1771
#define USB0_RQPKTCOUNT6_R (*((volatile uint16_t *)0x40050318))
1772
#define USB0_RQPKTCOUNT7_R (*((volatile uint16_t *)0x4005031C))
1773
#define USB0_RXDPKTBUFDIS_R (*((volatile uint16_t *)0x40050340))
1774
#define USB0_TXDPKTBUFDIS_R (*((volatile uint16_t *)0x40050342))
1775
#define USB0_EPC_R (*((volatile uint32_t *)0x40050400))
1776
#define USB0_EPCRIS_R (*((volatile uint32_t *)0x40050404))
1777
#define USB0_EPCIM_R (*((volatile uint32_t *)0x40050408))
1778
#define USB0_EPCISC_R (*((volatile uint32_t *)0x4005040C))
1779
#define USB0_DRRIS_R (*((volatile uint32_t *)0x40050410))
1780
#define USB0_DRIM_R (*((volatile uint32_t *)0x40050414))
1781
#define USB0_DRISC_R (*((volatile uint32_t *)0x40050418))
1782
#define USB0_GPCS_R (*((volatile uint32_t *)0x4005041C))
1783
#define USB0_VDC_R (*((volatile uint32_t *)0x40050430))
1784
#define USB0_VDCRIS_R (*((volatile uint32_t *)0x40050434))
1785
#define USB0_VDCIM_R (*((volatile uint32_t *)0x40050438))
1786
#define USB0_VDCISC_R (*((volatile uint32_t *)0x4005043C))
1787
#define USB0_IDVRIS_R (*((volatile uint32_t *)0x40050444))
1788
#define USB0_IDVIM_R (*((volatile uint32_t *)0x40050448))
1789
#define USB0_IDVISC_R (*((volatile uint32_t *)0x4005044C))
1790
#define USB0_DMASEL_R (*((volatile uint32_t *)0x40050450))
1791
#define USB0_PP_R (*((volatile uint32_t *)0x40050FC0))
1792
1793
//*****************************************************************************
1794
//
1795
// GPIO registers (PORTA AHB)
1796
//
1797
//*****************************************************************************
1798
#define GPIO_PORTA_AHB_DATA_BITS_R \
1799
((volatile uint32_t *)0x40058000)
1800
#define GPIO_PORTA_AHB_DATA_R (*((volatile uint32_t *)0x400583FC))
1801
#define GPIO_PORTA_AHB_DIR_R (*((volatile uint32_t *)0x40058400))
1802
#define GPIO_PORTA_AHB_IS_R (*((volatile uint32_t *)0x40058404))
1803
#define GPIO_PORTA_AHB_IBE_R (*((volatile uint32_t *)0x40058408))
1804
#define GPIO_PORTA_AHB_IEV_R (*((volatile uint32_t *)0x4005840C))
1805
#define GPIO_PORTA_AHB_IM_R (*((volatile uint32_t *)0x40058410))
1806
#define GPIO_PORTA_AHB_RIS_R (*((volatile uint32_t *)0x40058414))
1807
#define GPIO_PORTA_AHB_MIS_R (*((volatile uint32_t *)0x40058418))
1808
#define GPIO_PORTA_AHB_ICR_R (*((volatile uint32_t *)0x4005841C))
1809
#define GPIO_PORTA_AHB_AFSEL_R (*((volatile uint32_t *)0x40058420))
1810
#define GPIO_PORTA_AHB_DR2R_R (*((volatile uint32_t *)0x40058500))
1811
#define GPIO_PORTA_AHB_DR4R_R (*((volatile uint32_t *)0x40058504))
1812
#define GPIO_PORTA_AHB_DR8R_R (*((volatile uint32_t *)0x40058508))
1813
#define GPIO_PORTA_AHB_ODR_R (*((volatile uint32_t *)0x4005850C))
1814
#define GPIO_PORTA_AHB_PUR_R (*((volatile uint32_t *)0x40058510))
1815
#define GPIO_PORTA_AHB_PDR_R (*((volatile uint32_t *)0x40058514))
1816
#define GPIO_PORTA_AHB_SLR_R (*((volatile uint32_t *)0x40058518))
1817
#define GPIO_PORTA_AHB_DEN_R (*((volatile uint32_t *)0x4005851C))
1818
#define GPIO_PORTA_AHB_LOCK_R (*((volatile uint32_t *)0x40058520))
1819
#define GPIO_PORTA_AHB_CR_R (*((volatile uint32_t *)0x40058524))
1820
#define GPIO_PORTA_AHB_AMSEL_R (*((volatile uint32_t *)0x40058528))
1821
#define GPIO_PORTA_AHB_PCTL_R (*((volatile uint32_t *)0x4005852C))
1822
#define GPIO_PORTA_AHB_ADCCTL_R (*((volatile uint32_t *)0x40058530))
1823
#define GPIO_PORTA_AHB_DMACTL_R (*((volatile uint32_t *)0x40058534))
1824
1825
//*****************************************************************************
1826
//
1827
// GPIO registers (PORTB AHB)
1828
//
1829
//*****************************************************************************
1830
#define GPIO_PORTB_AHB_DATA_BITS_R \
1831
((volatile uint32_t *)0x40059000)
1832
#define GPIO_PORTB_AHB_DATA_R (*((volatile uint32_t *)0x400593FC))
1833
#define GPIO_PORTB_AHB_DIR_R (*((volatile uint32_t *)0x40059400))
1834
#define GPIO_PORTB_AHB_IS_R (*((volatile uint32_t *)0x40059404))
1835
#define GPIO_PORTB_AHB_IBE_R (*((volatile uint32_t *)0x40059408))
1836
#define GPIO_PORTB_AHB_IEV_R (*((volatile uint32_t *)0x4005940C))
1837
#define GPIO_PORTB_AHB_IM_R (*((volatile uint32_t *)0x40059410))
1838
#define GPIO_PORTB_AHB_RIS_R (*((volatile uint32_t *)0x40059414))
1839
#define GPIO_PORTB_AHB_MIS_R (*((volatile uint32_t *)0x40059418))
1840
#define GPIO_PORTB_AHB_ICR_R (*((volatile uint32_t *)0x4005941C))
1841
#define GPIO_PORTB_AHB_AFSEL_R (*((volatile uint32_t *)0x40059420))
1842
#define GPIO_PORTB_AHB_DR2R_R (*((volatile uint32_t *)0x40059500))
1843
#define GPIO_PORTB_AHB_DR4R_R (*((volatile uint32_t *)0x40059504))
1844
#define GPIO_PORTB_AHB_DR8R_R (*((volatile uint32_t *)0x40059508))
1845
#define GPIO_PORTB_AHB_ODR_R (*((volatile uint32_t *)0x4005950C))
1846
#define GPIO_PORTB_AHB_PUR_R (*((volatile uint32_t *)0x40059510))
1847
#define GPIO_PORTB_AHB_PDR_R (*((volatile uint32_t *)0x40059514))
1848
#define GPIO_PORTB_AHB_SLR_R (*((volatile uint32_t *)0x40059518))
1849
#define GPIO_PORTB_AHB_DEN_R (*((volatile uint32_t *)0x4005951C))
1850
#define GPIO_PORTB_AHB_LOCK_R (*((volatile uint32_t *)0x40059520))
1851
#define GPIO_PORTB_AHB_CR_R (*((volatile uint32_t *)0x40059524))
1852
#define GPIO_PORTB_AHB_AMSEL_R (*((volatile uint32_t *)0x40059528))
1853
#define GPIO_PORTB_AHB_PCTL_R (*((volatile uint32_t *)0x4005952C))
1854
#define GPIO_PORTB_AHB_ADCCTL_R (*((volatile uint32_t *)0x40059530))
1855
#define GPIO_PORTB_AHB_DMACTL_R (*((volatile uint32_t *)0x40059534))
1856
1857
//*****************************************************************************
1858
//
1859
// GPIO registers (PORTC AHB)
1860
//
1861
//*****************************************************************************
1862
#define GPIO_PORTC_AHB_DATA_BITS_R \
1863
((volatile uint32_t *)0x4005A000)
1864
#define GPIO_PORTC_AHB_DATA_R (*((volatile uint32_t *)0x4005A3FC))
1865
#define GPIO_PORTC_AHB_DIR_R (*((volatile uint32_t *)0x4005A400))
1866
#define GPIO_PORTC_AHB_IS_R (*((volatile uint32_t *)0x4005A404))
1867
#define GPIO_PORTC_AHB_IBE_R (*((volatile uint32_t *)0x4005A408))
1868
#define GPIO_PORTC_AHB_IEV_R (*((volatile uint32_t *)0x4005A40C))
1869
#define GPIO_PORTC_AHB_IM_R (*((volatile uint32_t *)0x4005A410))
1870
#define GPIO_PORTC_AHB_RIS_R (*((volatile uint32_t *)0x4005A414))
1871
#define GPIO_PORTC_AHB_MIS_R (*((volatile uint32_t *)0x4005A418))
1872
#define GPIO_PORTC_AHB_ICR_R (*((volatile uint32_t *)0x4005A41C))
1873
#define GPIO_PORTC_AHB_AFSEL_R (*((volatile uint32_t *)0x4005A420))
1874
#define GPIO_PORTC_AHB_DR2R_R (*((volatile uint32_t *)0x4005A500))
1875
#define GPIO_PORTC_AHB_DR4R_R (*((volatile uint32_t *)0x4005A504))
1876
#define GPIO_PORTC_AHB_DR8R_R (*((volatile uint32_t *)0x4005A508))
1877
#define GPIO_PORTC_AHB_ODR_R (*((volatile uint32_t *)0x4005A50C))
1878
#define GPIO_PORTC_AHB_PUR_R (*((volatile uint32_t *)0x4005A510))
1879
#define GPIO_PORTC_AHB_PDR_R (*((volatile uint32_t *)0x4005A514))
1880
#define GPIO_PORTC_AHB_SLR_R (*((volatile uint32_t *)0x4005A518))
1881
#define GPIO_PORTC_AHB_DEN_R (*((volatile uint32_t *)0x4005A51C))
1882
#define GPIO_PORTC_AHB_LOCK_R (*((volatile uint32_t *)0x4005A520))
1883
#define GPIO_PORTC_AHB_CR_R (*((volatile uint32_t *)0x4005A524))
1884
#define GPIO_PORTC_AHB_AMSEL_R (*((volatile uint32_t *)0x4005A528))
1885
#define GPIO_PORTC_AHB_PCTL_R (*((volatile uint32_t *)0x4005A52C))
1886
#define GPIO_PORTC_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005A530))
1887
#define GPIO_PORTC_AHB_DMACTL_R (*((volatile uint32_t *)0x4005A534))
1888
1889
//*****************************************************************************
1890
//
1891
// GPIO registers (PORTD AHB)
1892
//
1893
//*****************************************************************************
1894
#define GPIO_PORTD_AHB_DATA_BITS_R \
1895
((volatile uint32_t *)0x4005B000)
1896
#define GPIO_PORTD_AHB_DATA_R (*((volatile uint32_t *)0x4005B3FC))
1897
#define GPIO_PORTD_AHB_DIR_R (*((volatile uint32_t *)0x4005B400))
1898
#define GPIO_PORTD_AHB_IS_R (*((volatile uint32_t *)0x4005B404))
1899
#define GPIO_PORTD_AHB_IBE_R (*((volatile uint32_t *)0x4005B408))
1900
#define GPIO_PORTD_AHB_IEV_R (*((volatile uint32_t *)0x4005B40C))
1901
#define GPIO_PORTD_AHB_IM_R (*((volatile uint32_t *)0x4005B410))
1902
#define GPIO_PORTD_AHB_RIS_R (*((volatile uint32_t *)0x4005B414))
1903
#define GPIO_PORTD_AHB_MIS_R (*((volatile uint32_t *)0x4005B418))
1904
#define GPIO_PORTD_AHB_ICR_R (*((volatile uint32_t *)0x4005B41C))
1905
#define GPIO_PORTD_AHB_AFSEL_R (*((volatile uint32_t *)0x4005B420))
1906
#define GPIO_PORTD_AHB_DR2R_R (*((volatile uint32_t *)0x4005B500))
1907
#define GPIO_PORTD_AHB_DR4R_R (*((volatile uint32_t *)0x4005B504))
1908
#define GPIO_PORTD_AHB_DR8R_R (*((volatile uint32_t *)0x4005B508))
1909
#define GPIO_PORTD_AHB_ODR_R (*((volatile uint32_t *)0x4005B50C))
1910
#define GPIO_PORTD_AHB_PUR_R (*((volatile uint32_t *)0x4005B510))
1911
#define GPIO_PORTD_AHB_PDR_R (*((volatile uint32_t *)0x4005B514))
1912
#define GPIO_PORTD_AHB_SLR_R (*((volatile uint32_t *)0x4005B518))
1913
#define GPIO_PORTD_AHB_DEN_R (*((volatile uint32_t *)0x4005B51C))
1914
#define GPIO_PORTD_AHB_LOCK_R (*((volatile uint32_t *)0x4005B520))
1915
#define GPIO_PORTD_AHB_CR_R (*((volatile uint32_t *)0x4005B524))
1916
#define GPIO_PORTD_AHB_AMSEL_R (*((volatile uint32_t *)0x4005B528))
1917
#define GPIO_PORTD_AHB_PCTL_R (*((volatile uint32_t *)0x4005B52C))
1918
#define GPIO_PORTD_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005B530))
1919
#define GPIO_PORTD_AHB_DMACTL_R (*((volatile uint32_t *)0x4005B534))
1920
1921
//*****************************************************************************
1922
//
1923
// GPIO registers (PORTE AHB)
1924
//
1925
//*****************************************************************************
1926
#define GPIO_PORTE_AHB_DATA_BITS_R \
1927
((volatile uint32_t *)0x4005C000)
1928
#define GPIO_PORTE_AHB_DATA_R (*((volatile uint32_t *)0x4005C3FC))
1929
#define GPIO_PORTE_AHB_DIR_R (*((volatile uint32_t *)0x4005C400))
1930
#define GPIO_PORTE_AHB_IS_R (*((volatile uint32_t *)0x4005C404))
1931
#define GPIO_PORTE_AHB_IBE_R (*((volatile uint32_t *)0x4005C408))
1932
#define GPIO_PORTE_AHB_IEV_R (*((volatile uint32_t *)0x4005C40C))
1933
#define GPIO_PORTE_AHB_IM_R (*((volatile uint32_t *)0x4005C410))
1934
#define GPIO_PORTE_AHB_RIS_R (*((volatile uint32_t *)0x4005C414))
1935
#define GPIO_PORTE_AHB_MIS_R (*((volatile uint32_t *)0x4005C418))
1936
#define GPIO_PORTE_AHB_ICR_R (*((volatile uint32_t *)0x4005C41C))
1937
#define GPIO_PORTE_AHB_AFSEL_R (*((volatile uint32_t *)0x4005C420))
1938
#define GPIO_PORTE_AHB_DR2R_R (*((volatile uint32_t *)0x4005C500))
1939
#define GPIO_PORTE_AHB_DR4R_R (*((volatile uint32_t *)0x4005C504))
1940
#define GPIO_PORTE_AHB_DR8R_R (*((volatile uint32_t *)0x4005C508))
1941
#define GPIO_PORTE_AHB_ODR_R (*((volatile uint32_t *)0x4005C50C))
1942
#define GPIO_PORTE_AHB_PUR_R (*((volatile uint32_t *)0x4005C510))
1943
#define GPIO_PORTE_AHB_PDR_R (*((volatile uint32_t *)0x4005C514))
1944
#define GPIO_PORTE_AHB_SLR_R (*((volatile uint32_t *)0x4005C518))
1945
#define GPIO_PORTE_AHB_DEN_R (*((volatile uint32_t *)0x4005C51C))
1946
#define GPIO_PORTE_AHB_LOCK_R (*((volatile uint32_t *)0x4005C520))
1947
#define GPIO_PORTE_AHB_CR_R (*((volatile uint32_t *)0x4005C524))
1948
#define GPIO_PORTE_AHB_AMSEL_R (*((volatile uint32_t *)0x4005C528))
1949
#define GPIO_PORTE_AHB_PCTL_R (*((volatile uint32_t *)0x4005C52C))
1950
#define GPIO_PORTE_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005C530))
1951
#define GPIO_PORTE_AHB_DMACTL_R (*((volatile uint32_t *)0x4005C534))
1952
1953
//*****************************************************************************
1954
//
1955
// GPIO registers (PORTF AHB)
1956
//
1957
//*****************************************************************************
1958
#define GPIO_PORTF_AHB_DATA_BITS_R \
1959
((volatile uint32_t *)0x4005D000)
1960
#define GPIO_PORTF_AHB_DATA_R (*((volatile uint32_t *)0x4005D3FC))
1961
#define GPIO_PORTF_AHB_DIR_R (*((volatile uint32_t *)0x4005D400))
1962
#define GPIO_PORTF_AHB_IS_R (*((volatile uint32_t *)0x4005D404))
1963
#define GPIO_PORTF_AHB_IBE_R (*((volatile uint32_t *)0x4005D408))
1964
#define GPIO_PORTF_AHB_IEV_R (*((volatile uint32_t *)0x4005D40C))
1965
#define GPIO_PORTF_AHB_IM_R (*((volatile uint32_t *)0x4005D410))
1966
#define GPIO_PORTF_AHB_RIS_R (*((volatile uint32_t *)0x4005D414))
1967
#define GPIO_PORTF_AHB_MIS_R (*((volatile uint32_t *)0x4005D418))
1968
#define GPIO_PORTF_AHB_ICR_R (*((volatile uint32_t *)0x4005D41C))
1969
#define GPIO_PORTF_AHB_AFSEL_R (*((volatile uint32_t *)0x4005D420))
1970
#define GPIO_PORTF_AHB_DR2R_R (*((volatile uint32_t *)0x4005D500))
1971
#define GPIO_PORTF_AHB_DR4R_R (*((volatile uint32_t *)0x4005D504))
1972
#define GPIO_PORTF_AHB_DR8R_R (*((volatile uint32_t *)0x4005D508))
1973
#define GPIO_PORTF_AHB_ODR_R (*((volatile uint32_t *)0x4005D50C))
1974
#define GPIO_PORTF_AHB_PUR_R (*((volatile uint32_t *)0x4005D510))
1975
#define GPIO_PORTF_AHB_PDR_R (*((volatile uint32_t *)0x4005D514))
1976
#define GPIO_PORTF_AHB_SLR_R (*((volatile uint32_t *)0x4005D518))
1977
#define GPIO_PORTF_AHB_DEN_R (*((volatile uint32_t *)0x4005D51C))
1978
#define GPIO_PORTF_AHB_LOCK_R (*((volatile uint32_t *)0x4005D520))
1979
#define GPIO_PORTF_AHB_CR_R (*((volatile uint32_t *)0x4005D524))
1980
#define GPIO_PORTF_AHB_AMSEL_R (*((volatile uint32_t *)0x4005D528))
1981
#define GPIO_PORTF_AHB_PCTL_R (*((volatile uint32_t *)0x4005D52C))
1982
#define GPIO_PORTF_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005D530))
1983
#define GPIO_PORTF_AHB_DMACTL_R (*((volatile uint32_t *)0x4005D534))
1984
1985
//*****************************************************************************
1986
//
1987
// GPIO registers (PORTG AHB)
1988
//
1989
//*****************************************************************************
1990
#define GPIO_PORTG_AHB_DATA_BITS_R \
1991
((volatile uint32_t *)0x4005E000)
1992
#define GPIO_PORTG_AHB_DATA_R (*((volatile uint32_t *)0x4005E3FC))
1993
#define GPIO_PORTG_AHB_DIR_R (*((volatile uint32_t *)0x4005E400))
1994
#define GPIO_PORTG_AHB_IS_R (*((volatile uint32_t *)0x4005E404))
1995
#define GPIO_PORTG_AHB_IBE_R (*((volatile uint32_t *)0x4005E408))
1996
#define GPIO_PORTG_AHB_IEV_R (*((volatile uint32_t *)0x4005E40C))
1997
#define GPIO_PORTG_AHB_IM_R (*((volatile uint32_t *)0x4005E410))
1998
#define GPIO_PORTG_AHB_RIS_R (*((volatile uint32_t *)0x4005E414))
1999
#define GPIO_PORTG_AHB_MIS_R (*((volatile uint32_t *)0x4005E418))
2000
#define GPIO_PORTG_AHB_ICR_R (*((volatile uint32_t *)0x4005E41C))
2001
#define GPIO_PORTG_AHB_AFSEL_R (*((volatile uint32_t *)0x4005E420))
2002
#define GPIO_PORTG_AHB_DR2R_R (*((volatile uint32_t *)0x4005E500))
2003
#define GPIO_PORTG_AHB_DR4R_R (*((volatile uint32_t *)0x4005E504))
2004
#define GPIO_PORTG_AHB_DR8R_R (*((volatile uint32_t *)0x4005E508))
2005
#define GPIO_PORTG_AHB_ODR_R (*((volatile uint32_t *)0x4005E50C))
2006
#define GPIO_PORTG_AHB_PUR_R (*((volatile uint32_t *)0x4005E510))
2007
#define GPIO_PORTG_AHB_PDR_R (*((volatile uint32_t *)0x4005E514))
2008
#define GPIO_PORTG_AHB_SLR_R (*((volatile uint32_t *)0x4005E518))
2009
#define GPIO_PORTG_AHB_DEN_R (*((volatile uint32_t *)0x4005E51C))
2010
#define GPIO_PORTG_AHB_LOCK_R (*((volatile uint32_t *)0x4005E520))
2011
#define GPIO_PORTG_AHB_CR_R (*((volatile uint32_t *)0x4005E524))
2012
#define GPIO_PORTG_AHB_AMSEL_R (*((volatile uint32_t *)0x4005E528))
2013
#define GPIO_PORTG_AHB_PCTL_R (*((volatile uint32_t *)0x4005E52C))
2014
#define GPIO_PORTG_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005E530))
2015
#define GPIO_PORTG_AHB_DMACTL_R (*((volatile uint32_t *)0x4005E534))
2016
2017
//*****************************************************************************
2018
//
2019
// EEPROM registers (EEPROM)
2020
//
2021
//*****************************************************************************
2022
#define EEPROM_EESIZE_R (*((volatile uint32_t *)0x400AF000))
2023
#define EEPROM_EEBLOCK_R (*((volatile uint32_t *)0x400AF004))
2024
#define EEPROM_EEOFFSET_R (*((volatile uint32_t *)0x400AF008))
2025
#define EEPROM_EERDWR_R (*((volatile uint32_t *)0x400AF010))
2026
#define EEPROM_EERDWRINC_R (*((volatile uint32_t *)0x400AF014))
2027
#define EEPROM_EEDONE_R (*((volatile uint32_t *)0x400AF018))
2028
#define EEPROM_EESUPP_R (*((volatile uint32_t *)0x400AF01C))
2029
#define EEPROM_EEUNLOCK_R (*((volatile uint32_t *)0x400AF020))
2030
#define EEPROM_EEPROT_R (*((volatile uint32_t *)0x400AF030))
2031
#define EEPROM_EEPASS0_R (*((volatile uint32_t *)0x400AF034))
2032
#define EEPROM_EEPASS1_R (*((volatile uint32_t *)0x400AF038))
2033
#define EEPROM_EEPASS2_R (*((volatile uint32_t *)0x400AF03C))
2034
#define EEPROM_EEINT_R (*((volatile uint32_t *)0x400AF040))
2035
#define EEPROM_EEHIDE_R (*((volatile uint32_t *)0x400AF050))
2036
#define EEPROM_EEDBGME_R (*((volatile uint32_t *)0x400AF080))
2037
#define EEPROM_PP_R (*((volatile uint32_t *)0x400AFFC0))
2038
2039
//*****************************************************************************
2040
//
2041
// I2C registers (I2C4)
2042
//
2043
//*****************************************************************************
2044
#define I2C4_MSA_R (*((volatile uint32_t *)0x400C0000))
2045
#define I2C4_MCS_R (*((volatile uint32_t *)0x400C0004))
2046
#define I2C4_MDR_R (*((volatile uint32_t *)0x400C0008))
2047
#define I2C4_MTPR_R (*((volatile uint32_t *)0x400C000C))
2048
#define I2C4_MIMR_R (*((volatile uint32_t *)0x400C0010))
2049
#define I2C4_MRIS_R (*((volatile uint32_t *)0x400C0014))
2050
#define I2C4_MMIS_R (*((volatile uint32_t *)0x400C0018))
2051
#define I2C4_MICR_R (*((volatile uint32_t *)0x400C001C))
2052
#define I2C4_MCR_R (*((volatile uint32_t *)0x400C0020))
2053
#define I2C4_MCLKOCNT_R (*((volatile uint32_t *)0x400C0024))
2054
#define I2C4_MBMON_R (*((volatile uint32_t *)0x400C002C))
2055
#define I2C4_MCR2_R (*((volatile uint32_t *)0x400C0038))
2056
#define I2C4_SOAR_R (*((volatile uint32_t *)0x400C0800))
2057
#define I2C4_SCSR_R (*((volatile uint32_t *)0x400C0804))
2058
#define I2C4_SDR_R (*((volatile uint32_t *)0x400C0808))
2059
#define I2C4_SIMR_R (*((volatile uint32_t *)0x400C080C))
2060
#define I2C4_SRIS_R (*((volatile uint32_t *)0x400C0810))
2061
#define I2C4_SMIS_R (*((volatile uint32_t *)0x400C0814))
2062
#define I2C4_SICR_R (*((volatile uint32_t *)0x400C0818))
2063
#define I2C4_SOAR2_R (*((volatile uint32_t *)0x400C081C))
2064
#define I2C4_SACKCTL_R (*((volatile uint32_t *)0x400C0820))
2065
#define I2C4_PP_R (*((volatile uint32_t *)0x400C0FC0))
2066
#define I2C4_PC_R (*((volatile uint32_t *)0x400C0FC4))
2067
2068
//*****************************************************************************
2069
//
2070
// I2C registers (I2C5)
2071
//
2072
//*****************************************************************************
2073
#define I2C5_MSA_R (*((volatile uint32_t *)0x400C1000))
2074
#define I2C5_MCS_R (*((volatile uint32_t *)0x400C1004))
2075
#define I2C5_MDR_R (*((volatile uint32_t *)0x400C1008))
2076
#define I2C5_MTPR_R (*((volatile uint32_t *)0x400C100C))
2077
#define I2C5_MIMR_R (*((volatile uint32_t *)0x400C1010))
2078
#define I2C5_MRIS_R (*((volatile uint32_t *)0x400C1014))
2079
#define I2C5_MMIS_R (*((volatile uint32_t *)0x400C1018))
2080
#define I2C5_MICR_R (*((volatile uint32_t *)0x400C101C))
2081
#define I2C5_MCR_R (*((volatile uint32_t *)0x400C1020))
2082
#define I2C5_MCLKOCNT_R (*((volatile uint32_t *)0x400C1024))
2083
#define I2C5_MBMON_R (*((volatile uint32_t *)0x400C102C))
2084
#define I2C5_MCR2_R (*((volatile uint32_t *)0x400C1038))
2085
#define I2C5_SOAR_R (*((volatile uint32_t *)0x400C1800))
2086
#define I2C5_SCSR_R (*((volatile uint32_t *)0x400C1804))
2087
#define I2C5_SDR_R (*((volatile uint32_t *)0x400C1808))
2088
#define I2C5_SIMR_R (*((volatile uint32_t *)0x400C180C))
2089
#define I2C5_SRIS_R (*((volatile uint32_t *)0x400C1810))
2090
#define I2C5_SMIS_R (*((volatile uint32_t *)0x400C1814))
2091
#define I2C5_SICR_R (*((volatile uint32_t *)0x400C1818))
2092
#define I2C5_SOAR2_R (*((volatile uint32_t *)0x400C181C))
2093
#define I2C5_SACKCTL_R (*((volatile uint32_t *)0x400C1820))
2094
#define I2C5_PP_R (*((volatile uint32_t *)0x400C1FC0))
2095
#define I2C5_PC_R (*((volatile uint32_t *)0x400C1FC4))
2096
2097
//*****************************************************************************
2098
//
2099
// System Exception Module registers (SYSEXC)
2100
//
2101
//*****************************************************************************
2102
#define SYSEXC_RIS_R (*((volatile uint32_t *)0x400F9000))
2103
#define SYSEXC_IM_R (*((volatile uint32_t *)0x400F9004))
2104
#define SYSEXC_MIS_R (*((volatile uint32_t *)0x400F9008))
2105
#define SYSEXC_IC_R (*((volatile uint32_t *)0x400F900C))
2106
2107
//*****************************************************************************
2108
//
2109
// FLASH registers (FLASH CTRL)
2110
//
2111
//*****************************************************************************
2112
#define FLASH_FMA_R (*((volatile uint32_t *)0x400FD000))
2113
#define FLASH_FMD_R (*((volatile uint32_t *)0x400FD004))
2114
#define FLASH_FMC_R (*((volatile uint32_t *)0x400FD008))
2115
#define FLASH_FCRIS_R (*((volatile uint32_t *)0x400FD00C))
2116
#define FLASH_FCIM_R (*((volatile uint32_t *)0x400FD010))
2117
#define FLASH_FCMISC_R (*((volatile uint32_t *)0x400FD014))
2118
#define FLASH_FMC2_R (*((volatile uint32_t *)0x400FD020))
2119
#define FLASH_FWBVAL_R (*((volatile uint32_t *)0x400FD030))
2120
#define FLASH_FWBN_R (*((volatile uint32_t *)0x400FD100))
2121
#define FLASH_FSIZE_R (*((volatile uint32_t *)0x400FDFC0))
2122
#define FLASH_SSIZE_R (*((volatile uint32_t *)0x400FDFC4))
2123
#define FLASH_ROMSWMAP_R (*((volatile uint32_t *)0x400FDFCC))
2124
#define FLASH_RMCTL_R (*((volatile uint32_t *)0x400FE0F0))
2125
#define FLASH_BOOTCFG_R (*((volatile uint32_t *)0x400FE1D0))
2126
#define FLASH_USERREG0_R (*((volatile uint32_t *)0x400FE1E0))
2127
#define FLASH_USERREG1_R (*((volatile uint32_t *)0x400FE1E4))
2128
#define FLASH_USERREG2_R (*((volatile uint32_t *)0x400FE1E8))
2129
#define FLASH_USERREG3_R (*((volatile uint32_t *)0x400FE1EC))
2130
#define FLASH_FMPRE0_R (*((volatile uint32_t *)0x400FE200))
2131
#define FLASH_FMPRE1_R (*((volatile uint32_t *)0x400FE204))
2132
#define FLASH_FMPPE0_R (*((volatile uint32_t *)0x400FE400))
2133
#define FLASH_FMPPE1_R (*((volatile uint32_t *)0x400FE404))
2134
2135
//*****************************************************************************
2136
//
2137
// System Control registers (SYSCTL)
2138
//
2139
//*****************************************************************************
2140
#define SYSCTL_DID0_R (*((volatile uint32_t *)0x400FE000))
2141
#define SYSCTL_DID1_R (*((volatile uint32_t *)0x400FE004))
2142
#define SYSCTL_DC0_R (*((volatile uint32_t *)0x400FE008))
2143
#define SYSCTL_DC1_R (*((volatile uint32_t *)0x400FE010))
2144
#define SYSCTL_DC2_R (*((volatile uint32_t *)0x400FE014))
2145
#define SYSCTL_DC3_R (*((volatile uint32_t *)0x400FE018))
2146
#define SYSCTL_DC4_R (*((volatile uint32_t *)0x400FE01C))
2147
#define SYSCTL_DC5_R (*((volatile uint32_t *)0x400FE020))
2148
#define SYSCTL_DC6_R (*((volatile uint32_t *)0x400FE024))
2149
#define SYSCTL_DC7_R (*((volatile uint32_t *)0x400FE028))
2150
#define SYSCTL_DC8_R (*((volatile uint32_t *)0x400FE02C))
2151
#define SYSCTL_PBORCTL_R (*((volatile uint32_t *)0x400FE030))
2152
#define SYSCTL_SRCR0_R (*((volatile uint32_t *)0x400FE040))
2153
#define SYSCTL_SRCR1_R (*((volatile uint32_t *)0x400FE044))
2154
#define SYSCTL_SRCR2_R (*((volatile uint32_t *)0x400FE048))
2155
#define SYSCTL_RIS_R (*((volatile uint32_t *)0x400FE050))
2156
#define SYSCTL_IMC_R (*((volatile uint32_t *)0x400FE054))
2157
#define SYSCTL_MISC_R (*((volatile uint32_t *)0x400FE058))
2158
#define SYSCTL_RESC_R (*((volatile uint32_t *)0x400FE05C))
2159
#define SYSCTL_RCC_R (*((volatile uint32_t *)0x400FE060))
2160
#define SYSCTL_GPIOHBCTL_R (*((volatile uint32_t *)0x400FE06C))
2161
#define SYSCTL_RCC2_R (*((volatile uint32_t *)0x400FE070))
2162
#define SYSCTL_MOSCCTL_R (*((volatile uint32_t *)0x400FE07C))
2163
#define SYSCTL_RCGC0_R (*((volatile uint32_t *)0x400FE100))
2164
#define SYSCTL_RCGC1_R (*((volatile uint32_t *)0x400FE104))
2165
#define SYSCTL_RCGC2_R (*((volatile uint32_t *)0x400FE108))
2166
#define SYSCTL_SCGC0_R (*((volatile uint32_t *)0x400FE110))
2167
#define SYSCTL_SCGC1_R (*((volatile uint32_t *)0x400FE114))
2168
#define SYSCTL_SCGC2_R (*((volatile uint32_t *)0x400FE118))
2169
#define SYSCTL_DCGC0_R (*((volatile uint32_t *)0x400FE120))
2170
#define SYSCTL_DCGC1_R (*((volatile uint32_t *)0x400FE124))
2171
#define SYSCTL_DCGC2_R (*((volatile uint32_t *)0x400FE128))
2172
#define SYSCTL_DSLPCLKCFG_R (*((volatile uint32_t *)0x400FE144))
2173
#define SYSCTL_SYSPROP_R (*((volatile uint32_t *)0x400FE14C))
2174
#define SYSCTL_PIOSCCAL_R (*((volatile uint32_t *)0x400FE150))
2175
#define SYSCTL_PLLFREQ0_R (*((volatile uint32_t *)0x400FE160))
2176
#define SYSCTL_PLLFREQ1_R (*((volatile uint32_t *)0x400FE164))
2177
#define SYSCTL_PLLSTAT_R (*((volatile uint32_t *)0x400FE168))
2178
#define SYSCTL_SLPPWRCFG_R (*((volatile uint32_t *)0x400FE188))
2179
#define SYSCTL_DSLPPWRCFG_R (*((volatile uint32_t *)0x400FE18C))
2180
#define SYSCTL_DC9_R (*((volatile uint32_t *)0x400FE190))
2181
#define SYSCTL_NVMSTAT_R (*((volatile uint32_t *)0x400FE1A0))
2182
#define SYSCTL_LDOSPCTL_R (*((volatile uint32_t *)0x400FE1B4))
2183
#define SYSCTL_LDODPCTL_R (*((volatile uint32_t *)0x400FE1BC))
2184
#define SYSCTL_PPWD_R (*((volatile uint32_t *)0x400FE300))
2185
#define SYSCTL_PPTIMER_R (*((volatile uint32_t *)0x400FE304))
2186
#define SYSCTL_PPGPIO_R (*((volatile uint32_t *)0x400FE308))
2187
#define SYSCTL_PPDMA_R (*((volatile uint32_t *)0x400FE30C))
2188
#define SYSCTL_PPHIB_R (*((volatile uint32_t *)0x400FE314))
2189
#define SYSCTL_PPUART_R (*((volatile uint32_t *)0x400FE318))
2190
#define SYSCTL_PPSSI_R (*((volatile uint32_t *)0x400FE31C))
2191
#define SYSCTL_PPI2C_R (*((volatile uint32_t *)0x400FE320))
2192
#define SYSCTL_PPUSB_R (*((volatile uint32_t *)0x400FE328))
2193
#define SYSCTL_PPCAN_R (*((volatile uint32_t *)0x400FE334))
2194
#define SYSCTL_PPADC_R (*((volatile uint32_t *)0x400FE338))
2195
#define SYSCTL_PPACMP_R (*((volatile uint32_t *)0x400FE33C))
2196
#define SYSCTL_PPPWM_R (*((volatile uint32_t *)0x400FE340))
2197
#define SYSCTL_PPQEI_R (*((volatile uint32_t *)0x400FE344))
2198
#define SYSCTL_PPEEPROM_R (*((volatile uint32_t *)0x400FE358))
2199
#define SYSCTL_PPWTIMER_R (*((volatile uint32_t *)0x400FE35C))
2200
#define SYSCTL_SRWD_R (*((volatile uint32_t *)0x400FE500))
2201
#define SYSCTL_SRTIMER_R (*((volatile uint32_t *)0x400FE504))
2202
#define SYSCTL_SRGPIO_R (*((volatile uint32_t *)0x400FE508))
2203
#define SYSCTL_SRDMA_R (*((volatile uint32_t *)0x400FE50C))
2204
#define SYSCTL_SRUART_R (*((volatile uint32_t *)0x400FE518))
2205
#define SYSCTL_SRSSI_R (*((volatile uint32_t *)0x400FE51C))
2206
#define SYSCTL_SRI2C_R (*((volatile uint32_t *)0x400FE520))
2207
#define SYSCTL_SRUSB_R (*((volatile uint32_t *)0x400FE528))
2208
#define SYSCTL_SRCAN_R (*((volatile uint32_t *)0x400FE534))
2209
#define SYSCTL_SRADC_R (*((volatile uint32_t *)0x400FE538))
2210
#define SYSCTL_SRACMP_R (*((volatile uint32_t *)0x400FE53C))
2211
#define SYSCTL_SRPWM_R (*((volatile uint32_t *)0x400FE540))
2212
#define SYSCTL_SRQEI_R (*((volatile uint32_t *)0x400FE544))
2213
#define SYSCTL_SREEPROM_R (*((volatile uint32_t *)0x400FE558))
2214
#define SYSCTL_SRWTIMER_R (*((volatile uint32_t *)0x400FE55C))
2215
#define SYSCTL_RCGCWD_R (*((volatile uint32_t *)0x400FE600))
2216
#define SYSCTL_RCGCTIMER_R (*((volatile uint32_t *)0x400FE604))
2217
#define SYSCTL_RCGCGPIO_R (*((volatile uint32_t *)0x400FE608))
2218
#define SYSCTL_RCGCDMA_R (*((volatile uint32_t *)0x400FE60C))
2219
#define SYSCTL_RCGCUART_R (*((volatile uint32_t *)0x400FE618))
2220
#define SYSCTL_RCGCSSI_R (*((volatile uint32_t *)0x400FE61C))
2221
#define SYSCTL_RCGCI2C_R (*((volatile uint32_t *)0x400FE620))
2222
#define SYSCTL_RCGCUSB_R (*((volatile uint32_t *)0x400FE628))
2223
#define SYSCTL_RCGCCAN_R (*((volatile uint32_t *)0x400FE634))
2224
#define SYSCTL_RCGCADC_R (*((volatile uint32_t *)0x400FE638))
2225
#define SYSCTL_RCGCACMP_R (*((volatile uint32_t *)0x400FE63C))
2226
#define SYSCTL_RCGCPWM_R (*((volatile uint32_t *)0x400FE640))
2227
#define SYSCTL_RCGCQEI_R (*((volatile uint32_t *)0x400FE644))
2228
#define SYSCTL_RCGCEEPROM_R (*((volatile uint32_t *)0x400FE658))
2229
#define SYSCTL_RCGCWTIMER_R (*((volatile uint32_t *)0x400FE65C))
2230
#define SYSCTL_SCGCWD_R (*((volatile uint32_t *)0x400FE700))
2231
#define SYSCTL_SCGCTIMER_R (*((volatile uint32_t *)0x400FE704))
2232
#define SYSCTL_SCGCGPIO_R (*((volatile uint32_t *)0x400FE708))
2233
#define SYSCTL_SCGCDMA_R (*((volatile uint32_t *)0x400FE70C))
2234
#define SYSCTL_SCGCUART_R (*((volatile uint32_t *)0x400FE718))
2235
#define SYSCTL_SCGCSSI_R (*((volatile uint32_t *)0x400FE71C))
2236
#define SYSCTL_SCGCI2C_R (*((volatile uint32_t *)0x400FE720))
2237
#define SYSCTL_SCGCUSB_R (*((volatile uint32_t *)0x400FE728))
2238
#define SYSCTL_SCGCCAN_R (*((volatile uint32_t *)0x400FE734))
2239
#define SYSCTL_SCGCADC_R (*((volatile uint32_t *)0x400FE738))
2240
#define SYSCTL_SCGCACMP_R (*((volatile uint32_t *)0x400FE73C))
2241
#define SYSCTL_SCGCPWM_R (*((volatile uint32_t *)0x400FE740))
2242
#define SYSCTL_SCGCQEI_R (*((volatile uint32_t *)0x400FE744))
2243
#define SYSCTL_SCGCEEPROM_R (*((volatile uint32_t *)0x400FE758))
2244
#define SYSCTL_SCGCWTIMER_R (*((volatile uint32_t *)0x400FE75C))
2245
#define SYSCTL_DCGCWD_R (*((volatile uint32_t *)0x400FE800))
2246
#define SYSCTL_DCGCTIMER_R (*((volatile uint32_t *)0x400FE804))
2247
#define SYSCTL_DCGCGPIO_R (*((volatile uint32_t *)0x400FE808))
2248
#define SYSCTL_DCGCDMA_R (*((volatile uint32_t *)0x400FE80C))
2249
#define SYSCTL_DCGCUART_R (*((volatile uint32_t *)0x400FE818))
2250
#define SYSCTL_DCGCSSI_R (*((volatile uint32_t *)0x400FE81C))
2251
#define SYSCTL_DCGCI2C_R (*((volatile uint32_t *)0x400FE820))
2252
#define SYSCTL_DCGCUSB_R (*((volatile uint32_t *)0x400FE828))
2253
#define SYSCTL_DCGCCAN_R (*((volatile uint32_t *)0x400FE834))
2254
#define SYSCTL_DCGCADC_R (*((volatile uint32_t *)0x400FE838))
2255
#define SYSCTL_DCGCACMP_R (*((volatile uint32_t *)0x400FE83C))
2256
#define SYSCTL_DCGCPWM_R (*((volatile uint32_t *)0x400FE840))
2257
#define SYSCTL_DCGCQEI_R (*((volatile uint32_t *)0x400FE844))
2258
#define SYSCTL_DCGCEEPROM_R (*((volatile uint32_t *)0x400FE858))
2259
#define SYSCTL_DCGCWTIMER_R (*((volatile uint32_t *)0x400FE85C))
2260
#define SYSCTL_PRWD_R (*((volatile uint32_t *)0x400FEA00))
2261
#define SYSCTL_PRTIMER_R (*((volatile uint32_t *)0x400FEA04))
2262
#define SYSCTL_PRGPIO_R (*((volatile uint32_t *)0x400FEA08))
2263
#define SYSCTL_PRDMA_R (*((volatile uint32_t *)0x400FEA0C))
2264
#define SYSCTL_PRUART_R (*((volatile uint32_t *)0x400FEA18))
2265
#define SYSCTL_PRSSI_R (*((volatile uint32_t *)0x400FEA1C))
2266
#define SYSCTL_PRI2C_R (*((volatile uint32_t *)0x400FEA20))
2267
#define SYSCTL_PRUSB_R (*((volatile uint32_t *)0x400FEA28))
2268
#define SYSCTL_PRCAN_R (*((volatile uint32_t *)0x400FEA34))
2269
#define SYSCTL_PRADC_R (*((volatile uint32_t *)0x400FEA38))
2270
#define SYSCTL_PRACMP_R (*((volatile uint32_t *)0x400FEA3C))
2271
#define SYSCTL_PRPWM_R (*((volatile uint32_t *)0x400FEA40))
2272
#define SYSCTL_PRQEI_R (*((volatile uint32_t *)0x400FEA44))
2273
#define SYSCTL_PREEPROM_R (*((volatile uint32_t *)0x400FEA58))
2274
#define SYSCTL_PRWTIMER_R (*((volatile uint32_t *)0x400FEA5C))
2275
2276
//*****************************************************************************
2277
//
2278
// Micro Direct Memory Access registers (UDMA)
2279
//
2280
//*****************************************************************************
2281
#define UDMA_STAT_R (*((volatile uint32_t *)0x400FF000))
2282
#define UDMA_CFG_R (*((volatile uint32_t *)0x400FF004))
2283
#define UDMA_CTLBASE_R (*((volatile uint32_t *)0x400FF008))
2284
#define UDMA_ALTBASE_R (*((volatile uint32_t *)0x400FF00C))
2285
#define UDMA_WAITSTAT_R (*((volatile uint32_t *)0x400FF010))
2286
#define UDMA_SWREQ_R (*((volatile uint32_t *)0x400FF014))
2287
#define UDMA_USEBURSTSET_R (*((volatile uint32_t *)0x400FF018))
2288
#define UDMA_USEBURSTCLR_R (*((volatile uint32_t *)0x400FF01C))
2289
#define UDMA_REQMASKSET_R (*((volatile uint32_t *)0x400FF020))
2290
#define UDMA_REQMASKCLR_R (*((volatile uint32_t *)0x400FF024))
2291
#define UDMA_ENASET_R (*((volatile uint32_t *)0x400FF028))
2292
#define UDMA_ENACLR_R (*((volatile uint32_t *)0x400FF02C))
2293
#define UDMA_ALTSET_R (*((volatile uint32_t *)0x400FF030))
2294
#define UDMA_ALTCLR_R (*((volatile uint32_t *)0x400FF034))
2295
#define UDMA_PRIOSET_R (*((volatile uint32_t *)0x400FF038))
2296
#define UDMA_PRIOCLR_R (*((volatile uint32_t *)0x400FF03C))
2297
#define UDMA_ERRCLR_R (*((volatile uint32_t *)0x400FF04C))
2298
#define UDMA_CHASGN_R (*((volatile uint32_t *)0x400FF500))
2299
#define UDMA_CHIS_R (*((volatile uint32_t *)0x400FF504))
2300
#define UDMA_CHMAP0_R (*((volatile uint32_t *)0x400FF510))
2301
#define UDMA_CHMAP1_R (*((volatile uint32_t *)0x400FF514))
2302
#define UDMA_CHMAP2_R (*((volatile uint32_t *)0x400FF518))
2303
#define UDMA_CHMAP3_R (*((volatile uint32_t *)0x400FF51C))
2304
2305
//*****************************************************************************
2306
//
2307
// Micro Direct Memory Access (uDMA) offsets (UDMA)
2308
//
2309
//*****************************************************************************
2310
#define UDMA_SRCENDP 0x00000000 // DMA Channel Source Address End
2311
// Pointer
2312
#define UDMA_DSTENDP 0x00000004 // DMA Channel Destination Address
2313
// End Pointer
2314
#define UDMA_CHCTL 0x00000008 // DMA Channel Control Word
2315
2316
//*****************************************************************************
2317
//
2318
// NVIC registers (NVIC)
2319
//
2320
//*****************************************************************************
2321
#define NVIC_ACTLR_R (*((volatile uint32_t *)0xE000E008))
2322
#define NVIC_ST_CTRL_R (*((volatile uint32_t *)0xE000E010))
2323
#define NVIC_ST_RELOAD_R (*((volatile uint32_t *)0xE000E014))
2324
#define NVIC_ST_CURRENT_R (*((volatile uint32_t *)0xE000E018))
2325
#define NVIC_EN0_R (*((volatile uint32_t *)0xE000E100))
2326
#define NVIC_EN1_R (*((volatile uint32_t *)0xE000E104))
2327
#define NVIC_EN2_R (*((volatile uint32_t *)0xE000E108))
2328
#define NVIC_EN3_R (*((volatile uint32_t *)0xE000E10C))
2329
#define NVIC_EN4_R (*((volatile uint32_t *)0xE000E110))
2330
#define NVIC_DIS0_R (*((volatile uint32_t *)0xE000E180))
2331
#define NVIC_DIS1_R (*((volatile uint32_t *)0xE000E184))
2332
#define NVIC_DIS2_R (*((volatile uint32_t *)0xE000E188))
2333
#define NVIC_DIS3_R (*((volatile uint32_t *)0xE000E18C))
2334
#define NVIC_DIS4_R (*((volatile uint32_t *)0xE000E190))
2335
#define NVIC_PEND0_R (*((volatile uint32_t *)0xE000E200))
2336
#define NVIC_PEND1_R (*((volatile uint32_t *)0xE000E204))
2337
#define NVIC_PEND2_R (*((volatile uint32_t *)0xE000E208))
2338
#define NVIC_PEND3_R (*((volatile uint32_t *)0xE000E20C))
2339
#define NVIC_PEND4_R (*((volatile uint32_t *)0xE000E210))
2340
#define NVIC_UNPEND0_R (*((volatile uint32_t *)0xE000E280))
2341
#define NVIC_UNPEND1_R (*((volatile uint32_t *)0xE000E284))
2342
#define NVIC_UNPEND2_R (*((volatile uint32_t *)0xE000E288))
2343
#define NVIC_UNPEND3_R (*((volatile uint32_t *)0xE000E28C))
2344
#define NVIC_UNPEND4_R (*((volatile uint32_t *)0xE000E290))
2345
#define NVIC_ACTIVE0_R (*((volatile uint32_t *)0xE000E300))
2346
#define NVIC_ACTIVE1_R (*((volatile uint32_t *)0xE000E304))
2347
#define NVIC_ACTIVE2_R (*((volatile uint32_t *)0xE000E308))
2348
#define NVIC_ACTIVE3_R (*((volatile uint32_t *)0xE000E30C))
2349
#define NVIC_ACTIVE4_R (*((volatile uint32_t *)0xE000E310))
2350
#define NVIC_PRI0_R (*((volatile uint32_t *)0xE000E400))
2351
#define NVIC_PRI1_R (*((volatile uint32_t *)0xE000E404))
2352
#define NVIC_PRI2_R (*((volatile uint32_t *)0xE000E408))
2353
#define NVIC_PRI3_R (*((volatile uint32_t *)0xE000E40C))
2354
#define NVIC_PRI4_R (*((volatile uint32_t *)0xE000E410))
2355
#define NVIC_PRI5_R (*((volatile uint32_t *)0xE000E414))
2356
#define NVIC_PRI6_R (*((volatile uint32_t *)0xE000E418))
2357
#define NVIC_PRI7_R (*((volatile uint32_t *)0xE000E41C))
2358
#define NVIC_PRI8_R (*((volatile uint32_t *)0xE000E420))
2359
#define NVIC_PRI9_R (*((volatile uint32_t *)0xE000E424))
2360
#define NVIC_PRI10_R (*((volatile uint32_t *)0xE000E428))
2361
#define NVIC_PRI11_R (*((volatile uint32_t *)0xE000E42C))
2362
#define NVIC_PRI12_R (*((volatile uint32_t *)0xE000E430))
2363
#define NVIC_PRI13_R (*((volatile uint32_t *)0xE000E434))
2364
#define NVIC_PRI14_R (*((volatile uint32_t *)0xE000E438))
2365
#define NVIC_PRI15_R (*((volatile uint32_t *)0xE000E43C))
2366
#define NVIC_PRI16_R (*((volatile uint32_t *)0xE000E440))
2367
#define NVIC_PRI17_R (*((volatile uint32_t *)0xE000E444))
2368
#define NVIC_PRI18_R (*((volatile uint32_t *)0xE000E448))
2369
#define NVIC_PRI19_R (*((volatile uint32_t *)0xE000E44C))
2370
#define NVIC_PRI20_R (*((volatile uint32_t *)0xE000E450))
2371
#define NVIC_PRI21_R (*((volatile uint32_t *)0xE000E454))
2372
#define NVIC_PRI22_R (*((volatile uint32_t *)0xE000E458))
2373
#define NVIC_PRI23_R (*((volatile uint32_t *)0xE000E45C))
2374
#define NVIC_PRI24_R (*((volatile uint32_t *)0xE000E460))
2375
#define NVIC_PRI25_R (*((volatile uint32_t *)0xE000E464))
2376
#define NVIC_PRI26_R (*((volatile uint32_t *)0xE000E468))
2377
#define NVIC_PRI27_R (*((volatile uint32_t *)0xE000E46C))
2378
#define NVIC_PRI28_R (*((volatile uint32_t *)0xE000E470))
2379
#define NVIC_PRI29_R (*((volatile uint32_t *)0xE000E474))
2380
#define NVIC_PRI30_R (*((volatile uint32_t *)0xE000E478))
2381
#define NVIC_PRI31_R (*((volatile uint32_t *)0xE000E47C))
2382
#define NVIC_PRI32_R (*((volatile uint32_t *)0xE000E480))
2383
#define NVIC_PRI33_R (*((volatile uint32_t *)0xE000E484))
2384
#define NVIC_PRI34_R (*((volatile uint32_t *)0xE000E488))
2385
#define NVIC_CPUID_R (*((volatile uint32_t *)0xE000ED00))
2386
#define NVIC_INT_CTRL_R (*((volatile uint32_t *)0xE000ED04))
2387
#define NVIC_VTABLE_R (*((volatile uint32_t *)0xE000ED08))
2388
#define NVIC_APINT_R (*((volatile uint32_t *)0xE000ED0C))
2389
#define NVIC_SYS_CTRL_R (*((volatile uint32_t *)0xE000ED10))
2390
#define NVIC_CFG_CTRL_R (*((volatile uint32_t *)0xE000ED14))
2391
#define NVIC_SYS_PRI1_R (*((volatile uint32_t *)0xE000ED18))
2392
#define NVIC_SYS_PRI2_R (*((volatile uint32_t *)0xE000ED1C))
2393
#define NVIC_SYS_PRI3_R (*((volatile uint32_t *)0xE000ED20))
2394
#define NVIC_SYS_HND_CTRL_R (*((volatile uint32_t *)0xE000ED24))
2395
#define NVIC_FAULT_STAT_R (*((volatile uint32_t *)0xE000ED28))
2396
#define NVIC_HFAULT_STAT_R (*((volatile uint32_t *)0xE000ED2C))
2397
#define NVIC_DEBUG_STAT_R (*((volatile uint32_t *)0xE000ED30))
2398
#define NVIC_MM_ADDR_R (*((volatile uint32_t *)0xE000ED34))
2399
#define NVIC_FAULT_ADDR_R (*((volatile uint32_t *)0xE000ED38))
2400
#define NVIC_CPAC_R (*((volatile uint32_t *)0xE000ED88))
2401
#define NVIC_MPU_TYPE_R (*((volatile uint32_t *)0xE000ED90))
2402
#define NVIC_MPU_CTRL_R (*((volatile uint32_t *)0xE000ED94))
2403
#define NVIC_MPU_NUMBER_R (*((volatile uint32_t *)0xE000ED98))
2404
#define NVIC_MPU_BASE_R (*((volatile uint32_t *)0xE000ED9C))
2405
#define NVIC_MPU_ATTR_R (*((volatile uint32_t *)0xE000EDA0))
2406
#define NVIC_MPU_BASE1_R (*((volatile uint32_t *)0xE000EDA4))
2407
#define NVIC_MPU_ATTR1_R (*((volatile uint32_t *)0xE000EDA8))
2408
#define NVIC_MPU_BASE2_R (*((volatile uint32_t *)0xE000EDAC))
2409
#define NVIC_MPU_ATTR2_R (*((volatile uint32_t *)0xE000EDB0))
2410
#define NVIC_MPU_BASE3_R (*((volatile uint32_t *)0xE000EDB4))
2411
#define NVIC_MPU_ATTR3_R (*((volatile uint32_t *)0xE000EDB8))
2412
#define NVIC_DBG_CTRL_R (*((volatile uint32_t *)0xE000EDF0))
2413
#define NVIC_DBG_XFER_R (*((volatile uint32_t *)0xE000EDF4))
2414
#define NVIC_DBG_DATA_R (*((volatile uint32_t *)0xE000EDF8))
2415
#define NVIC_DBG_INT_R (*((volatile uint32_t *)0xE000EDFC))
2416
#define NVIC_SW_TRIG_R (*((volatile uint32_t *)0xE000EF00))
2417
#define NVIC_FPCC_R (*((volatile uint32_t *)0xE000EF34))
2418
#define NVIC_FPCA_R (*((volatile uint32_t *)0xE000EF38))
2419
#define NVIC_FPDSC_R (*((volatile uint32_t *)0xE000EF3C))
2420
2421
//*****************************************************************************
2422
//
2423
// The following are defines for the bit fields in the WDT_O_LOAD register.
2424
//
2425
//*****************************************************************************
2426
#define WDT_LOAD_M 0xFFFFFFFF // Watchdog Load Value
2427
#define WDT_LOAD_S 0
2428
2429
//*****************************************************************************
2430
//
2431
// The following are defines for the bit fields in the WDT_O_VALUE register.
2432
//
2433
//*****************************************************************************
2434
#define WDT_VALUE_M 0xFFFFFFFF // Watchdog Value
2435
#define WDT_VALUE_S 0
2436
2437
//*****************************************************************************
2438
//
2439
// The following are defines for the bit fields in the WDT_O_CTL register.
2440
//
2441
//*****************************************************************************
2442
#define WDT_CTL_WRC 0x80000000 // Write Complete
2443
#define WDT_CTL_INTTYPE 0x00000004 // Watchdog Interrupt Type
2444
#define WDT_CTL_RESEN 0x00000002 // Watchdog Reset Enable
2445
#define WDT_CTL_INTEN 0x00000001 // Watchdog Interrupt Enable
2446
2447
//*****************************************************************************
2448
//
2449
// The following are defines for the bit fields in the WDT_O_ICR register.
2450
//
2451
//*****************************************************************************
2452
#define WDT_ICR_M 0xFFFFFFFF // Watchdog Interrupt Clear
2453
#define WDT_ICR_S 0
2454
2455
//*****************************************************************************
2456
//
2457
// The following are defines for the bit fields in the WDT_O_RIS register.
2458
//
2459
//*****************************************************************************
2460
#define WDT_RIS_WDTRIS 0x00000001 // Watchdog Raw Interrupt Status
2461
2462
//*****************************************************************************
2463
//
2464
// The following are defines for the bit fields in the WDT_O_MIS register.
2465
//
2466
//*****************************************************************************
2467
#define WDT_MIS_WDTMIS 0x00000001 // Watchdog Masked Interrupt Status
2468
2469
//*****************************************************************************
2470
//
2471
// The following are defines for the bit fields in the WDT_O_TEST register.
2472
//
2473
//*****************************************************************************
2474
#define WDT_TEST_STALL 0x00000100 // Watchdog Stall Enable
2475
2476
//*****************************************************************************
2477
//
2478
// The following are defines for the bit fields in the WDT_O_LOCK register.
2479
//
2480
//*****************************************************************************
2481
#define WDT_LOCK_M 0xFFFFFFFF // Watchdog Lock
2482
#define WDT_LOCK_UNLOCKED 0x00000000 // Unlocked
2483
#define WDT_LOCK_LOCKED 0x00000001 // Locked
2484
#define WDT_LOCK_UNLOCK 0x1ACCE551 // Unlocks the watchdog timer
2485
2486
//*****************************************************************************
2487
//
2488
// The following are defines for the bit fields in the GPIO_O_IM register.
2489
//
2490
//*****************************************************************************
2491
#define GPIO_IM_GPIO_M 0x000000FF // GPIO Interrupt Mask Enable
2492
#define GPIO_IM_GPIO_S 0
2493
2494
//*****************************************************************************
2495
//
2496
// The following are defines for the bit fields in the GPIO_O_RIS register.
2497
//
2498
//*****************************************************************************
2499
#define GPIO_RIS_GPIO_M 0x000000FF // GPIO Interrupt Raw Status
2500
#define GPIO_RIS_GPIO_S 0
2501
2502
//*****************************************************************************
2503
//
2504
// The following are defines for the bit fields in the GPIO_O_MIS register.
2505
//
2506
//*****************************************************************************
2507
#define GPIO_MIS_GPIO_M 0x000000FF // GPIO Masked Interrupt Status
2508
#define GPIO_MIS_GPIO_S 0
2509
2510
//*****************************************************************************
2511
//
2512
// The following are defines for the bit fields in the GPIO_O_ICR register.
2513
//
2514
//*****************************************************************************
2515
#define GPIO_ICR_GPIO_M 0x000000FF // GPIO Interrupt Clear
2516
#define GPIO_ICR_GPIO_S 0
2517
2518
//*****************************************************************************
2519
//
2520
// The following are defines for the bit fields in the GPIO_O_LOCK register.
2521
//
2522
//*****************************************************************************
2523
#define GPIO_LOCK_M 0xFFFFFFFF // GPIO Lock
2524
#define GPIO_LOCK_UNLOCKED 0x00000000 // The GPIOCR register is unlocked
2525
// and may be modified
2526
#define GPIO_LOCK_LOCKED 0x00000001 // The GPIOCR register is locked
2527
// and may not be modified
2528
#define GPIO_LOCK_KEY 0x4C4F434B // Unlocks the GPIO_CR register
2529
2530
//*****************************************************************************
2531
//
2532
// The following are defines for the bit fields in the GPIO_PCTL register for
2533
// port A.
2534
//
2535
//*****************************************************************************
2536
#define GPIO_PCTL_PA7_M 0xF0000000 // PA7 Mask
2537
#define GPIO_PCTL_PA7_I2C1SDA 0x30000000 // I2C1SDA on PA7
2538
#define GPIO_PCTL_PA7_M1PWM3 0x50000000 // M1PWM3 on PA7
2539
#define GPIO_PCTL_PA6_M 0x0F000000 // PA6 Mask
2540
#define GPIO_PCTL_PA6_I2C1SCL 0x03000000 // I2C1SCL on PA6
2541
#define GPIO_PCTL_PA6_M1PWM2 0x05000000 // M1PWM2 on PA6
2542
#define GPIO_PCTL_PA5_M 0x00F00000 // PA5 Mask
2543
#define GPIO_PCTL_PA5_SSI0TX 0x00200000 // SSI0TX on PA5
2544
#define GPIO_PCTL_PA4_M 0x000F0000 // PA4 Mask
2545
#define GPIO_PCTL_PA4_SSI0RX 0x00020000 // SSI0RX on PA4
2546
#define GPIO_PCTL_PA3_M 0x0000F000 // PA3 Mask
2547
#define GPIO_PCTL_PA3_SSI0FSS 0x00002000 // SSI0FSS on PA3
2548
#define GPIO_PCTL_PA2_M 0x00000F00 // PA2 Mask
2549
#define GPIO_PCTL_PA2_SSI0CLK 0x00000200 // SSI0CLK on PA2
2550
#define GPIO_PCTL_PA1_M 0x000000F0 // PA1 Mask
2551
#define GPIO_PCTL_PA1_U0TX 0x00000010 // U0TX on PA1
2552
#define GPIO_PCTL_PA1_CAN1TX 0x00000080 // CAN1TX on PA1
2553
#define GPIO_PCTL_PA0_M 0x0000000F // PA0 Mask
2554
#define GPIO_PCTL_PA0_U0RX 0x00000001 // U0RX on PA0
2555
#define GPIO_PCTL_PA0_CAN1RX 0x00000008 // CAN1RX on PA0
2556
2557
//*****************************************************************************
2558
//
2559
// The following are defines for the bit fields in the GPIO_PCTL register for
2560
// port B.
2561
//
2562
//*****************************************************************************
2563
#define GPIO_PCTL_PB7_M 0xF0000000 // PB7 Mask
2564
#define GPIO_PCTL_PB7_SSI2TX 0x20000000 // SSI2TX on PB7
2565
#define GPIO_PCTL_PB7_I2C5SDA 0x30000000 // I2C5SDA on PB7
2566
#define GPIO_PCTL_PB7_M0PWM1 0x40000000 // M0PWM1 on PB7
2567
#define GPIO_PCTL_PB7_T0CCP1 0x70000000 // T0CCP1 on PB7
2568
#define GPIO_PCTL_PB6_M 0x0F000000 // PB6 Mask
2569
#define GPIO_PCTL_PB6_SSI2RX 0x02000000 // SSI2RX on PB6
2570
#define GPIO_PCTL_PB6_I2C5SCL 0x03000000 // I2C5SCL on PB6
2571
#define GPIO_PCTL_PB6_M0PWM0 0x04000000 // M0PWM0 on PB6
2572
#define GPIO_PCTL_PB6_T0CCP0 0x07000000 // T0CCP0 on PB6
2573
#define GPIO_PCTL_PB5_M 0x00F00000 // PB5 Mask
2574
#define GPIO_PCTL_PB5_SSI2FSS 0x00200000 // SSI2FSS on PB5
2575
#define GPIO_PCTL_PB5_M0PWM3 0x00400000 // M0PWM3 on PB5
2576
#define GPIO_PCTL_PB5_T1CCP1 0x00700000 // T1CCP1 on PB5
2577
#define GPIO_PCTL_PB5_CAN0TX 0x00800000 // CAN0TX on PB5
2578
#define GPIO_PCTL_PB4_M 0x000F0000 // PB4 Mask
2579
#define GPIO_PCTL_PB4_SSI2CLK 0x00020000 // SSI2CLK on PB4
2580
#define GPIO_PCTL_PB4_M0PWM2 0x00040000 // M0PWM2 on PB4
2581
#define GPIO_PCTL_PB4_T1CCP0 0x00070000 // T1CCP0 on PB4
2582
#define GPIO_PCTL_PB4_CAN0RX 0x00080000 // CAN0RX on PB4
2583
#define GPIO_PCTL_PB3_M 0x0000F000 // PB3 Mask
2584
#define GPIO_PCTL_PB3_I2C0SDA 0x00003000 // I2C0SDA on PB3
2585
#define GPIO_PCTL_PB3_T3CCP1 0x00007000 // T3CCP1 on PB3
2586
#define GPIO_PCTL_PB2_M 0x00000F00 // PB2 Mask
2587
#define GPIO_PCTL_PB2_I2C0SCL 0x00000300 // I2C0SCL on PB2
2588
#define GPIO_PCTL_PB2_T3CCP0 0x00000700 // T3CCP0 on PB2
2589
#define GPIO_PCTL_PB1_M 0x000000F0 // PB1 Mask
2590
#define GPIO_PCTL_PB1_USB0VBUS 0x00000000 // USB0VBUS on PB1
2591
#define GPIO_PCTL_PB1_U1TX 0x00000010 // U1TX on PB1
2592
#define GPIO_PCTL_PB1_T2CCP1 0x00000070 // T2CCP1 on PB1
2593
#define GPIO_PCTL_PB0_M 0x0000000F // PB0 Mask
2594
#define GPIO_PCTL_PB0_USB0ID 0x00000000 // USB0ID on PB0
2595
#define GPIO_PCTL_PB0_U1RX 0x00000001 // U1RX on PB0
2596
#define GPIO_PCTL_PB0_T2CCP0 0x00000007 // T2CCP0 on PB0
2597
2598
//*****************************************************************************
2599
//
2600
// The following are defines for the bit fields in the GPIO_PCTL register for
2601
// port C.
2602
//
2603
//*****************************************************************************
2604
#define GPIO_PCTL_PC7_M 0xF0000000 // PC7 Mask
2605
#define GPIO_PCTL_PC7_U3TX 0x10000000 // U3TX on PC7
2606
#define GPIO_PCTL_PC7_WT1CCP1 0x70000000 // WT1CCP1 on PC7
2607
#define GPIO_PCTL_PC7_USB0PFLT 0x80000000 // USB0PFLT on PC7
2608
#define GPIO_PCTL_PC6_M 0x0F000000 // PC6 Mask
2609
#define GPIO_PCTL_PC6_U3RX 0x01000000 // U3RX on PC6
2610
#define GPIO_PCTL_PC6_PHB1 0x06000000 // PHB1 on PC6
2611
#define GPIO_PCTL_PC6_WT1CCP0 0x07000000 // WT1CCP0 on PC6
2612
#define GPIO_PCTL_PC6_USB0EPEN 0x08000000 // USB0EPEN on PC6
2613
#define GPIO_PCTL_PC5_M 0x00F00000 // PC5 Mask
2614
#define GPIO_PCTL_PC5_U4TX 0x00100000 // U4TX on PC5
2615
#define GPIO_PCTL_PC5_U1TX 0x00200000 // U1TX on PC5
2616
#define GPIO_PCTL_PC5_M0PWM7 0x00400000 // M0PWM7 on PC5
2617
#define GPIO_PCTL_PC5_PHA1 0x00600000 // PHA1 on PC5
2618
#define GPIO_PCTL_PC5_WT0CCP1 0x00700000 // WT0CCP1 on PC5
2619
#define GPIO_PCTL_PC5_U1CTS 0x00800000 // U1CTS on PC5
2620
#define GPIO_PCTL_PC4_M 0x000F0000 // PC4 Mask
2621
#define GPIO_PCTL_PC4_U4RX 0x00010000 // U4RX on PC4
2622
#define GPIO_PCTL_PC4_U1RX 0x00020000 // U1RX on PC4
2623
#define GPIO_PCTL_PC4_M0PWM6 0x00040000 // M0PWM6 on PC4
2624
#define GPIO_PCTL_PC4_IDX1 0x00060000 // IDX1 on PC4
2625
#define GPIO_PCTL_PC4_WT0CCP0 0x00070000 // WT0CCP0 on PC4
2626
#define GPIO_PCTL_PC4_U1RTS 0x00080000 // U1RTS on PC4
2627
#define GPIO_PCTL_PC3_M 0x0000F000 // PC3 Mask
2628
#define GPIO_PCTL_PC3_TDO 0x00001000 // TDO on PC3
2629
#define GPIO_PCTL_PC3_T5CCP1 0x00007000 // T5CCP1 on PC3
2630
#define GPIO_PCTL_PC2_M 0x00000F00 // PC2 Mask
2631
#define GPIO_PCTL_PC2_TDI 0x00000100 // TDI on PC2
2632
#define GPIO_PCTL_PC2_T5CCP0 0x00000700 // T5CCP0 on PC2
2633
#define GPIO_PCTL_PC1_M 0x000000F0 // PC1 Mask
2634
#define GPIO_PCTL_PC1_TMS 0x00000010 // TMS on PC1
2635
#define GPIO_PCTL_PC1_T4CCP1 0x00000070 // T4CCP1 on PC1
2636
#define GPIO_PCTL_PC0_M 0x0000000F // PC0 Mask
2637
#define GPIO_PCTL_PC0_TCK 0x00000001 // TCK on PC0
2638
#define GPIO_PCTL_PC0_T4CCP0 0x00000007 // T4CCP0 on PC0
2639
2640
//*****************************************************************************
2641
//
2642
// The following are defines for the bit fields in the GPIO_PCTL register for
2643
// port D.
2644
//
2645
//*****************************************************************************
2646
#define GPIO_PCTL_PD7_M 0xF0000000 // PD7 Mask
2647
#define GPIO_PCTL_PD7_U2TX 0x10000000 // U2TX on PD7
2648
#define GPIO_PCTL_PD7_M0FAULT1 0x40000000 // M0FAULT1 on PD7
2649
#define GPIO_PCTL_PD7_PHB0 0x60000000 // PHB0 on PD7
2650
#define GPIO_PCTL_PD7_WT5CCP1 0x70000000 // WT5CCP1 on PD7
2651
#define GPIO_PCTL_PD7_NMI 0x80000000 // NMI on PD7
2652
#define GPIO_PCTL_PD6_M 0x0F000000 // PD6 Mask
2653
#define GPIO_PCTL_PD6_U2RX 0x01000000 // U2RX on PD6
2654
#define GPIO_PCTL_PD6_M0FAULT0 0x04000000 // M0FAULT0 on PD6
2655
#define GPIO_PCTL_PD6_PHA0 0x06000000 // PHA0 on PD6
2656
#define GPIO_PCTL_PD6_WT5CCP0 0x07000000 // WT5CCP0 on PD6
2657
#define GPIO_PCTL_PD5_M 0x00F00000 // PD5 Mask
2658
#define GPIO_PCTL_PD5_USB0DP 0x00000000 // USB0DP on PD5
2659
#define GPIO_PCTL_PD5_U6TX 0x00100000 // U6TX on PD5
2660
#define GPIO_PCTL_PD5_WT4CCP1 0x00700000 // WT4CCP1 on PD5
2661
#define GPIO_PCTL_PD4_M 0x000F0000 // PD4 Mask
2662
#define GPIO_PCTL_PD4_USB0DM 0x00000000 // USB0DM on PD4
2663
#define GPIO_PCTL_PD4_U6RX 0x00010000 // U6RX on PD4
2664
#define GPIO_PCTL_PD4_WT4CCP0 0x00070000 // WT4CCP0 on PD4
2665
#define GPIO_PCTL_PD3_M 0x0000F000 // PD3 Mask
2666
#define GPIO_PCTL_PD3_AIN4 0x00000000 // AIN4 on PD3
2667
#define GPIO_PCTL_PD3_SSI3TX 0x00001000 // SSI3TX on PD3
2668
#define GPIO_PCTL_PD3_SSI1TX 0x00002000 // SSI1TX on PD3
2669
#define GPIO_PCTL_PD3_IDX0 0x00006000 // IDX0 on PD3
2670
#define GPIO_PCTL_PD3_WT3CCP1 0x00007000 // WT3CCP1 on PD3
2671
#define GPIO_PCTL_PD3_USB0PFLT 0x00008000 // USB0PFLT on PD3
2672
#define GPIO_PCTL_PD2_M 0x00000F00 // PD2 Mask
2673
#define GPIO_PCTL_PD2_AIN5 0x00000000 // AIN5 on PD2
2674
#define GPIO_PCTL_PD2_SSI3RX 0x00000100 // SSI3RX on PD2
2675
#define GPIO_PCTL_PD2_SSI1RX 0x00000200 // SSI1RX on PD2
2676
#define GPIO_PCTL_PD2_M0FAULT0 0x00000400 // M0FAULT0 on PD2
2677
#define GPIO_PCTL_PD2_WT3CCP0 0x00000700 // WT3CCP0 on PD2
2678
#define GPIO_PCTL_PD2_USB0EPEN 0x00000800 // USB0EPEN on PD2
2679
#define GPIO_PCTL_PD1_M 0x000000F0 // PD1 Mask
2680
#define GPIO_PCTL_PD1_AIN6 0x00000000 // AIN6 on PD1
2681
#define GPIO_PCTL_PD1_SSI3FSS 0x00000010 // SSI3FSS on PD1
2682
#define GPIO_PCTL_PD1_SSI1FSS 0x00000020 // SSI1FSS on PD1
2683
#define GPIO_PCTL_PD1_I2C3SDA 0x00000030 // I2C3SDA on PD1
2684
#define GPIO_PCTL_PD1_M0PWM7 0x00000040 // M0PWM7 on PD1
2685
#define GPIO_PCTL_PD1_M1PWM1 0x00000050 // M1PWM1 on PD1
2686
#define GPIO_PCTL_PD1_WT2CCP1 0x00000070 // WT2CCP1 on PD1
2687
#define GPIO_PCTL_PD0_M 0x0000000F // PD0 Mask
2688
#define GPIO_PCTL_PD0_AIN7 0x00000000 // AIN7 on PD0
2689
#define GPIO_PCTL_PD0_SSI3CLK 0x00000001 // SSI3CLK on PD0
2690
#define GPIO_PCTL_PD0_SSI1CLK 0x00000002 // SSI1CLK on PD0
2691
#define GPIO_PCTL_PD0_I2C3SCL 0x00000003 // I2C3SCL on PD0
2692
#define GPIO_PCTL_PD0_M0PWM6 0x00000004 // M0PWM6 on PD0
2693
#define GPIO_PCTL_PD0_M1PWM0 0x00000005 // M1PWM0 on PD0
2694
#define GPIO_PCTL_PD0_WT2CCP0 0x00000007 // WT2CCP0 on PD0
2695
2696
//*****************************************************************************
2697
//
2698
// The following are defines for the bit fields in the GPIO_PCTL register for
2699
// port E.
2700
//
2701
//*****************************************************************************
2702
#define GPIO_PCTL_PE5_M 0x00F00000 // PE5 Mask
2703
#define GPIO_PCTL_PE5_AIN8 0x00000000 // AIN8 on PE5
2704
#define GPIO_PCTL_PE5_U5TX 0x00100000 // U5TX on PE5
2705
#define GPIO_PCTL_PE5_I2C2SDA 0x00300000 // I2C2SDA on PE5
2706
#define GPIO_PCTL_PE5_M0PWM5 0x00400000 // M0PWM5 on PE5
2707
#define GPIO_PCTL_PE5_M1PWM3 0x00500000 // M1PWM3 on PE5
2708
#define GPIO_PCTL_PE5_CAN0TX 0x00800000 // CAN0TX on PE5
2709
#define GPIO_PCTL_PE4_M 0x000F0000 // PE4 Mask
2710
#define GPIO_PCTL_PE4_AIN9 0x00000000 // AIN9 on PE4
2711
#define GPIO_PCTL_PE4_U5RX 0x00010000 // U5RX on PE4
2712
#define GPIO_PCTL_PE4_I2C2SCL 0x00030000 // I2C2SCL on PE4
2713
#define GPIO_PCTL_PE4_M0PWM4 0x00040000 // M0PWM4 on PE4
2714
#define GPIO_PCTL_PE4_M1PWM2 0x00050000 // M1PWM2 on PE4
2715
#define GPIO_PCTL_PE4_CAN0RX 0x00080000 // CAN0RX on PE4
2716
#define GPIO_PCTL_PE3_M 0x0000F000 // PE3 Mask
2717
#define GPIO_PCTL_PE3_AIN0 0x00000000 // AIN0 on PE3
2718
#define GPIO_PCTL_PE2_M 0x00000F00 // PE2 Mask
2719
#define GPIO_PCTL_PE2_AIN1 0x00000000 // AIN1 on PE2
2720
#define GPIO_PCTL_PE1_M 0x000000F0 // PE1 Mask
2721
#define GPIO_PCTL_PE1_AIN2 0x00000000 // AIN2 on PE1
2722
#define GPIO_PCTL_PE1_U7TX 0x00000010 // U7TX on PE1
2723
#define GPIO_PCTL_PE0_M 0x0000000F // PE0 Mask
2724
#define GPIO_PCTL_PE0_AIN3 0x00000000 // AIN3 on PE0
2725
#define GPIO_PCTL_PE0_U7RX 0x00000001 // U7RX on PE0
2726
2727
//*****************************************************************************
2728
//
2729
// The following are defines for the bit fields in the GPIO_PCTL register for
2730
// port F.
2731
//
2732
//*****************************************************************************
2733
#define GPIO_PCTL_PF4_M 0x000F0000 // PF4 Mask
2734
#define GPIO_PCTL_PF4_M0FAULT2 0x00040000 // M0FAULT2 on PF4
2735
#define GPIO_PCTL_PF4_M1FAULT0 0x00050000 // M1FAULT0 on PF4
2736
#define GPIO_PCTL_PF4_IDX0 0x00060000 // IDX0 on PF4
2737
#define GPIO_PCTL_PF4_T2CCP0 0x00070000 // T2CCP0 on PF4
2738
#define GPIO_PCTL_PF4_USB0EPEN 0x00080000 // USB0EPEN on PF4
2739
#define GPIO_PCTL_PF3_M 0x0000F000 // PF3 Mask
2740
#define GPIO_PCTL_PF3_SSI1FSS 0x00002000 // SSI1FSS on PF3
2741
#define GPIO_PCTL_PF3_CAN0TX 0x00003000 // CAN0TX on PF3
2742
#define GPIO_PCTL_PF3_M0FAULT1 0x00004000 // M0FAULT1 on PF3
2743
#define GPIO_PCTL_PF3_M1PWM7 0x00005000 // M1PWM7 on PF3
2744
#define GPIO_PCTL_PF3_T1CCP1 0x00007000 // T1CCP1 on PF3
2745
#define GPIO_PCTL_PF3_TRCLK 0x0000E000 // TRCLK on PF3
2746
#define GPIO_PCTL_PF2_M 0x00000F00 // PF2 Mask
2747
#define GPIO_PCTL_PF2_SSI1CLK 0x00000200 // SSI1CLK on PF2
2748
#define GPIO_PCTL_PF2_M0FAULT0 0x00000400 // M0FAULT0 on PF2
2749
#define GPIO_PCTL_PF2_M1PWM6 0x00000500 // M1PWM6 on PF2
2750
#define GPIO_PCTL_PF2_T1CCP0 0x00000700 // T1CCP0 on PF2
2751
#define GPIO_PCTL_PF2_TRD0 0x00000E00 // TRD0 on PF2
2752
#define GPIO_PCTL_PF1_M 0x000000F0 // PF1 Mask
2753
#define GPIO_PCTL_PF1_U1CTS 0x00000010 // U1CTS on PF1
2754
#define GPIO_PCTL_PF1_SSI1TX 0x00000020 // SSI1TX on PF1
2755
#define GPIO_PCTL_PF1_M1PWM5 0x00000050 // M1PWM5 on PF1
2756
#define GPIO_PCTL_PF1_PHB0 0x00000060 // PHB0 on PF1
2757
#define GPIO_PCTL_PF1_T0CCP1 0x00000070 // T0CCP1 on PF1
2758
#define GPIO_PCTL_PF1_C1O 0x00000090 // C1O on PF1
2759
#define GPIO_PCTL_PF1_TRD1 0x000000E0 // TRD1 on PF1
2760
#define GPIO_PCTL_PF0_M 0x0000000F // PF0 Mask
2761
#define GPIO_PCTL_PF0_U1RTS 0x00000001 // U1RTS on PF0
2762
#define GPIO_PCTL_PF0_SSI1RX 0x00000002 // SSI1RX on PF0
2763
#define GPIO_PCTL_PF0_CAN0RX 0x00000003 // CAN0RX on PF0
2764
#define GPIO_PCTL_PF0_M1PWM4 0x00000005 // M1PWM4 on PF0
2765
#define GPIO_PCTL_PF0_PHA0 0x00000006 // PHA0 on PF0
2766
#define GPIO_PCTL_PF0_T0CCP0 0x00000007 // T0CCP0 on PF0
2767
#define GPIO_PCTL_PF0_NMI 0x00000008 // NMI on PF0
2768
#define GPIO_PCTL_PF0_C0O 0x00000009 // C0O on PF0
2769
2770
//*****************************************************************************
2771
//
2772
// The following are defines for the bit fields in the GPIO_PCTL register for
2773
// port G.
2774
//
2775
//*****************************************************************************
2776
#define GPIO_PCTL_PG5_M 0x00F00000 // PG5 Mask
2777
#define GPIO_PCTL_PG5_U2TX 0x00100000 // U2TX on PG5
2778
#define GPIO_PCTL_PG5_I2C1SDA 0x00300000 // I2C1SDA on PG5
2779
#define GPIO_PCTL_PG5_M0PWM5 0x00400000 // M0PWM5 on PG5
2780
#define GPIO_PCTL_PG5_M1PWM3 0x00500000 // M1PWM3 on PG5
2781
#define GPIO_PCTL_PG5_IDX1 0x00600000 // IDX1 on PG5
2782
#define GPIO_PCTL_PG5_WT0CCP1 0x00700000 // WT0CCP1 on PG5
2783
#define GPIO_PCTL_PG5_USB0PFLT 0x00800000 // USB0PFLT on PG5
2784
#define GPIO_PCTL_PG4_M 0x000F0000 // PG4 Mask
2785
#define GPIO_PCTL_PG4_U2RX 0x00010000 // U2RX on PG4
2786
#define GPIO_PCTL_PG4_I2C1SCL 0x00030000 // I2C1SCL on PG4
2787
#define GPIO_PCTL_PG4_M0PWM4 0x00040000 // M0PWM4 on PG4
2788
#define GPIO_PCTL_PG4_M1PWM2 0x00050000 // M1PWM2 on PG4
2789
#define GPIO_PCTL_PG4_PHB1 0x00060000 // PHB1 on PG4
2790
#define GPIO_PCTL_PG4_WT0CCP0 0x00070000 // WT0CCP0 on PG4
2791
#define GPIO_PCTL_PG4_USB0EPEN 0x00080000 // USB0EPEN on PG4
2792
#define GPIO_PCTL_PG3_M 0x0000F000 // PG3 Mask
2793
#define GPIO_PCTL_PG3_I2C4SDA 0x00003000 // I2C4SDA on PG3
2794
#define GPIO_PCTL_PG3_M0FAULT2 0x00004000 // M0FAULT2 on PG3
2795
#define GPIO_PCTL_PG3_M1PWM1 0x00005000 // M1PWM1 on PG3
2796
#define GPIO_PCTL_PG3_PHA1 0x00006000 // PHA1 on PG3
2797
#define GPIO_PCTL_PG3_T5CCP1 0x00007000 // T5CCP1 on PG3
2798
#define GPIO_PCTL_PG2_M 0x00000F00 // PG2 Mask
2799
#define GPIO_PCTL_PG2_I2C4SCL 0x00000300 // I2C4SCL on PG2
2800
#define GPIO_PCTL_PG2_M0FAULT1 0x00000400 // M0FAULT1 on PG2
2801
#define GPIO_PCTL_PG2_M1PWM0 0x00000500 // M1PWM0 on PG2
2802
#define GPIO_PCTL_PG2_T5CCP0 0x00000700 // T5CCP0 on PG2
2803
#define GPIO_PCTL_PG1_M 0x000000F0 // PG1 Mask
2804
#define GPIO_PCTL_PG1_I2C3SDA 0x00000030 // I2C3SDA on PG1
2805
#define GPIO_PCTL_PG1_M1FAULT2 0x00000050 // M1FAULT2 on PG1
2806
#define GPIO_PCTL_PG1_PHB1 0x00000060 // PHB1 on PG1
2807
#define GPIO_PCTL_PG1_T4CCP1 0x00000070 // T4CCP1 on PG1
2808
#define GPIO_PCTL_PG0_M 0x0000000F // PG0 Mask
2809
#define GPIO_PCTL_PG0_I2C3SCL 0x00000003 // I2C3SCL on PG0
2810
#define GPIO_PCTL_PG0_M1FAULT1 0x00000005 // M1FAULT1 on PG0
2811
#define GPIO_PCTL_PG0_PHA1 0x00000006 // PHA1 on PG0
2812
#define GPIO_PCTL_PG0_T4CCP0 0x00000007 // T4CCP0 on PG0
2813
2814
//*****************************************************************************
2815
//
2816
// The following are defines for the bit fields in the SSI_O_CR0 register.
2817
//
2818
//*****************************************************************************
2819
#define SSI_CR0_SCR_M 0x0000FF00 // SSI Serial Clock Rate
2820
#define SSI_CR0_SPH 0x00000080 // SSI Serial Clock Phase
2821
#define SSI_CR0_SPO 0x00000040 // SSI Serial Clock Polarity
2822
#define SSI_CR0_FRF_M 0x00000030 // SSI Frame Format Select
2823
#define SSI_CR0_FRF_MOTO 0x00000000 // Freescale SPI Frame Format
2824
#define SSI_CR0_FRF_TI 0x00000010 // Synchronous Serial Frame Format
2825
#define SSI_CR0_FRF_NMW 0x00000020 // MICROWIRE Frame Format
2826
#define SSI_CR0_DSS_M 0x0000000F // SSI Data Size Select
2827
#define SSI_CR0_DSS_4 0x00000003 // 4-bit data
2828
#define SSI_CR0_DSS_5 0x00000004 // 5-bit data
2829
#define SSI_CR0_DSS_6 0x00000005 // 6-bit data
2830
#define SSI_CR0_DSS_7 0x00000006 // 7-bit data
2831
#define SSI_CR0_DSS_8 0x00000007 // 8-bit data
2832
#define SSI_CR0_DSS_9 0x00000008 // 9-bit data
2833
#define SSI_CR0_DSS_10 0x00000009 // 10-bit data
2834
#define SSI_CR0_DSS_11 0x0000000A // 11-bit data
2835
#define SSI_CR0_DSS_12 0x0000000B // 12-bit data
2836
#define SSI_CR0_DSS_13 0x0000000C // 13-bit data
2837
#define SSI_CR0_DSS_14 0x0000000D // 14-bit data
2838
#define SSI_CR0_DSS_15 0x0000000E // 15-bit data
2839
#define SSI_CR0_DSS_16 0x0000000F // 16-bit data
2840
#define SSI_CR0_SCR_S 8
2841
2842
//*****************************************************************************
2843
//
2844
// The following are defines for the bit fields in the SSI_O_CR1 register.
2845
//
2846
//*****************************************************************************
2847
#define SSI_CR1_EOT 0x00000010 // End of Transmission
2848
#define SSI_CR1_MS 0x00000004 // SSI Master/Slave Select
2849
#define SSI_CR1_SSE 0x00000002 // SSI Synchronous Serial Port
2850
// Enable
2851
#define SSI_CR1_LBM 0x00000001 // SSI Loopback Mode
2852
2853
//*****************************************************************************
2854
//
2855
// The following are defines for the bit fields in the SSI_O_DR register.
2856
//
2857
//*****************************************************************************
2858
#define SSI_DR_DATA_M 0x0000FFFF // SSI Receive/Transmit Data
2859
#define SSI_DR_DATA_S 0
2860
2861
//*****************************************************************************
2862
//
2863
// The following are defines for the bit fields in the SSI_O_SR register.
2864
//
2865
//*****************************************************************************
2866
#define SSI_SR_BSY 0x00000010 // SSI Busy Bit
2867
#define SSI_SR_RFF 0x00000008 // SSI Receive FIFO Full
2868
#define SSI_SR_RNE 0x00000004 // SSI Receive FIFO Not Empty
2869
#define SSI_SR_TNF 0x00000002 // SSI Transmit FIFO Not Full
2870
#define SSI_SR_TFE 0x00000001 // SSI Transmit FIFO Empty
2871
2872
//*****************************************************************************
2873
//
2874
// The following are defines for the bit fields in the SSI_O_CPSR register.
2875
//
2876
//*****************************************************************************
2877
#define SSI_CPSR_CPSDVSR_M 0x000000FF // SSI Clock Prescale Divisor
2878
#define SSI_CPSR_CPSDVSR_S 0
2879
2880
//*****************************************************************************
2881
//
2882
// The following are defines for the bit fields in the SSI_O_IM register.
2883
//
2884
//*****************************************************************************
2885
#define SSI_IM_TXIM 0x00000008 // SSI Transmit FIFO Interrupt Mask
2886
#define SSI_IM_RXIM 0x00000004 // SSI Receive FIFO Interrupt Mask
2887
#define SSI_IM_RTIM 0x00000002 // SSI Receive Time-Out Interrupt
2888
// Mask
2889
#define SSI_IM_RORIM 0x00000001 // SSI Receive Overrun Interrupt
2890
// Mask
2891
2892
//*****************************************************************************
2893
//
2894
// The following are defines for the bit fields in the SSI_O_RIS register.
2895
//
2896
//*****************************************************************************
2897
#define SSI_RIS_TXRIS 0x00000008 // SSI Transmit FIFO Raw Interrupt
2898
// Status
2899
#define SSI_RIS_RXRIS 0x00000004 // SSI Receive FIFO Raw Interrupt
2900
// Status
2901
#define SSI_RIS_RTRIS 0x00000002 // SSI Receive Time-Out Raw
2902
// Interrupt Status
2903
#define SSI_RIS_RORRIS 0x00000001 // SSI Receive Overrun Raw
2904
// Interrupt Status
2905
2906
//*****************************************************************************
2907
//
2908
// The following are defines for the bit fields in the SSI_O_MIS register.
2909
//
2910
//*****************************************************************************
2911
#define SSI_MIS_TXMIS 0x00000008 // SSI Transmit FIFO Masked
2912
// Interrupt Status
2913
#define SSI_MIS_RXMIS 0x00000004 // SSI Receive FIFO Masked
2914
// Interrupt Status
2915
#define SSI_MIS_RTMIS 0x00000002 // SSI Receive Time-Out Masked
2916
// Interrupt Status
2917
#define SSI_MIS_RORMIS 0x00000001 // SSI Receive Overrun Masked
2918
// Interrupt Status
2919
2920
//*****************************************************************************
2921
//
2922
// The following are defines for the bit fields in the SSI_O_ICR register.
2923
//
2924
//*****************************************************************************
2925
#define SSI_ICR_RTIC 0x00000002 // SSI Receive Time-Out Interrupt
2926
// Clear
2927
#define SSI_ICR_RORIC 0x00000001 // SSI Receive Overrun Interrupt
2928
// Clear
2929
2930
//*****************************************************************************
2931
//
2932
// The following are defines for the bit fields in the SSI_O_DMACTL register.
2933
//
2934
//*****************************************************************************
2935
#define SSI_DMACTL_TXDMAE 0x00000002 // Transmit DMA Enable
2936
#define SSI_DMACTL_RXDMAE 0x00000001 // Receive DMA Enable
2937
2938
//*****************************************************************************
2939
//
2940
// The following are defines for the bit fields in the SSI_O_CC register.
2941
//
2942
//*****************************************************************************
2943
#define SSI_CC_CS_M 0x0000000F // SSI Baud Clock Source
2944
#define SSI_CC_CS_SYSPLL 0x00000000 // System clock (based on clock
2945
// source and divisor factor)
2946
#define SSI_CC_CS_PIOSC 0x00000005 // PIOSC
2947
2948
//*****************************************************************************
2949
//
2950
// The following are defines for the bit fields in the UART_O_DR register.
2951
//
2952
//*****************************************************************************
2953
#define UART_DR_OE 0x00000800 // UART Overrun Error
2954
#define UART_DR_BE 0x00000400 // UART Break Error
2955
#define UART_DR_PE 0x00000200 // UART Parity Error
2956
#define UART_DR_FE 0x00000100 // UART Framing Error
2957
#define UART_DR_DATA_M 0x000000FF // Data Transmitted or Received
2958
#define UART_DR_DATA_S 0
2959
2960
//*****************************************************************************
2961
//
2962
// The following are defines for the bit fields in the UART_O_RSR register.
2963
//
2964
//*****************************************************************************
2965
#define UART_RSR_OE 0x00000008 // UART Overrun Error
2966
#define UART_RSR_BE 0x00000004 // UART Break Error
2967
#define UART_RSR_PE 0x00000002 // UART Parity Error
2968
#define UART_RSR_FE 0x00000001 // UART Framing Error
2969
2970
//*****************************************************************************
2971
//
2972
// The following are defines for the bit fields in the UART_O_ECR register.
2973
//
2974
//*****************************************************************************
2975
#define UART_ECR_DATA_M 0x000000FF // Error Clear
2976
#define UART_ECR_DATA_S 0
2977
2978
//*****************************************************************************
2979
//
2980
// The following are defines for the bit fields in the UART_O_FR register.
2981
//
2982
//*****************************************************************************
2983
#define UART_FR_TXFE 0x00000080 // UART Transmit FIFO Empty
2984
#define UART_FR_RXFF 0x00000040 // UART Receive FIFO Full
2985
#define UART_FR_TXFF 0x00000020 // UART Transmit FIFO Full
2986
#define UART_FR_RXFE 0x00000010 // UART Receive FIFO Empty
2987
#define UART_FR_BUSY 0x00000008 // UART Busy
2988
#define UART_FR_CTS 0x00000001 // Clear To Send
2989
2990
//*****************************************************************************
2991
//
2992
// The following are defines for the bit fields in the UART_O_ILPR register.
2993
//
2994
//*****************************************************************************
2995
#define UART_ILPR_ILPDVSR_M 0x000000FF // IrDA Low-Power Divisor
2996
#define UART_ILPR_ILPDVSR_S 0
2997
2998
//*****************************************************************************
2999
//
3000
// The following are defines for the bit fields in the UART_O_IBRD register.
3001
//
3002
//*****************************************************************************
3003
#define UART_IBRD_DIVINT_M 0x0000FFFF // Integer Baud-Rate Divisor
3004
#define UART_IBRD_DIVINT_S 0
3005
3006
//*****************************************************************************
3007
//
3008
// The following are defines for the bit fields in the UART_O_FBRD register.
3009
//
3010
//*****************************************************************************
3011
#define UART_FBRD_DIVFRAC_M 0x0000003F // Fractional Baud-Rate Divisor
3012
#define UART_FBRD_DIVFRAC_S 0
3013
3014
//*****************************************************************************
3015
//
3016
// The following are defines for the bit fields in the UART_O_LCRH register.
3017
//
3018
//*****************************************************************************
3019
#define UART_LCRH_SPS 0x00000080 // UART Stick Parity Select
3020
#define UART_LCRH_WLEN_M 0x00000060 // UART Word Length
3021
#define UART_LCRH_WLEN_5 0x00000000 // 5 bits (default)
3022
#define UART_LCRH_WLEN_6 0x00000020 // 6 bits
3023
#define UART_LCRH_WLEN_7 0x00000040 // 7 bits
3024
#define UART_LCRH_WLEN_8 0x00000060 // 8 bits
3025
#define UART_LCRH_FEN 0x00000010 // UART Enable FIFOs
3026
#define UART_LCRH_STP2 0x00000008 // UART Two Stop Bits Select
3027
#define UART_LCRH_EPS 0x00000004 // UART Even Parity Select
3028
#define UART_LCRH_PEN 0x00000002 // UART Parity Enable
3029
#define UART_LCRH_BRK 0x00000001 // UART Send Break
3030
3031
//*****************************************************************************
3032
//
3033
// The following are defines for the bit fields in the UART_O_CTL register.
3034
//
3035
//*****************************************************************************
3036
#define UART_CTL_CTSEN 0x00008000 // Enable Clear To Send
3037
#define UART_CTL_RTSEN 0x00004000 // Enable Request to Send
3038
#define UART_CTL_RTS 0x00000800 // Request to Send
3039
#define UART_CTL_RXE 0x00000200 // UART Receive Enable
3040
#define UART_CTL_TXE 0x00000100 // UART Transmit Enable
3041
#define UART_CTL_LBE 0x00000080 // UART Loop Back Enable
3042
#define UART_CTL_HSE 0x00000020 // High-Speed Enable
3043
#define UART_CTL_EOT 0x00000010 // End of Transmission
3044
#define UART_CTL_SMART 0x00000008 // ISO 7816 Smart Card Support
3045
#define UART_CTL_SIRLP 0x00000004 // UART SIR Low-Power Mode
3046
#define UART_CTL_SIREN 0x00000002 // UART SIR Enable
3047
#define UART_CTL_UARTEN 0x00000001 // UART Enable
3048
3049
//*****************************************************************************
3050
//
3051
// The following are defines for the bit fields in the UART_O_IFLS register.
3052
//
3053
//*****************************************************************************
3054
#define UART_IFLS_RX_M 0x00000038 // UART Receive Interrupt FIFO
3055
// Level Select
3056
#define UART_IFLS_RX1_8 0x00000000 // RX FIFO >= 1/8 full
3057
#define UART_IFLS_RX2_8 0x00000008 // RX FIFO >= 1/4 full
3058
#define UART_IFLS_RX4_8 0x00000010 // RX FIFO >= 1/2 full (default)
3059
#define UART_IFLS_RX6_8 0x00000018 // RX FIFO >= 3/4 full
3060
#define UART_IFLS_RX7_8 0x00000020 // RX FIFO >= 7/8 full
3061
#define UART_IFLS_TX_M 0x00000007 // UART Transmit Interrupt FIFO
3062
// Level Select
3063
#define UART_IFLS_TX1_8 0x00000000 // TX FIFO <= 1/8 full
3064
#define UART_IFLS_TX2_8 0x00000001 // TX FIFO <= 1/4 full
3065
#define UART_IFLS_TX4_8 0x00000002 // TX FIFO <= 1/2 full (default)
3066
#define UART_IFLS_TX6_8 0x00000003 // TX FIFO <= 3/4 full
3067
#define UART_IFLS_TX7_8 0x00000004 // TX FIFO <= 7/8 full
3068
3069
//*****************************************************************************
3070
//
3071
// The following are defines for the bit fields in the UART_O_IM register.
3072
//
3073
//*****************************************************************************
3074
#define UART_IM_9BITIM 0x00001000 // 9-Bit Mode Interrupt Mask
3075
#define UART_IM_OEIM 0x00000400 // UART Overrun Error Interrupt
3076
// Mask
3077
#define UART_IM_BEIM 0x00000200 // UART Break Error Interrupt Mask
3078
#define UART_IM_PEIM 0x00000100 // UART Parity Error Interrupt Mask
3079
#define UART_IM_FEIM 0x00000080 // UART Framing Error Interrupt
3080
// Mask
3081
#define UART_IM_RTIM 0x00000040 // UART Receive Time-Out Interrupt
3082
// Mask
3083
#define UART_IM_TXIM 0x00000020 // UART Transmit Interrupt Mask
3084
#define UART_IM_RXIM 0x00000010 // UART Receive Interrupt Mask
3085
#define UART_IM_CTSMIM 0x00000002 // UART Clear to Send Modem
3086
// Interrupt Mask
3087
3088
//*****************************************************************************
3089
//
3090
// The following are defines for the bit fields in the UART_O_RIS register.
3091
//
3092
//*****************************************************************************
3093
#define UART_RIS_9BITRIS 0x00001000 // 9-Bit Mode Raw Interrupt Status
3094
#define UART_RIS_OERIS 0x00000400 // UART Overrun Error Raw Interrupt
3095
// Status
3096
#define UART_RIS_BERIS 0x00000200 // UART Break Error Raw Interrupt
3097
// Status
3098
#define UART_RIS_PERIS 0x00000100 // UART Parity Error Raw Interrupt
3099
// Status
3100
#define UART_RIS_FERIS 0x00000080 // UART Framing Error Raw Interrupt
3101
// Status
3102
#define UART_RIS_RTRIS 0x00000040 // UART Receive Time-Out Raw
3103
// Interrupt Status
3104
#define UART_RIS_TXRIS 0x00000020 // UART Transmit Raw Interrupt
3105
// Status
3106
#define UART_RIS_RXRIS 0x00000010 // UART Receive Raw Interrupt
3107
// Status
3108
#define UART_RIS_CTSRIS 0x00000002 // UART Clear to Send Modem Raw
3109
// Interrupt Status
3110
3111
//*****************************************************************************
3112
//
3113
// The following are defines for the bit fields in the UART_O_MIS register.
3114
//
3115
//*****************************************************************************
3116
#define UART_MIS_9BITMIS 0x00001000 // 9-Bit Mode Masked Interrupt
3117
// Status
3118
#define UART_MIS_OEMIS 0x00000400 // UART Overrun Error Masked
3119
// Interrupt Status
3120
#define UART_MIS_BEMIS 0x00000200 // UART Break Error Masked
3121
// Interrupt Status
3122
#define UART_MIS_PEMIS 0x00000100 // UART Parity Error Masked
3123
// Interrupt Status
3124
#define UART_MIS_FEMIS 0x00000080 // UART Framing Error Masked
3125
// Interrupt Status
3126
#define UART_MIS_RTMIS 0x00000040 // UART Receive Time-Out Masked
3127
// Interrupt Status
3128
#define UART_MIS_TXMIS 0x00000020 // UART Transmit Masked Interrupt
3129
// Status
3130
#define UART_MIS_RXMIS 0x00000010 // UART Receive Masked Interrupt
3131
// Status
3132
#define UART_MIS_CTSMIS 0x00000002 // UART Clear to Send Modem Masked
3133
// Interrupt Status
3134
3135
//*****************************************************************************
3136
//
3137
// The following are defines for the bit fields in the UART_O_ICR register.
3138
//
3139
//*****************************************************************************
3140
#define UART_ICR_9BITIC 0x00001000 // 9-Bit Mode Interrupt Clear
3141
#define UART_ICR_OEIC 0x00000400 // Overrun Error Interrupt Clear
3142
#define UART_ICR_BEIC 0x00000200 // Break Error Interrupt Clear
3143
#define UART_ICR_PEIC 0x00000100 // Parity Error Interrupt Clear
3144
#define UART_ICR_FEIC 0x00000080 // Framing Error Interrupt Clear
3145
#define UART_ICR_RTIC 0x00000040 // Receive Time-Out Interrupt Clear
3146
#define UART_ICR_TXIC 0x00000020 // Transmit Interrupt Clear
3147
#define UART_ICR_RXIC 0x00000010 // Receive Interrupt Clear
3148
#define UART_ICR_CTSMIC 0x00000002 // UART Clear to Send Modem
3149
// Interrupt Clear
3150
3151
//*****************************************************************************
3152
//
3153
// The following are defines for the bit fields in the UART_O_DMACTL register.
3154
//
3155
//*****************************************************************************
3156
#define UART_DMACTL_DMAERR 0x00000004 // DMA on Error
3157
#define UART_DMACTL_TXDMAE 0x00000002 // Transmit DMA Enable
3158
#define UART_DMACTL_RXDMAE 0x00000001 // Receive DMA Enable
3159
3160
//*****************************************************************************
3161
//
3162
// The following are defines for the bit fields in the UART_O_9BITADDR
3163
// register.
3164
//
3165
//*****************************************************************************
3166
#define UART_9BITADDR_9BITEN 0x00008000 // Enable 9-Bit Mode
3167
#define UART_9BITADDR_ADDR_M 0x000000FF // Self Address for 9-Bit Mode
3168
#define UART_9BITADDR_ADDR_S 0
3169
3170
//*****************************************************************************
3171
//
3172
// The following are defines for the bit fields in the UART_O_9BITAMASK
3173
// register.
3174
//
3175
//*****************************************************************************
3176
#define UART_9BITAMASK_MASK_M 0x000000FF // Self Address Mask for 9-Bit Mode
3177
#define UART_9BITAMASK_MASK_S 0
3178
3179
//*****************************************************************************
3180
//
3181
// The following are defines for the bit fields in the UART_O_PP register.
3182
//
3183
//*****************************************************************************
3184
#define UART_PP_NB 0x00000002 // 9-Bit Support
3185
#define UART_PP_SC 0x00000001 // Smart Card Support
3186
3187
//*****************************************************************************
3188
//
3189
// The following are defines for the bit fields in the UART_O_CC register.
3190
//
3191
//*****************************************************************************
3192
#define UART_CC_CS_M 0x0000000F // UART Baud Clock Source
3193
#define UART_CC_CS_SYSCLK 0x00000000 // System clock (based on clock
3194
// source and divisor factor)
3195
#define UART_CC_CS_PIOSC 0x00000005 // PIOSC
3196
3197
//*****************************************************************************
3198
//
3199
// The following are defines for the bit fields in the I2C_O_MSA register.
3200
//
3201
//*****************************************************************************
3202
#define I2C_MSA_SA_M 0x000000FE // I2C Slave Address
3203
#define I2C_MSA_RS 0x00000001 // Receive not send
3204
#define I2C_MSA_SA_S 1
3205
3206
//*****************************************************************************
3207
//
3208
// The following are defines for the bit fields in the I2C_O_MCS register.
3209
//
3210
//*****************************************************************************
3211
#define I2C_MCS_CLKTO 0x00000080 // Clock Timeout Error
3212
#define I2C_MCS_BUSBSY 0x00000040 // Bus Busy
3213
#define I2C_MCS_IDLE 0x00000020 // I2C Idle
3214
#define I2C_MCS_ARBLST 0x00000010 // Arbitration Lost
3215
#define I2C_MCS_HS 0x00000010 // High-Speed Enable
3216
#define I2C_MCS_ACK 0x00000008 // Data Acknowledge Enable
3217
#define I2C_MCS_DATACK 0x00000008 // Acknowledge Data
3218
#define I2C_MCS_ADRACK 0x00000004 // Acknowledge Address
3219
#define I2C_MCS_STOP 0x00000004 // Generate STOP
3220
#define I2C_MCS_ERROR 0x00000002 // Error
3221
#define I2C_MCS_START 0x00000002 // Generate START
3222
#define I2C_MCS_RUN 0x00000001 // I2C Master Enable
3223
#define I2C_MCS_BUSY 0x00000001 // I2C Busy
3224
3225
//*****************************************************************************
3226
//
3227
// The following are defines for the bit fields in the I2C_O_MDR register.
3228
//
3229
//*****************************************************************************
3230
#define I2C_MDR_DATA_M 0x000000FF // This byte contains the data
3231
// transferred during a transaction
3232
#define I2C_MDR_DATA_S 0
3233
3234
//*****************************************************************************
3235
//
3236
// The following are defines for the bit fields in the I2C_O_MTPR register.
3237
//
3238
//*****************************************************************************
3239
#define I2C_MTPR_HS 0x00000080 // High-Speed Enable
3240
#define I2C_MTPR_TPR_M 0x0000007F // Timer Period
3241
#define I2C_MTPR_TPR_S 0
3242
3243
//*****************************************************************************
3244
//
3245
// The following are defines for the bit fields in the I2C_O_MIMR register.
3246
//
3247
//*****************************************************************************
3248
#define I2C_MIMR_CLKIM 0x00000002 // Clock Timeout Interrupt Mask
3249
#define I2C_MIMR_IM 0x00000001 // Master Interrupt Mask
3250
3251
//*****************************************************************************
3252
//
3253
// The following are defines for the bit fields in the I2C_O_MRIS register.
3254
//
3255
//*****************************************************************************
3256
#define I2C_MRIS_CLKRIS 0x00000002 // Clock Timeout Raw Interrupt
3257
// Status
3258
#define I2C_MRIS_RIS 0x00000001 // Master Raw Interrupt Status
3259
3260
//*****************************************************************************
3261
//
3262
// The following are defines for the bit fields in the I2C_O_MMIS register.
3263
//
3264
//*****************************************************************************
3265
#define I2C_MMIS_CLKMIS 0x00000002 // Clock Timeout Masked Interrupt
3266
// Status
3267
#define I2C_MMIS_MIS 0x00000001 // Masked Interrupt Status
3268
3269
//*****************************************************************************
3270
//
3271
// The following are defines for the bit fields in the I2C_O_MICR register.
3272
//
3273
//*****************************************************************************
3274
#define I2C_MICR_CLKIC 0x00000002 // Clock Timeout Interrupt Clear
3275
#define I2C_MICR_IC 0x00000001 // Master Interrupt Clear
3276
3277
//*****************************************************************************
3278
//
3279
// The following are defines for the bit fields in the I2C_O_MCR register.
3280
//
3281
//*****************************************************************************
3282
#define I2C_MCR_GFE 0x00000040 // I2C Glitch Filter Enable
3283
#define I2C_MCR_SFE 0x00000020 // I2C Slave Function Enable
3284
#define I2C_MCR_MFE 0x00000010 // I2C Master Function Enable
3285
#define I2C_MCR_LPBK 0x00000001 // I2C Loopback
3286
3287
//*****************************************************************************
3288
//
3289
// The following are defines for the bit fields in the I2C_O_MCLKOCNT register.
3290
//
3291
//*****************************************************************************
3292
#define I2C_MCLKOCNT_CNTL_M 0x000000FF // I2C Master Count
3293
#define I2C_MCLKOCNT_CNTL_S 0
3294
3295
//*****************************************************************************
3296
//
3297
// The following are defines for the bit fields in the I2C_O_MBMON register.
3298
//
3299
//*****************************************************************************
3300
#define I2C_MBMON_SDA 0x00000002 // I2C SDA Status
3301
#define I2C_MBMON_SCL 0x00000001 // I2C SCL Status
3302
3303
//*****************************************************************************
3304
//
3305
// The following are defines for the bit fields in the I2C_O_MCR2 register.
3306
//
3307
//*****************************************************************************
3308
#define I2C_MCR2_GFPW_M 0x00000070 // I2C Glitch Filter Pulse Width
3309
#define I2C_MCR2_GFPW_BYPASS 0x00000000 // Bypass
3310
#define I2C_MCR2_GFPW_1 0x00000010 // 1 clock
3311
#define I2C_MCR2_GFPW_2 0x00000020 // 2 clocks
3312
#define I2C_MCR2_GFPW_3 0x00000030 // 3 clocks
3313
#define I2C_MCR2_GFPW_4 0x00000040 // 4 clocks
3314
#define I2C_MCR2_GFPW_8 0x00000050 // 8 clocks
3315
#define I2C_MCR2_GFPW_16 0x00000060 // 16 clocks
3316
#define I2C_MCR2_GFPW_31 0x00000070 // 31 clocks
3317
3318
//*****************************************************************************
3319
//
3320
// The following are defines for the bit fields in the I2C_O_SOAR register.
3321
//
3322
//*****************************************************************************
3323
#define I2C_SOAR_OAR_M 0x0000007F // I2C Slave Own Address
3324
#define I2C_SOAR_OAR_S 0
3325
3326
//*****************************************************************************
3327
//
3328
// The following are defines for the bit fields in the I2C_O_SCSR register.
3329
//
3330
//*****************************************************************************
3331
#define I2C_SCSR_OAR2SEL 0x00000008 // OAR2 Address Matched
3332
#define I2C_SCSR_FBR 0x00000004 // First Byte Received
3333
#define I2C_SCSR_TREQ 0x00000002 // Transmit Request
3334
#define I2C_SCSR_DA 0x00000001 // Device Active
3335
#define I2C_SCSR_RREQ 0x00000001 // Receive Request
3336
3337
//*****************************************************************************
3338
//
3339
// The following are defines for the bit fields in the I2C_O_SDR register.
3340
//
3341
//*****************************************************************************
3342
#define I2C_SDR_DATA_M 0x000000FF // Data for Transfer
3343
#define I2C_SDR_DATA_S 0
3344
3345
//*****************************************************************************
3346
//
3347
// The following are defines for the bit fields in the I2C_O_SIMR register.
3348
//
3349
//*****************************************************************************
3350
#define I2C_SIMR_STOPIM 0x00000004 // Stop Condition Interrupt Mask
3351
#define I2C_SIMR_STARTIM 0x00000002 // Start Condition Interrupt Mask
3352
#define I2C_SIMR_DATAIM 0x00000001 // Data Interrupt Mask
3353
3354
//*****************************************************************************
3355
//
3356
// The following are defines for the bit fields in the I2C_O_SRIS register.
3357
//
3358
//*****************************************************************************
3359
#define I2C_SRIS_STOPRIS 0x00000004 // Stop Condition Raw Interrupt
3360
// Status
3361
#define I2C_SRIS_STARTRIS 0x00000002 // Start Condition Raw Interrupt
3362
// Status
3363
#define I2C_SRIS_DATARIS 0x00000001 // Data Raw Interrupt Status
3364
3365
//*****************************************************************************
3366
//
3367
// The following are defines for the bit fields in the I2C_O_SMIS register.
3368
//
3369
//*****************************************************************************
3370
#define I2C_SMIS_STOPMIS 0x00000004 // Stop Condition Masked Interrupt
3371
// Status
3372
#define I2C_SMIS_STARTMIS 0x00000002 // Start Condition Masked Interrupt
3373
// Status
3374
#define I2C_SMIS_DATAMIS 0x00000001 // Data Masked Interrupt Status
3375
3376
//*****************************************************************************
3377
//
3378
// The following are defines for the bit fields in the I2C_O_SICR register.
3379
//
3380
//*****************************************************************************
3381
#define I2C_SICR_STOPIC 0x00000004 // Stop Condition Interrupt Clear
3382
#define I2C_SICR_STARTIC 0x00000002 // Start Condition Interrupt Clear
3383
#define I2C_SICR_DATAIC 0x00000001 // Data Interrupt Clear
3384
3385
//*****************************************************************************
3386
//
3387
// The following are defines for the bit fields in the I2C_O_SOAR2 register.
3388
//
3389
//*****************************************************************************
3390
#define I2C_SOAR2_OAR2EN 0x00000080 // I2C Slave Own Address 2 Enable
3391
#define I2C_SOAR2_OAR2_M 0x0000007F // I2C Slave Own Address 2
3392
#define I2C_SOAR2_OAR2_S 0
3393
3394
//*****************************************************************************
3395
//
3396
// The following are defines for the bit fields in the I2C_O_SACKCTL register.
3397
//
3398
//*****************************************************************************
3399
#define I2C_SACKCTL_ACKOVAL 0x00000002 // I2C Slave ACK Override Value
3400
#define I2C_SACKCTL_ACKOEN 0x00000001 // I2C Slave ACK Override Enable
3401
3402
//*****************************************************************************
3403
//
3404
// The following are defines for the bit fields in the I2C_O_PP register.
3405
//
3406
//*****************************************************************************
3407
#define I2C_PP_HS 0x00000001 // High-Speed Capable
3408
3409
//*****************************************************************************
3410
//
3411
// The following are defines for the bit fields in the I2C_O_PC register.
3412
//
3413
//*****************************************************************************
3414
#define I2C_PC_HS 0x00000001 // High-Speed Capable
3415
3416
//*****************************************************************************
3417
//
3418
// The following are defines for the bit fields in the PWM_O_CTL register.
3419
//
3420
//*****************************************************************************
3421
#define PWM_CTL_GLOBALSYNC3 0x00000008 // Update PWM Generator 3
3422
#define PWM_CTL_GLOBALSYNC2 0x00000004 // Update PWM Generator 2
3423
#define PWM_CTL_GLOBALSYNC1 0x00000002 // Update PWM Generator 1
3424
#define PWM_CTL_GLOBALSYNC0 0x00000001 // Update PWM Generator 0
3425
3426
//*****************************************************************************
3427
//
3428
// The following are defines for the bit fields in the PWM_O_SYNC register.
3429
//
3430
//*****************************************************************************
3431
#define PWM_SYNC_SYNC3 0x00000008 // Reset Generator 3 Counter
3432
#define PWM_SYNC_SYNC2 0x00000004 // Reset Generator 2 Counter
3433
#define PWM_SYNC_SYNC1 0x00000002 // Reset Generator 1 Counter
3434
#define PWM_SYNC_SYNC0 0x00000001 // Reset Generator 0 Counter
3435
3436
//*****************************************************************************
3437
//
3438
// The following are defines for the bit fields in the PWM_O_ENABLE register.
3439
//
3440
//*****************************************************************************
3441
#define PWM_ENABLE_PWM7EN 0x00000080 // MnPWM7 Output Enable
3442
#define PWM_ENABLE_PWM6EN 0x00000040 // MnPWM6 Output Enable
3443
#define PWM_ENABLE_PWM5EN 0x00000020 // MnPWM5 Output Enable
3444
#define PWM_ENABLE_PWM4EN 0x00000010 // MnPWM4 Output Enable
3445
#define PWM_ENABLE_PWM3EN 0x00000008 // MnPWM3 Output Enable
3446
#define PWM_ENABLE_PWM2EN 0x00000004 // MnPWM2 Output Enable
3447
#define PWM_ENABLE_PWM1EN 0x00000002 // MnPWM1 Output Enable
3448
#define PWM_ENABLE_PWM0EN 0x00000001 // MnPWM0 Output Enable
3449
3450
//*****************************************************************************
3451
//
3452
// The following are defines for the bit fields in the PWM_O_INVERT register.
3453
//
3454
//*****************************************************************************
3455
#define PWM_INVERT_PWM7INV 0x00000080 // Invert MnPWM7 Signal
3456
#define PWM_INVERT_PWM6INV 0x00000040 // Invert MnPWM6 Signal
3457
#define PWM_INVERT_PWM5INV 0x00000020 // Invert MnPWM5 Signal
3458
#define PWM_INVERT_PWM4INV 0x00000010 // Invert MnPWM4 Signal
3459
#define PWM_INVERT_PWM3INV 0x00000008 // Invert MnPWM3 Signal
3460
#define PWM_INVERT_PWM2INV 0x00000004 // Invert MnPWM2 Signal
3461
#define PWM_INVERT_PWM1INV 0x00000002 // Invert MnPWM1 Signal
3462
#define PWM_INVERT_PWM0INV 0x00000001 // Invert MnPWM0 Signal
3463
3464
//*****************************************************************************
3465
//
3466
// The following are defines for the bit fields in the PWM_O_FAULT register.
3467
//
3468
//*****************************************************************************
3469
#define PWM_FAULT_FAULT7 0x00000080 // MnPWM7 Fault
3470
#define PWM_FAULT_FAULT6 0x00000040 // MnPWM6 Fault
3471
#define PWM_FAULT_FAULT5 0x00000020 // MnPWM5 Fault
3472
#define PWM_FAULT_FAULT4 0x00000010 // MnPWM4 Fault
3473
#define PWM_FAULT_FAULT3 0x00000008 // MnPWM3 Fault
3474
#define PWM_FAULT_FAULT2 0x00000004 // MnPWM2 Fault
3475
#define PWM_FAULT_FAULT1 0x00000002 // MnPWM1 Fault
3476
#define PWM_FAULT_FAULT0 0x00000001 // MnPWM0 Fault
3477
3478
//*****************************************************************************
3479
//
3480
// The following are defines for the bit fields in the PWM_O_INTEN register.
3481
//
3482
//*****************************************************************************
3483
#define PWM_INTEN_INTFAULT3 0x00080000 // Interrupt Fault 3
3484
#define PWM_INTEN_INTFAULT2 0x00040000 // Interrupt Fault 2
3485
#define PWM_INTEN_INTFAULT1 0x00020000 // Interrupt Fault 1
3486
#define PWM_INTEN_INTFAULT0 0x00010000 // Interrupt Fault 0
3487
#define PWM_INTEN_INTPWM3 0x00000008 // PWM3 Interrupt Enable
3488
#define PWM_INTEN_INTPWM2 0x00000004 // PWM2 Interrupt Enable
3489
#define PWM_INTEN_INTPWM1 0x00000002 // PWM1 Interrupt Enable
3490
#define PWM_INTEN_INTPWM0 0x00000001 // PWM0 Interrupt Enable
3491
3492
//*****************************************************************************
3493
//
3494
// The following are defines for the bit fields in the PWM_O_RIS register.
3495
//
3496
//*****************************************************************************
3497
#define PWM_RIS_INTFAULT3 0x00080000 // Interrupt Fault PWM 3
3498
#define PWM_RIS_INTFAULT2 0x00040000 // Interrupt Fault PWM 2
3499
#define PWM_RIS_INTFAULT1 0x00020000 // Interrupt Fault PWM 1
3500
#define PWM_RIS_INTFAULT0 0x00010000 // Interrupt Fault PWM 0
3501
#define PWM_RIS_INTPWM3 0x00000008 // PWM3 Interrupt Asserted
3502
#define PWM_RIS_INTPWM2 0x00000004 // PWM2 Interrupt Asserted
3503
#define PWM_RIS_INTPWM1 0x00000002 // PWM1 Interrupt Asserted
3504
#define PWM_RIS_INTPWM0 0x00000001 // PWM0 Interrupt Asserted
3505
3506
//*****************************************************************************
3507
//
3508
// The following are defines for the bit fields in the PWM_O_ISC register.
3509
//
3510
//*****************************************************************************
3511
#define PWM_ISC_INTFAULT3 0x00080000 // FAULT3 Interrupt Asserted
3512
#define PWM_ISC_INTFAULT2 0x00040000 // FAULT2 Interrupt Asserted
3513
#define PWM_ISC_INTFAULT1 0x00020000 // FAULT1 Interrupt Asserted
3514
#define PWM_ISC_INTFAULT0 0x00010000 // FAULT0 Interrupt Asserted
3515
#define PWM_ISC_INTPWM3 0x00000008 // PWM3 Interrupt Status
3516
#define PWM_ISC_INTPWM2 0x00000004 // PWM2 Interrupt Status
3517
#define PWM_ISC_INTPWM1 0x00000002 // PWM1 Interrupt Status
3518
#define PWM_ISC_INTPWM0 0x00000001 // PWM0 Interrupt Status
3519
3520
//*****************************************************************************
3521
//
3522
// The following are defines for the bit fields in the PWM_O_STATUS register.
3523
//
3524
//*****************************************************************************
3525
#define PWM_STATUS_FAULT3 0x00000008 // Generator 3 Fault Status
3526
#define PWM_STATUS_FAULT2 0x00000004 // Generator 2 Fault Status
3527
#define PWM_STATUS_FAULT1 0x00000002 // Generator 1 Fault Status
3528
#define PWM_STATUS_FAULT0 0x00000001 // Generator 0 Fault Status
3529
3530
//*****************************************************************************
3531
//
3532
// The following are defines for the bit fields in the PWM_O_FAULTVAL register.
3533
//
3534
//*****************************************************************************
3535
#define PWM_FAULTVAL_PWM7 0x00000080 // MnPWM7 Fault Value
3536
#define PWM_FAULTVAL_PWM6 0x00000040 // MnPWM6 Fault Value
3537
#define PWM_FAULTVAL_PWM5 0x00000020 // MnPWM5 Fault Value
3538
#define PWM_FAULTVAL_PWM4 0x00000010 // MnPWM4 Fault Value
3539
#define PWM_FAULTVAL_PWM3 0x00000008 // MnPWM3 Fault Value
3540
#define PWM_FAULTVAL_PWM2 0x00000004 // MnPWM2 Fault Value
3541
#define PWM_FAULTVAL_PWM1 0x00000002 // MnPWM1 Fault Value
3542
#define PWM_FAULTVAL_PWM0 0x00000001 // MnPWM0 Fault Value
3543
3544
//*****************************************************************************
3545
//
3546
// The following are defines for the bit fields in the PWM_O_ENUPD register.
3547
//
3548
//*****************************************************************************
3549
#define PWM_ENUPD_ENUPD7_M 0x0000C000 // MnPWM7 Enable Update Mode
3550
#define PWM_ENUPD_ENUPD7_IMM 0x00000000 // Immediate
3551
#define PWM_ENUPD_ENUPD7_LSYNC 0x00008000 // Locally Synchronized
3552
#define PWM_ENUPD_ENUPD7_GSYNC 0x0000C000 // Globally Synchronized
3553
#define PWM_ENUPD_ENUPD6_M 0x00003000 // MnPWM6 Enable Update Mode
3554
#define PWM_ENUPD_ENUPD6_IMM 0x00000000 // Immediate
3555
#define PWM_ENUPD_ENUPD6_LSYNC 0x00002000 // Locally Synchronized
3556
#define PWM_ENUPD_ENUPD6_GSYNC 0x00003000 // Globally Synchronized
3557
#define PWM_ENUPD_ENUPD5_M 0x00000C00 // MnPWM5 Enable Update Mode
3558
#define PWM_ENUPD_ENUPD5_IMM 0x00000000 // Immediate
3559
#define PWM_ENUPD_ENUPD5_LSYNC 0x00000800 // Locally Synchronized
3560
#define PWM_ENUPD_ENUPD5_GSYNC 0x00000C00 // Globally Synchronized
3561
#define PWM_ENUPD_ENUPD4_M 0x00000300 // MnPWM4 Enable Update Mode
3562
#define PWM_ENUPD_ENUPD4_IMM 0x00000000 // Immediate
3563
#define PWM_ENUPD_ENUPD4_LSYNC 0x00000200 // Locally Synchronized
3564
#define PWM_ENUPD_ENUPD4_GSYNC 0x00000300 // Globally Synchronized
3565
#define PWM_ENUPD_ENUPD3_M 0x000000C0 // MnPWM3 Enable Update Mode
3566
#define PWM_ENUPD_ENUPD3_IMM 0x00000000 // Immediate
3567
#define PWM_ENUPD_ENUPD3_LSYNC 0x00000080 // Locally Synchronized
3568
#define PWM_ENUPD_ENUPD3_GSYNC 0x000000C0 // Globally Synchronized
3569
#define PWM_ENUPD_ENUPD2_M 0x00000030 // MnPWM2 Enable Update Mode
3570
#define PWM_ENUPD_ENUPD2_IMM 0x00000000 // Immediate
3571
#define PWM_ENUPD_ENUPD2_LSYNC 0x00000020 // Locally Synchronized
3572
#define PWM_ENUPD_ENUPD2_GSYNC 0x00000030 // Globally Synchronized
3573
#define PWM_ENUPD_ENUPD1_M 0x0000000C // MnPWM1 Enable Update Mode
3574
#define PWM_ENUPD_ENUPD1_IMM 0x00000000 // Immediate
3575
#define PWM_ENUPD_ENUPD1_LSYNC 0x00000008 // Locally Synchronized
3576
#define PWM_ENUPD_ENUPD1_GSYNC 0x0000000C // Globally Synchronized
3577
#define PWM_ENUPD_ENUPD0_M 0x00000003 // MnPWM0 Enable Update Mode
3578
#define PWM_ENUPD_ENUPD0_IMM 0x00000000 // Immediate
3579
#define PWM_ENUPD_ENUPD0_LSYNC 0x00000002 // Locally Synchronized
3580
#define PWM_ENUPD_ENUPD0_GSYNC 0x00000003 // Globally Synchronized
3581
3582
//*****************************************************************************
3583
//
3584
// The following are defines for the bit fields in the PWM_O_0_CTL register.
3585
//
3586
//*****************************************************************************
3587
#define PWM_0_CTL_LATCH 0x00040000 // Latch Fault Input
3588
#define PWM_0_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
3589
#define PWM_0_CTL_FLTSRC 0x00010000 // Fault Condition Source
3590
#define PWM_0_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
3591
#define PWM_0_CTL_DBFALLUPD_I 0x00000000 // Immediate
3592
#define PWM_0_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
3593
#define PWM_0_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
3594
#define PWM_0_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
3595
#define PWM_0_CTL_DBRISEUPD_I 0x00000000 // Immediate
3596
#define PWM_0_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
3597
#define PWM_0_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
3598
#define PWM_0_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
3599
#define PWM_0_CTL_DBCTLUPD_I 0x00000000 // Immediate
3600
#define PWM_0_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
3601
#define PWM_0_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
3602
#define PWM_0_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
3603
#define PWM_0_CTL_GENBUPD_I 0x00000000 // Immediate
3604
#define PWM_0_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
3605
#define PWM_0_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
3606
#define PWM_0_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
3607
#define PWM_0_CTL_GENAUPD_I 0x00000000 // Immediate
3608
#define PWM_0_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
3609
#define PWM_0_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
3610
#define PWM_0_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
3611
#define PWM_0_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
3612
#define PWM_0_CTL_LOADUPD 0x00000008 // Load Register Update Mode
3613
#define PWM_0_CTL_DEBUG 0x00000004 // Debug Mode
3614
#define PWM_0_CTL_MODE 0x00000002 // Counter Mode
3615
#define PWM_0_CTL_ENABLE 0x00000001 // PWM Block Enable
3616
3617
//*****************************************************************************
3618
//
3619
// The following are defines for the bit fields in the PWM_O_0_INTEN register.
3620
//
3621
//*****************************************************************************
3622
#define PWM_0_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
3623
// Down
3624
#define PWM_0_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
3625
#define PWM_0_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
3626
// Down
3627
#define PWM_0_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
3628
#define PWM_0_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
3629
#define PWM_0_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
3630
#define PWM_0_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
3631
// Down
3632
#define PWM_0_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
3633
// Up
3634
#define PWM_0_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
3635
// Down
3636
#define PWM_0_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
3637
// Up
3638
#define PWM_0_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
3639
#define PWM_0_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
3640
3641
//*****************************************************************************
3642
//
3643
// The following are defines for the bit fields in the PWM_O_0_RIS register.
3644
//
3645
//*****************************************************************************
3646
#define PWM_0_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
3647
// Status
3648
#define PWM_0_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
3649
#define PWM_0_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
3650
// Status
3651
#define PWM_0_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
3652
#define PWM_0_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
3653
#define PWM_0_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
3654
3655
//*****************************************************************************
3656
//
3657
// The following are defines for the bit fields in the PWM_O_0_ISC register.
3658
//
3659
//*****************************************************************************
3660
#define PWM_0_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
3661
#define PWM_0_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
3662
#define PWM_0_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
3663
#define PWM_0_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
3664
#define PWM_0_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
3665
#define PWM_0_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
3666
3667
//*****************************************************************************
3668
//
3669
// The following are defines for the bit fields in the PWM_O_0_LOAD register.
3670
//
3671
//*****************************************************************************
3672
#define PWM_0_LOAD_M 0x0000FFFF // Counter Load Value
3673
#define PWM_0_LOAD_S 0
3674
3675
//*****************************************************************************
3676
//
3677
// The following are defines for the bit fields in the PWM_O_0_COUNT register.
3678
//
3679
//*****************************************************************************
3680
#define PWM_0_COUNT_M 0x0000FFFF // Counter Value
3681
#define PWM_0_COUNT_S 0
3682
3683
//*****************************************************************************
3684
//
3685
// The following are defines for the bit fields in the PWM_O_0_CMPA register.
3686
//
3687
//*****************************************************************************
3688
#define PWM_0_CMPA_M 0x0000FFFF // Comparator A Value
3689
#define PWM_0_CMPA_S 0
3690
3691
//*****************************************************************************
3692
//
3693
// The following are defines for the bit fields in the PWM_O_0_CMPB register.
3694
//
3695
//*****************************************************************************
3696
#define PWM_0_CMPB_M 0x0000FFFF // Comparator B Value
3697
#define PWM_0_CMPB_S 0
3698
3699
//*****************************************************************************
3700
//
3701
// The following are defines for the bit fields in the PWM_O_0_GENA register.
3702
//
3703
//*****************************************************************************
3704
#define PWM_0_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
3705
#define PWM_0_GENA_ACTCMPBD_NONE \
3706
0x00000000 // Do nothing
3707
#define PWM_0_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
3708
#define PWM_0_GENA_ACTCMPBD_ZERO \
3709
0x00000800 // Drive pwmA Low
3710
#define PWM_0_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
3711
#define PWM_0_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
3712
#define PWM_0_GENA_ACTCMPBU_NONE \
3713
0x00000000 // Do nothing
3714
#define PWM_0_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
3715
#define PWM_0_GENA_ACTCMPBU_ZERO \
3716
0x00000200 // Drive pwmA Low
3717
#define PWM_0_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
3718
#define PWM_0_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
3719
#define PWM_0_GENA_ACTCMPAD_NONE \
3720
0x00000000 // Do nothing
3721
#define PWM_0_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
3722
#define PWM_0_GENA_ACTCMPAD_ZERO \
3723
0x00000080 // Drive pwmA Low
3724
#define PWM_0_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
3725
#define PWM_0_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
3726
#define PWM_0_GENA_ACTCMPAU_NONE \
3727
0x00000000 // Do nothing
3728
#define PWM_0_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
3729
#define PWM_0_GENA_ACTCMPAU_ZERO \
3730
0x00000020 // Drive pwmA Low
3731
#define PWM_0_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
3732
#define PWM_0_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
3733
#define PWM_0_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
3734
#define PWM_0_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
3735
#define PWM_0_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
3736
#define PWM_0_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
3737
#define PWM_0_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
3738
#define PWM_0_GENA_ACTZERO_NONE 0x00000000 // Do nothing
3739
#define PWM_0_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
3740
#define PWM_0_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
3741
#define PWM_0_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
3742
3743
//*****************************************************************************
3744
//
3745
// The following are defines for the bit fields in the PWM_O_0_GENB register.
3746
//
3747
//*****************************************************************************
3748
#define PWM_0_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
3749
#define PWM_0_GENB_ACTCMPBD_NONE \
3750
0x00000000 // Do nothing
3751
#define PWM_0_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
3752
#define PWM_0_GENB_ACTCMPBD_ZERO \
3753
0x00000800 // Drive pwmB Low
3754
#define PWM_0_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
3755
#define PWM_0_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
3756
#define PWM_0_GENB_ACTCMPBU_NONE \
3757
0x00000000 // Do nothing
3758
#define PWM_0_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
3759
#define PWM_0_GENB_ACTCMPBU_ZERO \
3760
0x00000200 // Drive pwmB Low
3761
#define PWM_0_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
3762
#define PWM_0_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
3763
#define PWM_0_GENB_ACTCMPAD_NONE \
3764
0x00000000 // Do nothing
3765
#define PWM_0_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
3766
#define PWM_0_GENB_ACTCMPAD_ZERO \
3767
0x00000080 // Drive pwmB Low
3768
#define PWM_0_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
3769
#define PWM_0_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
3770
#define PWM_0_GENB_ACTCMPAU_NONE \
3771
0x00000000 // Do nothing
3772
#define PWM_0_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
3773
#define PWM_0_GENB_ACTCMPAU_ZERO \
3774
0x00000020 // Drive pwmB Low
3775
#define PWM_0_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
3776
#define PWM_0_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
3777
#define PWM_0_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
3778
#define PWM_0_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
3779
#define PWM_0_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
3780
#define PWM_0_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
3781
#define PWM_0_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
3782
#define PWM_0_GENB_ACTZERO_NONE 0x00000000 // Do nothing
3783
#define PWM_0_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
3784
#define PWM_0_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
3785
#define PWM_0_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
3786
3787
//*****************************************************************************
3788
//
3789
// The following are defines for the bit fields in the PWM_O_0_DBCTL register.
3790
//
3791
//*****************************************************************************
3792
#define PWM_0_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
3793
3794
//*****************************************************************************
3795
//
3796
// The following are defines for the bit fields in the PWM_O_0_DBRISE register.
3797
//
3798
//*****************************************************************************
3799
#define PWM_0_DBRISE_DELAY_M 0x00000FFF // Dead-Band Rise Delay
3800
#define PWM_0_DBRISE_DELAY_S 0
3801
3802
//*****************************************************************************
3803
//
3804
// The following are defines for the bit fields in the PWM_O_0_DBFALL register.
3805
//
3806
//*****************************************************************************
3807
#define PWM_0_DBFALL_DELAY_M 0x00000FFF // Dead-Band Fall Delay
3808
#define PWM_0_DBFALL_DELAY_S 0
3809
3810
//*****************************************************************************
3811
//
3812
// The following are defines for the bit fields in the PWM_O_0_FLTSRC0
3813
// register.
3814
//
3815
//*****************************************************************************
3816
#define PWM_0_FLTSRC0_FAULT3 0x00000008 // Fault3 Input
3817
#define PWM_0_FLTSRC0_FAULT2 0x00000004 // Fault2 Input
3818
#define PWM_0_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
3819
#define PWM_0_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
3820
3821
//*****************************************************************************
3822
//
3823
// The following are defines for the bit fields in the PWM_O_0_FLTSRC1
3824
// register.
3825
//
3826
//*****************************************************************************
3827
#define PWM_0_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
3828
#define PWM_0_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
3829
#define PWM_0_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
3830
#define PWM_0_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
3831
#define PWM_0_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
3832
#define PWM_0_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
3833
#define PWM_0_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
3834
#define PWM_0_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
3835
3836
//*****************************************************************************
3837
//
3838
// The following are defines for the bit fields in the PWM_O_0_MINFLTPER
3839
// register.
3840
//
3841
//*****************************************************************************
3842
#define PWM_0_MINFLTPER_M 0x0000FFFF // Minimum Fault Period
3843
#define PWM_0_MINFLTPER_S 0
3844
3845
//*****************************************************************************
3846
//
3847
// The following are defines for the bit fields in the PWM_O_1_CTL register.
3848
//
3849
//*****************************************************************************
3850
#define PWM_1_CTL_LATCH 0x00040000 // Latch Fault Input
3851
#define PWM_1_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
3852
#define PWM_1_CTL_FLTSRC 0x00010000 // Fault Condition Source
3853
#define PWM_1_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
3854
#define PWM_1_CTL_DBFALLUPD_I 0x00000000 // Immediate
3855
#define PWM_1_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
3856
#define PWM_1_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
3857
#define PWM_1_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
3858
#define PWM_1_CTL_DBRISEUPD_I 0x00000000 // Immediate
3859
#define PWM_1_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
3860
#define PWM_1_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
3861
#define PWM_1_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
3862
#define PWM_1_CTL_DBCTLUPD_I 0x00000000 // Immediate
3863
#define PWM_1_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
3864
#define PWM_1_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
3865
#define PWM_1_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
3866
#define PWM_1_CTL_GENBUPD_I 0x00000000 // Immediate
3867
#define PWM_1_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
3868
#define PWM_1_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
3869
#define PWM_1_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
3870
#define PWM_1_CTL_GENAUPD_I 0x00000000 // Immediate
3871
#define PWM_1_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
3872
#define PWM_1_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
3873
#define PWM_1_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
3874
#define PWM_1_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
3875
#define PWM_1_CTL_LOADUPD 0x00000008 // Load Register Update Mode
3876
#define PWM_1_CTL_DEBUG 0x00000004 // Debug Mode
3877
#define PWM_1_CTL_MODE 0x00000002 // Counter Mode
3878
#define PWM_1_CTL_ENABLE 0x00000001 // PWM Block Enable
3879
3880
//*****************************************************************************
3881
//
3882
// The following are defines for the bit fields in the PWM_O_1_INTEN register.
3883
//
3884
//*****************************************************************************
3885
#define PWM_1_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
3886
// Down
3887
#define PWM_1_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
3888
#define PWM_1_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
3889
// Down
3890
#define PWM_1_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
3891
#define PWM_1_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
3892
#define PWM_1_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
3893
#define PWM_1_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
3894
// Down
3895
#define PWM_1_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
3896
// Up
3897
#define PWM_1_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
3898
// Down
3899
#define PWM_1_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
3900
// Up
3901
#define PWM_1_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
3902
#define PWM_1_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
3903
3904
//*****************************************************************************
3905
//
3906
// The following are defines for the bit fields in the PWM_O_1_RIS register.
3907
//
3908
//*****************************************************************************
3909
#define PWM_1_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
3910
// Status
3911
#define PWM_1_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
3912
#define PWM_1_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
3913
// Status
3914
#define PWM_1_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
3915
#define PWM_1_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
3916
#define PWM_1_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
3917
3918
//*****************************************************************************
3919
//
3920
// The following are defines for the bit fields in the PWM_O_1_ISC register.
3921
//
3922
//*****************************************************************************
3923
#define PWM_1_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
3924
#define PWM_1_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
3925
#define PWM_1_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
3926
#define PWM_1_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
3927
#define PWM_1_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
3928
#define PWM_1_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
3929
3930
//*****************************************************************************
3931
//
3932
// The following are defines for the bit fields in the PWM_O_1_LOAD register.
3933
//
3934
//*****************************************************************************
3935
#define PWM_1_LOAD_LOAD_M 0x0000FFFF // Counter Load Value
3936
#define PWM_1_LOAD_LOAD_S 0
3937
3938
//*****************************************************************************
3939
//
3940
// The following are defines for the bit fields in the PWM_O_1_COUNT register.
3941
//
3942
//*****************************************************************************
3943
#define PWM_1_COUNT_COUNT_M 0x0000FFFF // Counter Value
3944
#define PWM_1_COUNT_COUNT_S 0
3945
3946
//*****************************************************************************
3947
//
3948
// The following are defines for the bit fields in the PWM_O_1_CMPA register.
3949
//
3950
//*****************************************************************************
3951
#define PWM_1_CMPA_COMPA_M 0x0000FFFF // Comparator A Value
3952
#define PWM_1_CMPA_COMPA_S 0
3953
3954
//*****************************************************************************
3955
//
3956
// The following are defines for the bit fields in the PWM_O_1_CMPB register.
3957
//
3958
//*****************************************************************************
3959
#define PWM_1_CMPB_COMPB_M 0x0000FFFF // Comparator B Value
3960
#define PWM_1_CMPB_COMPB_S 0
3961
3962
//*****************************************************************************
3963
//
3964
// The following are defines for the bit fields in the PWM_O_1_GENA register.
3965
//
3966
//*****************************************************************************
3967
#define PWM_1_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
3968
#define PWM_1_GENA_ACTCMPBD_NONE \
3969
0x00000000 // Do nothing
3970
#define PWM_1_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
3971
#define PWM_1_GENA_ACTCMPBD_ZERO \
3972
0x00000800 // Drive pwmA Low
3973
#define PWM_1_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
3974
#define PWM_1_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
3975
#define PWM_1_GENA_ACTCMPBU_NONE \
3976
0x00000000 // Do nothing
3977
#define PWM_1_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
3978
#define PWM_1_GENA_ACTCMPBU_ZERO \
3979
0x00000200 // Drive pwmA Low
3980
#define PWM_1_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
3981
#define PWM_1_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
3982
#define PWM_1_GENA_ACTCMPAD_NONE \
3983
0x00000000 // Do nothing
3984
#define PWM_1_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
3985
#define PWM_1_GENA_ACTCMPAD_ZERO \
3986
0x00000080 // Drive pwmA Low
3987
#define PWM_1_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
3988
#define PWM_1_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
3989
#define PWM_1_GENA_ACTCMPAU_NONE \
3990
0x00000000 // Do nothing
3991
#define PWM_1_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
3992
#define PWM_1_GENA_ACTCMPAU_ZERO \
3993
0x00000020 // Drive pwmA Low
3994
#define PWM_1_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
3995
#define PWM_1_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
3996
#define PWM_1_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
3997
#define PWM_1_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
3998
#define PWM_1_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
3999
#define PWM_1_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
4000
#define PWM_1_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
4001
#define PWM_1_GENA_ACTZERO_NONE 0x00000000 // Do nothing
4002
#define PWM_1_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
4003
#define PWM_1_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
4004
#define PWM_1_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
4005
4006
//*****************************************************************************
4007
//
4008
// The following are defines for the bit fields in the PWM_O_1_GENB register.
4009
//
4010
//*****************************************************************************
4011
#define PWM_1_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
4012
#define PWM_1_GENB_ACTCMPBD_NONE \
4013
0x00000000 // Do nothing
4014
#define PWM_1_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
4015
#define PWM_1_GENB_ACTCMPBD_ZERO \
4016
0x00000800 // Drive pwmB Low
4017
#define PWM_1_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
4018
#define PWM_1_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
4019
#define PWM_1_GENB_ACTCMPBU_NONE \
4020
0x00000000 // Do nothing
4021
#define PWM_1_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
4022
#define PWM_1_GENB_ACTCMPBU_ZERO \
4023
0x00000200 // Drive pwmB Low
4024
#define PWM_1_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
4025
#define PWM_1_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
4026
#define PWM_1_GENB_ACTCMPAD_NONE \
4027
0x00000000 // Do nothing
4028
#define PWM_1_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
4029
#define PWM_1_GENB_ACTCMPAD_ZERO \
4030
0x00000080 // Drive pwmB Low
4031
#define PWM_1_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
4032
#define PWM_1_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
4033
#define PWM_1_GENB_ACTCMPAU_NONE \
4034
0x00000000 // Do nothing
4035
#define PWM_1_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
4036
#define PWM_1_GENB_ACTCMPAU_ZERO \
4037
0x00000020 // Drive pwmB Low
4038
#define PWM_1_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
4039
#define PWM_1_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
4040
#define PWM_1_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
4041
#define PWM_1_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
4042
#define PWM_1_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
4043
#define PWM_1_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
4044
#define PWM_1_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
4045
#define PWM_1_GENB_ACTZERO_NONE 0x00000000 // Do nothing
4046
#define PWM_1_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
4047
#define PWM_1_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
4048
#define PWM_1_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
4049
4050
//*****************************************************************************
4051
//
4052
// The following are defines for the bit fields in the PWM_O_1_DBCTL register.
4053
//
4054
//*****************************************************************************
4055
#define PWM_1_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
4056
4057
//*****************************************************************************
4058
//
4059
// The following are defines for the bit fields in the PWM_O_1_DBRISE register.
4060
//
4061
//*****************************************************************************
4062
#define PWM_1_DBRISE_RISEDELAY_M \
4063
0x00000FFF // Dead-Band Rise Delay
4064
#define PWM_1_DBRISE_RISEDELAY_S \
4065
0
4066
4067
//*****************************************************************************
4068
//
4069
// The following are defines for the bit fields in the PWM_O_1_DBFALL register.
4070
//
4071
//*****************************************************************************
4072
#define PWM_1_DBFALL_FALLDELAY_M \
4073
0x00000FFF // Dead-Band Fall Delay
4074
#define PWM_1_DBFALL_FALLDELAY_S \
4075
0
4076
4077
//*****************************************************************************
4078
//
4079
// The following are defines for the bit fields in the PWM_O_1_FLTSRC0
4080
// register.
4081
//
4082
//*****************************************************************************
4083
#define PWM_1_FLTSRC0_FAULT3 0x00000008 // Fault3 Input
4084
#define PWM_1_FLTSRC0_FAULT2 0x00000004 // Fault2 Input
4085
#define PWM_1_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
4086
#define PWM_1_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
4087
4088
//*****************************************************************************
4089
//
4090
// The following are defines for the bit fields in the PWM_O_1_FLTSRC1
4091
// register.
4092
//
4093
//*****************************************************************************
4094
#define PWM_1_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
4095
#define PWM_1_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
4096
#define PWM_1_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
4097
#define PWM_1_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
4098
#define PWM_1_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
4099
#define PWM_1_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
4100
#define PWM_1_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
4101
#define PWM_1_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
4102
4103
//*****************************************************************************
4104
//
4105
// The following are defines for the bit fields in the PWM_O_1_MINFLTPER
4106
// register.
4107
//
4108
//*****************************************************************************
4109
#define PWM_1_MINFLTPER_MFP_M 0x0000FFFF // Minimum Fault Period
4110
#define PWM_1_MINFLTPER_MFP_S 0
4111
4112
//*****************************************************************************
4113
//
4114
// The following are defines for the bit fields in the PWM_O_2_CTL register.
4115
//
4116
//*****************************************************************************
4117
#define PWM_2_CTL_LATCH 0x00040000 // Latch Fault Input
4118
#define PWM_2_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
4119
#define PWM_2_CTL_FLTSRC 0x00010000 // Fault Condition Source
4120
#define PWM_2_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
4121
#define PWM_2_CTL_DBFALLUPD_I 0x00000000 // Immediate
4122
#define PWM_2_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
4123
#define PWM_2_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
4124
#define PWM_2_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
4125
#define PWM_2_CTL_DBRISEUPD_I 0x00000000 // Immediate
4126
#define PWM_2_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
4127
#define PWM_2_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
4128
#define PWM_2_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
4129
#define PWM_2_CTL_DBCTLUPD_I 0x00000000 // Immediate
4130
#define PWM_2_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
4131
#define PWM_2_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
4132
#define PWM_2_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
4133
#define PWM_2_CTL_GENBUPD_I 0x00000000 // Immediate
4134
#define PWM_2_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
4135
#define PWM_2_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
4136
#define PWM_2_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
4137
#define PWM_2_CTL_GENAUPD_I 0x00000000 // Immediate
4138
#define PWM_2_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
4139
#define PWM_2_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
4140
#define PWM_2_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
4141
#define PWM_2_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
4142
#define PWM_2_CTL_LOADUPD 0x00000008 // Load Register Update Mode
4143
#define PWM_2_CTL_DEBUG 0x00000004 // Debug Mode
4144
#define PWM_2_CTL_MODE 0x00000002 // Counter Mode
4145
#define PWM_2_CTL_ENABLE 0x00000001 // PWM Block Enable
4146
4147
//*****************************************************************************
4148
//
4149
// The following are defines for the bit fields in the PWM_O_2_INTEN register.
4150
//
4151
//*****************************************************************************
4152
#define PWM_2_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
4153
// Down
4154
#define PWM_2_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
4155
#define PWM_2_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
4156
// Down
4157
#define PWM_2_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
4158
#define PWM_2_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
4159
#define PWM_2_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
4160
#define PWM_2_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
4161
// Down
4162
#define PWM_2_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
4163
// Up
4164
#define PWM_2_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
4165
// Down
4166
#define PWM_2_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
4167
// Up
4168
#define PWM_2_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
4169
#define PWM_2_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
4170
4171
//*****************************************************************************
4172
//
4173
// The following are defines for the bit fields in the PWM_O_2_RIS register.
4174
//
4175
//*****************************************************************************
4176
#define PWM_2_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
4177
// Status
4178
#define PWM_2_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
4179
#define PWM_2_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
4180
// Status
4181
#define PWM_2_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
4182
#define PWM_2_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
4183
#define PWM_2_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
4184
4185
//*****************************************************************************
4186
//
4187
// The following are defines for the bit fields in the PWM_O_2_ISC register.
4188
//
4189
//*****************************************************************************
4190
#define PWM_2_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
4191
#define PWM_2_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
4192
#define PWM_2_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
4193
#define PWM_2_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
4194
#define PWM_2_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
4195
#define PWM_2_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
4196
4197
//*****************************************************************************
4198
//
4199
// The following are defines for the bit fields in the PWM_O_2_LOAD register.
4200
//
4201
//*****************************************************************************
4202
#define PWM_2_LOAD_LOAD_M 0x0000FFFF // Counter Load Value
4203
#define PWM_2_LOAD_LOAD_S 0
4204
4205
//*****************************************************************************
4206
//
4207
// The following are defines for the bit fields in the PWM_O_2_COUNT register.
4208
//
4209
//*****************************************************************************
4210
#define PWM_2_COUNT_COUNT_M 0x0000FFFF // Counter Value
4211
#define PWM_2_COUNT_COUNT_S 0
4212
4213
//*****************************************************************************
4214
//
4215
// The following are defines for the bit fields in the PWM_O_2_CMPA register.
4216
//
4217
//*****************************************************************************
4218
#define PWM_2_CMPA_COMPA_M 0x0000FFFF // Comparator A Value
4219
#define PWM_2_CMPA_COMPA_S 0
4220
4221
//*****************************************************************************
4222
//
4223
// The following are defines for the bit fields in the PWM_O_2_CMPB register.
4224
//
4225
//*****************************************************************************
4226
#define PWM_2_CMPB_COMPB_M 0x0000FFFF // Comparator B Value
4227
#define PWM_2_CMPB_COMPB_S 0
4228
4229
//*****************************************************************************
4230
//
4231
// The following are defines for the bit fields in the PWM_O_2_GENA register.
4232
//
4233
//*****************************************************************************
4234
#define PWM_2_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
4235
#define PWM_2_GENA_ACTCMPBD_NONE \
4236
0x00000000 // Do nothing
4237
#define PWM_2_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
4238
#define PWM_2_GENA_ACTCMPBD_ZERO \
4239
0x00000800 // Drive pwmA Low
4240
#define PWM_2_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
4241
#define PWM_2_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
4242
#define PWM_2_GENA_ACTCMPBU_NONE \
4243
0x00000000 // Do nothing
4244
#define PWM_2_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
4245
#define PWM_2_GENA_ACTCMPBU_ZERO \
4246
0x00000200 // Drive pwmA Low
4247
#define PWM_2_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
4248
#define PWM_2_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
4249
#define PWM_2_GENA_ACTCMPAD_NONE \
4250
0x00000000 // Do nothing
4251
#define PWM_2_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
4252
#define PWM_2_GENA_ACTCMPAD_ZERO \
4253
0x00000080 // Drive pwmA Low
4254
#define PWM_2_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
4255
#define PWM_2_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
4256
#define PWM_2_GENA_ACTCMPAU_NONE \
4257
0x00000000 // Do nothing
4258
#define PWM_2_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
4259
#define PWM_2_GENA_ACTCMPAU_ZERO \
4260
0x00000020 // Drive pwmA Low
4261
#define PWM_2_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
4262
#define PWM_2_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
4263
#define PWM_2_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
4264
#define PWM_2_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
4265
#define PWM_2_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
4266
#define PWM_2_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
4267
#define PWM_2_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
4268
#define PWM_2_GENA_ACTZERO_NONE 0x00000000 // Do nothing
4269
#define PWM_2_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
4270
#define PWM_2_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
4271
#define PWM_2_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
4272
4273
//*****************************************************************************
4274
//
4275
// The following are defines for the bit fields in the PWM_O_2_GENB register.
4276
//
4277
//*****************************************************************************
4278
#define PWM_2_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
4279
#define PWM_2_GENB_ACTCMPBD_NONE \
4280
0x00000000 // Do nothing
4281
#define PWM_2_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
4282
#define PWM_2_GENB_ACTCMPBD_ZERO \
4283
0x00000800 // Drive pwmB Low
4284
#define PWM_2_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
4285
#define PWM_2_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
4286
#define PWM_2_GENB_ACTCMPBU_NONE \
4287
0x00000000 // Do nothing
4288
#define PWM_2_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
4289
#define PWM_2_GENB_ACTCMPBU_ZERO \
4290
0x00000200 // Drive pwmB Low
4291
#define PWM_2_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
4292
#define PWM_2_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
4293
#define PWM_2_GENB_ACTCMPAD_NONE \
4294
0x00000000 // Do nothing
4295
#define PWM_2_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
4296
#define PWM_2_GENB_ACTCMPAD_ZERO \
4297
0x00000080 // Drive pwmB Low
4298
#define PWM_2_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
4299
#define PWM_2_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
4300
#define PWM_2_GENB_ACTCMPAU_NONE \
4301
0x00000000 // Do nothing
4302
#define PWM_2_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
4303
#define PWM_2_GENB_ACTCMPAU_ZERO \
4304
0x00000020 // Drive pwmB Low
4305
#define PWM_2_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
4306
#define PWM_2_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
4307
#define PWM_2_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
4308
#define PWM_2_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
4309
#define PWM_2_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
4310
#define PWM_2_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
4311
#define PWM_2_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
4312
#define PWM_2_GENB_ACTZERO_NONE 0x00000000 // Do nothing
4313
#define PWM_2_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
4314
#define PWM_2_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
4315
#define PWM_2_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
4316
4317
//*****************************************************************************
4318
//
4319
// The following are defines for the bit fields in the PWM_O_2_DBCTL register.
4320
//
4321
//*****************************************************************************
4322
#define PWM_2_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
4323
4324
//*****************************************************************************
4325
//
4326
// The following are defines for the bit fields in the PWM_O_2_DBRISE register.
4327
//
4328
//*****************************************************************************
4329
#define PWM_2_DBRISE_RISEDELAY_M \
4330
0x00000FFF // Dead-Band Rise Delay
4331
#define PWM_2_DBRISE_RISEDELAY_S \
4332
0
4333
4334
//*****************************************************************************
4335
//
4336
// The following are defines for the bit fields in the PWM_O_2_DBFALL register.
4337
//
4338
//*****************************************************************************
4339
#define PWM_2_DBFALL_FALLDELAY_M \
4340
0x00000FFF // Dead-Band Fall Delay
4341
#define PWM_2_DBFALL_FALLDELAY_S \
4342
0
4343
4344
//*****************************************************************************
4345
//
4346
// The following are defines for the bit fields in the PWM_O_2_FLTSRC0
4347
// register.
4348
//
4349
//*****************************************************************************
4350
#define PWM_2_FLTSRC0_FAULT3 0x00000008 // Fault3 Input
4351
#define PWM_2_FLTSRC0_FAULT2 0x00000004 // Fault2 Input
4352
#define PWM_2_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
4353
#define PWM_2_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
4354
4355
//*****************************************************************************
4356
//
4357
// The following are defines for the bit fields in the PWM_O_2_FLTSRC1
4358
// register.
4359
//
4360
//*****************************************************************************
4361
#define PWM_2_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
4362
#define PWM_2_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
4363
#define PWM_2_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
4364
#define PWM_2_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
4365
#define PWM_2_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
4366
#define PWM_2_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
4367
#define PWM_2_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
4368
#define PWM_2_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
4369
4370
//*****************************************************************************
4371
//
4372
// The following are defines for the bit fields in the PWM_O_2_MINFLTPER
4373
// register.
4374
//
4375
//*****************************************************************************
4376
#define PWM_2_MINFLTPER_MFP_M 0x0000FFFF // Minimum Fault Period
4377
#define PWM_2_MINFLTPER_MFP_S 0
4378
4379
//*****************************************************************************
4380
//
4381
// The following are defines for the bit fields in the PWM_O_3_CTL register.
4382
//
4383
//*****************************************************************************
4384
#define PWM_3_CTL_LATCH 0x00040000 // Latch Fault Input
4385
#define PWM_3_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
4386
#define PWM_3_CTL_FLTSRC 0x00010000 // Fault Condition Source
4387
#define PWM_3_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
4388
#define PWM_3_CTL_DBFALLUPD_I 0x00000000 // Immediate
4389
#define PWM_3_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
4390
#define PWM_3_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
4391
#define PWM_3_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
4392
#define PWM_3_CTL_DBRISEUPD_I 0x00000000 // Immediate
4393
#define PWM_3_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
4394
#define PWM_3_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
4395
#define PWM_3_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
4396
#define PWM_3_CTL_DBCTLUPD_I 0x00000000 // Immediate
4397
#define PWM_3_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
4398
#define PWM_3_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
4399
#define PWM_3_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
4400
#define PWM_3_CTL_GENBUPD_I 0x00000000 // Immediate
4401
#define PWM_3_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
4402
#define PWM_3_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
4403
#define PWM_3_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
4404
#define PWM_3_CTL_GENAUPD_I 0x00000000 // Immediate
4405
#define PWM_3_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
4406
#define PWM_3_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
4407
#define PWM_3_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
4408
#define PWM_3_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
4409
#define PWM_3_CTL_LOADUPD 0x00000008 // Load Register Update Mode
4410
#define PWM_3_CTL_DEBUG 0x00000004 // Debug Mode
4411
#define PWM_3_CTL_MODE 0x00000002 // Counter Mode
4412
#define PWM_3_CTL_ENABLE 0x00000001 // PWM Block Enable
4413
4414
//*****************************************************************************
4415
//
4416
// The following are defines for the bit fields in the PWM_O_3_INTEN register.
4417
//
4418
//*****************************************************************************
4419
#define PWM_3_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
4420
// Down
4421
#define PWM_3_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
4422
#define PWM_3_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
4423
// Down
4424
#define PWM_3_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
4425
#define PWM_3_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
4426
#define PWM_3_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
4427
#define PWM_3_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
4428
// Down
4429
#define PWM_3_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
4430
// Up
4431
#define PWM_3_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
4432
// Down
4433
#define PWM_3_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
4434
// Up
4435
#define PWM_3_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
4436
#define PWM_3_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
4437
4438
//*****************************************************************************
4439
//
4440
// The following are defines for the bit fields in the PWM_O_3_RIS register.
4441
//
4442
//*****************************************************************************
4443
#define PWM_3_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
4444
// Status
4445
#define PWM_3_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
4446
#define PWM_3_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
4447
// Status
4448
#define PWM_3_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
4449
#define PWM_3_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
4450
#define PWM_3_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
4451
4452
//*****************************************************************************
4453
//
4454
// The following are defines for the bit fields in the PWM_O_3_ISC register.
4455
//
4456
//*****************************************************************************
4457
#define PWM_3_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
4458
#define PWM_3_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
4459
#define PWM_3_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
4460
#define PWM_3_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
4461
#define PWM_3_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
4462
#define PWM_3_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
4463
4464
//*****************************************************************************
4465
//
4466
// The following are defines for the bit fields in the PWM_O_3_LOAD register.
4467
//
4468
//*****************************************************************************
4469
#define PWM_3_LOAD_LOAD_M 0x0000FFFF // Counter Load Value
4470
#define PWM_3_LOAD_LOAD_S 0
4471
4472
//*****************************************************************************
4473
//
4474
// The following are defines for the bit fields in the PWM_O_3_COUNT register.
4475
//
4476
//*****************************************************************************
4477
#define PWM_3_COUNT_COUNT_M 0x0000FFFF // Counter Value
4478
#define PWM_3_COUNT_COUNT_S 0
4479
4480
//*****************************************************************************
4481
//
4482
// The following are defines for the bit fields in the PWM_O_3_CMPA register.
4483
//
4484
//*****************************************************************************
4485
#define PWM_3_CMPA_COMPA_M 0x0000FFFF // Comparator A Value
4486
#define PWM_3_CMPA_COMPA_S 0
4487
4488
//*****************************************************************************
4489
//
4490
// The following are defines for the bit fields in the PWM_O_3_CMPB register.
4491
//
4492
//*****************************************************************************
4493
#define PWM_3_CMPB_COMPB_M 0x0000FFFF // Comparator B Value
4494
#define PWM_3_CMPB_COMPB_S 0
4495
4496
//*****************************************************************************
4497
//
4498
// The following are defines for the bit fields in the PWM_O_3_GENA register.
4499
//
4500
//*****************************************************************************
4501
#define PWM_3_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
4502
#define PWM_3_GENA_ACTCMPBD_NONE \
4503
0x00000000 // Do nothing
4504
#define PWM_3_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
4505
#define PWM_3_GENA_ACTCMPBD_ZERO \
4506
0x00000800 // Drive pwmA Low
4507
#define PWM_3_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
4508
#define PWM_3_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
4509
#define PWM_3_GENA_ACTCMPBU_NONE \
4510
0x00000000 // Do nothing
4511
#define PWM_3_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
4512
#define PWM_3_GENA_ACTCMPBU_ZERO \
4513
0x00000200 // Drive pwmA Low
4514
#define PWM_3_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
4515
#define PWM_3_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
4516
#define PWM_3_GENA_ACTCMPAD_NONE \
4517
0x00000000 // Do nothing
4518
#define PWM_3_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
4519
#define PWM_3_GENA_ACTCMPAD_ZERO \
4520
0x00000080 // Drive pwmA Low
4521
#define PWM_3_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
4522
#define PWM_3_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
4523
#define PWM_3_GENA_ACTCMPAU_NONE \
4524
0x00000000 // Do nothing
4525
#define PWM_3_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
4526
#define PWM_3_GENA_ACTCMPAU_ZERO \
4527
0x00000020 // Drive pwmA Low
4528
#define PWM_3_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
4529
#define PWM_3_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
4530
#define PWM_3_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
4531
#define PWM_3_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
4532
#define PWM_3_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
4533
#define PWM_3_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
4534
#define PWM_3_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
4535
#define PWM_3_GENA_ACTZERO_NONE 0x00000000 // Do nothing
4536
#define PWM_3_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
4537
#define PWM_3_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
4538
#define PWM_3_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
4539
4540
//*****************************************************************************
4541
//
4542
// The following are defines for the bit fields in the PWM_O_3_GENB register.
4543
//
4544
//*****************************************************************************
4545
#define PWM_3_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
4546
#define PWM_3_GENB_ACTCMPBD_NONE \
4547
0x00000000 // Do nothing
4548
#define PWM_3_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
4549
#define PWM_3_GENB_ACTCMPBD_ZERO \
4550
0x00000800 // Drive pwmB Low
4551
#define PWM_3_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
4552
#define PWM_3_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
4553
#define PWM_3_GENB_ACTCMPBU_NONE \
4554
0x00000000 // Do nothing
4555
#define PWM_3_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
4556
#define PWM_3_GENB_ACTCMPBU_ZERO \
4557
0x00000200 // Drive pwmB Low
4558
#define PWM_3_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
4559
#define PWM_3_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
4560
#define PWM_3_GENB_ACTCMPAD_NONE \
4561
0x00000000 // Do nothing
4562
#define PWM_3_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
4563
#define PWM_3_GENB_ACTCMPAD_ZERO \
4564
0x00000080 // Drive pwmB Low
4565
#define PWM_3_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
4566
#define PWM_3_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
4567
#define PWM_3_GENB_ACTCMPAU_NONE \
4568
0x00000000 // Do nothing
4569
#define PWM_3_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
4570
#define PWM_3_GENB_ACTCMPAU_ZERO \
4571
0x00000020 // Drive pwmB Low
4572
#define PWM_3_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
4573
#define PWM_3_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
4574
#define PWM_3_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
4575
#define PWM_3_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
4576
#define PWM_3_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
4577
#define PWM_3_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
4578
#define PWM_3_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
4579
#define PWM_3_GENB_ACTZERO_NONE 0x00000000 // Do nothing
4580
#define PWM_3_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
4581
#define PWM_3_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
4582
#define PWM_3_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
4583
4584
//*****************************************************************************
4585
//
4586
// The following are defines for the bit fields in the PWM_O_3_DBCTL register.
4587
//
4588
//*****************************************************************************
4589
#define PWM_3_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
4590
4591
//*****************************************************************************
4592
//
4593
// The following are defines for the bit fields in the PWM_O_3_DBRISE register.
4594
//
4595
//*****************************************************************************
4596
#define PWM_3_DBRISE_RISEDELAY_M \
4597
0x00000FFF // Dead-Band Rise Delay
4598
#define PWM_3_DBRISE_RISEDELAY_S \
4599
0
4600
4601
//*****************************************************************************
4602
//
4603
// The following are defines for the bit fields in the PWM_O_3_DBFALL register.
4604
//
4605
//*****************************************************************************
4606
#define PWM_3_DBFALL_FALLDELAY_M \
4607
0x00000FFF // Dead-Band Fall Delay
4608
#define PWM_3_DBFALL_FALLDELAY_S \
4609
0
4610
4611
//*****************************************************************************
4612
//
4613
// The following are defines for the bit fields in the PWM_O_3_FLTSRC0
4614
// register.
4615
//
4616
//*****************************************************************************
4617
#define PWM_3_FLTSRC0_FAULT3 0x00000008 // Fault3 Input
4618
#define PWM_3_FLTSRC0_FAULT2 0x00000004 // Fault2 Input
4619
#define PWM_3_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
4620
#define PWM_3_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
4621
4622
//*****************************************************************************
4623
//
4624
// The following are defines for the bit fields in the PWM_O_3_FLTSRC1
4625
// register.
4626
//
4627
//*****************************************************************************
4628
#define PWM_3_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
4629
#define PWM_3_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
4630
#define PWM_3_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
4631
#define PWM_3_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
4632
#define PWM_3_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
4633
#define PWM_3_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
4634
#define PWM_3_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
4635
#define PWM_3_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
4636
4637
//*****************************************************************************
4638
//
4639
// The following are defines for the bit fields in the PWM_O_3_MINFLTPER
4640
// register.
4641
//
4642
//*****************************************************************************
4643
#define PWM_3_MINFLTPER_MFP_M 0x0000FFFF // Minimum Fault Period
4644
#define PWM_3_MINFLTPER_MFP_S 0
4645
4646
//*****************************************************************************
4647
//
4648
// The following are defines for the bit fields in the PWM_O_0_FLTSEN register.
4649
//
4650
//*****************************************************************************
4651
#define PWM_0_FLTSEN_FAULT3 0x00000008 // Fault3 Sense
4652
#define PWM_0_FLTSEN_FAULT2 0x00000004 // Fault2 Sense
4653
#define PWM_0_FLTSEN_FAULT1 0x00000002 // Fault1 Sense
4654
#define PWM_0_FLTSEN_FAULT0 0x00000001 // Fault0 Sense
4655
4656
//*****************************************************************************
4657
//
4658
// The following are defines for the bit fields in the PWM_O_0_FLTSTAT0
4659
// register.
4660
//
4661
//*****************************************************************************
4662
#define PWM_0_FLTSTAT0_FAULT3 0x00000008 // Fault Input 3
4663
#define PWM_0_FLTSTAT0_FAULT2 0x00000004 // Fault Input 2
4664
#define PWM_0_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
4665
#define PWM_0_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
4666
4667
//*****************************************************************************
4668
//
4669
// The following are defines for the bit fields in the PWM_O_0_FLTSTAT1
4670
// register.
4671
//
4672
//*****************************************************************************
4673
#define PWM_0_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
4674
#define PWM_0_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
4675
#define PWM_0_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
4676
#define PWM_0_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
4677
#define PWM_0_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
4678
#define PWM_0_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
4679
#define PWM_0_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
4680
#define PWM_0_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
4681
4682
//*****************************************************************************
4683
//
4684
// The following are defines for the bit fields in the PWM_O_1_FLTSEN register.
4685
//
4686
//*****************************************************************************
4687
#define PWM_1_FLTSEN_FAULT3 0x00000008 // Fault3 Sense
4688
#define PWM_1_FLTSEN_FAULT2 0x00000004 // Fault2 Sense
4689
#define PWM_1_FLTSEN_FAULT1 0x00000002 // Fault1 Sense
4690
#define PWM_1_FLTSEN_FAULT0 0x00000001 // Fault0 Sense
4691
4692
//*****************************************************************************
4693
//
4694
// The following are defines for the bit fields in the PWM_O_1_FLTSTAT0
4695
// register.
4696
//
4697
//*****************************************************************************
4698
#define PWM_1_FLTSTAT0_FAULT3 0x00000008 // Fault Input 3
4699
#define PWM_1_FLTSTAT0_FAULT2 0x00000004 // Fault Input 2
4700
#define PWM_1_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
4701
#define PWM_1_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
4702
4703
//*****************************************************************************
4704
//
4705
// The following are defines for the bit fields in the PWM_O_1_FLTSTAT1
4706
// register.
4707
//
4708
//*****************************************************************************
4709
#define PWM_1_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
4710
#define PWM_1_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
4711
#define PWM_1_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
4712
#define PWM_1_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
4713
#define PWM_1_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
4714
#define PWM_1_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
4715
#define PWM_1_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
4716
#define PWM_1_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
4717
4718
//*****************************************************************************
4719
//
4720
// The following are defines for the bit fields in the PWM_O_2_FLTSEN register.
4721
//
4722
//*****************************************************************************
4723
#define PWM_2_FLTSEN_FAULT3 0x00000008 // Fault3 Sense
4724
#define PWM_2_FLTSEN_FAULT2 0x00000004 // Fault2 Sense
4725
#define PWM_2_FLTSEN_FAULT1 0x00000002 // Fault1 Sense
4726
#define PWM_2_FLTSEN_FAULT0 0x00000001 // Fault0 Sense
4727
4728
//*****************************************************************************
4729
//
4730
// The following are defines for the bit fields in the PWM_O_2_FLTSTAT0
4731
// register.
4732
//
4733
//*****************************************************************************
4734
#define PWM_2_FLTSTAT0_FAULT3 0x00000008 // Fault Input 3
4735
#define PWM_2_FLTSTAT0_FAULT2 0x00000004 // Fault Input 2
4736
#define PWM_2_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
4737
#define PWM_2_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
4738
4739
//*****************************************************************************
4740
//
4741
// The following are defines for the bit fields in the PWM_O_2_FLTSTAT1
4742
// register.
4743
//
4744
//*****************************************************************************
4745
#define PWM_2_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
4746
#define PWM_2_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
4747
#define PWM_2_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
4748
#define PWM_2_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
4749
#define PWM_2_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
4750
#define PWM_2_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
4751
#define PWM_2_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
4752
#define PWM_2_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
4753
4754
//*****************************************************************************
4755
//
4756
// The following are defines for the bit fields in the PWM_O_3_FLTSEN register.
4757
//
4758
//*****************************************************************************
4759
#define PWM_3_FLTSEN_FAULT3 0x00000008 // Fault3 Sense
4760
#define PWM_3_FLTSEN_FAULT2 0x00000004 // Fault2 Sense
4761
#define PWM_3_FLTSEN_FAULT1 0x00000002 // Fault1 Sense
4762
#define PWM_3_FLTSEN_FAULT0 0x00000001 // Fault0 Sense
4763
4764
//*****************************************************************************
4765
//
4766
// The following are defines for the bit fields in the PWM_O_3_FLTSTAT0
4767
// register.
4768
//
4769
//*****************************************************************************
4770
#define PWM_3_FLTSTAT0_FAULT3 0x00000008 // Fault Input 3
4771
#define PWM_3_FLTSTAT0_FAULT2 0x00000004 // Fault Input 2
4772
#define PWM_3_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
4773
#define PWM_3_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
4774
4775
//*****************************************************************************
4776
//
4777
// The following are defines for the bit fields in the PWM_O_3_FLTSTAT1
4778
// register.
4779
//
4780
//*****************************************************************************
4781
#define PWM_3_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
4782
#define PWM_3_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
4783
#define PWM_3_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
4784
#define PWM_3_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
4785
#define PWM_3_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
4786
#define PWM_3_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
4787
#define PWM_3_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
4788
#define PWM_3_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
4789
4790
//*****************************************************************************
4791
//
4792
// The following are defines for the bit fields in the PWM_O_PP register.
4793
//
4794
//*****************************************************************************
4795
#define PWM_PP_ONE 0x00000400 // One-Shot Mode
4796
#define PWM_PP_EFAULT 0x00000200 // Extended Fault
4797
#define PWM_PP_ESYNC 0x00000100 // Extended Synchronization
4798
#define PWM_PP_FCNT_M 0x000000F0 // Fault Inputs (per PWM unit)
4799
#define PWM_PP_GCNT_M 0x0000000F // Generators
4800
#define PWM_PP_FCNT_S 4
4801
#define PWM_PP_GCNT_S 0
4802
4803
//*****************************************************************************
4804
//
4805
// The following are defines for the bit fields in the QEI_O_CTL register.
4806
//
4807
//*****************************************************************************
4808
#define QEI_CTL_FILTCNT_M 0x000F0000 // Input Filter Prescale Count
4809
#define QEI_CTL_FILTEN 0x00002000 // Enable Input Filter
4810
#define QEI_CTL_STALLEN 0x00001000 // Stall QEI
4811
#define QEI_CTL_INVI 0x00000800 // Invert Index Pulse
4812
#define QEI_CTL_INVB 0x00000400 // Invert PhB
4813
#define QEI_CTL_INVA 0x00000200 // Invert PhA
4814
#define QEI_CTL_VELDIV_M 0x000001C0 // Predivide Velocity
4815
#define QEI_CTL_VELDIV_1 0x00000000 // QEI clock /1
4816
#define QEI_CTL_VELDIV_2 0x00000040 // QEI clock /2
4817
#define QEI_CTL_VELDIV_4 0x00000080 // QEI clock /4
4818
#define QEI_CTL_VELDIV_8 0x000000C0 // QEI clock /8
4819
#define QEI_CTL_VELDIV_16 0x00000100 // QEI clock /16
4820
#define QEI_CTL_VELDIV_32 0x00000140 // QEI clock /32
4821
#define QEI_CTL_VELDIV_64 0x00000180 // QEI clock /64
4822
#define QEI_CTL_VELDIV_128 0x000001C0 // QEI clock /128
4823
#define QEI_CTL_VELEN 0x00000020 // Capture Velocity
4824
#define QEI_CTL_RESMODE 0x00000010 // Reset Mode
4825
#define QEI_CTL_CAPMODE 0x00000008 // Capture Mode
4826
#define QEI_CTL_SIGMODE 0x00000004 // Signal Mode
4827
#define QEI_CTL_SWAP 0x00000002 // Swap Signals
4828
#define QEI_CTL_ENABLE 0x00000001 // Enable QEI
4829
#define QEI_CTL_FILTCNT_S 16
4830
4831
//*****************************************************************************
4832
//
4833
// The following are defines for the bit fields in the QEI_O_STAT register.
4834
//
4835
//*****************************************************************************
4836
#define QEI_STAT_DIRECTION 0x00000002 // Direction of Rotation
4837
#define QEI_STAT_ERROR 0x00000001 // Error Detected
4838
4839
//*****************************************************************************
4840
//
4841
// The following are defines for the bit fields in the QEI_O_POS register.
4842
//
4843
//*****************************************************************************
4844
#define QEI_POS_M 0xFFFFFFFF // Current Position Integrator
4845
// Value
4846
#define QEI_POS_S 0
4847
4848
//*****************************************************************************
4849
//
4850
// The following are defines for the bit fields in the QEI_O_MAXPOS register.
4851
//
4852
//*****************************************************************************
4853
#define QEI_MAXPOS_M 0xFFFFFFFF // Maximum Position Integrator
4854
// Value
4855
#define QEI_MAXPOS_S 0
4856
4857
//*****************************************************************************
4858
//
4859
// The following are defines for the bit fields in the QEI_O_LOAD register.
4860
//
4861
//*****************************************************************************
4862
#define QEI_LOAD_M 0xFFFFFFFF // Velocity Timer Load Value
4863
#define QEI_LOAD_S 0
4864
4865
//*****************************************************************************
4866
//
4867
// The following are defines for the bit fields in the QEI_O_TIME register.
4868
//
4869
//*****************************************************************************
4870
#define QEI_TIME_M 0xFFFFFFFF // Velocity Timer Current Value
4871
#define QEI_TIME_S 0
4872
4873
//*****************************************************************************
4874
//
4875
// The following are defines for the bit fields in the QEI_O_COUNT register.
4876
//
4877
//*****************************************************************************
4878
#define QEI_COUNT_M 0xFFFFFFFF // Velocity Pulse Count
4879
#define QEI_COUNT_S 0
4880
4881
//*****************************************************************************
4882
//
4883
// The following are defines for the bit fields in the QEI_O_SPEED register.
4884
//
4885
//*****************************************************************************
4886
#define QEI_SPEED_M 0xFFFFFFFF // Velocity
4887
#define QEI_SPEED_S 0
4888
4889
//*****************************************************************************
4890
//
4891
// The following are defines for the bit fields in the QEI_O_INTEN register.
4892
//
4893
//*****************************************************************************
4894
#define QEI_INTEN_ERROR 0x00000008 // Phase Error Interrupt Enable
4895
#define QEI_INTEN_DIR 0x00000004 // Direction Change Interrupt
4896
// Enable
4897
#define QEI_INTEN_TIMER 0x00000002 // Timer Expires Interrupt Enable
4898
#define QEI_INTEN_INDEX 0x00000001 // Index Pulse Detected Interrupt
4899
// Enable
4900
4901
//*****************************************************************************
4902
//
4903
// The following are defines for the bit fields in the QEI_O_RIS register.
4904
//
4905
//*****************************************************************************
4906
#define QEI_RIS_ERROR 0x00000008 // Phase Error Detected
4907
#define QEI_RIS_DIR 0x00000004 // Direction Change Detected
4908
#define QEI_RIS_TIMER 0x00000002 // Velocity Timer Expired
4909
#define QEI_RIS_INDEX 0x00000001 // Index Pulse Asserted
4910
4911
//*****************************************************************************
4912
//
4913
// The following are defines for the bit fields in the QEI_O_ISC register.
4914
//
4915
//*****************************************************************************
4916
#define QEI_ISC_ERROR 0x00000008 // Phase Error Interrupt
4917
#define QEI_ISC_DIR 0x00000004 // Direction Change Interrupt
4918
#define QEI_ISC_TIMER 0x00000002 // Velocity Timer Expired Interrupt
4919
#define QEI_ISC_INDEX 0x00000001 // Index Pulse Interrupt
4920
4921
//*****************************************************************************
4922
//
4923
// The following are defines for the bit fields in the TIMER_O_CFG register.
4924
//
4925
//*****************************************************************************
4926
#define TIMER_CFG_M 0x00000007 // GPTM Configuration
4927
#define TIMER_CFG_32_BIT_TIMER 0x00000000 // For a 16/32-bit timer, this
4928
// value selects the 32-bit timer
4929
// configuration
4930
#define TIMER_CFG_32_BIT_RTC 0x00000001 // For a 16/32-bit timer, this
4931
// value selects the 32-bit
4932
// real-time clock (RTC) counter
4933
// configuration
4934
#define TIMER_CFG_16_BIT 0x00000004 // For a 16/32-bit timer, this
4935
// value selects the 16-bit timer
4936
// configuration
4937
4938
//*****************************************************************************
4939
//
4940
// The following are defines for the bit fields in the TIMER_O_TAMR register.
4941
//
4942
//*****************************************************************************
4943
#define TIMER_TAMR_TAPLO 0x00000800 // GPTM Timer A PWM Legacy
4944
// Operation
4945
#define TIMER_TAMR_TAMRSU 0x00000400 // GPTM Timer A Match Register
4946
// Update
4947
#define TIMER_TAMR_TAPWMIE 0x00000200 // GPTM Timer A PWM Interrupt
4948
// Enable
4949
#define TIMER_TAMR_TAILD 0x00000100 // GPTM Timer A Interval Load Write
4950
#define TIMER_TAMR_TASNAPS 0x00000080 // GPTM Timer A Snap-Shot Mode
4951
#define TIMER_TAMR_TAWOT 0x00000040 // GPTM Timer A Wait-on-Trigger
4952
#define TIMER_TAMR_TAMIE 0x00000020 // GPTM Timer A Match Interrupt
4953
// Enable
4954
#define TIMER_TAMR_TACDIR 0x00000010 // GPTM Timer A Count Direction
4955
#define TIMER_TAMR_TAAMS 0x00000008 // GPTM Timer A Alternate Mode
4956
// Select
4957
#define TIMER_TAMR_TACMR 0x00000004 // GPTM Timer A Capture Mode
4958
#define TIMER_TAMR_TAMR_M 0x00000003 // GPTM Timer A Mode
4959
#define TIMER_TAMR_TAMR_1_SHOT 0x00000001 // One-Shot Timer mode
4960
#define TIMER_TAMR_TAMR_PERIOD 0x00000002 // Periodic Timer mode
4961
#define TIMER_TAMR_TAMR_CAP 0x00000003 // Capture mode
4962
4963
//*****************************************************************************
4964
//
4965
// The following are defines for the bit fields in the TIMER_O_TBMR register.
4966
//
4967
//*****************************************************************************
4968
#define TIMER_TBMR_TBPLO 0x00000800 // GPTM Timer B PWM Legacy
4969
// Operation
4970
#define TIMER_TBMR_TBMRSU 0x00000400 // GPTM Timer B Match Register
4971
// Update
4972
#define TIMER_TBMR_TBPWMIE 0x00000200 // GPTM Timer B PWM Interrupt
4973
// Enable
4974
#define TIMER_TBMR_TBILD 0x00000100 // GPTM Timer B Interval Load Write
4975
#define TIMER_TBMR_TBSNAPS 0x00000080 // GPTM Timer B Snap-Shot Mode
4976
#define TIMER_TBMR_TBWOT 0x00000040 // GPTM Timer B Wait-on-Trigger
4977
#define TIMER_TBMR_TBMIE 0x00000020 // GPTM Timer B Match Interrupt
4978
// Enable
4979
#define TIMER_TBMR_TBCDIR 0x00000010 // GPTM Timer B Count Direction
4980
#define TIMER_TBMR_TBAMS 0x00000008 // GPTM Timer B Alternate Mode
4981
// Select
4982
#define TIMER_TBMR_TBCMR 0x00000004 // GPTM Timer B Capture Mode
4983
#define TIMER_TBMR_TBMR_M 0x00000003 // GPTM Timer B Mode
4984
#define TIMER_TBMR_TBMR_1_SHOT 0x00000001 // One-Shot Timer mode
4985
#define TIMER_TBMR_TBMR_PERIOD 0x00000002 // Periodic Timer mode
4986
#define TIMER_TBMR_TBMR_CAP 0x00000003 // Capture mode
4987
4988
//*****************************************************************************
4989
//
4990
// The following are defines for the bit fields in the TIMER_O_CTL register.
4991
//
4992
//*****************************************************************************
4993
#define TIMER_CTL_TBPWML 0x00004000 // GPTM Timer B PWM Output Level
4994
#define TIMER_CTL_TBOTE 0x00002000 // GPTM Timer B Output Trigger
4995
// Enable
4996
#define TIMER_CTL_TBEVENT_M 0x00000C00 // GPTM Timer B Event Mode
4997
#define TIMER_CTL_TBEVENT_POS 0x00000000 // Positive edge
4998
#define TIMER_CTL_TBEVENT_NEG 0x00000400 // Negative edge
4999
#define TIMER_CTL_TBEVENT_BOTH 0x00000C00 // Both edges
5000
#define TIMER_CTL_TBSTALL 0x00000200 // GPTM Timer B Stall Enable
5001
#define TIMER_CTL_TBEN 0x00000100 // GPTM Timer B Enable
5002
#define TIMER_CTL_TAPWML 0x00000040 // GPTM Timer A PWM Output Level
5003
#define TIMER_CTL_TAOTE 0x00000020 // GPTM Timer A Output Trigger
5004
// Enable
5005
#define TIMER_CTL_RTCEN 0x00000010 // GPTM RTC Stall Enable
5006
#define TIMER_CTL_TAEVENT_M 0x0000000C // GPTM Timer A Event Mode
5007
#define TIMER_CTL_TAEVENT_POS 0x00000000 // Positive edge
5008
#define TIMER_CTL_TAEVENT_NEG 0x00000004 // Negative edge
5009
#define TIMER_CTL_TAEVENT_BOTH 0x0000000C // Both edges
5010
#define TIMER_CTL_TASTALL 0x00000002 // GPTM Timer A Stall Enable
5011
#define TIMER_CTL_TAEN 0x00000001 // GPTM Timer A Enable
5012
5013
//*****************************************************************************
5014
//
5015
// The following are defines for the bit fields in the TIMER_O_SYNC register.
5016
//
5017
//*****************************************************************************
5018
#define TIMER_SYNC_SYNCWT5_M 0x00C00000 // Synchronize GPTM 32/64-Bit Timer
5019
// 5
5020
#define TIMER_SYNC_SYNCWT5_NONE 0x00000000 // GPTM 32/64-Bit Timer 5 is not
5021
// affected
5022
#define TIMER_SYNC_SYNCWT5_TA 0x00400000 // A timeout event for Timer A of
5023
// GPTM 32/64-Bit Timer 5 is
5024
// triggered
5025
#define TIMER_SYNC_SYNCWT5_TB 0x00800000 // A timeout event for Timer B of
5026
// GPTM 32/64-Bit Timer 5 is
5027
// triggered
5028
#define TIMER_SYNC_SYNCWT5_TATB 0x00C00000 // A timeout event for both Timer A
5029
// and Timer B of GPTM 32/64-Bit
5030
// Timer 5 is triggered
5031
#define TIMER_SYNC_SYNCWT4_M 0x00300000 // Synchronize GPTM 32/64-Bit Timer
5032
// 4
5033
#define TIMER_SYNC_SYNCWT4_NONE 0x00000000 // GPTM 32/64-Bit Timer 4 is not
5034
// affected
5035
#define TIMER_SYNC_SYNCWT4_TA 0x00100000 // A timeout event for Timer A of
5036
// GPTM 32/64-Bit Timer 4 is
5037
// triggered
5038
#define TIMER_SYNC_SYNCWT4_TB 0x00200000 // A timeout event for Timer B of
5039
// GPTM 32/64-Bit Timer 4 is
5040
// triggered
5041
#define TIMER_SYNC_SYNCWT4_TATB 0x00300000 // A timeout event for both Timer A
5042
// and Timer B of GPTM 32/64-Bit
5043
// Timer 4 is triggered
5044
#define TIMER_SYNC_SYNCWT3_M 0x000C0000 // Synchronize GPTM 32/64-Bit Timer
5045
// 3
5046
#define TIMER_SYNC_SYNCWT3_NONE 0x00000000 // GPTM 32/64-Bit Timer 3 is not
5047
// affected
5048
#define TIMER_SYNC_SYNCWT3_TA 0x00040000 // A timeout event for Timer A of
5049
// GPTM 32/64-Bit Timer 3 is
5050
// triggered
5051
#define TIMER_SYNC_SYNCWT3_TB 0x00080000 // A timeout event for Timer B of
5052
// GPTM 32/64-Bit Timer 3 is
5053
// triggered
5054
#define TIMER_SYNC_SYNCWT3_TATB 0x000C0000 // A timeout event for both Timer A
5055
// and Timer B of GPTM 32/64-Bit
5056
// Timer 3 is triggered
5057
#define TIMER_SYNC_SYNCWT2_M 0x00030000 // Synchronize GPTM 32/64-Bit Timer
5058
// 2
5059
#define TIMER_SYNC_SYNCWT2_NONE 0x00000000 // GPTM 32/64-Bit Timer 2 is not
5060
// affected
5061
#define TIMER_SYNC_SYNCWT2_TA 0x00010000 // A timeout event for Timer A of
5062
// GPTM 32/64-Bit Timer 2 is
5063
// triggered
5064
#define TIMER_SYNC_SYNCWT2_TB 0x00020000 // A timeout event for Timer B of
5065
// GPTM 32/64-Bit Timer 2 is
5066
// triggered
5067
#define TIMER_SYNC_SYNCWT2_TATB 0x00030000 // A timeout event for both Timer A
5068
// and Timer B of GPTM 32/64-Bit
5069
// Timer 2 is triggered
5070
#define TIMER_SYNC_SYNCWT1_M 0x0000C000 // Synchronize GPTM 32/64-Bit Timer
5071
// 1
5072
#define TIMER_SYNC_SYNCWT1_NONE 0x00000000 // GPTM 32/64-Bit Timer 1 is not
5073
// affected
5074
#define TIMER_SYNC_SYNCWT1_TA 0x00004000 // A timeout event for Timer A of
5075
// GPTM 32/64-Bit Timer 1 is
5076
// triggered
5077
#define TIMER_SYNC_SYNCWT1_TB 0x00008000 // A timeout event for Timer B of
5078
// GPTM 32/64-Bit Timer 1 is
5079
// triggered
5080
#define TIMER_SYNC_SYNCWT1_TATB 0x0000C000 // A timeout event for both Timer A
5081
// and Timer B of GPTM 32/64-Bit
5082
// Timer 1 is triggered
5083
#define TIMER_SYNC_SYNCWT0_M 0x00003000 // Synchronize GPTM 32/64-Bit Timer
5084
// 0
5085
#define TIMER_SYNC_SYNCWT0_NONE 0x00000000 // GPTM 32/64-Bit Timer 0 is not
5086
// affected
5087
#define TIMER_SYNC_SYNCWT0_TA 0x00001000 // A timeout event for Timer A of
5088
// GPTM 32/64-Bit Timer 0 is
5089
// triggered
5090
#define TIMER_SYNC_SYNCWT0_TB 0x00002000 // A timeout event for Timer B of
5091
// GPTM 32/64-Bit Timer 0 is
5092
// triggered
5093
#define TIMER_SYNC_SYNCWT0_TATB 0x00003000 // A timeout event for both Timer A
5094
// and Timer B of GPTM 32/64-Bit
5095
// Timer 0 is triggered
5096
#define TIMER_SYNC_SYNCT5_M 0x00000C00 // Synchronize GPTM Timer 5
5097
#define TIMER_SYNC_SYNCT5_NONE 0x00000000 // GPTM5 is not affected
5098
#define TIMER_SYNC_SYNCT5_TA 0x00000400 // A timeout event for Timer A of
5099
// GPTM5 is triggered
5100
#define TIMER_SYNC_SYNCT5_TB 0x00000800 // A timeout event for Timer B of
5101
// GPTM5 is triggered
5102
#define TIMER_SYNC_SYNCT5_TATB 0x00000C00 // A timeout event for both Timer A
5103
// and Timer B of GPTM5 is
5104
// triggered
5105
#define TIMER_SYNC_SYNCT4_M 0x00000300 // Synchronize GPTM Timer 4
5106
#define TIMER_SYNC_SYNCT4_NONE 0x00000000 // GPTM4 is not affected
5107
#define TIMER_SYNC_SYNCT4_TA 0x00000100 // A timeout event for Timer A of
5108
// GPTM4 is triggered
5109
#define TIMER_SYNC_SYNCT4_TB 0x00000200 // A timeout event for Timer B of
5110
// GPTM4 is triggered
5111
#define TIMER_SYNC_SYNCT4_TATB 0x00000300 // A timeout event for both Timer A
5112
// and Timer B of GPTM4 is
5113
// triggered
5114
#define TIMER_SYNC_SYNCT3_M 0x000000C0 // Synchronize GPTM Timer 3
5115
#define TIMER_SYNC_SYNCT3_NONE 0x00000000 // GPTM3 is not affected
5116
#define TIMER_SYNC_SYNCT3_TA 0x00000040 // A timeout event for Timer A of
5117
// GPTM3 is triggered
5118
#define TIMER_SYNC_SYNCT3_TB 0x00000080 // A timeout event for Timer B of
5119
// GPTM3 is triggered
5120
#define TIMER_SYNC_SYNCT3_TATB 0x000000C0 // A timeout event for both Timer A
5121
// and Timer B of GPTM3 is
5122
// triggered
5123
#define TIMER_SYNC_SYNCT2_M 0x00000030 // Synchronize GPTM Timer 2
5124
#define TIMER_SYNC_SYNCT2_NONE 0x00000000 // GPTM2 is not affected
5125
#define TIMER_SYNC_SYNCT2_TA 0x00000010 // A timeout event for Timer A of
5126
// GPTM2 is triggered
5127
#define TIMER_SYNC_SYNCT2_TB 0x00000020 // A timeout event for Timer B of
5128
// GPTM2 is triggered
5129
#define TIMER_SYNC_SYNCT2_TATB 0x00000030 // A timeout event for both Timer A
5130
// and Timer B of GPTM2 is
5131
// triggered
5132
#define TIMER_SYNC_SYNCT1_M 0x0000000C // Synchronize GPTM Timer 1
5133
#define TIMER_SYNC_SYNCT1_NONE 0x00000000 // GPTM1 is not affected
5134
#define TIMER_SYNC_SYNCT1_TA 0x00000004 // A timeout event for Timer A of
5135
// GPTM1 is triggered
5136
#define TIMER_SYNC_SYNCT1_TB 0x00000008 // A timeout event for Timer B of
5137
// GPTM1 is triggered
5138
#define TIMER_SYNC_SYNCT1_TATB 0x0000000C // A timeout event for both Timer A
5139
// and Timer B of GPTM1 is
5140
// triggered
5141
#define TIMER_SYNC_SYNCT0_M 0x00000003 // Synchronize GPTM Timer 0
5142
#define TIMER_SYNC_SYNCT0_NONE 0x00000000 // GPTM0 is not affected
5143
#define TIMER_SYNC_SYNCT0_TA 0x00000001 // A timeout event for Timer A of
5144
// GPTM0 is triggered
5145
#define TIMER_SYNC_SYNCT0_TB 0x00000002 // A timeout event for Timer B of
5146
// GPTM0 is triggered
5147
#define TIMER_SYNC_SYNCT0_TATB 0x00000003 // A timeout event for both Timer A
5148
// and Timer B of GPTM0 is
5149
// triggered
5150
5151
//*****************************************************************************
5152
//
5153
// The following are defines for the bit fields in the TIMER_O_IMR register.
5154
//
5155
//*****************************************************************************
5156
#define TIMER_IMR_WUEIM 0x00010000 // 32/64-Bit Wide GPTM Write Update
5157
// Error Interrupt Mask
5158
#define TIMER_IMR_TBMIM 0x00000800 // GPTM Timer B Match Interrupt
5159
// Mask
5160
#define TIMER_IMR_CBEIM 0x00000400 // GPTM Timer B Capture Mode Event
5161
// Interrupt Mask
5162
#define TIMER_IMR_CBMIM 0x00000200 // GPTM Timer B Capture Mode Match
5163
// Interrupt Mask
5164
#define TIMER_IMR_TBTOIM 0x00000100 // GPTM Timer B Time-Out Interrupt
5165
// Mask
5166
#define TIMER_IMR_TAMIM 0x00000010 // GPTM Timer A Match Interrupt
5167
// Mask
5168
#define TIMER_IMR_RTCIM 0x00000008 // GPTM RTC Interrupt Mask
5169
#define TIMER_IMR_CAEIM 0x00000004 // GPTM Timer A Capture Mode Event
5170
// Interrupt Mask
5171
#define TIMER_IMR_CAMIM 0x00000002 // GPTM Timer A Capture Mode Match
5172
// Interrupt Mask
5173
#define TIMER_IMR_TATOIM 0x00000001 // GPTM Timer A Time-Out Interrupt
5174
// Mask
5175
5176
//*****************************************************************************
5177
//
5178
// The following are defines for the bit fields in the TIMER_O_RIS register.
5179
//
5180
//*****************************************************************************
5181
#define TIMER_RIS_WUERIS 0x00010000 // 32/64-Bit Wide GPTM Write Update
5182
// Error Raw Interrupt Status
5183
#define TIMER_RIS_TBMRIS 0x00000800 // GPTM Timer B Match Raw Interrupt
5184
#define TIMER_RIS_CBERIS 0x00000400 // GPTM Timer B Capture Mode Event
5185
// Raw Interrupt
5186
#define TIMER_RIS_CBMRIS 0x00000200 // GPTM Timer B Capture Mode Match
5187
// Raw Interrupt
5188
#define TIMER_RIS_TBTORIS 0x00000100 // GPTM Timer B Time-Out Raw
5189
// Interrupt
5190
#define TIMER_RIS_TAMRIS 0x00000010 // GPTM Timer A Match Raw Interrupt
5191
#define TIMER_RIS_RTCRIS 0x00000008 // GPTM RTC Raw Interrupt
5192
#define TIMER_RIS_CAERIS 0x00000004 // GPTM Timer A Capture Mode Event
5193
// Raw Interrupt
5194
#define TIMER_RIS_CAMRIS 0x00000002 // GPTM Timer A Capture Mode Match
5195
// Raw Interrupt
5196
#define TIMER_RIS_TATORIS 0x00000001 // GPTM Timer A Time-Out Raw
5197
// Interrupt
5198
5199
//*****************************************************************************
5200
//
5201
// The following are defines for the bit fields in the TIMER_O_MIS register.
5202
//
5203
//*****************************************************************************
5204
#define TIMER_MIS_WUEMIS 0x00010000 // 32/64-Bit Wide GPTM Write Update
5205
// Error Masked Interrupt Status
5206
#define TIMER_MIS_TBMMIS 0x00000800 // GPTM Timer B Match Masked
5207
// Interrupt
5208
#define TIMER_MIS_CBEMIS 0x00000400 // GPTM Timer B Capture Mode Event
5209
// Masked Interrupt
5210
#define TIMER_MIS_CBMMIS 0x00000200 // GPTM Timer B Capture Mode Match
5211
// Masked Interrupt
5212
#define TIMER_MIS_TBTOMIS 0x00000100 // GPTM Timer B Time-Out Masked
5213
// Interrupt
5214
#define TIMER_MIS_TAMMIS 0x00000010 // GPTM Timer A Match Masked
5215
// Interrupt
5216
#define TIMER_MIS_RTCMIS 0x00000008 // GPTM RTC Masked Interrupt
5217
#define TIMER_MIS_CAEMIS 0x00000004 // GPTM Timer A Capture Mode Event
5218
// Masked Interrupt
5219
#define TIMER_MIS_CAMMIS 0x00000002 // GPTM Timer A Capture Mode Match
5220
// Masked Interrupt
5221
#define TIMER_MIS_TATOMIS 0x00000001 // GPTM Timer A Time-Out Masked
5222
// Interrupt
5223
5224
//*****************************************************************************
5225
//
5226
// The following are defines for the bit fields in the TIMER_O_ICR register.
5227
//
5228
//*****************************************************************************
5229
#define TIMER_ICR_WUECINT 0x00010000 // 32/64-Bit Wide GPTM Write Update
5230
// Error Interrupt Clear
5231
#define TIMER_ICR_TBMCINT 0x00000800 // GPTM Timer B Match Interrupt
5232
// Clear
5233
#define TIMER_ICR_CBECINT 0x00000400 // GPTM Timer B Capture Mode Event
5234
// Interrupt Clear
5235
#define TIMER_ICR_CBMCINT 0x00000200 // GPTM Timer B Capture Mode Match
5236
// Interrupt Clear
5237
#define TIMER_ICR_TBTOCINT 0x00000100 // GPTM Timer B Time-Out Interrupt
5238
// Clear
5239
#define TIMER_ICR_TAMCINT 0x00000010 // GPTM Timer A Match Interrupt
5240
// Clear
5241
#define TIMER_ICR_RTCCINT 0x00000008 // GPTM RTC Interrupt Clear
5242
#define TIMER_ICR_CAECINT 0x00000004 // GPTM Timer A Capture Mode Event
5243
// Interrupt Clear
5244
#define TIMER_ICR_CAMCINT 0x00000002 // GPTM Timer A Capture Mode Match
5245
// Interrupt Clear
5246
#define TIMER_ICR_TATOCINT 0x00000001 // GPTM Timer A Time-Out Raw
5247
// Interrupt
5248
5249
//*****************************************************************************
5250
//
5251
// The following are defines for the bit fields in the TIMER_O_TAILR register.
5252
//
5253
//*****************************************************************************
5254
#define TIMER_TAILR_M 0xFFFFFFFF // GPTM Timer A Interval Load
5255
// Register
5256
#define TIMER_TAILR_S 0
5257
5258
//*****************************************************************************
5259
//
5260
// The following are defines for the bit fields in the TIMER_O_TBILR register.
5261
//
5262
//*****************************************************************************
5263
#define TIMER_TBILR_M 0xFFFFFFFF // GPTM Timer B Interval Load
5264
// Register
5265
#define TIMER_TBILR_S 0
5266
5267
//*****************************************************************************
5268
//
5269
// The following are defines for the bit fields in the TIMER_O_TAMATCHR
5270
// register.
5271
//
5272
//*****************************************************************************
5273
#define TIMER_TAMATCHR_TAMR_M 0xFFFFFFFF // GPTM Timer A Match Register
5274
#define TIMER_TAMATCHR_TAMR_S 0
5275
5276
//*****************************************************************************
5277
//
5278
// The following are defines for the bit fields in the TIMER_O_TBMATCHR
5279
// register.
5280
//
5281
//*****************************************************************************
5282
#define TIMER_TBMATCHR_TBMR_M 0xFFFFFFFF // GPTM Timer B Match Register
5283
#define TIMER_TBMATCHR_TBMR_S 0
5284
5285
//*****************************************************************************
5286
//
5287
// The following are defines for the bit fields in the TIMER_O_TAPR register.
5288
//
5289
//*****************************************************************************
5290
#define TIMER_TAPR_TAPSRH_M 0x0000FF00 // GPTM Timer A Prescale High Byte
5291
#define TIMER_TAPR_TAPSR_M 0x000000FF // GPTM Timer A Prescale
5292
#define TIMER_TAPR_TAPSRH_S 8
5293
#define TIMER_TAPR_TAPSR_S 0
5294
5295
//*****************************************************************************
5296
//
5297
// The following are defines for the bit fields in the TIMER_O_TBPR register.
5298
//
5299
//*****************************************************************************
5300
#define TIMER_TBPR_TBPSRH_M 0x0000FF00 // GPTM Timer B Prescale High Byte
5301
#define TIMER_TBPR_TBPSR_M 0x000000FF // GPTM Timer B Prescale
5302
#define TIMER_TBPR_TBPSRH_S 8
5303
#define TIMER_TBPR_TBPSR_S 0
5304
5305
//*****************************************************************************
5306
//
5307
// The following are defines for the bit fields in the TIMER_O_TAPMR register.
5308
//
5309
//*****************************************************************************
5310
#define TIMER_TAPMR_TAPSMRH_M 0x0000FF00 // GPTM Timer A Prescale Match High
5311
// Byte
5312
#define TIMER_TAPMR_TAPSMR_M 0x000000FF // GPTM TimerA Prescale Match
5313
#define TIMER_TAPMR_TAPSMRH_S 8
5314
#define TIMER_TAPMR_TAPSMR_S 0
5315
5316
//*****************************************************************************
5317
//
5318
// The following are defines for the bit fields in the TIMER_O_TBPMR register.
5319
//
5320
//*****************************************************************************
5321
#define TIMER_TBPMR_TBPSMRH_M 0x0000FF00 // GPTM Timer B Prescale Match High
5322
// Byte
5323
#define TIMER_TBPMR_TBPSMR_M 0x000000FF // GPTM TimerB Prescale Match
5324
#define TIMER_TBPMR_TBPSMRH_S 8
5325
#define TIMER_TBPMR_TBPSMR_S 0
5326
5327
//*****************************************************************************
5328
//
5329
// The following are defines for the bit fields in the TIMER_O_TAR register.
5330
//
5331
//*****************************************************************************
5332
#define TIMER_TAR_M 0xFFFFFFFF // GPTM Timer A Register
5333
#define TIMER_TAR_S 0
5334
5335
//*****************************************************************************
5336
//
5337
// The following are defines for the bit fields in the TIMER_O_TBR register.
5338
//
5339
//*****************************************************************************
5340
#define TIMER_TBR_M 0xFFFFFFFF // GPTM Timer B Register
5341
#define TIMER_TBR_S 0
5342
5343
//*****************************************************************************
5344
//
5345
// The following are defines for the bit fields in the TIMER_O_TAV register.
5346
//
5347
//*****************************************************************************
5348
#define TIMER_TAV_M 0xFFFFFFFF // GPTM Timer A Value
5349
#define TIMER_TAV_S 0
5350
5351
//*****************************************************************************
5352
//
5353
// The following are defines for the bit fields in the TIMER_O_TBV register.
5354
//
5355
//*****************************************************************************
5356
#define TIMER_TBV_M 0xFFFFFFFF // GPTM Timer B Value
5357
#define TIMER_TBV_S 0
5358
5359
//*****************************************************************************
5360
//
5361
// The following are defines for the bit fields in the TIMER_O_RTCPD register.
5362
//
5363
//*****************************************************************************
5364
#define TIMER_RTCPD_RTCPD_M 0x0000FFFF // RTC Predivide Counter Value
5365
#define TIMER_RTCPD_RTCPD_S 0
5366
5367
//*****************************************************************************
5368
//
5369
// The following are defines for the bit fields in the TIMER_O_TAPS register.
5370
//
5371
//*****************************************************************************
5372
#define TIMER_TAPS_PSS_M 0x0000FFFF // GPTM Timer A Prescaler Snapshot
5373
#define TIMER_TAPS_PSS_S 0
5374
5375
//*****************************************************************************
5376
//
5377
// The following are defines for the bit fields in the TIMER_O_TBPS register.
5378
//
5379
//*****************************************************************************
5380
#define TIMER_TBPS_PSS_M 0x0000FFFF // GPTM Timer A Prescaler Value
5381
#define TIMER_TBPS_PSS_S 0
5382
5383
//*****************************************************************************
5384
//
5385
// The following are defines for the bit fields in the TIMER_O_TAPV register.
5386
//
5387
//*****************************************************************************
5388
#define TIMER_TAPV_PSV_M 0x0000FFFF // GPTM Timer A Prescaler Value
5389
#define TIMER_TAPV_PSV_S 0
5390
5391
//*****************************************************************************
5392
//
5393
// The following are defines for the bit fields in the TIMER_O_TBPV register.
5394
//
5395
//*****************************************************************************
5396
#define TIMER_TBPV_PSV_M 0x0000FFFF // GPTM Timer B Prescaler Value
5397
#define TIMER_TBPV_PSV_S 0
5398
5399
//*****************************************************************************
5400
//
5401
// The following are defines for the bit fields in the TIMER_O_PP register.
5402
//
5403
//*****************************************************************************
5404
#define TIMER_PP_SIZE_M 0x0000000F // Count Size
5405
#define TIMER_PP_SIZE_16 0x00000000 // Timer A and Timer B counters are
5406
// 16 bits each with an 8-bit
5407
// prescale counter
5408
#define TIMER_PP_SIZE_32 0x00000001 // Timer A and Timer B counters are
5409
// 32 bits each with a 16-bit
5410
// prescale counter
5411
5412
//*****************************************************************************
5413
//
5414
// The following are defines for the bit fields in the ADC_O_ACTSS register.
5415
//
5416
//*****************************************************************************
5417
#define ADC_ACTSS_BUSY 0x00010000 // ADC Busy
5418
#define ADC_ACTSS_ASEN3 0x00000008 // ADC SS3 Enable
5419
#define ADC_ACTSS_ASEN2 0x00000004 // ADC SS2 Enable
5420
#define ADC_ACTSS_ASEN1 0x00000002 // ADC SS1 Enable
5421
#define ADC_ACTSS_ASEN0 0x00000001 // ADC SS0 Enable
5422
5423
//*****************************************************************************
5424
//
5425
// The following are defines for the bit fields in the ADC_O_RIS register.
5426
//
5427
//*****************************************************************************
5428
#define ADC_RIS_INRDC 0x00010000 // Digital Comparator Raw Interrupt
5429
// Status
5430
#define ADC_RIS_INR3 0x00000008 // SS3 Raw Interrupt Status
5431
#define ADC_RIS_INR2 0x00000004 // SS2 Raw Interrupt Status
5432
#define ADC_RIS_INR1 0x00000002 // SS1 Raw Interrupt Status
5433
#define ADC_RIS_INR0 0x00000001 // SS0 Raw Interrupt Status
5434
5435
//*****************************************************************************
5436
//
5437
// The following are defines for the bit fields in the ADC_O_IM register.
5438
//
5439
//*****************************************************************************
5440
#define ADC_IM_DCONSS3 0x00080000 // Digital Comparator Interrupt on
5441
// SS3
5442
#define ADC_IM_DCONSS2 0x00040000 // Digital Comparator Interrupt on
5443
// SS2
5444
#define ADC_IM_DCONSS1 0x00020000 // Digital Comparator Interrupt on
5445
// SS1
5446
#define ADC_IM_DCONSS0 0x00010000 // Digital Comparator Interrupt on
5447
// SS0
5448
#define ADC_IM_MASK3 0x00000008 // SS3 Interrupt Mask
5449
#define ADC_IM_MASK2 0x00000004 // SS2 Interrupt Mask
5450
#define ADC_IM_MASK1 0x00000002 // SS1 Interrupt Mask
5451
#define ADC_IM_MASK0 0x00000001 // SS0 Interrupt Mask
5452
5453
//*****************************************************************************
5454
//
5455
// The following are defines for the bit fields in the ADC_O_ISC register.
5456
//
5457
//*****************************************************************************
5458
#define ADC_ISC_DCINSS3 0x00080000 // Digital Comparator Interrupt
5459
// Status on SS3
5460
#define ADC_ISC_DCINSS2 0x00040000 // Digital Comparator Interrupt
5461
// Status on SS2
5462
#define ADC_ISC_DCINSS1 0x00020000 // Digital Comparator Interrupt
5463
// Status on SS1
5464
#define ADC_ISC_DCINSS0 0x00010000 // Digital Comparator Interrupt
5465
// Status on SS0
5466
#define ADC_ISC_IN3 0x00000008 // SS3 Interrupt Status and Clear
5467
#define ADC_ISC_IN2 0x00000004 // SS2 Interrupt Status and Clear
5468
#define ADC_ISC_IN1 0x00000002 // SS1 Interrupt Status and Clear
5469
#define ADC_ISC_IN0 0x00000001 // SS0 Interrupt Status and Clear
5470
5471
//*****************************************************************************
5472
//
5473
// The following are defines for the bit fields in the ADC_O_OSTAT register.
5474
//
5475
//*****************************************************************************
5476
#define ADC_OSTAT_OV3 0x00000008 // SS3 FIFO Overflow
5477
#define ADC_OSTAT_OV2 0x00000004 // SS2 FIFO Overflow
5478
#define ADC_OSTAT_OV1 0x00000002 // SS1 FIFO Overflow
5479
#define ADC_OSTAT_OV0 0x00000001 // SS0 FIFO Overflow
5480
5481
//*****************************************************************************
5482
//
5483
// The following are defines for the bit fields in the ADC_O_EMUX register.
5484
//
5485
//*****************************************************************************
5486
#define ADC_EMUX_EM3_M 0x0000F000 // SS3 Trigger Select
5487
#define ADC_EMUX_EM3_PROCESSOR 0x00000000 // Processor (default)
5488
#define ADC_EMUX_EM3_COMP0 0x00001000 // Analog Comparator 0
5489
#define ADC_EMUX_EM3_COMP1 0x00002000 // Analog Comparator 1
5490
#define ADC_EMUX_EM3_EXTERNAL 0x00004000 // External (GPIO Pins)
5491
#define ADC_EMUX_EM3_TIMER 0x00005000 // Timer
5492
#define ADC_EMUX_EM3_PWM0 0x00006000 // PWM generator 0
5493
#define ADC_EMUX_EM3_PWM1 0x00007000 // PWM generator 1
5494
#define ADC_EMUX_EM3_PWM2 0x00008000 // PWM generator 2
5495
#define ADC_EMUX_EM3_PWM3 0x00009000 // PWM generator 3
5496
#define ADC_EMUX_EM3_ALWAYS 0x0000F000 // Always (continuously sample)
5497
#define ADC_EMUX_EM2_M 0x00000F00 // SS2 Trigger Select
5498
#define ADC_EMUX_EM2_PROCESSOR 0x00000000 // Processor (default)
5499
#define ADC_EMUX_EM2_COMP0 0x00000100 // Analog Comparator 0
5500
#define ADC_EMUX_EM2_COMP1 0x00000200 // Analog Comparator 1
5501
#define ADC_EMUX_EM2_EXTERNAL 0x00000400 // External (GPIO Pins)
5502
#define ADC_EMUX_EM2_TIMER 0x00000500 // Timer
5503
#define ADC_EMUX_EM2_PWM0 0x00000600 // PWM generator 0
5504
#define ADC_EMUX_EM2_PWM1 0x00000700 // PWM generator 1
5505
#define ADC_EMUX_EM2_PWM2 0x00000800 // PWM generator 2
5506
#define ADC_EMUX_EM2_PWM3 0x00000900 // PWM generator 3
5507
#define ADC_EMUX_EM2_ALWAYS 0x00000F00 // Always (continuously sample)
5508
#define ADC_EMUX_EM1_M 0x000000F0 // SS1 Trigger Select
5509
#define ADC_EMUX_EM1_PROCESSOR 0x00000000 // Processor (default)
5510
#define ADC_EMUX_EM1_COMP0 0x00000010 // Analog Comparator 0
5511
#define ADC_EMUX_EM1_COMP1 0x00000020 // Analog Comparator 1
5512
#define ADC_EMUX_EM1_EXTERNAL 0x00000040 // External (GPIO Pins)
5513
#define ADC_EMUX_EM1_TIMER 0x00000050 // Timer
5514
#define ADC_EMUX_EM1_PWM0 0x00000060 // PWM generator 0
5515
#define ADC_EMUX_EM1_PWM1 0x00000070 // PWM generator 1
5516
#define ADC_EMUX_EM1_PWM2 0x00000080 // PWM generator 2
5517
#define ADC_EMUX_EM1_PWM3 0x00000090 // PWM generator 3
5518
#define ADC_EMUX_EM1_ALWAYS 0x000000F0 // Always (continuously sample)
5519
#define ADC_EMUX_EM0_M 0x0000000F // SS0 Trigger Select
5520
#define ADC_EMUX_EM0_PROCESSOR 0x00000000 // Processor (default)
5521
#define ADC_EMUX_EM0_COMP0 0x00000001 // Analog Comparator 0
5522
#define ADC_EMUX_EM0_COMP1 0x00000002 // Analog Comparator 1
5523
#define ADC_EMUX_EM0_EXTERNAL 0x00000004 // External (GPIO Pins)
5524
#define ADC_EMUX_EM0_TIMER 0x00000005 // Timer
5525
#define ADC_EMUX_EM0_PWM0 0x00000006 // PWM generator 0
5526
#define ADC_EMUX_EM0_PWM1 0x00000007 // PWM generator 1
5527
#define ADC_EMUX_EM0_PWM2 0x00000008 // PWM generator 2
5528
#define ADC_EMUX_EM0_PWM3 0x00000009 // PWM generator 3
5529
#define ADC_EMUX_EM0_ALWAYS 0x0000000F // Always (continuously sample)
5530
5531
//*****************************************************************************
5532
//
5533
// The following are defines for the bit fields in the ADC_O_USTAT register.
5534
//
5535
//*****************************************************************************
5536
#define ADC_USTAT_UV3 0x00000008 // SS3 FIFO Underflow
5537
#define ADC_USTAT_UV2 0x00000004 // SS2 FIFO Underflow
5538
#define ADC_USTAT_UV1 0x00000002 // SS1 FIFO Underflow
5539
#define ADC_USTAT_UV0 0x00000001 // SS0 FIFO Underflow
5540
5541
//*****************************************************************************
5542
//
5543
// The following are defines for the bit fields in the ADC_O_TSSEL register.
5544
//
5545
//*****************************************************************************
5546
#define ADC_TSSEL_PS3_M 0x30000000 // Generator 3 PWM Module Trigger
5547
// Select
5548
#define ADC_TSSEL_PS3_0 0x00000000 // Use Generator 3 (and its
5549
// trigger) in PWM module 0
5550
#define ADC_TSSEL_PS3_1 0x10000000 // Use Generator 3 (and its
5551
// trigger) in PWM module 1
5552
#define ADC_TSSEL_PS2_M 0x00300000 // Generator 2 PWM Module Trigger
5553
// Select
5554
#define ADC_TSSEL_PS2_0 0x00000000 // Use Generator 2 (and its
5555
// trigger) in PWM module 0
5556
#define ADC_TSSEL_PS2_1 0x00100000 // Use Generator 2 (and its
5557
// trigger) in PWM module 1
5558
#define ADC_TSSEL_PS1_M 0x00003000 // Generator 1 PWM Module Trigger
5559
// Select
5560
#define ADC_TSSEL_PS1_0 0x00000000 // Use Generator 1 (and its
5561
// trigger) in PWM module 0
5562
#define ADC_TSSEL_PS1_1 0x00001000 // Use Generator 1 (and its
5563
// trigger) in PWM module 1
5564
#define ADC_TSSEL_PS0_M 0x00000030 // Generator 0 PWM Module Trigger
5565
// Select
5566
#define ADC_TSSEL_PS0_0 0x00000000 // Use Generator 0 (and its
5567
// trigger) in PWM module 0
5568
#define ADC_TSSEL_PS0_1 0x00000010 // Use Generator 0 (and its
5569
// trigger) in PWM module 1
5570
5571
//*****************************************************************************
5572
//
5573
// The following are defines for the bit fields in the ADC_O_SSPRI register.
5574
//
5575
//*****************************************************************************
5576
#define ADC_SSPRI_SS3_M 0x00003000 // SS3 Priority
5577
#define ADC_SSPRI_SS2_M 0x00000300 // SS2 Priority
5578
#define ADC_SSPRI_SS1_M 0x00000030 // SS1 Priority
5579
#define ADC_SSPRI_SS0_M 0x00000003 // SS0 Priority
5580
5581
//*****************************************************************************
5582
//
5583
// The following are defines for the bit fields in the ADC_O_SPC register.
5584
//
5585
//*****************************************************************************
5586
#define ADC_SPC_PHASE_M 0x0000000F // Phase Difference
5587
#define ADC_SPC_PHASE_0 0x00000000 // ADC sample lags by 0.0
5588
#define ADC_SPC_PHASE_22_5 0x00000001 // ADC sample lags by 22.5
5589
#define ADC_SPC_PHASE_45 0x00000002 // ADC sample lags by 45.0
5590
#define ADC_SPC_PHASE_67_5 0x00000003 // ADC sample lags by 67.5
5591
#define ADC_SPC_PHASE_90 0x00000004 // ADC sample lags by 90.0
5592
#define ADC_SPC_PHASE_112_5 0x00000005 // ADC sample lags by 112.5
5593
#define ADC_SPC_PHASE_135 0x00000006 // ADC sample lags by 135.0
5594
#define ADC_SPC_PHASE_157_5 0x00000007 // ADC sample lags by 157.5
5595
#define ADC_SPC_PHASE_180 0x00000008 // ADC sample lags by 180.0
5596
#define ADC_SPC_PHASE_202_5 0x00000009 // ADC sample lags by 202.5
5597
#define ADC_SPC_PHASE_225 0x0000000A // ADC sample lags by 225.0
5598
#define ADC_SPC_PHASE_247_5 0x0000000B // ADC sample lags by 247.5
5599
#define ADC_SPC_PHASE_270 0x0000000C // ADC sample lags by 270.0
5600
#define ADC_SPC_PHASE_292_5 0x0000000D // ADC sample lags by 292.5
5601
#define ADC_SPC_PHASE_315 0x0000000E // ADC sample lags by 315.0
5602
#define ADC_SPC_PHASE_337_5 0x0000000F // ADC sample lags by 337.5
5603
5604
//*****************************************************************************
5605
//
5606
// The following are defines for the bit fields in the ADC_O_PSSI register.
5607
//
5608
//*****************************************************************************
5609
#define ADC_PSSI_GSYNC 0x80000000 // Global Synchronize
5610
#define ADC_PSSI_SYNCWAIT 0x08000000 // Synchronize Wait
5611
#define ADC_PSSI_SS3 0x00000008 // SS3 Initiate
5612
#define ADC_PSSI_SS2 0x00000004 // SS2 Initiate
5613
#define ADC_PSSI_SS1 0x00000002 // SS1 Initiate
5614
#define ADC_PSSI_SS0 0x00000001 // SS0 Initiate
5615
5616
//*****************************************************************************
5617
//
5618
// The following are defines for the bit fields in the ADC_O_SAC register.
5619
//
5620
//*****************************************************************************
5621
#define ADC_SAC_AVG_M 0x00000007 // Hardware Averaging Control
5622
#define ADC_SAC_AVG_OFF 0x00000000 // No hardware oversampling
5623
#define ADC_SAC_AVG_2X 0x00000001 // 2x hardware oversampling
5624
#define ADC_SAC_AVG_4X 0x00000002 // 4x hardware oversampling
5625
#define ADC_SAC_AVG_8X 0x00000003 // 8x hardware oversampling
5626
#define ADC_SAC_AVG_16X 0x00000004 // 16x hardware oversampling
5627
#define ADC_SAC_AVG_32X 0x00000005 // 32x hardware oversampling
5628
#define ADC_SAC_AVG_64X 0x00000006 // 64x hardware oversampling
5629
5630
//*****************************************************************************
5631
//
5632
// The following are defines for the bit fields in the ADC_O_DCISC register.
5633
//
5634
//*****************************************************************************
5635
#define ADC_DCISC_DCINT7 0x00000080 // Digital Comparator 7 Interrupt
5636
// Status and Clear
5637
#define ADC_DCISC_DCINT6 0x00000040 // Digital Comparator 6 Interrupt
5638
// Status and Clear
5639
#define ADC_DCISC_DCINT5 0x00000020 // Digital Comparator 5 Interrupt
5640
// Status and Clear
5641
#define ADC_DCISC_DCINT4 0x00000010 // Digital Comparator 4 Interrupt
5642
// Status and Clear
5643
#define ADC_DCISC_DCINT3 0x00000008 // Digital Comparator 3 Interrupt
5644
// Status and Clear
5645
#define ADC_DCISC_DCINT2 0x00000004 // Digital Comparator 2 Interrupt
5646
// Status and Clear
5647
#define ADC_DCISC_DCINT1 0x00000002 // Digital Comparator 1 Interrupt
5648
// Status and Clear
5649
#define ADC_DCISC_DCINT0 0x00000001 // Digital Comparator 0 Interrupt
5650
// Status and Clear
5651
5652
//*****************************************************************************
5653
//
5654
// The following are defines for the bit fields in the ADC_O_CTL register.
5655
//
5656
//*****************************************************************************
5657
#define ADC_CTL_DITHER 0x00000040 // Dither Mode Enable
5658
#define ADC_CTL_VREF_M 0x00000001 // Voltage Reference Select
5659
#define ADC_CTL_VREF_INTERNAL 0x00000000 // VDDA and GNDA are the voltage
5660
// references
5661
5662
//*****************************************************************************
5663
//
5664
// The following are defines for the bit fields in the ADC_O_SSMUX0 register.
5665
//
5666
//*****************************************************************************
5667
#define ADC_SSMUX0_MUX7_M 0xF0000000 // 8th Sample Input Select
5668
#define ADC_SSMUX0_MUX6_M 0x0F000000 // 7th Sample Input Select
5669
#define ADC_SSMUX0_MUX5_M 0x00F00000 // 6th Sample Input Select
5670
#define ADC_SSMUX0_MUX4_M 0x000F0000 // 5th Sample Input Select
5671
#define ADC_SSMUX0_MUX3_M 0x0000F000 // 4th Sample Input Select
5672
#define ADC_SSMUX0_MUX2_M 0x00000F00 // 3rd Sample Input Select
5673
#define ADC_SSMUX0_MUX1_M 0x000000F0 // 2nd Sample Input Select
5674
#define ADC_SSMUX0_MUX0_M 0x0000000F // 1st Sample Input Select
5675
#define ADC_SSMUX0_MUX7_S 28
5676
#define ADC_SSMUX0_MUX6_S 24
5677
#define ADC_SSMUX0_MUX5_S 20
5678
#define ADC_SSMUX0_MUX4_S 16
5679
#define ADC_SSMUX0_MUX3_S 12
5680
#define ADC_SSMUX0_MUX2_S 8
5681
#define ADC_SSMUX0_MUX1_S 4
5682
#define ADC_SSMUX0_MUX0_S 0
5683
5684
//*****************************************************************************
5685
//
5686
// The following are defines for the bit fields in the ADC_O_SSCTL0 register.
5687
//
5688
//*****************************************************************************
5689
#define ADC_SSCTL0_TS7 0x80000000 // 8th Sample Temp Sensor Select
5690
#define ADC_SSCTL0_IE7 0x40000000 // 8th Sample Interrupt Enable
5691
#define ADC_SSCTL0_END7 0x20000000 // 8th Sample is End of Sequence
5692
#define ADC_SSCTL0_D7 0x10000000 // 8th Sample Differential Input
5693
// Select
5694
#define ADC_SSCTL0_TS6 0x08000000 // 7th Sample Temp Sensor Select
5695
#define ADC_SSCTL0_IE6 0x04000000 // 7th Sample Interrupt Enable
5696
#define ADC_SSCTL0_END6 0x02000000 // 7th Sample is End of Sequence
5697
#define ADC_SSCTL0_D6 0x01000000 // 7th Sample Differential Input
5698
// Select
5699
#define ADC_SSCTL0_TS5 0x00800000 // 6th Sample Temp Sensor Select
5700
#define ADC_SSCTL0_IE5 0x00400000 // 6th Sample Interrupt Enable
5701
#define ADC_SSCTL0_END5 0x00200000 // 6th Sample is End of Sequence
5702
#define ADC_SSCTL0_D5 0x00100000 // 6th Sample Differential Input
5703
// Select
5704
#define ADC_SSCTL0_TS4 0x00080000 // 5th Sample Temp Sensor Select
5705
#define ADC_SSCTL0_IE4 0x00040000 // 5th Sample Interrupt Enable
5706
#define ADC_SSCTL0_END4 0x00020000 // 5th Sample is End of Sequence
5707
#define ADC_SSCTL0_D4 0x00010000 // 5th Sample Differential Input
5708
// Select
5709
#define ADC_SSCTL0_TS3 0x00008000 // 4th Sample Temp Sensor Select
5710
#define ADC_SSCTL0_IE3 0x00004000 // 4th Sample Interrupt Enable
5711
#define ADC_SSCTL0_END3 0x00002000 // 4th Sample is End of Sequence
5712
#define ADC_SSCTL0_D3 0x00001000 // 4th Sample Differential Input
5713
// Select
5714
#define ADC_SSCTL0_TS2 0x00000800 // 3rd Sample Temp Sensor Select
5715
#define ADC_SSCTL0_IE2 0x00000400 // 3rd Sample Interrupt Enable
5716
#define ADC_SSCTL0_END2 0x00000200 // 3rd Sample is End of Sequence
5717
#define ADC_SSCTL0_D2 0x00000100 // 3rd Sample Differential Input
5718
// Select
5719
#define ADC_SSCTL0_TS1 0x00000080 // 2nd Sample Temp Sensor Select
5720
#define ADC_SSCTL0_IE1 0x00000040 // 2nd Sample Interrupt Enable
5721
#define ADC_SSCTL0_END1 0x00000020 // 2nd Sample is End of Sequence
5722
#define ADC_SSCTL0_D1 0x00000010 // 2nd Sample Differential Input
5723
// Select
5724
#define ADC_SSCTL0_TS0 0x00000008 // 1st Sample Temp Sensor Select
5725
#define ADC_SSCTL0_IE0 0x00000004 // 1st Sample Interrupt Enable
5726
#define ADC_SSCTL0_END0 0x00000002 // 1st Sample is End of Sequence
5727
#define ADC_SSCTL0_D0 0x00000001 // 1st Sample Differential Input
5728
// Select
5729
5730
//*****************************************************************************
5731
//
5732
// The following are defines for the bit fields in the ADC_O_SSFIFO0 register.
5733
//
5734
//*****************************************************************************
5735
#define ADC_SSFIFO0_DATA_M 0x00000FFF // Conversion Result Data
5736
#define ADC_SSFIFO0_DATA_S 0
5737
5738
//*****************************************************************************
5739
//
5740
// The following are defines for the bit fields in the ADC_O_SSFSTAT0 register.
5741
//
5742
//*****************************************************************************
5743
#define ADC_SSFSTAT0_FULL 0x00001000 // FIFO Full
5744
#define ADC_SSFSTAT0_EMPTY 0x00000100 // FIFO Empty
5745
#define ADC_SSFSTAT0_HPTR_M 0x000000F0 // FIFO Head Pointer
5746
#define ADC_SSFSTAT0_TPTR_M 0x0000000F // FIFO Tail Pointer
5747
#define ADC_SSFSTAT0_HPTR_S 4
5748
#define ADC_SSFSTAT0_TPTR_S 0
5749
5750
//*****************************************************************************
5751
//
5752
// The following are defines for the bit fields in the ADC_O_SSOP0 register.
5753
//
5754
//*****************************************************************************
5755
#define ADC_SSOP0_S7DCOP 0x10000000 // Sample 7 Digital Comparator
5756
// Operation
5757
#define ADC_SSOP0_S6DCOP 0x01000000 // Sample 6 Digital Comparator
5758
// Operation
5759
#define ADC_SSOP0_S5DCOP 0x00100000 // Sample 5 Digital Comparator
5760
// Operation
5761
#define ADC_SSOP0_S4DCOP 0x00010000 // Sample 4 Digital Comparator
5762
// Operation
5763
#define ADC_SSOP0_S3DCOP 0x00001000 // Sample 3 Digital Comparator
5764
// Operation
5765
#define ADC_SSOP0_S2DCOP 0x00000100 // Sample 2 Digital Comparator
5766
// Operation
5767
#define ADC_SSOP0_S1DCOP 0x00000010 // Sample 1 Digital Comparator
5768
// Operation
5769
#define ADC_SSOP0_S0DCOP 0x00000001 // Sample 0 Digital Comparator
5770
// Operation
5771
5772
//*****************************************************************************
5773
//
5774
// The following are defines for the bit fields in the ADC_O_SSDC0 register.
5775
//
5776
//*****************************************************************************
5777
#define ADC_SSDC0_S7DCSEL_M 0xF0000000 // Sample 7 Digital Comparator
5778
// Select
5779
#define ADC_SSDC0_S6DCSEL_M 0x0F000000 // Sample 6 Digital Comparator
5780
// Select
5781
#define ADC_SSDC0_S5DCSEL_M 0x00F00000 // Sample 5 Digital Comparator
5782
// Select
5783
#define ADC_SSDC0_S4DCSEL_M 0x000F0000 // Sample 4 Digital Comparator
5784
// Select
5785
#define ADC_SSDC0_S3DCSEL_M 0x0000F000 // Sample 3 Digital Comparator
5786
// Select
5787
#define ADC_SSDC0_S2DCSEL_M 0x00000F00 // Sample 2 Digital Comparator
5788
// Select
5789
#define ADC_SSDC0_S1DCSEL_M 0x000000F0 // Sample 1 Digital Comparator
5790
// Select
5791
#define ADC_SSDC0_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
5792
// Select
5793
#define ADC_SSDC0_S6DCSEL_S 24
5794
#define ADC_SSDC0_S5DCSEL_S 20
5795
#define ADC_SSDC0_S4DCSEL_S 16
5796
#define ADC_SSDC0_S3DCSEL_S 12
5797
#define ADC_SSDC0_S2DCSEL_S 8
5798
#define ADC_SSDC0_S1DCSEL_S 4
5799
#define ADC_SSDC0_S0DCSEL_S 0
5800
5801
//*****************************************************************************
5802
//
5803
// The following are defines for the bit fields in the ADC_O_SSMUX1 register.
5804
//
5805
//*****************************************************************************
5806
#define ADC_SSMUX1_MUX3_M 0x0000F000 // 4th Sample Input Select
5807
#define ADC_SSMUX1_MUX2_M 0x00000F00 // 3rd Sample Input Select
5808
#define ADC_SSMUX1_MUX1_M 0x000000F0 // 2nd Sample Input Select
5809
#define ADC_SSMUX1_MUX0_M 0x0000000F // 1st Sample Input Select
5810
#define ADC_SSMUX1_MUX3_S 12
5811
#define ADC_SSMUX1_MUX2_S 8
5812
#define ADC_SSMUX1_MUX1_S 4
5813
#define ADC_SSMUX1_MUX0_S 0
5814
5815
//*****************************************************************************
5816
//
5817
// The following are defines for the bit fields in the ADC_O_SSCTL1 register.
5818
//
5819
//*****************************************************************************
5820
#define ADC_SSCTL1_TS3 0x00008000 // 4th Sample Temp Sensor Select
5821
#define ADC_SSCTL1_IE3 0x00004000 // 4th Sample Interrupt Enable
5822
#define ADC_SSCTL1_END3 0x00002000 // 4th Sample is End of Sequence
5823
#define ADC_SSCTL1_D3 0x00001000 // 4th Sample Differential Input
5824
// Select
5825
#define ADC_SSCTL1_TS2 0x00000800 // 3rd Sample Temp Sensor Select
5826
#define ADC_SSCTL1_IE2 0x00000400 // 3rd Sample Interrupt Enable
5827
#define ADC_SSCTL1_END2 0x00000200 // 3rd Sample is End of Sequence
5828
#define ADC_SSCTL1_D2 0x00000100 // 3rd Sample Differential Input
5829
// Select
5830
#define ADC_SSCTL1_TS1 0x00000080 // 2nd Sample Temp Sensor Select
5831
#define ADC_SSCTL1_IE1 0x00000040 // 2nd Sample Interrupt Enable
5832
#define ADC_SSCTL1_END1 0x00000020 // 2nd Sample is End of Sequence
5833
#define ADC_SSCTL1_D1 0x00000010 // 2nd Sample Differential Input
5834
// Select
5835
#define ADC_SSCTL1_TS0 0x00000008 // 1st Sample Temp Sensor Select
5836
#define ADC_SSCTL1_IE0 0x00000004 // 1st Sample Interrupt Enable
5837
#define ADC_SSCTL1_END0 0x00000002 // 1st Sample is End of Sequence
5838
#define ADC_SSCTL1_D0 0x00000001 // 1st Sample Differential Input
5839
// Select
5840
5841
//*****************************************************************************
5842
//
5843
// The following are defines for the bit fields in the ADC_O_SSFIFO1 register.
5844
//
5845
//*****************************************************************************
5846
#define ADC_SSFIFO1_DATA_M 0x00000FFF // Conversion Result Data
5847
#define ADC_SSFIFO1_DATA_S 0
5848
5849
//*****************************************************************************
5850
//
5851
// The following are defines for the bit fields in the ADC_O_SSFSTAT1 register.
5852
//
5853
//*****************************************************************************
5854
#define ADC_SSFSTAT1_FULL 0x00001000 // FIFO Full
5855
#define ADC_SSFSTAT1_EMPTY 0x00000100 // FIFO Empty
5856
#define ADC_SSFSTAT1_HPTR_M 0x000000F0 // FIFO Head Pointer
5857
#define ADC_SSFSTAT1_TPTR_M 0x0000000F // FIFO Tail Pointer
5858
#define ADC_SSFSTAT1_HPTR_S 4
5859
#define ADC_SSFSTAT1_TPTR_S 0
5860
5861
//*****************************************************************************
5862
//
5863
// The following are defines for the bit fields in the ADC_O_SSOP1 register.
5864
//
5865
//*****************************************************************************
5866
#define ADC_SSOP1_S3DCOP 0x00001000 // Sample 3 Digital Comparator
5867
// Operation
5868
#define ADC_SSOP1_S2DCOP 0x00000100 // Sample 2 Digital Comparator
5869
// Operation
5870
#define ADC_SSOP1_S1DCOP 0x00000010 // Sample 1 Digital Comparator
5871
// Operation
5872
#define ADC_SSOP1_S0DCOP 0x00000001 // Sample 0 Digital Comparator
5873
// Operation
5874
5875
//*****************************************************************************
5876
//
5877
// The following are defines for the bit fields in the ADC_O_SSDC1 register.
5878
//
5879
//*****************************************************************************
5880
#define ADC_SSDC1_S3DCSEL_M 0x0000F000 // Sample 3 Digital Comparator
5881
// Select
5882
#define ADC_SSDC1_S2DCSEL_M 0x00000F00 // Sample 2 Digital Comparator
5883
// Select
5884
#define ADC_SSDC1_S1DCSEL_M 0x000000F0 // Sample 1 Digital Comparator
5885
// Select
5886
#define ADC_SSDC1_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
5887
// Select
5888
#define ADC_SSDC1_S2DCSEL_S 8
5889
#define ADC_SSDC1_S1DCSEL_S 4
5890
#define ADC_SSDC1_S0DCSEL_S 0
5891
5892
//*****************************************************************************
5893
//
5894
// The following are defines for the bit fields in the ADC_O_SSMUX2 register.
5895
//
5896
//*****************************************************************************
5897
#define ADC_SSMUX2_MUX3_M 0x0000F000 // 4th Sample Input Select
5898
#define ADC_SSMUX2_MUX2_M 0x00000F00 // 3rd Sample Input Select
5899
#define ADC_SSMUX2_MUX1_M 0x000000F0 // 2nd Sample Input Select
5900
#define ADC_SSMUX2_MUX0_M 0x0000000F // 1st Sample Input Select
5901
#define ADC_SSMUX2_MUX3_S 12
5902
#define ADC_SSMUX2_MUX2_S 8
5903
#define ADC_SSMUX2_MUX1_S 4
5904
#define ADC_SSMUX2_MUX0_S 0
5905
5906
//*****************************************************************************
5907
//
5908
// The following are defines for the bit fields in the ADC_O_SSCTL2 register.
5909
//
5910
//*****************************************************************************
5911
#define ADC_SSCTL2_TS3 0x00008000 // 4th Sample Temp Sensor Select
5912
#define ADC_SSCTL2_IE3 0x00004000 // 4th Sample Interrupt Enable
5913
#define ADC_SSCTL2_END3 0x00002000 // 4th Sample is End of Sequence
5914
#define ADC_SSCTL2_D3 0x00001000 // 4th Sample Differential Input
5915
// Select
5916
#define ADC_SSCTL2_TS2 0x00000800 // 3rd Sample Temp Sensor Select
5917
#define ADC_SSCTL2_IE2 0x00000400 // 3rd Sample Interrupt Enable
5918
#define ADC_SSCTL2_END2 0x00000200 // 3rd Sample is End of Sequence
5919
#define ADC_SSCTL2_D2 0x00000100 // 3rd Sample Differential Input
5920
// Select
5921
#define ADC_SSCTL2_TS1 0x00000080 // 2nd Sample Temp Sensor Select
5922
#define ADC_SSCTL2_IE1 0x00000040 // 2nd Sample Interrupt Enable
5923
#define ADC_SSCTL2_END1 0x00000020 // 2nd Sample is End of Sequence
5924
#define ADC_SSCTL2_D1 0x00000010 // 2nd Sample Differential Input
5925
// Select
5926
#define ADC_SSCTL2_TS0 0x00000008 // 1st Sample Temp Sensor Select
5927
#define ADC_SSCTL2_IE0 0x00000004 // 1st Sample Interrupt Enable
5928
#define ADC_SSCTL2_END0 0x00000002 // 1st Sample is End of Sequence
5929
#define ADC_SSCTL2_D0 0x00000001 // 1st Sample Differential Input
5930
// Select
5931
5932
//*****************************************************************************
5933
//
5934
// The following are defines for the bit fields in the ADC_O_SSFIFO2 register.
5935
//
5936
//*****************************************************************************
5937
#define ADC_SSFIFO2_DATA_M 0x00000FFF // Conversion Result Data
5938
#define ADC_SSFIFO2_DATA_S 0
5939
5940
//*****************************************************************************
5941
//
5942
// The following are defines for the bit fields in the ADC_O_SSFSTAT2 register.
5943
//
5944
//*****************************************************************************
5945
#define ADC_SSFSTAT2_FULL 0x00001000 // FIFO Full
5946
#define ADC_SSFSTAT2_EMPTY 0x00000100 // FIFO Empty
5947
#define ADC_SSFSTAT2_HPTR_M 0x000000F0 // FIFO Head Pointer
5948
#define ADC_SSFSTAT2_TPTR_M 0x0000000F // FIFO Tail Pointer
5949
#define ADC_SSFSTAT2_HPTR_S 4
5950
#define ADC_SSFSTAT2_TPTR_S 0
5951
5952
//*****************************************************************************
5953
//
5954
// The following are defines for the bit fields in the ADC_O_SSOP2 register.
5955
//
5956
//*****************************************************************************
5957
#define ADC_SSOP2_S3DCOP 0x00001000 // Sample 3 Digital Comparator
5958
// Operation
5959
#define ADC_SSOP2_S2DCOP 0x00000100 // Sample 2 Digital Comparator
5960
// Operation
5961
#define ADC_SSOP2_S1DCOP 0x00000010 // Sample 1 Digital Comparator
5962
// Operation
5963
#define ADC_SSOP2_S0DCOP 0x00000001 // Sample 0 Digital Comparator
5964
// Operation
5965
5966
//*****************************************************************************
5967
//
5968
// The following are defines for the bit fields in the ADC_O_SSDC2 register.
5969
//
5970
//*****************************************************************************
5971
#define ADC_SSDC2_S3DCSEL_M 0x0000F000 // Sample 3 Digital Comparator
5972
// Select
5973
#define ADC_SSDC2_S2DCSEL_M 0x00000F00 // Sample 2 Digital Comparator
5974
// Select
5975
#define ADC_SSDC2_S1DCSEL_M 0x000000F0 // Sample 1 Digital Comparator
5976
// Select
5977
#define ADC_SSDC2_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
5978
// Select
5979
#define ADC_SSDC2_S2DCSEL_S 8
5980
#define ADC_SSDC2_S1DCSEL_S 4
5981
#define ADC_SSDC2_S0DCSEL_S 0
5982
5983
//*****************************************************************************
5984
//
5985
// The following are defines for the bit fields in the ADC_O_SSMUX3 register.
5986
//
5987
//*****************************************************************************
5988
#define ADC_SSMUX3_MUX0_M 0x0000000F // 1st Sample Input Select
5989
#define ADC_SSMUX3_MUX0_S 0
5990
5991
//*****************************************************************************
5992
//
5993
// The following are defines for the bit fields in the ADC_O_SSCTL3 register.
5994
//
5995
//*****************************************************************************
5996
#define ADC_SSCTL3_TS0 0x00000008 // 1st Sample Temp Sensor Select
5997
#define ADC_SSCTL3_IE0 0x00000004 // Sample Interrupt Enable
5998
#define ADC_SSCTL3_END0 0x00000002 // End of Sequence
5999
#define ADC_SSCTL3_D0 0x00000001 // Sample Differential Input Select
6000
6001
//*****************************************************************************
6002
//
6003
// The following are defines for the bit fields in the ADC_O_SSFIFO3 register.
6004
//
6005
//*****************************************************************************
6006
#define ADC_SSFIFO3_DATA_M 0x00000FFF // Conversion Result Data
6007
#define ADC_SSFIFO3_DATA_S 0
6008
6009
//*****************************************************************************
6010
//
6011
// The following are defines for the bit fields in the ADC_O_SSFSTAT3 register.
6012
//
6013
//*****************************************************************************
6014
#define ADC_SSFSTAT3_FULL 0x00001000 // FIFO Full
6015
#define ADC_SSFSTAT3_EMPTY 0x00000100 // FIFO Empty
6016
#define ADC_SSFSTAT3_HPTR_M 0x000000F0 // FIFO Head Pointer
6017
#define ADC_SSFSTAT3_TPTR_M 0x0000000F // FIFO Tail Pointer
6018
#define ADC_SSFSTAT3_HPTR_S 4
6019
#define ADC_SSFSTAT3_TPTR_S 0
6020
6021
//*****************************************************************************
6022
//
6023
// The following are defines for the bit fields in the ADC_O_SSOP3 register.
6024
//
6025
//*****************************************************************************
6026
#define ADC_SSOP3_S0DCOP 0x00000001 // Sample 0 Digital Comparator
6027
// Operation
6028
6029
//*****************************************************************************
6030
//
6031
// The following are defines for the bit fields in the ADC_O_SSDC3 register.
6032
//
6033
//*****************************************************************************
6034
#define ADC_SSDC3_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
6035
// Select
6036
6037
//*****************************************************************************
6038
//
6039
// The following are defines for the bit fields in the ADC_O_DCRIC register.
6040
//
6041
//*****************************************************************************
6042
#define ADC_DCRIC_DCTRIG7 0x00800000 // Digital Comparator Trigger 7
6043
#define ADC_DCRIC_DCTRIG6 0x00400000 // Digital Comparator Trigger 6
6044
#define ADC_DCRIC_DCTRIG5 0x00200000 // Digital Comparator Trigger 5
6045
#define ADC_DCRIC_DCTRIG4 0x00100000 // Digital Comparator Trigger 4
6046
#define ADC_DCRIC_DCTRIG3 0x00080000 // Digital Comparator Trigger 3
6047
#define ADC_DCRIC_DCTRIG2 0x00040000 // Digital Comparator Trigger 2
6048
#define ADC_DCRIC_DCTRIG1 0x00020000 // Digital Comparator Trigger 1
6049
#define ADC_DCRIC_DCTRIG0 0x00010000 // Digital Comparator Trigger 0
6050
#define ADC_DCRIC_DCINT7 0x00000080 // Digital Comparator Interrupt 7
6051
#define ADC_DCRIC_DCINT6 0x00000040 // Digital Comparator Interrupt 6
6052
#define ADC_DCRIC_DCINT5 0x00000020 // Digital Comparator Interrupt 5
6053
#define ADC_DCRIC_DCINT4 0x00000010 // Digital Comparator Interrupt 4
6054
#define ADC_DCRIC_DCINT3 0x00000008 // Digital Comparator Interrupt 3
6055
#define ADC_DCRIC_DCINT2 0x00000004 // Digital Comparator Interrupt 2
6056
#define ADC_DCRIC_DCINT1 0x00000002 // Digital Comparator Interrupt 1
6057
#define ADC_DCRIC_DCINT0 0x00000001 // Digital Comparator Interrupt 0
6058
6059
//*****************************************************************************
6060
//
6061
// The following are defines for the bit fields in the ADC_O_DCCTL0 register.
6062
//
6063
//*****************************************************************************
6064
#define ADC_DCCTL0_CTE 0x00001000 // Comparison Trigger Enable
6065
#define ADC_DCCTL0_CTC_M 0x00000C00 // Comparison Trigger Condition
6066
#define ADC_DCCTL0_CTC_LOW 0x00000000 // Low Band
6067
#define ADC_DCCTL0_CTC_MID 0x00000400 // Mid Band
6068
#define ADC_DCCTL0_CTC_HIGH 0x00000C00 // High Band
6069
#define ADC_DCCTL0_CTM_M 0x00000300 // Comparison Trigger Mode
6070
#define ADC_DCCTL0_CTM_ALWAYS 0x00000000 // Always
6071
#define ADC_DCCTL0_CTM_ONCE 0x00000100 // Once
6072
#define ADC_DCCTL0_CTM_HALWAYS 0x00000200 // Hysteresis Always
6073
#define ADC_DCCTL0_CTM_HONCE 0x00000300 // Hysteresis Once
6074
#define ADC_DCCTL0_CIE 0x00000010 // Comparison Interrupt Enable
6075
#define ADC_DCCTL0_CIC_M 0x0000000C // Comparison Interrupt Condition
6076
#define ADC_DCCTL0_CIC_LOW 0x00000000 // Low Band
6077
#define ADC_DCCTL0_CIC_MID 0x00000004 // Mid Band
6078
#define ADC_DCCTL0_CIC_HIGH 0x0000000C // High Band
6079
#define ADC_DCCTL0_CIM_M 0x00000003 // Comparison Interrupt Mode
6080
#define ADC_DCCTL0_CIM_ALWAYS 0x00000000 // Always
6081
#define ADC_DCCTL0_CIM_ONCE 0x00000001 // Once
6082
#define ADC_DCCTL0_CIM_HALWAYS 0x00000002 // Hysteresis Always
6083
#define ADC_DCCTL0_CIM_HONCE 0x00000003 // Hysteresis Once
6084
6085
//*****************************************************************************
6086
//
6087
// The following are defines for the bit fields in the ADC_O_DCCTL1 register.
6088
//
6089
//*****************************************************************************
6090
#define ADC_DCCTL1_CTE 0x00001000 // Comparison Trigger Enable
6091
#define ADC_DCCTL1_CTC_M 0x00000C00 // Comparison Trigger Condition
6092
#define ADC_DCCTL1_CTC_LOW 0x00000000 // Low Band
6093
#define ADC_DCCTL1_CTC_MID 0x00000400 // Mid Band
6094
#define ADC_DCCTL1_CTC_HIGH 0x00000C00 // High Band
6095
#define ADC_DCCTL1_CTM_M 0x00000300 // Comparison Trigger Mode
6096
#define ADC_DCCTL1_CTM_ALWAYS 0x00000000 // Always
6097
#define ADC_DCCTL1_CTM_ONCE 0x00000100 // Once
6098
#define ADC_DCCTL1_CTM_HALWAYS 0x00000200 // Hysteresis Always
6099
#define ADC_DCCTL1_CTM_HONCE 0x00000300 // Hysteresis Once
6100
#define ADC_DCCTL1_CIE 0x00000010 // Comparison Interrupt Enable
6101
#define ADC_DCCTL1_CIC_M 0x0000000C // Comparison Interrupt Condition
6102
#define ADC_DCCTL1_CIC_LOW 0x00000000 // Low Band
6103
#define ADC_DCCTL1_CIC_MID 0x00000004 // Mid Band
6104
#define ADC_DCCTL1_CIC_HIGH 0x0000000C // High Band
6105
#define ADC_DCCTL1_CIM_M 0x00000003 // Comparison Interrupt Mode
6106
#define ADC_DCCTL1_CIM_ALWAYS 0x00000000 // Always
6107
#define ADC_DCCTL1_CIM_ONCE 0x00000001 // Once
6108
#define ADC_DCCTL1_CIM_HALWAYS 0x00000002 // Hysteresis Always
6109
#define ADC_DCCTL1_CIM_HONCE 0x00000003 // Hysteresis Once
6110
6111
//*****************************************************************************
6112
//
6113
// The following are defines for the bit fields in the ADC_O_DCCTL2 register.
6114
//
6115
//*****************************************************************************
6116
#define ADC_DCCTL2_CTE 0x00001000 // Comparison Trigger Enable
6117
#define ADC_DCCTL2_CTC_M 0x00000C00 // Comparison Trigger Condition
6118
#define ADC_DCCTL2_CTC_LOW 0x00000000 // Low Band
6119
#define ADC_DCCTL2_CTC_MID 0x00000400 // Mid Band
6120
#define ADC_DCCTL2_CTC_HIGH 0x00000C00 // High Band
6121
#define ADC_DCCTL2_CTM_M 0x00000300 // Comparison Trigger Mode
6122
#define ADC_DCCTL2_CTM_ALWAYS 0x00000000 // Always
6123
#define ADC_DCCTL2_CTM_ONCE 0x00000100 // Once
6124
#define ADC_DCCTL2_CTM_HALWAYS 0x00000200 // Hysteresis Always
6125
#define ADC_DCCTL2_CTM_HONCE 0x00000300 // Hysteresis Once
6126
#define ADC_DCCTL2_CIE 0x00000010 // Comparison Interrupt Enable
6127
#define ADC_DCCTL2_CIC_M 0x0000000C // Comparison Interrupt Condition
6128
#define ADC_DCCTL2_CIC_LOW 0x00000000 // Low Band
6129
#define ADC_DCCTL2_CIC_MID 0x00000004 // Mid Band
6130
#define ADC_DCCTL2_CIC_HIGH 0x0000000C // High Band
6131
#define ADC_DCCTL2_CIM_M 0x00000003 // Comparison Interrupt Mode
6132
#define ADC_DCCTL2_CIM_ALWAYS 0x00000000 // Always
6133
#define ADC_DCCTL2_CIM_ONCE 0x00000001 // Once
6134
#define ADC_DCCTL2_CIM_HALWAYS 0x00000002 // Hysteresis Always
6135
#define ADC_DCCTL2_CIM_HONCE 0x00000003 // Hysteresis Once
6136
6137
//*****************************************************************************
6138
//
6139
// The following are defines for the bit fields in the ADC_O_DCCTL3 register.
6140
//
6141
//*****************************************************************************
6142
#define ADC_DCCTL3_CTE 0x00001000 // Comparison Trigger Enable
6143
#define ADC_DCCTL3_CTC_M 0x00000C00 // Comparison Trigger Condition
6144
#define ADC_DCCTL3_CTC_LOW 0x00000000 // Low Band
6145
#define ADC_DCCTL3_CTC_MID 0x00000400 // Mid Band
6146
#define ADC_DCCTL3_CTC_HIGH 0x00000C00 // High Band
6147
#define ADC_DCCTL3_CTM_M 0x00000300 // Comparison Trigger Mode
6148
#define ADC_DCCTL3_CTM_ALWAYS 0x00000000 // Always
6149
#define ADC_DCCTL3_CTM_ONCE 0x00000100 // Once
6150
#define ADC_DCCTL3_CTM_HALWAYS 0x00000200 // Hysteresis Always
6151
#define ADC_DCCTL3_CTM_HONCE 0x00000300 // Hysteresis Once
6152
#define ADC_DCCTL3_CIE 0x00000010 // Comparison Interrupt Enable
6153
#define ADC_DCCTL3_CIC_M 0x0000000C // Comparison Interrupt Condition
6154
#define ADC_DCCTL3_CIC_LOW 0x00000000 // Low Band
6155
#define ADC_DCCTL3_CIC_MID 0x00000004 // Mid Band
6156
#define ADC_DCCTL3_CIC_HIGH 0x0000000C // High Band
6157
#define ADC_DCCTL3_CIM_M 0x00000003 // Comparison Interrupt Mode
6158
#define ADC_DCCTL3_CIM_ALWAYS 0x00000000 // Always
6159
#define ADC_DCCTL3_CIM_ONCE 0x00000001 // Once
6160
#define ADC_DCCTL3_CIM_HALWAYS 0x00000002 // Hysteresis Always
6161
#define ADC_DCCTL3_CIM_HONCE 0x00000003 // Hysteresis Once
6162
6163
//*****************************************************************************
6164
//
6165
// The following are defines for the bit fields in the ADC_O_DCCTL4 register.
6166
//
6167
//*****************************************************************************
6168
#define ADC_DCCTL4_CTE 0x00001000 // Comparison Trigger Enable
6169
#define ADC_DCCTL4_CTC_M 0x00000C00 // Comparison Trigger Condition
6170
#define ADC_DCCTL4_CTC_LOW 0x00000000 // Low Band
6171
#define ADC_DCCTL4_CTC_MID 0x00000400 // Mid Band
6172
#define ADC_DCCTL4_CTC_HIGH 0x00000C00 // High Band
6173
#define ADC_DCCTL4_CTM_M 0x00000300 // Comparison Trigger Mode
6174
#define ADC_DCCTL4_CTM_ALWAYS 0x00000000 // Always
6175
#define ADC_DCCTL4_CTM_ONCE 0x00000100 // Once
6176
#define ADC_DCCTL4_CTM_HALWAYS 0x00000200 // Hysteresis Always
6177
#define ADC_DCCTL4_CTM_HONCE 0x00000300 // Hysteresis Once
6178
#define ADC_DCCTL4_CIE 0x00000010 // Comparison Interrupt Enable
6179
#define ADC_DCCTL4_CIC_M 0x0000000C // Comparison Interrupt Condition
6180
#define ADC_DCCTL4_CIC_LOW 0x00000000 // Low Band
6181
#define ADC_DCCTL4_CIC_MID 0x00000004 // Mid Band
6182
#define ADC_DCCTL4_CIC_HIGH 0x0000000C // High Band
6183
#define ADC_DCCTL4_CIM_M 0x00000003 // Comparison Interrupt Mode
6184
#define ADC_DCCTL4_CIM_ALWAYS 0x00000000 // Always
6185
#define ADC_DCCTL4_CIM_ONCE 0x00000001 // Once
6186
#define ADC_DCCTL4_CIM_HALWAYS 0x00000002 // Hysteresis Always
6187
#define ADC_DCCTL4_CIM_HONCE 0x00000003 // Hysteresis Once
6188
6189
//*****************************************************************************
6190
//
6191
// The following are defines for the bit fields in the ADC_O_DCCTL5 register.
6192
//
6193
//*****************************************************************************
6194
#define ADC_DCCTL5_CTE 0x00001000 // Comparison Trigger Enable
6195
#define ADC_DCCTL5_CTC_M 0x00000C00 // Comparison Trigger Condition
6196
#define ADC_DCCTL5_CTC_LOW 0x00000000 // Low Band
6197
#define ADC_DCCTL5_CTC_MID 0x00000400 // Mid Band
6198
#define ADC_DCCTL5_CTC_HIGH 0x00000C00 // High Band
6199
#define ADC_DCCTL5_CTM_M 0x00000300 // Comparison Trigger Mode
6200
#define ADC_DCCTL5_CTM_ALWAYS 0x00000000 // Always
6201
#define ADC_DCCTL5_CTM_ONCE 0x00000100 // Once
6202
#define ADC_DCCTL5_CTM_HALWAYS 0x00000200 // Hysteresis Always
6203
#define ADC_DCCTL5_CTM_HONCE 0x00000300 // Hysteresis Once
6204
#define ADC_DCCTL5_CIE 0x00000010 // Comparison Interrupt Enable
6205
#define ADC_DCCTL5_CIC_M 0x0000000C // Comparison Interrupt Condition
6206
#define ADC_DCCTL5_CIC_LOW 0x00000000 // Low Band
6207
#define ADC_DCCTL5_CIC_MID 0x00000004 // Mid Band
6208
#define ADC_DCCTL5_CIC_HIGH 0x0000000C // High Band
6209
#define ADC_DCCTL5_CIM_M 0x00000003 // Comparison Interrupt Mode
6210
#define ADC_DCCTL5_CIM_ALWAYS 0x00000000 // Always
6211
#define ADC_DCCTL5_CIM_ONCE 0x00000001 // Once
6212
#define ADC_DCCTL5_CIM_HALWAYS 0x00000002 // Hysteresis Always
6213
#define ADC_DCCTL5_CIM_HONCE 0x00000003 // Hysteresis Once
6214
6215
//*****************************************************************************
6216
//
6217
// The following are defines for the bit fields in the ADC_O_DCCTL6 register.
6218
//
6219
//*****************************************************************************
6220
#define ADC_DCCTL6_CTE 0x00001000 // Comparison Trigger Enable
6221
#define ADC_DCCTL6_CTC_M 0x00000C00 // Comparison Trigger Condition
6222
#define ADC_DCCTL6_CTC_LOW 0x00000000 // Low Band
6223
#define ADC_DCCTL6_CTC_MID 0x00000400 // Mid Band
6224
#define ADC_DCCTL6_CTC_HIGH 0x00000C00 // High Band
6225
#define ADC_DCCTL6_CTM_M 0x00000300 // Comparison Trigger Mode
6226
#define ADC_DCCTL6_CTM_ALWAYS 0x00000000 // Always
6227
#define ADC_DCCTL6_CTM_ONCE 0x00000100 // Once
6228
#define ADC_DCCTL6_CTM_HALWAYS 0x00000200 // Hysteresis Always
6229
#define ADC_DCCTL6_CTM_HONCE 0x00000300 // Hysteresis Once
6230
#define ADC_DCCTL6_CIE 0x00000010 // Comparison Interrupt Enable
6231
#define ADC_DCCTL6_CIC_M 0x0000000C // Comparison Interrupt Condition
6232
#define ADC_DCCTL6_CIC_LOW 0x00000000 // Low Band
6233
#define ADC_DCCTL6_CIC_MID 0x00000004 // Mid Band
6234
#define ADC_DCCTL6_CIC_HIGH 0x0000000C // High Band
6235
#define ADC_DCCTL6_CIM_M 0x00000003 // Comparison Interrupt Mode
6236
#define ADC_DCCTL6_CIM_ALWAYS 0x00000000 // Always
6237
#define ADC_DCCTL6_CIM_ONCE 0x00000001 // Once
6238
#define ADC_DCCTL6_CIM_HALWAYS 0x00000002 // Hysteresis Always
6239
#define ADC_DCCTL6_CIM_HONCE 0x00000003 // Hysteresis Once
6240
6241
//*****************************************************************************
6242
//
6243
// The following are defines for the bit fields in the ADC_O_DCCTL7 register.
6244
//
6245
//*****************************************************************************
6246
#define ADC_DCCTL7_CTE 0x00001000 // Comparison Trigger Enable
6247
#define ADC_DCCTL7_CTC_M 0x00000C00 // Comparison Trigger Condition
6248
#define ADC_DCCTL7_CTC_LOW 0x00000000 // Low Band
6249
#define ADC_DCCTL7_CTC_MID 0x00000400 // Mid Band
6250
#define ADC_DCCTL7_CTC_HIGH 0x00000C00 // High Band
6251
#define ADC_DCCTL7_CTM_M 0x00000300 // Comparison Trigger Mode
6252
#define ADC_DCCTL7_CTM_ALWAYS 0x00000000 // Always
6253
#define ADC_DCCTL7_CTM_ONCE 0x00000100 // Once
6254
#define ADC_DCCTL7_CTM_HALWAYS 0x00000200 // Hysteresis Always
6255
#define ADC_DCCTL7_CTM_HONCE 0x00000300 // Hysteresis Once
6256
#define ADC_DCCTL7_CIE 0x00000010 // Comparison Interrupt Enable
6257
#define ADC_DCCTL7_CIC_M 0x0000000C // Comparison Interrupt Condition
6258
#define ADC_DCCTL7_CIC_LOW 0x00000000 // Low Band
6259
#define ADC_DCCTL7_CIC_MID 0x00000004 // Mid Band
6260
#define ADC_DCCTL7_CIC_HIGH 0x0000000C // High Band
6261
#define ADC_DCCTL7_CIM_M 0x00000003 // Comparison Interrupt Mode
6262
#define ADC_DCCTL7_CIM_ALWAYS 0x00000000 // Always
6263
#define ADC_DCCTL7_CIM_ONCE 0x00000001 // Once
6264
#define ADC_DCCTL7_CIM_HALWAYS 0x00000002 // Hysteresis Always
6265
#define ADC_DCCTL7_CIM_HONCE 0x00000003 // Hysteresis Once
6266
6267
//*****************************************************************************
6268
//
6269
// The following are defines for the bit fields in the ADC_O_DCCMP0 register.
6270
//
6271
//*****************************************************************************
6272
#define ADC_DCCMP0_COMP1_M 0x0FFF0000 // Compare 1
6273
#define ADC_DCCMP0_COMP0_M 0x00000FFF // Compare 0
6274
#define ADC_DCCMP0_COMP1_S 16
6275
#define ADC_DCCMP0_COMP0_S 0
6276
6277
//*****************************************************************************
6278
//
6279
// The following are defines for the bit fields in the ADC_O_DCCMP1 register.
6280
//
6281
//*****************************************************************************
6282
#define ADC_DCCMP1_COMP1_M 0x0FFF0000 // Compare 1
6283
#define ADC_DCCMP1_COMP0_M 0x00000FFF // Compare 0
6284
#define ADC_DCCMP1_COMP1_S 16
6285
#define ADC_DCCMP1_COMP0_S 0
6286
6287
//*****************************************************************************
6288
//
6289
// The following are defines for the bit fields in the ADC_O_DCCMP2 register.
6290
//
6291
//*****************************************************************************
6292
#define ADC_DCCMP2_COMP1_M 0x0FFF0000 // Compare 1
6293
#define ADC_DCCMP2_COMP0_M 0x00000FFF // Compare 0
6294
#define ADC_DCCMP2_COMP1_S 16
6295
#define ADC_DCCMP2_COMP0_S 0
6296
6297
//*****************************************************************************
6298
//
6299
// The following are defines for the bit fields in the ADC_O_DCCMP3 register.
6300
//
6301
//*****************************************************************************
6302
#define ADC_DCCMP3_COMP1_M 0x0FFF0000 // Compare 1
6303
#define ADC_DCCMP3_COMP0_M 0x00000FFF // Compare 0
6304
#define ADC_DCCMP3_COMP1_S 16
6305
#define ADC_DCCMP3_COMP0_S 0
6306
6307
//*****************************************************************************
6308
//
6309
// The following are defines for the bit fields in the ADC_O_DCCMP4 register.
6310
//
6311
//*****************************************************************************
6312
#define ADC_DCCMP4_COMP1_M 0x0FFF0000 // Compare 1
6313
#define ADC_DCCMP4_COMP0_M 0x00000FFF // Compare 0
6314
#define ADC_DCCMP4_COMP1_S 16
6315
#define ADC_DCCMP4_COMP0_S 0
6316
6317
//*****************************************************************************
6318
//
6319
// The following are defines for the bit fields in the ADC_O_DCCMP5 register.
6320
//
6321
//*****************************************************************************
6322
#define ADC_DCCMP5_COMP1_M 0x0FFF0000 // Compare 1
6323
#define ADC_DCCMP5_COMP0_M 0x00000FFF // Compare 0
6324
#define ADC_DCCMP5_COMP1_S 16
6325
#define ADC_DCCMP5_COMP0_S 0
6326
6327
//*****************************************************************************
6328
//
6329
// The following are defines for the bit fields in the ADC_O_DCCMP6 register.
6330
//
6331
//*****************************************************************************
6332
#define ADC_DCCMP6_COMP1_M 0x0FFF0000 // Compare 1
6333
#define ADC_DCCMP6_COMP0_M 0x00000FFF // Compare 0
6334
#define ADC_DCCMP6_COMP1_S 16
6335
#define ADC_DCCMP6_COMP0_S 0
6336
6337
//*****************************************************************************
6338
//
6339
// The following are defines for the bit fields in the ADC_O_DCCMP7 register.
6340
//
6341
//*****************************************************************************
6342
#define ADC_DCCMP7_COMP1_M 0x0FFF0000 // Compare 1
6343
#define ADC_DCCMP7_COMP0_M 0x00000FFF // Compare 0
6344
#define ADC_DCCMP7_COMP1_S 16
6345
#define ADC_DCCMP7_COMP0_S 0
6346
6347
//*****************************************************************************
6348
//
6349
// The following are defines for the bit fields in the ADC_O_PP register.
6350
//
6351
//*****************************************************************************
6352
#define ADC_PP_TS 0x00800000 // Temperature Sensor
6353
#define ADC_PP_RSL_M 0x007C0000 // Resolution
6354
#define ADC_PP_TYPE_M 0x00030000 // ADC Architecture
6355
#define ADC_PP_TYPE_SAR 0x00000000 // SAR
6356
#define ADC_PP_DC_M 0x0000FC00 // Digital Comparator Count
6357
#define ADC_PP_CH_M 0x000003F0 // ADC Channel Count
6358
#define ADC_PP_MSR_M 0x0000000F // Maximum ADC Sample Rate
6359
#define ADC_PP_MSR_125K 0x00000001 // 125 ksps
6360
#define ADC_PP_MSR_250K 0x00000003 // 250 ksps
6361
#define ADC_PP_MSR_500K 0x00000005 // 500 ksps
6362
#define ADC_PP_MSR_1M 0x00000007 // 1 Msps
6363
#define ADC_PP_RSL_S 18
6364
#define ADC_PP_DC_S 10
6365
#define ADC_PP_CH_S 4
6366
6367
//*****************************************************************************
6368
//
6369
// The following are defines for the bit fields in the ADC_O_PC register.
6370
//
6371
//*****************************************************************************
6372
#define ADC_PC_SR_M 0x0000000F // ADC Sample Rate
6373
#define ADC_PC_SR_125K 0x00000001 // 125 ksps
6374
#define ADC_PC_SR_250K 0x00000003 // 250 ksps
6375
#define ADC_PC_SR_500K 0x00000005 // 500 ksps
6376
#define ADC_PC_SR_1M 0x00000007 // 1 Msps
6377
6378
//*****************************************************************************
6379
//
6380
// The following are defines for the bit fields in the ADC_O_CC register.
6381
//
6382
//*****************************************************************************
6383
#define ADC_CC_CS_M 0x0000000F // ADC Clock Source
6384
#define ADC_CC_CS_SYSPLL 0x00000000 // PLL VCO divided by CLKDIV
6385
#define ADC_CC_CS_PIOSC 0x00000001 // PIOSC
6386
6387
//*****************************************************************************
6388
//
6389
// The following are defines for the bit fields in the COMP_O_ACMIS register.
6390
//
6391
//*****************************************************************************
6392
#define COMP_ACMIS_IN1 0x00000002 // Comparator 1 Masked Interrupt
6393
// Status
6394
#define COMP_ACMIS_IN0 0x00000001 // Comparator 0 Masked Interrupt
6395
// Status
6396
6397
//*****************************************************************************
6398
//
6399
// The following are defines for the bit fields in the COMP_O_ACRIS register.
6400
//
6401
//*****************************************************************************
6402
#define COMP_ACRIS_IN1 0x00000002 // Comparator 1 Interrupt Status
6403
#define COMP_ACRIS_IN0 0x00000001 // Comparator 0 Interrupt Status
6404
6405
//*****************************************************************************
6406
//
6407
// The following are defines for the bit fields in the COMP_O_ACINTEN register.
6408
//
6409
//*****************************************************************************
6410
#define COMP_ACINTEN_IN1 0x00000002 // Comparator 1 Interrupt Enable
6411
#define COMP_ACINTEN_IN0 0x00000001 // Comparator 0 Interrupt Enable
6412
6413
//*****************************************************************************
6414
//
6415
// The following are defines for the bit fields in the COMP_O_ACREFCTL
6416
// register.
6417
//
6418
//*****************************************************************************
6419
#define COMP_ACREFCTL_EN 0x00000200 // Resistor Ladder Enable
6420
#define COMP_ACREFCTL_RNG 0x00000100 // Resistor Ladder Range
6421
#define COMP_ACREFCTL_VREF_M 0x0000000F // Resistor Ladder Voltage Ref
6422
#define COMP_ACREFCTL_VREF_S 0
6423
6424
//*****************************************************************************
6425
//
6426
// The following are defines for the bit fields in the COMP_O_ACSTAT0 register.
6427
//
6428
//*****************************************************************************
6429
#define COMP_ACSTAT0_OVAL 0x00000002 // Comparator Output Value
6430
6431
//*****************************************************************************
6432
//
6433
// The following are defines for the bit fields in the COMP_O_ACCTL0 register.
6434
//
6435
//*****************************************************************************
6436
#define COMP_ACCTL0_TOEN 0x00000800 // Trigger Output Enable
6437
#define COMP_ACCTL0_ASRCP_M 0x00000600 // Analog Source Positive
6438
#define COMP_ACCTL0_ASRCP_PIN 0x00000000 // Pin value of Cn+
6439
#define COMP_ACCTL0_ASRCP_PIN0 0x00000200 // Pin value of C0+
6440
#define COMP_ACCTL0_ASRCP_REF 0x00000400 // Internal voltage reference
6441
#define COMP_ACCTL0_TSLVAL 0x00000080 // Trigger Sense Level Value
6442
#define COMP_ACCTL0_TSEN_M 0x00000060 // Trigger Sense
6443
#define COMP_ACCTL0_TSEN_LEVEL 0x00000000 // Level sense, see TSLVAL
6444
#define COMP_ACCTL0_TSEN_FALL 0x00000020 // Falling edge
6445
#define COMP_ACCTL0_TSEN_RISE 0x00000040 // Rising edge
6446
#define COMP_ACCTL0_TSEN_BOTH 0x00000060 // Either edge
6447
#define COMP_ACCTL0_ISLVAL 0x00000010 // Interrupt Sense Level Value
6448
#define COMP_ACCTL0_ISEN_M 0x0000000C // Interrupt Sense
6449
#define COMP_ACCTL0_ISEN_LEVEL 0x00000000 // Level sense, see ISLVAL
6450
#define COMP_ACCTL0_ISEN_FALL 0x00000004 // Falling edge
6451
#define COMP_ACCTL0_ISEN_RISE 0x00000008 // Rising edge
6452
#define COMP_ACCTL0_ISEN_BOTH 0x0000000C // Either edge
6453
#define COMP_ACCTL0_CINV 0x00000002 // Comparator Output Invert
6454
6455
//*****************************************************************************
6456
//
6457
// The following are defines for the bit fields in the COMP_O_ACSTAT1 register.
6458
//
6459
//*****************************************************************************
6460
#define COMP_ACSTAT1_OVAL 0x00000002 // Comparator Output Value
6461
6462
//*****************************************************************************
6463
//
6464
// The following are defines for the bit fields in the COMP_O_ACCTL1 register.
6465
//
6466
//*****************************************************************************
6467
#define COMP_ACCTL1_TOEN 0x00000800 // Trigger Output Enable
6468
#define COMP_ACCTL1_ASRCP_M 0x00000600 // Analog Source Positive
6469
#define COMP_ACCTL1_ASRCP_PIN 0x00000000 // Pin value of Cn+
6470
#define COMP_ACCTL1_ASRCP_PIN0 0x00000200 // Pin value of C0+
6471
#define COMP_ACCTL1_ASRCP_REF 0x00000400 // Internal voltage reference
6472
#define COMP_ACCTL1_TSLVAL 0x00000080 // Trigger Sense Level Value
6473
#define COMP_ACCTL1_TSEN_M 0x00000060 // Trigger Sense
6474
#define COMP_ACCTL1_TSEN_LEVEL 0x00000000 // Level sense, see TSLVAL
6475
#define COMP_ACCTL1_TSEN_FALL 0x00000020 // Falling edge
6476
#define COMP_ACCTL1_TSEN_RISE 0x00000040 // Rising edge
6477
#define COMP_ACCTL1_TSEN_BOTH 0x00000060 // Either edge
6478
#define COMP_ACCTL1_ISLVAL 0x00000010 // Interrupt Sense Level Value
6479
#define COMP_ACCTL1_ISEN_M 0x0000000C // Interrupt Sense
6480
#define COMP_ACCTL1_ISEN_LEVEL 0x00000000 // Level sense, see ISLVAL
6481
#define COMP_ACCTL1_ISEN_FALL 0x00000004 // Falling edge
6482
#define COMP_ACCTL1_ISEN_RISE 0x00000008 // Rising edge
6483
#define COMP_ACCTL1_ISEN_BOTH 0x0000000C // Either edge
6484
#define COMP_ACCTL1_CINV 0x00000002 // Comparator Output Invert
6485
6486
//*****************************************************************************
6487
//
6488
// The following are defines for the bit fields in the COMP_O_PP register.
6489
//
6490
//*****************************************************************************
6491
#define COMP_PP_C1O 0x00020000 // Comparator Output 1 Present
6492
#define COMP_PP_C0O 0x00010000 // Comparator Output 0 Present
6493
#define COMP_PP_CMP1 0x00000002 // Comparator 1 Present
6494
#define COMP_PP_CMP0 0x00000001 // Comparator 0 Present
6495
6496
//*****************************************************************************
6497
//
6498
// The following are defines for the bit fields in the CAN_O_CTL register.
6499
//
6500
//*****************************************************************************
6501
#define CAN_CTL_TEST 0x00000080 // Test Mode Enable
6502
#define CAN_CTL_CCE 0x00000040 // Configuration Change Enable
6503
#define CAN_CTL_DAR 0x00000020 // Disable Automatic-Retransmission
6504
#define CAN_CTL_EIE 0x00000008 // Error Interrupt Enable
6505
#define CAN_CTL_SIE 0x00000004 // Status Interrupt Enable
6506
#define CAN_CTL_IE 0x00000002 // CAN Interrupt Enable
6507
#define CAN_CTL_INIT 0x00000001 // Initialization
6508
6509
//*****************************************************************************
6510
//
6511
// The following are defines for the bit fields in the CAN_O_STS register.
6512
//
6513
//*****************************************************************************
6514
#define CAN_STS_BOFF 0x00000080 // Bus-Off Status
6515
#define CAN_STS_EWARN 0x00000040 // Warning Status
6516
#define CAN_STS_EPASS 0x00000020 // Error Passive
6517
#define CAN_STS_RXOK 0x00000010 // Received a Message Successfully
6518
#define CAN_STS_TXOK 0x00000008 // Transmitted a Message
6519
// Successfully
6520
#define CAN_STS_LEC_M 0x00000007 // Last Error Code
6521
#define CAN_STS_LEC_NONE 0x00000000 // No Error
6522
#define CAN_STS_LEC_STUFF 0x00000001 // Stuff Error
6523
#define CAN_STS_LEC_FORM 0x00000002 // Format Error
6524
#define CAN_STS_LEC_ACK 0x00000003 // ACK Error
6525
#define CAN_STS_LEC_BIT1 0x00000004 // Bit 1 Error
6526
#define CAN_STS_LEC_BIT0 0x00000005 // Bit 0 Error
6527
#define CAN_STS_LEC_CRC 0x00000006 // CRC Error
6528
#define CAN_STS_LEC_NOEVENT 0x00000007 // No Event
6529
6530
//*****************************************************************************
6531
//
6532
// The following are defines for the bit fields in the CAN_O_ERR register.
6533
//
6534
//*****************************************************************************
6535
#define CAN_ERR_RP 0x00008000 // Received Error Passive
6536
#define CAN_ERR_REC_M 0x00007F00 // Receive Error Counter
6537
#define CAN_ERR_TEC_M 0x000000FF // Transmit Error Counter
6538
#define CAN_ERR_REC_S 8
6539
#define CAN_ERR_TEC_S 0
6540
6541
//*****************************************************************************
6542
//
6543
// The following are defines for the bit fields in the CAN_O_BIT register.
6544
//
6545
//*****************************************************************************
6546
#define CAN_BIT_TSEG2_M 0x00007000 // Time Segment after Sample Point
6547
#define CAN_BIT_TSEG1_M 0x00000F00 // Time Segment Before Sample Point
6548
#define CAN_BIT_SJW_M 0x000000C0 // (Re)Synchronization Jump Width
6549
#define CAN_BIT_BRP_M 0x0000003F // Baud Rate Prescaler
6550
#define CAN_BIT_TSEG2_S 12
6551
#define CAN_BIT_TSEG1_S 8
6552
#define CAN_BIT_SJW_S 6
6553
#define CAN_BIT_BRP_S 0
6554
6555
//*****************************************************************************
6556
//
6557
// The following are defines for the bit fields in the CAN_O_INT register.
6558
//
6559
//*****************************************************************************
6560
#define CAN_INT_INTID_M 0x0000FFFF // Interrupt Identifier
6561
#define CAN_INT_INTID_NONE 0x00000000 // No interrupt pending
6562
#define CAN_INT_INTID_STATUS 0x00008000 // Status Interrupt
6563
6564
//*****************************************************************************
6565
//
6566
// The following are defines for the bit fields in the CAN_O_TST register.
6567
//
6568
//*****************************************************************************
6569
#define CAN_TST_RX 0x00000080 // Receive Observation
6570
#define CAN_TST_TX_M 0x00000060 // Transmit Control
6571
#define CAN_TST_TX_CANCTL 0x00000000 // CAN Module Control
6572
#define CAN_TST_TX_SAMPLE 0x00000020 // Sample Point
6573
#define CAN_TST_TX_DOMINANT 0x00000040 // Driven Low
6574
#define CAN_TST_TX_RECESSIVE 0x00000060 // Driven High
6575
#define CAN_TST_LBACK 0x00000010 // Loopback Mode
6576
#define CAN_TST_SILENT 0x00000008 // Silent Mode
6577
#define CAN_TST_BASIC 0x00000004 // Basic Mode
6578
6579
//*****************************************************************************
6580
//
6581
// The following are defines for the bit fields in the CAN_O_BRPE register.
6582
//
6583
//*****************************************************************************
6584
#define CAN_BRPE_BRPE_M 0x0000000F // Baud Rate Prescaler Extension
6585
#define CAN_BRPE_BRPE_S 0
6586
6587
//*****************************************************************************
6588
//
6589
// The following are defines for the bit fields in the CAN_O_IF1CRQ register.
6590
//
6591
//*****************************************************************************
6592
#define CAN_IF1CRQ_BUSY 0x00008000 // Busy Flag
6593
#define CAN_IF1CRQ_MNUM_M 0x0000003F // Message Number
6594
#define CAN_IF1CRQ_MNUM_S 0
6595
6596
//*****************************************************************************
6597
//
6598
// The following are defines for the bit fields in the CAN_O_IF1CMSK register.
6599
//
6600
//*****************************************************************************
6601
#define CAN_IF1CMSK_WRNRD 0x00000080 // Write, Not Read
6602
#define CAN_IF1CMSK_MASK 0x00000040 // Access Mask Bits
6603
#define CAN_IF1CMSK_ARB 0x00000020 // Access Arbitration Bits
6604
#define CAN_IF1CMSK_CONTROL 0x00000010 // Access Control Bits
6605
#define CAN_IF1CMSK_CLRINTPND 0x00000008 // Clear Interrupt Pending Bit
6606
#define CAN_IF1CMSK_NEWDAT 0x00000004 // Access New Data
6607
#define CAN_IF1CMSK_TXRQST 0x00000004 // Access Transmission Request
6608
#define CAN_IF1CMSK_DATAA 0x00000002 // Access Data Byte 0 to 3
6609
#define CAN_IF1CMSK_DATAB 0x00000001 // Access Data Byte 4 to 7
6610
6611
//*****************************************************************************
6612
//
6613
// The following are defines for the bit fields in the CAN_O_IF1MSK1 register.
6614
//
6615
//*****************************************************************************
6616
#define CAN_IF1MSK1_IDMSK_M 0x0000FFFF // Identifier Mask
6617
#define CAN_IF1MSK1_IDMSK_S 0
6618
6619
//*****************************************************************************
6620
//
6621
// The following are defines for the bit fields in the CAN_O_IF1MSK2 register.
6622
//
6623
//*****************************************************************************
6624
#define CAN_IF1MSK2_MXTD 0x00008000 // Mask Extended Identifier
6625
#define CAN_IF1MSK2_MDIR 0x00004000 // Mask Message Direction
6626
#define CAN_IF1MSK2_IDMSK_M 0x00001FFF // Identifier Mask
6627
#define CAN_IF1MSK2_IDMSK_S 0
6628
6629
//*****************************************************************************
6630
//
6631
// The following are defines for the bit fields in the CAN_O_IF1ARB1 register.
6632
//
6633
//*****************************************************************************
6634
#define CAN_IF1ARB1_ID_M 0x0000FFFF // Message Identifier
6635
#define CAN_IF1ARB1_ID_S 0
6636
6637
//*****************************************************************************
6638
//
6639
// The following are defines for the bit fields in the CAN_O_IF1ARB2 register.
6640
//
6641
//*****************************************************************************
6642
#define CAN_IF1ARB2_MSGVAL 0x00008000 // Message Valid
6643
#define CAN_IF1ARB2_XTD 0x00004000 // Extended Identifier
6644
#define CAN_IF1ARB2_DIR 0x00002000 // Message Direction
6645
#define CAN_IF1ARB2_ID_M 0x00001FFF // Message Identifier
6646
#define CAN_IF1ARB2_ID_S 0
6647
6648
//*****************************************************************************
6649
//
6650
// The following are defines for the bit fields in the CAN_O_IF1MCTL register.
6651
//
6652
//*****************************************************************************
6653
#define CAN_IF1MCTL_NEWDAT 0x00008000 // New Data
6654
#define CAN_IF1MCTL_MSGLST 0x00004000 // Message Lost
6655
#define CAN_IF1MCTL_INTPND 0x00002000 // Interrupt Pending
6656
#define CAN_IF1MCTL_UMASK 0x00001000 // Use Acceptance Mask
6657
#define CAN_IF1MCTL_TXIE 0x00000800 // Transmit Interrupt Enable
6658
#define CAN_IF1MCTL_RXIE 0x00000400 // Receive Interrupt Enable
6659
#define CAN_IF1MCTL_RMTEN 0x00000200 // Remote Enable
6660
#define CAN_IF1MCTL_TXRQST 0x00000100 // Transmit Request
6661
#define CAN_IF1MCTL_EOB 0x00000080 // End of Buffer
6662
#define CAN_IF1MCTL_DLC_M 0x0000000F // Data Length Code
6663
#define CAN_IF1MCTL_DLC_S 0
6664
6665
//*****************************************************************************
6666
//
6667
// The following are defines for the bit fields in the CAN_O_IF1DA1 register.
6668
//
6669
//*****************************************************************************
6670
#define CAN_IF1DA1_DATA_M 0x0000FFFF // Data
6671
#define CAN_IF1DA1_DATA_S 0
6672
6673
//*****************************************************************************
6674
//
6675
// The following are defines for the bit fields in the CAN_O_IF1DA2 register.
6676
//
6677
//*****************************************************************************
6678
#define CAN_IF1DA2_DATA_M 0x0000FFFF // Data
6679
#define CAN_IF1DA2_DATA_S 0
6680
6681
//*****************************************************************************
6682
//
6683
// The following are defines for the bit fields in the CAN_O_IF1DB1 register.
6684
//
6685
//*****************************************************************************
6686
#define CAN_IF1DB1_DATA_M 0x0000FFFF // Data
6687
#define CAN_IF1DB1_DATA_S 0
6688
6689
//*****************************************************************************
6690
//
6691
// The following are defines for the bit fields in the CAN_O_IF1DB2 register.
6692
//
6693
//*****************************************************************************
6694
#define CAN_IF1DB2_DATA_M 0x0000FFFF // Data
6695
#define CAN_IF1DB2_DATA_S 0
6696
6697
//*****************************************************************************
6698
//
6699
// The following are defines for the bit fields in the CAN_O_IF2CRQ register.
6700
//
6701
//*****************************************************************************
6702
#define CAN_IF2CRQ_BUSY 0x00008000 // Busy Flag
6703
#define CAN_IF2CRQ_MNUM_M 0x0000003F // Message Number
6704
#define CAN_IF2CRQ_MNUM_S 0
6705
6706
//*****************************************************************************
6707
//
6708
// The following are defines for the bit fields in the CAN_O_IF2CMSK register.
6709
//
6710
//*****************************************************************************
6711
#define CAN_IF2CMSK_WRNRD 0x00000080 // Write, Not Read
6712
#define CAN_IF2CMSK_MASK 0x00000040 // Access Mask Bits
6713
#define CAN_IF2CMSK_ARB 0x00000020 // Access Arbitration Bits
6714
#define CAN_IF2CMSK_CONTROL 0x00000010 // Access Control Bits
6715
#define CAN_IF2CMSK_CLRINTPND 0x00000008 // Clear Interrupt Pending Bit
6716
#define CAN_IF2CMSK_NEWDAT 0x00000004 // Access New Data
6717
#define CAN_IF2CMSK_TXRQST 0x00000004 // Access Transmission Request
6718
#define CAN_IF2CMSK_DATAA 0x00000002 // Access Data Byte 0 to 3
6719
#define CAN_IF2CMSK_DATAB 0x00000001 // Access Data Byte 4 to 7
6720
6721
//*****************************************************************************
6722
//
6723
// The following are defines for the bit fields in the CAN_O_IF2MSK1 register.
6724
//
6725
//*****************************************************************************
6726
#define CAN_IF2MSK1_IDMSK_M 0x0000FFFF // Identifier Mask
6727
#define CAN_IF2MSK1_IDMSK_S 0
6728
6729
//*****************************************************************************
6730
//
6731
// The following are defines for the bit fields in the CAN_O_IF2MSK2 register.
6732
//
6733
//*****************************************************************************
6734
#define CAN_IF2MSK2_MXTD 0x00008000 // Mask Extended Identifier
6735
#define CAN_IF2MSK2_MDIR 0x00004000 // Mask Message Direction
6736
#define CAN_IF2MSK2_IDMSK_M 0x00001FFF // Identifier Mask
6737
#define CAN_IF2MSK2_IDMSK_S 0
6738
6739
//*****************************************************************************
6740
//
6741
// The following are defines for the bit fields in the CAN_O_IF2ARB1 register.
6742
//
6743
//*****************************************************************************
6744
#define CAN_IF2ARB1_ID_M 0x0000FFFF // Message Identifier
6745
#define CAN_IF2ARB1_ID_S 0
6746
6747
//*****************************************************************************
6748
//
6749
// The following are defines for the bit fields in the CAN_O_IF2ARB2 register.
6750
//
6751
//*****************************************************************************
6752
#define CAN_IF2ARB2_MSGVAL 0x00008000 // Message Valid
6753
#define CAN_IF2ARB2_XTD 0x00004000 // Extended Identifier
6754
#define CAN_IF2ARB2_DIR 0x00002000 // Message Direction
6755
#define CAN_IF2ARB2_ID_M 0x00001FFF // Message Identifier
6756
#define CAN_IF2ARB2_ID_S 0
6757
6758
//*****************************************************************************
6759
//
6760
// The following are defines for the bit fields in the CAN_O_IF2MCTL register.
6761
//
6762
//*****************************************************************************
6763
#define CAN_IF2MCTL_NEWDAT 0x00008000 // New Data
6764
#define CAN_IF2MCTL_MSGLST 0x00004000 // Message Lost
6765
#define CAN_IF2MCTL_INTPND 0x00002000 // Interrupt Pending
6766
#define CAN_IF2MCTL_UMASK 0x00001000 // Use Acceptance Mask
6767
#define CAN_IF2MCTL_TXIE 0x00000800 // Transmit Interrupt Enable
6768
#define CAN_IF2MCTL_RXIE 0x00000400 // Receive Interrupt Enable
6769
#define CAN_IF2MCTL_RMTEN 0x00000200 // Remote Enable
6770
#define CAN_IF2MCTL_TXRQST 0x00000100 // Transmit Request
6771
#define CAN_IF2MCTL_EOB 0x00000080 // End of Buffer
6772
#define CAN_IF2MCTL_DLC_M 0x0000000F // Data Length Code
6773
#define CAN_IF2MCTL_DLC_S 0
6774
6775
//*****************************************************************************
6776
//
6777
// The following are defines for the bit fields in the CAN_O_IF2DA1 register.
6778
//
6779
//*****************************************************************************
6780
#define CAN_IF2DA1_DATA_M 0x0000FFFF // Data
6781
#define CAN_IF2DA1_DATA_S 0
6782
6783
//*****************************************************************************
6784
//
6785
// The following are defines for the bit fields in the CAN_O_IF2DA2 register.
6786
//
6787
//*****************************************************************************
6788
#define CAN_IF2DA2_DATA_M 0x0000FFFF // Data
6789
#define CAN_IF2DA2_DATA_S 0
6790
6791
//*****************************************************************************
6792
//
6793
// The following are defines for the bit fields in the CAN_O_IF2DB1 register.
6794
//
6795
//*****************************************************************************
6796
#define CAN_IF2DB1_DATA_M 0x0000FFFF // Data
6797
#define CAN_IF2DB1_DATA_S 0
6798
6799
//*****************************************************************************
6800
//
6801
// The following are defines for the bit fields in the CAN_O_IF2DB2 register.
6802
//
6803
//*****************************************************************************
6804
#define CAN_IF2DB2_DATA_M 0x0000FFFF // Data
6805
#define CAN_IF2DB2_DATA_S 0
6806
6807
//*****************************************************************************
6808
//
6809
// The following are defines for the bit fields in the CAN_O_TXRQ1 register.
6810
//
6811
//*****************************************************************************
6812
#define CAN_TXRQ1_TXRQST_M 0x0000FFFF // Transmission Request Bits
6813
#define CAN_TXRQ1_TXRQST_S 0
6814
6815
//*****************************************************************************
6816
//
6817
// The following are defines for the bit fields in the CAN_O_TXRQ2 register.
6818
//
6819
//*****************************************************************************
6820
#define CAN_TXRQ2_TXRQST_M 0x0000FFFF // Transmission Request Bits
6821
#define CAN_TXRQ2_TXRQST_S 0
6822
6823
//*****************************************************************************
6824
//
6825
// The following are defines for the bit fields in the CAN_O_NWDA1 register.
6826
//
6827
//*****************************************************************************
6828
#define CAN_NWDA1_NEWDAT_M 0x0000FFFF // New Data Bits
6829
#define CAN_NWDA1_NEWDAT_S 0
6830
6831
//*****************************************************************************
6832
//
6833
// The following are defines for the bit fields in the CAN_O_NWDA2 register.
6834
//
6835
//*****************************************************************************
6836
#define CAN_NWDA2_NEWDAT_M 0x0000FFFF // New Data Bits
6837
#define CAN_NWDA2_NEWDAT_S 0
6838
6839
//*****************************************************************************
6840
//
6841
// The following are defines for the bit fields in the CAN_O_MSG1INT register.
6842
//
6843
//*****************************************************************************
6844
#define CAN_MSG1INT_INTPND_M 0x0000FFFF // Interrupt Pending Bits
6845
#define CAN_MSG1INT_INTPND_S 0
6846
6847
//*****************************************************************************
6848
//
6849
// The following are defines for the bit fields in the CAN_O_MSG2INT register.
6850
//
6851
//*****************************************************************************
6852
#define CAN_MSG2INT_INTPND_M 0x0000FFFF // Interrupt Pending Bits
6853
#define CAN_MSG2INT_INTPND_S 0
6854
6855
//*****************************************************************************
6856
//
6857
// The following are defines for the bit fields in the CAN_O_MSG1VAL register.
6858
//
6859
//*****************************************************************************
6860
#define CAN_MSG1VAL_MSGVAL_M 0x0000FFFF // Message Valid Bits
6861
#define CAN_MSG1VAL_MSGVAL_S 0
6862
6863
//*****************************************************************************
6864
//
6865
// The following are defines for the bit fields in the CAN_O_MSG2VAL register.
6866
//
6867
//*****************************************************************************
6868
#define CAN_MSG2VAL_MSGVAL_M 0x0000FFFF // Message Valid Bits
6869
#define CAN_MSG2VAL_MSGVAL_S 0
6870
6871
//*****************************************************************************
6872
//
6873
// The following are defines for the bit fields in the USB_O_FADDR register.
6874
//
6875
//*****************************************************************************
6876
#define USB_FADDR_M 0x0000007F // Function Address
6877
#define USB_FADDR_S 0
6878
6879
//*****************************************************************************
6880
//
6881
// The following are defines for the bit fields in the USB_O_POWER register.
6882
//
6883
//*****************************************************************************
6884
#define USB_POWER_ISOUP 0x00000080 // Isochronous Update
6885
#define USB_POWER_SOFTCONN 0x00000040 // Soft Connect/Disconnect
6886
#define USB_POWER_RESET 0x00000008 // RESET Signaling
6887
#define USB_POWER_RESUME 0x00000004 // RESUME Signaling
6888
#define USB_POWER_SUSPEND 0x00000002 // SUSPEND Mode
6889
#define USB_POWER_PWRDNPHY 0x00000001 // Power Down PHY
6890
6891
//*****************************************************************************
6892
//
6893
// The following are defines for the bit fields in the USB_O_TXIS register.
6894
//
6895
//*****************************************************************************
6896
#define USB_TXIS_EP7 0x00000080 // TX Endpoint 7 Interrupt
6897
#define USB_TXIS_EP6 0x00000040 // TX Endpoint 6 Interrupt
6898
#define USB_TXIS_EP5 0x00000020 // TX Endpoint 5 Interrupt
6899
#define USB_TXIS_EP4 0x00000010 // TX Endpoint 4 Interrupt
6900
#define USB_TXIS_EP3 0x00000008 // TX Endpoint 3 Interrupt
6901
#define USB_TXIS_EP2 0x00000004 // TX Endpoint 2 Interrupt
6902
#define USB_TXIS_EP1 0x00000002 // TX Endpoint 1 Interrupt
6903
#define USB_TXIS_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
6904
6905
//*****************************************************************************
6906
//
6907
// The following are defines for the bit fields in the USB_O_RXIS register.
6908
//
6909
//*****************************************************************************
6910
#define USB_RXIS_EP7 0x00000080 // RX Endpoint 7 Interrupt
6911
#define USB_RXIS_EP6 0x00000040 // RX Endpoint 6 Interrupt
6912
#define USB_RXIS_EP5 0x00000020 // RX Endpoint 5 Interrupt
6913
#define USB_RXIS_EP4 0x00000010 // RX Endpoint 4 Interrupt
6914
#define USB_RXIS_EP3 0x00000008 // RX Endpoint 3 Interrupt
6915
#define USB_RXIS_EP2 0x00000004 // RX Endpoint 2 Interrupt
6916
#define USB_RXIS_EP1 0x00000002 // RX Endpoint 1 Interrupt
6917
6918
//*****************************************************************************
6919
//
6920
// The following are defines for the bit fields in the USB_O_TXIE register.
6921
//
6922
//*****************************************************************************
6923
#define USB_TXIE_EP7 0x00000080 // TX Endpoint 7 Interrupt Enable
6924
#define USB_TXIE_EP6 0x00000040 // TX Endpoint 6 Interrupt Enable
6925
#define USB_TXIE_EP5 0x00000020 // TX Endpoint 5 Interrupt Enable
6926
#define USB_TXIE_EP4 0x00000010 // TX Endpoint 4 Interrupt Enable
6927
#define USB_TXIE_EP3 0x00000008 // TX Endpoint 3 Interrupt Enable
6928
#define USB_TXIE_EP2 0x00000004 // TX Endpoint 2 Interrupt Enable
6929
#define USB_TXIE_EP1 0x00000002 // TX Endpoint 1 Interrupt Enable
6930
#define USB_TXIE_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
6931
// Enable
6932
6933
//*****************************************************************************
6934
//
6935
// The following are defines for the bit fields in the USB_O_RXIE register.
6936
//
6937
//*****************************************************************************
6938
#define USB_RXIE_EP7 0x00000080 // RX Endpoint 7 Interrupt Enable
6939
#define USB_RXIE_EP6 0x00000040 // RX Endpoint 6 Interrupt Enable
6940
#define USB_RXIE_EP5 0x00000020 // RX Endpoint 5 Interrupt Enable
6941
#define USB_RXIE_EP4 0x00000010 // RX Endpoint 4 Interrupt Enable
6942
#define USB_RXIE_EP3 0x00000008 // RX Endpoint 3 Interrupt Enable
6943
#define USB_RXIE_EP2 0x00000004 // RX Endpoint 2 Interrupt Enable
6944
#define USB_RXIE_EP1 0x00000002 // RX Endpoint 1 Interrupt Enable
6945
6946
//*****************************************************************************
6947
//
6948
// The following are defines for the bit fields in the USB_O_IS register.
6949
//
6950
//*****************************************************************************
6951
#define USB_IS_VBUSERR 0x00000080 // VBUS Error (OTG only)
6952
#define USB_IS_SESREQ 0x00000040 // SESSION REQUEST (OTG only)
6953
#define USB_IS_DISCON 0x00000020 // Session Disconnect (OTG only)
6954
#define USB_IS_CONN 0x00000010 // Session Connect
6955
#define USB_IS_SOF 0x00000008 // Start of Frame
6956
#define USB_IS_BABBLE 0x00000004 // Babble Detected
6957
#define USB_IS_RESET 0x00000004 // RESET Signaling Detected
6958
#define USB_IS_RESUME 0x00000002 // RESUME Signaling Detected
6959
#define USB_IS_SUSPEND 0x00000001 // SUSPEND Signaling Detected
6960
6961
//*****************************************************************************
6962
//
6963
// The following are defines for the bit fields in the USB_O_IE register.
6964
//
6965
//*****************************************************************************
6966
#define USB_IE_VBUSERR 0x00000080 // Enable VBUS Error Interrupt (OTG
6967
// only)
6968
#define USB_IE_SESREQ 0x00000040 // Enable Session Request (OTG
6969
// only)
6970
#define USB_IE_DISCON 0x00000020 // Enable Disconnect Interrupt
6971
#define USB_IE_CONN 0x00000010 // Enable Connect Interrupt
6972
#define USB_IE_SOF 0x00000008 // Enable Start-of-Frame Interrupt
6973
#define USB_IE_BABBLE 0x00000004 // Enable Babble Interrupt
6974
#define USB_IE_RESET 0x00000004 // Enable RESET Interrupt
6975
#define USB_IE_RESUME 0x00000002 // Enable RESUME Interrupt
6976
#define USB_IE_SUSPND 0x00000001 // Enable SUSPEND Interrupt
6977
6978
//*****************************************************************************
6979
//
6980
// The following are defines for the bit fields in the USB_O_FRAME register.
6981
//
6982
//*****************************************************************************
6983
#define USB_FRAME_M 0x000007FF // Frame Number
6984
#define USB_FRAME_S 0
6985
6986
//*****************************************************************************
6987
//
6988
// The following are defines for the bit fields in the USB_O_EPIDX register.
6989
//
6990
//*****************************************************************************
6991
#define USB_EPIDX_EPIDX_M 0x0000000F // Endpoint Index
6992
#define USB_EPIDX_EPIDX_S 0
6993
6994
//*****************************************************************************
6995
//
6996
// The following are defines for the bit fields in the USB_O_TEST register.
6997
//
6998
//*****************************************************************************
6999
#define USB_TEST_FORCEH 0x00000080 // Force Host Mode
7000
#define USB_TEST_FIFOACC 0x00000040 // FIFO Access
7001
#define USB_TEST_FORCEFS 0x00000020 // Force Full-Speed Mode
7002
7003
//*****************************************************************************
7004
//
7005
// The following are defines for the bit fields in the USB_O_FIFO0 register.
7006
//
7007
//*****************************************************************************
7008
#define USB_FIFO0_EPDATA_M 0xFFFFFFFF // Endpoint Data
7009
#define USB_FIFO0_EPDATA_S 0
7010
7011
//*****************************************************************************
7012
//
7013
// The following are defines for the bit fields in the USB_O_FIFO1 register.
7014
//
7015
//*****************************************************************************
7016
#define USB_FIFO1_EPDATA_M 0xFFFFFFFF // Endpoint Data
7017
#define USB_FIFO1_EPDATA_S 0
7018
7019
//*****************************************************************************
7020
//
7021
// The following are defines for the bit fields in the USB_O_FIFO2 register.
7022
//
7023
//*****************************************************************************
7024
#define USB_FIFO2_EPDATA_M 0xFFFFFFFF // Endpoint Data
7025
#define USB_FIFO2_EPDATA_S 0
7026
7027
//*****************************************************************************
7028
//
7029
// The following are defines for the bit fields in the USB_O_FIFO3 register.
7030
//
7031
//*****************************************************************************
7032
#define USB_FIFO3_EPDATA_M 0xFFFFFFFF // Endpoint Data
7033
#define USB_FIFO3_EPDATA_S 0
7034
7035
//*****************************************************************************
7036
//
7037
// The following are defines for the bit fields in the USB_O_FIFO4 register.
7038
//
7039
//*****************************************************************************
7040
#define USB_FIFO4_EPDATA_M 0xFFFFFFFF // Endpoint Data
7041
#define USB_FIFO4_EPDATA_S 0
7042
7043
//*****************************************************************************
7044
//
7045
// The following are defines for the bit fields in the USB_O_FIFO5 register.
7046
//
7047
//*****************************************************************************
7048
#define USB_FIFO5_EPDATA_M 0xFFFFFFFF // Endpoint Data
7049
#define USB_FIFO5_EPDATA_S 0
7050
7051
//*****************************************************************************
7052
//
7053
// The following are defines for the bit fields in the USB_O_FIFO6 register.
7054
//
7055
//*****************************************************************************
7056
#define USB_FIFO6_EPDATA_M 0xFFFFFFFF // Endpoint Data
7057
#define USB_FIFO6_EPDATA_S 0
7058
7059
//*****************************************************************************
7060
//
7061
// The following are defines for the bit fields in the USB_O_FIFO7 register.
7062
//
7063
//*****************************************************************************
7064
#define USB_FIFO7_EPDATA_M 0xFFFFFFFF // Endpoint Data
7065
#define USB_FIFO7_EPDATA_S 0
7066
7067
//*****************************************************************************
7068
//
7069
// The following are defines for the bit fields in the USB_O_DEVCTL register.
7070
//
7071
//*****************************************************************************
7072
#define USB_DEVCTL_DEV 0x00000080 // Device Mode (OTG only)
7073
#define USB_DEVCTL_FSDEV 0x00000040 // Full-Speed Device Detected
7074
#define USB_DEVCTL_LSDEV 0x00000020 // Low-Speed Device Detected
7075
#define USB_DEVCTL_VBUS_M 0x00000018 // VBUS Level (OTG only)
7076
#define USB_DEVCTL_VBUS_NONE 0x00000000 // Below SessionEnd
7077
#define USB_DEVCTL_VBUS_SEND 0x00000008 // Above SessionEnd, below AValid
7078
#define USB_DEVCTL_VBUS_AVALID 0x00000010 // Above AValid, below VBUSValid
7079
#define USB_DEVCTL_VBUS_VALID 0x00000018 // Above VBUSValid
7080
#define USB_DEVCTL_HOST 0x00000004 // Host Mode
7081
#define USB_DEVCTL_HOSTREQ 0x00000002 // Host Request (OTG only)
7082
#define USB_DEVCTL_SESSION 0x00000001 // Session Start/End (OTG only)
7083
7084
//*****************************************************************************
7085
//
7086
// The following are defines for the bit fields in the USB_O_TXFIFOSZ register.
7087
//
7088
//*****************************************************************************
7089
#define USB_TXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
7090
#define USB_TXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
7091
#define USB_TXFIFOSZ_SIZE_8 0x00000000 // 8
7092
#define USB_TXFIFOSZ_SIZE_16 0x00000001 // 16
7093
#define USB_TXFIFOSZ_SIZE_32 0x00000002 // 32
7094
#define USB_TXFIFOSZ_SIZE_64 0x00000003 // 64
7095
#define USB_TXFIFOSZ_SIZE_128 0x00000004 // 128
7096
#define USB_TXFIFOSZ_SIZE_256 0x00000005 // 256
7097
#define USB_TXFIFOSZ_SIZE_512 0x00000006 // 512
7098
#define USB_TXFIFOSZ_SIZE_1024 0x00000007 // 1024
7099
#define USB_TXFIFOSZ_SIZE_2048 0x00000008 // 2048
7100
7101
//*****************************************************************************
7102
//
7103
// The following are defines for the bit fields in the USB_O_RXFIFOSZ register.
7104
//
7105
//*****************************************************************************
7106
#define USB_RXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
7107
#define USB_RXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
7108
#define USB_RXFIFOSZ_SIZE_8 0x00000000 // 8
7109
#define USB_RXFIFOSZ_SIZE_16 0x00000001 // 16
7110
#define USB_RXFIFOSZ_SIZE_32 0x00000002 // 32
7111
#define USB_RXFIFOSZ_SIZE_64 0x00000003 // 64
7112
#define USB_RXFIFOSZ_SIZE_128 0x00000004 // 128
7113
#define USB_RXFIFOSZ_SIZE_256 0x00000005 // 256
7114
#define USB_RXFIFOSZ_SIZE_512 0x00000006 // 512
7115
#define USB_RXFIFOSZ_SIZE_1024 0x00000007 // 1024
7116
#define USB_RXFIFOSZ_SIZE_2048 0x00000008 // 2048
7117
7118
//*****************************************************************************
7119
//
7120
// The following are defines for the bit fields in the USB_O_TXFIFOADD
7121
// register.
7122
//
7123
//*****************************************************************************
7124
#define USB_TXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
7125
#define USB_TXFIFOADD_ADDR_S 0
7126
7127
//*****************************************************************************
7128
//
7129
// The following are defines for the bit fields in the USB_O_RXFIFOADD
7130
// register.
7131
//
7132
//*****************************************************************************
7133
#define USB_RXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
7134
#define USB_RXFIFOADD_ADDR_S 0
7135
7136
//*****************************************************************************
7137
//
7138
// The following are defines for the bit fields in the USB_O_CONTIM register.
7139
//
7140
//*****************************************************************************
7141
#define USB_CONTIM_WTCON_M 0x000000F0 // Connect Wait
7142
#define USB_CONTIM_WTID_M 0x0000000F // Wait ID
7143
#define USB_CONTIM_WTCON_S 4
7144
#define USB_CONTIM_WTID_S 0
7145
7146
//*****************************************************************************
7147
//
7148
// The following are defines for the bit fields in the USB_O_VPLEN register.
7149
//
7150
//*****************************************************************************
7151
#define USB_VPLEN_VPLEN_M 0x000000FF // VBUS Pulse Length
7152
#define USB_VPLEN_VPLEN_S 0
7153
7154
//*****************************************************************************
7155
//
7156
// The following are defines for the bit fields in the USB_O_FSEOF register.
7157
//
7158
//*****************************************************************************
7159
#define USB_FSEOF_FSEOFG_M 0x000000FF // Full-Speed End-of-Frame Gap
7160
#define USB_FSEOF_FSEOFG_S 0
7161
7162
//*****************************************************************************
7163
//
7164
// The following are defines for the bit fields in the USB_O_LSEOF register.
7165
//
7166
//*****************************************************************************
7167
#define USB_LSEOF_LSEOFG_M 0x000000FF // Low-Speed End-of-Frame Gap
7168
#define USB_LSEOF_LSEOFG_S 0
7169
7170
//*****************************************************************************
7171
//
7172
// The following are defines for the bit fields in the USB_O_TXFUNCADDR0
7173
// register.
7174
//
7175
//*****************************************************************************
7176
#define USB_TXFUNCADDR0_ADDR_M 0x0000007F // Device Address
7177
#define USB_TXFUNCADDR0_ADDR_S 0
7178
7179
//*****************************************************************************
7180
//
7181
// The following are defines for the bit fields in the USB_O_TXHUBADDR0
7182
// register.
7183
//
7184
//*****************************************************************************
7185
#define USB_TXHUBADDR0_ADDR_M 0x0000007F // Hub Address
7186
#define USB_TXHUBADDR0_ADDR_S 0
7187
7188
//*****************************************************************************
7189
//
7190
// The following are defines for the bit fields in the USB_O_TXHUBPORT0
7191
// register.
7192
//
7193
//*****************************************************************************
7194
#define USB_TXHUBPORT0_PORT_M 0x0000007F // Hub Port
7195
#define USB_TXHUBPORT0_PORT_S 0
7196
7197
//*****************************************************************************
7198
//
7199
// The following are defines for the bit fields in the USB_O_TXFUNCADDR1
7200
// register.
7201
//
7202
//*****************************************************************************
7203
#define USB_TXFUNCADDR1_ADDR_M 0x0000007F // Device Address
7204
#define USB_TXFUNCADDR1_ADDR_S 0
7205
7206
//*****************************************************************************
7207
//
7208
// The following are defines for the bit fields in the USB_O_TXHUBADDR1
7209
// register.
7210
//
7211
//*****************************************************************************
7212
#define USB_TXHUBADDR1_ADDR_M 0x0000007F // Hub Address
7213
#define USB_TXHUBADDR1_ADDR_S 0
7214
7215
//*****************************************************************************
7216
//
7217
// The following are defines for the bit fields in the USB_O_TXHUBPORT1
7218
// register.
7219
//
7220
//*****************************************************************************
7221
#define USB_TXHUBPORT1_PORT_M 0x0000007F // Hub Port
7222
#define USB_TXHUBPORT1_PORT_S 0
7223
7224
//*****************************************************************************
7225
//
7226
// The following are defines for the bit fields in the USB_O_RXFUNCADDR1
7227
// register.
7228
//
7229
//*****************************************************************************
7230
#define USB_RXFUNCADDR1_ADDR_M 0x0000007F // Device Address
7231
#define USB_RXFUNCADDR1_ADDR_S 0
7232
7233
//*****************************************************************************
7234
//
7235
// The following are defines for the bit fields in the USB_O_RXHUBADDR1
7236
// register.
7237
//
7238
//*****************************************************************************
7239
#define USB_RXHUBADDR1_ADDR_M 0x0000007F // Hub Address
7240
#define USB_RXHUBADDR1_ADDR_S 0
7241
7242
//*****************************************************************************
7243
//
7244
// The following are defines for the bit fields in the USB_O_RXHUBPORT1
7245
// register.
7246
//
7247
//*****************************************************************************
7248
#define USB_RXHUBPORT1_PORT_M 0x0000007F // Hub Port
7249
#define USB_RXHUBPORT1_PORT_S 0
7250
7251
//*****************************************************************************
7252
//
7253
// The following are defines for the bit fields in the USB_O_TXFUNCADDR2
7254
// register.
7255
//
7256
//*****************************************************************************
7257
#define USB_TXFUNCADDR2_ADDR_M 0x0000007F // Device Address
7258
#define USB_TXFUNCADDR2_ADDR_S 0
7259
7260
//*****************************************************************************
7261
//
7262
// The following are defines for the bit fields in the USB_O_TXHUBADDR2
7263
// register.
7264
//
7265
//*****************************************************************************
7266
#define USB_TXHUBADDR2_ADDR_M 0x0000007F // Hub Address
7267
#define USB_TXHUBADDR2_ADDR_S 0
7268
7269
//*****************************************************************************
7270
//
7271
// The following are defines for the bit fields in the USB_O_TXHUBPORT2
7272
// register.
7273
//
7274
//*****************************************************************************
7275
#define USB_TXHUBPORT2_PORT_M 0x0000007F // Hub Port
7276
#define USB_TXHUBPORT2_PORT_S 0
7277
7278
//*****************************************************************************
7279
//
7280
// The following are defines for the bit fields in the USB_O_RXFUNCADDR2
7281
// register.
7282
//
7283
//*****************************************************************************
7284
#define USB_RXFUNCADDR2_ADDR_M 0x0000007F // Device Address
7285
#define USB_RXFUNCADDR2_ADDR_S 0
7286
7287
//*****************************************************************************
7288
//
7289
// The following are defines for the bit fields in the USB_O_RXHUBADDR2
7290
// register.
7291
//
7292
//*****************************************************************************
7293
#define USB_RXHUBADDR2_ADDR_M 0x0000007F // Hub Address
7294
#define USB_RXHUBADDR2_ADDR_S 0
7295
7296
//*****************************************************************************
7297
//
7298
// The following are defines for the bit fields in the USB_O_RXHUBPORT2
7299
// register.
7300
//
7301
//*****************************************************************************
7302
#define USB_RXHUBPORT2_PORT_M 0x0000007F // Hub Port
7303
#define USB_RXHUBPORT2_PORT_S 0
7304
7305
//*****************************************************************************
7306
//
7307
// The following are defines for the bit fields in the USB_O_TXFUNCADDR3
7308
// register.
7309
//
7310
//*****************************************************************************
7311
#define USB_TXFUNCADDR3_ADDR_M 0x0000007F // Device Address
7312
#define USB_TXFUNCADDR3_ADDR_S 0
7313
7314
//*****************************************************************************
7315
//
7316
// The following are defines for the bit fields in the USB_O_TXHUBADDR3
7317
// register.
7318
//
7319
//*****************************************************************************
7320
#define USB_TXHUBADDR3_ADDR_M 0x0000007F // Hub Address
7321
#define USB_TXHUBADDR3_ADDR_S 0
7322
7323
//*****************************************************************************
7324
//
7325
// The following are defines for the bit fields in the USB_O_TXHUBPORT3
7326
// register.
7327
//
7328
//*****************************************************************************
7329
#define USB_TXHUBPORT3_PORT_M 0x0000007F // Hub Port
7330
#define USB_TXHUBPORT3_PORT_S 0
7331
7332
//*****************************************************************************
7333
//
7334
// The following are defines for the bit fields in the USB_O_RXFUNCADDR3
7335
// register.
7336
//
7337
//*****************************************************************************
7338
#define USB_RXFUNCADDR3_ADDR_M 0x0000007F // Device Address
7339
#define USB_RXFUNCADDR3_ADDR_S 0
7340
7341
//*****************************************************************************
7342
//
7343
// The following are defines for the bit fields in the USB_O_RXHUBADDR3
7344
// register.
7345
//
7346
//*****************************************************************************
7347
#define USB_RXHUBADDR3_ADDR_M 0x0000007F // Hub Address
7348
#define USB_RXHUBADDR3_ADDR_S 0
7349
7350
//*****************************************************************************
7351
//
7352
// The following are defines for the bit fields in the USB_O_RXHUBPORT3
7353
// register.
7354
//
7355
//*****************************************************************************
7356
#define USB_RXHUBPORT3_PORT_M 0x0000007F // Hub Port
7357
#define USB_RXHUBPORT3_PORT_S 0
7358
7359
//*****************************************************************************
7360
//
7361
// The following are defines for the bit fields in the USB_O_TXFUNCADDR4
7362
// register.
7363
//
7364
//*****************************************************************************
7365
#define USB_TXFUNCADDR4_ADDR_M 0x0000007F // Device Address
7366
#define USB_TXFUNCADDR4_ADDR_S 0
7367
7368
//*****************************************************************************
7369
//
7370
// The following are defines for the bit fields in the USB_O_TXHUBADDR4
7371
// register.
7372
//
7373
//*****************************************************************************
7374
#define USB_TXHUBADDR4_ADDR_M 0x0000007F // Hub Address
7375
#define USB_TXHUBADDR4_ADDR_S 0
7376
7377
//*****************************************************************************
7378
//
7379
// The following are defines for the bit fields in the USB_O_TXHUBPORT4
7380
// register.
7381
//
7382
//*****************************************************************************
7383
#define USB_TXHUBPORT4_PORT_M 0x0000007F // Hub Port
7384
#define USB_TXHUBPORT4_PORT_S 0
7385
7386
//*****************************************************************************
7387
//
7388
// The following are defines for the bit fields in the USB_O_RXFUNCADDR4
7389
// register.
7390
//
7391
//*****************************************************************************
7392
#define USB_RXFUNCADDR4_ADDR_M 0x0000007F // Device Address
7393
#define USB_RXFUNCADDR4_ADDR_S 0
7394
7395
//*****************************************************************************
7396
//
7397
// The following are defines for the bit fields in the USB_O_RXHUBADDR4
7398
// register.
7399
//
7400
//*****************************************************************************
7401
#define USB_RXHUBADDR4_ADDR_M 0x0000007F // Hub Address
7402
#define USB_RXHUBADDR4_ADDR_S 0
7403
7404
//*****************************************************************************
7405
//
7406
// The following are defines for the bit fields in the USB_O_RXHUBPORT4
7407
// register.
7408
//
7409
//*****************************************************************************
7410
#define USB_RXHUBPORT4_PORT_M 0x0000007F // Hub Port
7411
#define USB_RXHUBPORT4_PORT_S 0
7412
7413
//*****************************************************************************
7414
//
7415
// The following are defines for the bit fields in the USB_O_TXFUNCADDR5
7416
// register.
7417
//
7418
//*****************************************************************************
7419
#define USB_TXFUNCADDR5_ADDR_M 0x0000007F // Device Address
7420
#define USB_TXFUNCADDR5_ADDR_S 0
7421
7422
//*****************************************************************************
7423
//
7424
// The following are defines for the bit fields in the USB_O_TXHUBADDR5
7425
// register.
7426
//
7427
//*****************************************************************************
7428
#define USB_TXHUBADDR5_ADDR_M 0x0000007F // Hub Address
7429
#define USB_TXHUBADDR5_ADDR_S 0
7430
7431
//*****************************************************************************
7432
//
7433
// The following are defines for the bit fields in the USB_O_TXHUBPORT5
7434
// register.
7435
//
7436
//*****************************************************************************
7437
#define USB_TXHUBPORT5_PORT_M 0x0000007F // Hub Port
7438
#define USB_TXHUBPORT5_PORT_S 0
7439
7440
//*****************************************************************************
7441
//
7442
// The following are defines for the bit fields in the USB_O_RXFUNCADDR5
7443
// register.
7444
//
7445
//*****************************************************************************
7446
#define USB_RXFUNCADDR5_ADDR_M 0x0000007F // Device Address
7447
#define USB_RXFUNCADDR5_ADDR_S 0
7448
7449
//*****************************************************************************
7450
//
7451
// The following are defines for the bit fields in the USB_O_RXHUBADDR5
7452
// register.
7453
//
7454
//*****************************************************************************
7455
#define USB_RXHUBADDR5_ADDR_M 0x0000007F // Hub Address
7456
#define USB_RXHUBADDR5_ADDR_S 0
7457
7458
//*****************************************************************************
7459
//
7460
// The following are defines for the bit fields in the USB_O_RXHUBPORT5
7461
// register.
7462
//
7463
//*****************************************************************************
7464
#define USB_RXHUBPORT5_PORT_M 0x0000007F // Hub Port
7465
#define USB_RXHUBPORT5_PORT_S 0
7466
7467
//*****************************************************************************
7468
//
7469
// The following are defines for the bit fields in the USB_O_TXFUNCADDR6
7470
// register.
7471
//
7472
//*****************************************************************************
7473
#define USB_TXFUNCADDR6_ADDR_M 0x0000007F // Device Address
7474
#define USB_TXFUNCADDR6_ADDR_S 0
7475
7476
//*****************************************************************************
7477
//
7478
// The following are defines for the bit fields in the USB_O_TXHUBADDR6
7479
// register.
7480
//
7481
//*****************************************************************************
7482
#define USB_TXHUBADDR6_ADDR_M 0x0000007F // Hub Address
7483
#define USB_TXHUBADDR6_ADDR_S 0
7484
7485
//*****************************************************************************
7486
//
7487
// The following are defines for the bit fields in the USB_O_TXHUBPORT6
7488
// register.
7489
//
7490
//*****************************************************************************
7491
#define USB_TXHUBPORT6_PORT_M 0x0000007F // Hub Port
7492
#define USB_TXHUBPORT6_PORT_S 0
7493
7494
//*****************************************************************************
7495
//
7496
// The following are defines for the bit fields in the USB_O_RXFUNCADDR6
7497
// register.
7498
//
7499
//*****************************************************************************
7500
#define USB_RXFUNCADDR6_ADDR_M 0x0000007F // Device Address
7501
#define USB_RXFUNCADDR6_ADDR_S 0
7502
7503
//*****************************************************************************
7504
//
7505
// The following are defines for the bit fields in the USB_O_RXHUBADDR6
7506
// register.
7507
//
7508
//*****************************************************************************
7509
#define USB_RXHUBADDR6_ADDR_M 0x0000007F // Hub Address
7510
#define USB_RXHUBADDR6_ADDR_S 0
7511
7512
//*****************************************************************************
7513
//
7514
// The following are defines for the bit fields in the USB_O_RXHUBPORT6
7515
// register.
7516
//
7517
//*****************************************************************************
7518
#define USB_RXHUBPORT6_PORT_M 0x0000007F // Hub Port
7519
#define USB_RXHUBPORT6_PORT_S 0
7520
7521
//*****************************************************************************
7522
//
7523
// The following are defines for the bit fields in the USB_O_TXFUNCADDR7
7524
// register.
7525
//
7526
//*****************************************************************************
7527
#define USB_TXFUNCADDR7_ADDR_M 0x0000007F // Device Address
7528
#define USB_TXFUNCADDR7_ADDR_S 0
7529
7530
//*****************************************************************************
7531
//
7532
// The following are defines for the bit fields in the USB_O_TXHUBADDR7
7533
// register.
7534
//
7535
//*****************************************************************************
7536
#define USB_TXHUBADDR7_ADDR_M 0x0000007F // Hub Address
7537
#define USB_TXHUBADDR7_ADDR_S 0
7538
7539
//*****************************************************************************
7540
//
7541
// The following are defines for the bit fields in the USB_O_TXHUBPORT7
7542
// register.
7543
//
7544
//*****************************************************************************
7545
#define USB_TXHUBPORT7_PORT_M 0x0000007F // Hub Port
7546
#define USB_TXHUBPORT7_PORT_S 0
7547
7548
//*****************************************************************************
7549
//
7550
// The following are defines for the bit fields in the USB_O_RXFUNCADDR7
7551
// register.
7552
//
7553
//*****************************************************************************
7554
#define USB_RXFUNCADDR7_ADDR_M 0x0000007F // Device Address
7555
#define USB_RXFUNCADDR7_ADDR_S 0
7556
7557
//*****************************************************************************
7558
//
7559
// The following are defines for the bit fields in the USB_O_RXHUBADDR7
7560
// register.
7561
//
7562
//*****************************************************************************
7563
#define USB_RXHUBADDR7_ADDR_M 0x0000007F // Hub Address
7564
#define USB_RXHUBADDR7_ADDR_S 0
7565
7566
//*****************************************************************************
7567
//
7568
// The following are defines for the bit fields in the USB_O_RXHUBPORT7
7569
// register.
7570
//
7571
//*****************************************************************************
7572
#define USB_RXHUBPORT7_PORT_M 0x0000007F // Hub Port
7573
#define USB_RXHUBPORT7_PORT_S 0
7574
7575
//*****************************************************************************
7576
//
7577
// The following are defines for the bit fields in the USB_O_CSRL0 register.
7578
//
7579
//*****************************************************************************
7580
#define USB_CSRL0_NAKTO 0x00000080 // NAK Timeout
7581
#define USB_CSRL0_SETENDC 0x00000080 // Setup End Clear
7582
#define USB_CSRL0_STATUS 0x00000040 // STATUS Packet
7583
#define USB_CSRL0_RXRDYC 0x00000040 // RXRDY Clear
7584
#define USB_CSRL0_REQPKT 0x00000020 // Request Packet
7585
#define USB_CSRL0_STALL 0x00000020 // Send Stall
7586
#define USB_CSRL0_SETEND 0x00000010 // Setup End
7587
#define USB_CSRL0_ERROR 0x00000010 // Error
7588
#define USB_CSRL0_DATAEND 0x00000008 // Data End
7589
#define USB_CSRL0_SETUP 0x00000008 // Setup Packet
7590
#define USB_CSRL0_STALLED 0x00000004 // Endpoint Stalled
7591
#define USB_CSRL0_TXRDY 0x00000002 // Transmit Packet Ready
7592
#define USB_CSRL0_RXRDY 0x00000001 // Receive Packet Ready
7593
7594
//*****************************************************************************
7595
//
7596
// The following are defines for the bit fields in the USB_O_CSRH0 register.
7597
//
7598
//*****************************************************************************
7599
#define USB_CSRH0_DTWE 0x00000004 // Data Toggle Write Enable
7600
#define USB_CSRH0_DT 0x00000002 // Data Toggle
7601
#define USB_CSRH0_FLUSH 0x00000001 // Flush FIFO
7602
7603
//*****************************************************************************
7604
//
7605
// The following are defines for the bit fields in the USB_O_COUNT0 register.
7606
//
7607
//*****************************************************************************
7608
#define USB_COUNT0_COUNT_M 0x0000007F // FIFO Count
7609
#define USB_COUNT0_COUNT_S 0
7610
7611
//*****************************************************************************
7612
//
7613
// The following are defines for the bit fields in the USB_O_TYPE0 register.
7614
//
7615
//*****************************************************************************
7616
#define USB_TYPE0_SPEED_M 0x000000C0 // Operating Speed
7617
#define USB_TYPE0_SPEED_FULL 0x00000080 // Full
7618
#define USB_TYPE0_SPEED_LOW 0x000000C0 // Low
7619
7620
//*****************************************************************************
7621
//
7622
// The following are defines for the bit fields in the USB_O_NAKLMT register.
7623
//
7624
//*****************************************************************************
7625
#define USB_NAKLMT_NAKLMT_M 0x0000001F // EP0 NAK Limit
7626
#define USB_NAKLMT_NAKLMT_S 0
7627
7628
//*****************************************************************************
7629
//
7630
// The following are defines for the bit fields in the USB_O_TXMAXP1 register.
7631
//
7632
//*****************************************************************************
7633
#define USB_TXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
7634
#define USB_TXMAXP1_MAXLOAD_S 0
7635
7636
//*****************************************************************************
7637
//
7638
// The following are defines for the bit fields in the USB_O_TXCSRL1 register.
7639
//
7640
//*****************************************************************************
7641
#define USB_TXCSRL1_NAKTO 0x00000080 // NAK Timeout
7642
#define USB_TXCSRL1_CLRDT 0x00000040 // Clear Data Toggle
7643
#define USB_TXCSRL1_STALLED 0x00000020 // Endpoint Stalled
7644
#define USB_TXCSRL1_STALL 0x00000010 // Send STALL
7645
#define USB_TXCSRL1_SETUP 0x00000010 // Setup Packet
7646
#define USB_TXCSRL1_FLUSH 0x00000008 // Flush FIFO
7647
#define USB_TXCSRL1_ERROR 0x00000004 // Error
7648
#define USB_TXCSRL1_UNDRN 0x00000004 // Underrun
7649
#define USB_TXCSRL1_FIFONE 0x00000002 // FIFO Not Empty
7650
#define USB_TXCSRL1_TXRDY 0x00000001 // Transmit Packet Ready
7651
7652
//*****************************************************************************
7653
//
7654
// The following are defines for the bit fields in the USB_O_TXCSRH1 register.
7655
//
7656
//*****************************************************************************
7657
#define USB_TXCSRH1_AUTOSET 0x00000080 // Auto Set
7658
#define USB_TXCSRH1_ISO 0x00000040 // Isochronous Transfers
7659
#define USB_TXCSRH1_MODE 0x00000020 // Mode
7660
#define USB_TXCSRH1_DMAEN 0x00000010 // DMA Request Enable
7661
#define USB_TXCSRH1_FDT 0x00000008 // Force Data Toggle
7662
#define USB_TXCSRH1_DMAMOD 0x00000004 // DMA Request Mode
7663
#define USB_TXCSRH1_DTWE 0x00000002 // Data Toggle Write Enable
7664
#define USB_TXCSRH1_DT 0x00000001 // Data Toggle
7665
7666
//*****************************************************************************
7667
//
7668
// The following are defines for the bit fields in the USB_O_RXMAXP1 register.
7669
//
7670
//*****************************************************************************
7671
#define USB_RXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
7672
#define USB_RXMAXP1_MAXLOAD_S 0
7673
7674
//*****************************************************************************
7675
//
7676
// The following are defines for the bit fields in the USB_O_RXCSRL1 register.
7677
//
7678
//*****************************************************************************
7679
#define USB_RXCSRL1_CLRDT 0x00000080 // Clear Data Toggle
7680
#define USB_RXCSRL1_STALLED 0x00000040 // Endpoint Stalled
7681
#define USB_RXCSRL1_STALL 0x00000020 // Send STALL
7682
#define USB_RXCSRL1_REQPKT 0x00000020 // Request Packet
7683
#define USB_RXCSRL1_FLUSH 0x00000010 // Flush FIFO
7684
#define USB_RXCSRL1_DATAERR 0x00000008 // Data Error
7685
#define USB_RXCSRL1_NAKTO 0x00000008 // NAK Timeout
7686
#define USB_RXCSRL1_OVER 0x00000004 // Overrun
7687
#define USB_RXCSRL1_ERROR 0x00000004 // Error
7688
#define USB_RXCSRL1_FULL 0x00000002 // FIFO Full
7689
#define USB_RXCSRL1_RXRDY 0x00000001 // Receive Packet Ready
7690
7691
//*****************************************************************************
7692
//
7693
// The following are defines for the bit fields in the USB_O_RXCSRH1 register.
7694
//
7695
//*****************************************************************************
7696
#define USB_RXCSRH1_AUTOCL 0x00000080 // Auto Clear
7697
#define USB_RXCSRH1_AUTORQ 0x00000040 // Auto Request
7698
#define USB_RXCSRH1_ISO 0x00000040 // Isochronous Transfers
7699
#define USB_RXCSRH1_DMAEN 0x00000020 // DMA Request Enable
7700
#define USB_RXCSRH1_DISNYET 0x00000010 // Disable NYET
7701
#define USB_RXCSRH1_PIDERR 0x00000010 // PID Error
7702
#define USB_RXCSRH1_DMAMOD 0x00000008 // DMA Request Mode
7703
#define USB_RXCSRH1_DTWE 0x00000004 // Data Toggle Write Enable
7704
#define USB_RXCSRH1_DT 0x00000002 // Data Toggle
7705
7706
//*****************************************************************************
7707
//
7708
// The following are defines for the bit fields in the USB_O_RXCOUNT1 register.
7709
//
7710
//*****************************************************************************
7711
#define USB_RXCOUNT1_COUNT_M 0x00001FFF // Receive Packet Count
7712
#define USB_RXCOUNT1_COUNT_S 0
7713
7714
//*****************************************************************************
7715
//
7716
// The following are defines for the bit fields in the USB_O_TXTYPE1 register.
7717
//
7718
//*****************************************************************************
7719
#define USB_TXTYPE1_SPEED_M 0x000000C0 // Operating Speed
7720
#define USB_TXTYPE1_SPEED_DFLT 0x00000000 // Default
7721
#define USB_TXTYPE1_SPEED_FULL 0x00000080 // Full
7722
#define USB_TXTYPE1_SPEED_LOW 0x000000C0 // Low
7723
#define USB_TXTYPE1_PROTO_M 0x00000030 // Protocol
7724
#define USB_TXTYPE1_PROTO_CTRL 0x00000000 // Control
7725
#define USB_TXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
7726
#define USB_TXTYPE1_PROTO_BULK 0x00000020 // Bulk
7727
#define USB_TXTYPE1_PROTO_INT 0x00000030 // Interrupt
7728
#define USB_TXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
7729
#define USB_TXTYPE1_TEP_S 0
7730
7731
//*****************************************************************************
7732
//
7733
// The following are defines for the bit fields in the USB_O_TXINTERVAL1
7734
// register.
7735
//
7736
//*****************************************************************************
7737
#define USB_TXINTERVAL1_NAKLMT_M \
7738
0x000000FF // NAK Limit
7739
#define USB_TXINTERVAL1_TXPOLL_M \
7740
0x000000FF // TX Polling
7741
#define USB_TXINTERVAL1_TXPOLL_S \
7742
0
7743
#define USB_TXINTERVAL1_NAKLMT_S \
7744
0
7745
7746
//*****************************************************************************
7747
//
7748
// The following are defines for the bit fields in the USB_O_RXTYPE1 register.
7749
//
7750
//*****************************************************************************
7751
#define USB_RXTYPE1_SPEED_M 0x000000C0 // Operating Speed
7752
#define USB_RXTYPE1_SPEED_DFLT 0x00000000 // Default
7753
#define USB_RXTYPE1_SPEED_FULL 0x00000080 // Full
7754
#define USB_RXTYPE1_SPEED_LOW 0x000000C0 // Low
7755
#define USB_RXTYPE1_PROTO_M 0x00000030 // Protocol
7756
#define USB_RXTYPE1_PROTO_CTRL 0x00000000 // Control
7757
#define USB_RXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
7758
#define USB_RXTYPE1_PROTO_BULK 0x00000020 // Bulk
7759
#define USB_RXTYPE1_PROTO_INT 0x00000030 // Interrupt
7760
#define USB_RXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
7761
#define USB_RXTYPE1_TEP_S 0
7762
7763
//*****************************************************************************
7764
//
7765
// The following are defines for the bit fields in the USB_O_RXINTERVAL1
7766
// register.
7767
//
7768
//*****************************************************************************
7769
#define USB_RXINTERVAL1_TXPOLL_M \
7770
0x000000FF // RX Polling
7771
#define USB_RXINTERVAL1_NAKLMT_M \
7772
0x000000FF // NAK Limit
7773
#define USB_RXINTERVAL1_TXPOLL_S \
7774
0
7775
#define USB_RXINTERVAL1_NAKLMT_S \
7776
0
7777
7778
//*****************************************************************************
7779
//
7780
// The following are defines for the bit fields in the USB_O_TXMAXP2 register.
7781
//
7782
//*****************************************************************************
7783
#define USB_TXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
7784
#define USB_TXMAXP2_MAXLOAD_S 0
7785
7786
//*****************************************************************************
7787
//
7788
// The following are defines for the bit fields in the USB_O_TXCSRL2 register.
7789
//
7790
//*****************************************************************************
7791
#define USB_TXCSRL2_NAKTO 0x00000080 // NAK Timeout
7792
#define USB_TXCSRL2_CLRDT 0x00000040 // Clear Data Toggle
7793
#define USB_TXCSRL2_STALLED 0x00000020 // Endpoint Stalled
7794
#define USB_TXCSRL2_SETUP 0x00000010 // Setup Packet
7795
#define USB_TXCSRL2_STALL 0x00000010 // Send STALL
7796
#define USB_TXCSRL2_FLUSH 0x00000008 // Flush FIFO
7797
#define USB_TXCSRL2_ERROR 0x00000004 // Error
7798
#define USB_TXCSRL2_UNDRN 0x00000004 // Underrun
7799
#define USB_TXCSRL2_FIFONE 0x00000002 // FIFO Not Empty
7800
#define USB_TXCSRL2_TXRDY 0x00000001 // Transmit Packet Ready
7801
7802
//*****************************************************************************
7803
//
7804
// The following are defines for the bit fields in the USB_O_TXCSRH2 register.
7805
//
7806
//*****************************************************************************
7807
#define USB_TXCSRH2_AUTOSET 0x00000080 // Auto Set
7808
#define USB_TXCSRH2_ISO 0x00000040 // Isochronous Transfers
7809
#define USB_TXCSRH2_MODE 0x00000020 // Mode
7810
#define USB_TXCSRH2_DMAEN 0x00000010 // DMA Request Enable
7811
#define USB_TXCSRH2_FDT 0x00000008 // Force Data Toggle
7812
#define USB_TXCSRH2_DMAMOD 0x00000004 // DMA Request Mode
7813
#define USB_TXCSRH2_DTWE 0x00000002 // Data Toggle Write Enable
7814
#define USB_TXCSRH2_DT 0x00000001 // Data Toggle
7815
7816
//*****************************************************************************
7817
//
7818
// The following are defines for the bit fields in the USB_O_RXMAXP2 register.
7819
//
7820
//*****************************************************************************
7821
#define USB_RXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
7822
#define USB_RXMAXP2_MAXLOAD_S 0
7823
7824
//*****************************************************************************
7825
//
7826
// The following are defines for the bit fields in the USB_O_RXCSRL2 register.
7827
//
7828
//*****************************************************************************
7829
#define USB_RXCSRL2_CLRDT 0x00000080 // Clear Data Toggle
7830
#define USB_RXCSRL2_STALLED 0x00000040 // Endpoint Stalled
7831
#define USB_RXCSRL2_REQPKT 0x00000020 // Request Packet
7832
#define USB_RXCSRL2_STALL 0x00000020 // Send STALL
7833
#define USB_RXCSRL2_FLUSH 0x00000010 // Flush FIFO
7834
#define USB_RXCSRL2_DATAERR 0x00000008 // Data Error
7835
#define USB_RXCSRL2_NAKTO 0x00000008 // NAK Timeout
7836
#define USB_RXCSRL2_ERROR 0x00000004 // Error
7837
#define USB_RXCSRL2_OVER 0x00000004 // Overrun
7838
#define USB_RXCSRL2_FULL 0x00000002 // FIFO Full
7839
#define USB_RXCSRL2_RXRDY 0x00000001 // Receive Packet Ready
7840
7841
//*****************************************************************************
7842
//
7843
// The following are defines for the bit fields in the USB_O_RXCSRH2 register.
7844
//
7845
//*****************************************************************************
7846
#define USB_RXCSRH2_AUTOCL 0x00000080 // Auto Clear
7847
#define USB_RXCSRH2_AUTORQ 0x00000040 // Auto Request
7848
#define USB_RXCSRH2_ISO 0x00000040 // Isochronous Transfers
7849
#define USB_RXCSRH2_DMAEN 0x00000020 // DMA Request Enable
7850
#define USB_RXCSRH2_DISNYET 0x00000010 // Disable NYET
7851
#define USB_RXCSRH2_PIDERR 0x00000010 // PID Error
7852
#define USB_RXCSRH2_DMAMOD 0x00000008 // DMA Request Mode
7853
#define USB_RXCSRH2_DTWE 0x00000004 // Data Toggle Write Enable
7854
#define USB_RXCSRH2_DT 0x00000002 // Data Toggle
7855
7856
//*****************************************************************************
7857
//
7858
// The following are defines for the bit fields in the USB_O_RXCOUNT2 register.
7859
//
7860
//*****************************************************************************
7861
#define USB_RXCOUNT2_COUNT_M 0x00001FFF // Receive Packet Count
7862
#define USB_RXCOUNT2_COUNT_S 0
7863
7864
//*****************************************************************************
7865
//
7866
// The following are defines for the bit fields in the USB_O_TXTYPE2 register.
7867
//
7868
//*****************************************************************************
7869
#define USB_TXTYPE2_SPEED_M 0x000000C0 // Operating Speed
7870
#define USB_TXTYPE2_SPEED_DFLT 0x00000000 // Default
7871
#define USB_TXTYPE2_SPEED_FULL 0x00000080 // Full
7872
#define USB_TXTYPE2_SPEED_LOW 0x000000C0 // Low
7873
#define USB_TXTYPE2_PROTO_M 0x00000030 // Protocol
7874
#define USB_TXTYPE2_PROTO_CTRL 0x00000000 // Control
7875
#define USB_TXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
7876
#define USB_TXTYPE2_PROTO_BULK 0x00000020 // Bulk
7877
#define USB_TXTYPE2_PROTO_INT 0x00000030 // Interrupt
7878
#define USB_TXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
7879
#define USB_TXTYPE2_TEP_S 0
7880
7881
//*****************************************************************************
7882
//
7883
// The following are defines for the bit fields in the USB_O_TXINTERVAL2
7884
// register.
7885
//
7886
//*****************************************************************************
7887
#define USB_TXINTERVAL2_TXPOLL_M \
7888
0x000000FF // TX Polling
7889
#define USB_TXINTERVAL2_NAKLMT_M \
7890
0x000000FF // NAK Limit
7891
#define USB_TXINTERVAL2_NAKLMT_S \
7892
0
7893
#define USB_TXINTERVAL2_TXPOLL_S \
7894
0
7895
7896
//*****************************************************************************
7897
//
7898
// The following are defines for the bit fields in the USB_O_RXTYPE2 register.
7899
//
7900
//*****************************************************************************
7901
#define USB_RXTYPE2_SPEED_M 0x000000C0 // Operating Speed
7902
#define USB_RXTYPE2_SPEED_DFLT 0x00000000 // Default
7903
#define USB_RXTYPE2_SPEED_FULL 0x00000080 // Full
7904
#define USB_RXTYPE2_SPEED_LOW 0x000000C0 // Low
7905
#define USB_RXTYPE2_PROTO_M 0x00000030 // Protocol
7906
#define USB_RXTYPE2_PROTO_CTRL 0x00000000 // Control
7907
#define USB_RXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
7908
#define USB_RXTYPE2_PROTO_BULK 0x00000020 // Bulk
7909
#define USB_RXTYPE2_PROTO_INT 0x00000030 // Interrupt
7910
#define USB_RXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
7911
#define USB_RXTYPE2_TEP_S 0
7912
7913
//*****************************************************************************
7914
//
7915
// The following are defines for the bit fields in the USB_O_RXINTERVAL2
7916
// register.
7917
//
7918
//*****************************************************************************
7919
#define USB_RXINTERVAL2_TXPOLL_M \
7920
0x000000FF // RX Polling
7921
#define USB_RXINTERVAL2_NAKLMT_M \
7922
0x000000FF // NAK Limit
7923
#define USB_RXINTERVAL2_TXPOLL_S \
7924
0
7925
#define USB_RXINTERVAL2_NAKLMT_S \
7926
0
7927
7928
//*****************************************************************************
7929
//
7930
// The following are defines for the bit fields in the USB_O_TXMAXP3 register.
7931
//
7932
//*****************************************************************************
7933
#define USB_TXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
7934
#define USB_TXMAXP3_MAXLOAD_S 0
7935
7936
//*****************************************************************************
7937
//
7938
// The following are defines for the bit fields in the USB_O_TXCSRL3 register.
7939
//
7940
//*****************************************************************************
7941
#define USB_TXCSRL3_NAKTO 0x00000080 // NAK Timeout
7942
#define USB_TXCSRL3_CLRDT 0x00000040 // Clear Data Toggle
7943
#define USB_TXCSRL3_STALLED 0x00000020 // Endpoint Stalled
7944
#define USB_TXCSRL3_SETUP 0x00000010 // Setup Packet
7945
#define USB_TXCSRL3_STALL 0x00000010 // Send STALL
7946
#define USB_TXCSRL3_FLUSH 0x00000008 // Flush FIFO
7947
#define USB_TXCSRL3_ERROR 0x00000004 // Error
7948
#define USB_TXCSRL3_UNDRN 0x00000004 // Underrun
7949
#define USB_TXCSRL3_FIFONE 0x00000002 // FIFO Not Empty
7950
#define USB_TXCSRL3_TXRDY 0x00000001 // Transmit Packet Ready
7951
7952
//*****************************************************************************
7953
//
7954
// The following are defines for the bit fields in the USB_O_TXCSRH3 register.
7955
//
7956
//*****************************************************************************
7957
#define USB_TXCSRH3_AUTOSET 0x00000080 // Auto Set
7958
#define USB_TXCSRH3_ISO 0x00000040 // Isochronous Transfers
7959
#define USB_TXCSRH3_MODE 0x00000020 // Mode
7960
#define USB_TXCSRH3_DMAEN 0x00000010 // DMA Request Enable
7961
#define USB_TXCSRH3_FDT 0x00000008 // Force Data Toggle
7962
#define USB_TXCSRH3_DMAMOD 0x00000004 // DMA Request Mode
7963
#define USB_TXCSRH3_DTWE 0x00000002 // Data Toggle Write Enable
7964
#define USB_TXCSRH3_DT 0x00000001 // Data Toggle
7965
7966
//*****************************************************************************
7967
//
7968
// The following are defines for the bit fields in the USB_O_RXMAXP3 register.
7969
//
7970
//*****************************************************************************
7971
#define USB_RXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
7972
#define USB_RXMAXP3_MAXLOAD_S 0
7973
7974
//*****************************************************************************
7975
//
7976
// The following are defines for the bit fields in the USB_O_RXCSRL3 register.
7977
//
7978
//*****************************************************************************
7979
#define USB_RXCSRL3_CLRDT 0x00000080 // Clear Data Toggle
7980
#define USB_RXCSRL3_STALLED 0x00000040 // Endpoint Stalled
7981
#define USB_RXCSRL3_STALL 0x00000020 // Send STALL
7982
#define USB_RXCSRL3_REQPKT 0x00000020 // Request Packet
7983
#define USB_RXCSRL3_FLUSH 0x00000010 // Flush FIFO
7984
#define USB_RXCSRL3_DATAERR 0x00000008 // Data Error
7985
#define USB_RXCSRL3_NAKTO 0x00000008 // NAK Timeout
7986
#define USB_RXCSRL3_ERROR 0x00000004 // Error
7987
#define USB_RXCSRL3_OVER 0x00000004 // Overrun
7988
#define USB_RXCSRL3_FULL 0x00000002 // FIFO Full
7989
#define USB_RXCSRL3_RXRDY 0x00000001 // Receive Packet Ready
7990
7991
//*****************************************************************************
7992
//
7993
// The following are defines for the bit fields in the USB_O_RXCSRH3 register.
7994
//
7995
//*****************************************************************************
7996
#define USB_RXCSRH3_AUTOCL 0x00000080 // Auto Clear
7997
#define USB_RXCSRH3_AUTORQ 0x00000040 // Auto Request
7998
#define USB_RXCSRH3_ISO 0x00000040 // Isochronous Transfers
7999
#define USB_RXCSRH3_DMAEN 0x00000020 // DMA Request Enable
8000
#define USB_RXCSRH3_DISNYET 0x00000010 // Disable NYET
8001
#define USB_RXCSRH3_PIDERR 0x00000010 // PID Error
8002
#define USB_RXCSRH3_DMAMOD 0x00000008 // DMA Request Mode
8003
#define USB_RXCSRH3_DTWE 0x00000004 // Data Toggle Write Enable
8004
#define USB_RXCSRH3_DT 0x00000002 // Data Toggle
8005
8006
//*****************************************************************************
8007
//
8008
// The following are defines for the bit fields in the USB_O_RXCOUNT3 register.
8009
//
8010
//*****************************************************************************
8011
#define USB_RXCOUNT3_COUNT_M 0x00001FFF // Receive Packet Count
8012
#define USB_RXCOUNT3_COUNT_S 0
8013
8014
//*****************************************************************************
8015
//
8016
// The following are defines for the bit fields in the USB_O_TXTYPE3 register.
8017
//
8018
//*****************************************************************************
8019
#define USB_TXTYPE3_SPEED_M 0x000000C0 // Operating Speed
8020
#define USB_TXTYPE3_SPEED_DFLT 0x00000000 // Default
8021
#define USB_TXTYPE3_SPEED_FULL 0x00000080 // Full
8022
#define USB_TXTYPE3_SPEED_LOW 0x000000C0 // Low
8023
#define USB_TXTYPE3_PROTO_M 0x00000030 // Protocol
8024
#define USB_TXTYPE3_PROTO_CTRL 0x00000000 // Control
8025
#define USB_TXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
8026
#define USB_TXTYPE3_PROTO_BULK 0x00000020 // Bulk
8027
#define USB_TXTYPE3_PROTO_INT 0x00000030 // Interrupt
8028
#define USB_TXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
8029
#define USB_TXTYPE3_TEP_S 0
8030
8031
//*****************************************************************************
8032
//
8033
// The following are defines for the bit fields in the USB_O_TXINTERVAL3
8034
// register.
8035
//
8036
//*****************************************************************************
8037
#define USB_TXINTERVAL3_TXPOLL_M \
8038
0x000000FF // TX Polling
8039
#define USB_TXINTERVAL3_NAKLMT_M \
8040
0x000000FF // NAK Limit
8041
#define USB_TXINTERVAL3_TXPOLL_S \
8042
0
8043
#define USB_TXINTERVAL3_NAKLMT_S \
8044
0
8045
8046
//*****************************************************************************
8047
//
8048
// The following are defines for the bit fields in the USB_O_RXTYPE3 register.
8049
//
8050
//*****************************************************************************
8051
#define USB_RXTYPE3_SPEED_M 0x000000C0 // Operating Speed
8052
#define USB_RXTYPE3_SPEED_DFLT 0x00000000 // Default
8053
#define USB_RXTYPE3_SPEED_FULL 0x00000080 // Full
8054
#define USB_RXTYPE3_SPEED_LOW 0x000000C0 // Low
8055
#define USB_RXTYPE3_PROTO_M 0x00000030 // Protocol
8056
#define USB_RXTYPE3_PROTO_CTRL 0x00000000 // Control
8057
#define USB_RXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
8058
#define USB_RXTYPE3_PROTO_BULK 0x00000020 // Bulk
8059
#define USB_RXTYPE3_PROTO_INT 0x00000030 // Interrupt
8060
#define USB_RXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
8061
#define USB_RXTYPE3_TEP_S 0
8062
8063
//*****************************************************************************
8064
//
8065
// The following are defines for the bit fields in the USB_O_RXINTERVAL3
8066
// register.
8067
//
8068
//*****************************************************************************
8069
#define USB_RXINTERVAL3_TXPOLL_M \
8070
0x000000FF // RX Polling
8071
#define USB_RXINTERVAL3_NAKLMT_M \
8072
0x000000FF // NAK Limit
8073
#define USB_RXINTERVAL3_TXPOLL_S \
8074
0
8075
#define USB_RXINTERVAL3_NAKLMT_S \
8076
0
8077
8078
//*****************************************************************************
8079
//
8080
// The following are defines for the bit fields in the USB_O_TXMAXP4 register.
8081
//
8082
//*****************************************************************************
8083
#define USB_TXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
8084
#define USB_TXMAXP4_MAXLOAD_S 0
8085
8086
//*****************************************************************************
8087
//
8088
// The following are defines for the bit fields in the USB_O_TXCSRL4 register.
8089
//
8090
//*****************************************************************************
8091
#define USB_TXCSRL4_NAKTO 0x00000080 // NAK Timeout
8092
#define USB_TXCSRL4_CLRDT 0x00000040 // Clear Data Toggle
8093
#define USB_TXCSRL4_STALLED 0x00000020 // Endpoint Stalled
8094
#define USB_TXCSRL4_SETUP 0x00000010 // Setup Packet
8095
#define USB_TXCSRL4_STALL 0x00000010 // Send STALL
8096
#define USB_TXCSRL4_FLUSH 0x00000008 // Flush FIFO
8097
#define USB_TXCSRL4_ERROR 0x00000004 // Error
8098
#define USB_TXCSRL4_UNDRN 0x00000004 // Underrun
8099
#define USB_TXCSRL4_FIFONE 0x00000002 // FIFO Not Empty
8100
#define USB_TXCSRL4_TXRDY 0x00000001 // Transmit Packet Ready
8101
8102
//*****************************************************************************
8103
//
8104
// The following are defines for the bit fields in the USB_O_TXCSRH4 register.
8105
//
8106
//*****************************************************************************
8107
#define USB_TXCSRH4_AUTOSET 0x00000080 // Auto Set
8108
#define USB_TXCSRH4_ISO 0x00000040 // Isochronous Transfers
8109
#define USB_TXCSRH4_MODE 0x00000020 // Mode
8110
#define USB_TXCSRH4_DMAEN 0x00000010 // DMA Request Enable
8111
#define USB_TXCSRH4_FDT 0x00000008 // Force Data Toggle
8112
#define USB_TXCSRH4_DMAMOD 0x00000004 // DMA Request Mode
8113
#define USB_TXCSRH4_DTWE 0x00000002 // Data Toggle Write Enable
8114
#define USB_TXCSRH4_DT 0x00000001 // Data Toggle
8115
8116
//*****************************************************************************
8117
//
8118
// The following are defines for the bit fields in the USB_O_RXMAXP4 register.
8119
//
8120
//*****************************************************************************
8121
#define USB_RXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
8122
#define USB_RXMAXP4_MAXLOAD_S 0
8123
8124
//*****************************************************************************
8125
//
8126
// The following are defines for the bit fields in the USB_O_RXCSRL4 register.
8127
//
8128
//*****************************************************************************
8129
#define USB_RXCSRL4_CLRDT 0x00000080 // Clear Data Toggle
8130
#define USB_RXCSRL4_STALLED 0x00000040 // Endpoint Stalled
8131
#define USB_RXCSRL4_STALL 0x00000020 // Send STALL
8132
#define USB_RXCSRL4_REQPKT 0x00000020 // Request Packet
8133
#define USB_RXCSRL4_FLUSH 0x00000010 // Flush FIFO
8134
#define USB_RXCSRL4_NAKTO 0x00000008 // NAK Timeout
8135
#define USB_RXCSRL4_DATAERR 0x00000008 // Data Error
8136
#define USB_RXCSRL4_OVER 0x00000004 // Overrun
8137
#define USB_RXCSRL4_ERROR 0x00000004 // Error
8138
#define USB_RXCSRL4_FULL 0x00000002 // FIFO Full
8139
#define USB_RXCSRL4_RXRDY 0x00000001 // Receive Packet Ready
8140
8141
//*****************************************************************************
8142
//
8143
// The following are defines for the bit fields in the USB_O_RXCSRH4 register.
8144
//
8145
//*****************************************************************************
8146
#define USB_RXCSRH4_AUTOCL 0x00000080 // Auto Clear
8147
#define USB_RXCSRH4_AUTORQ 0x00000040 // Auto Request
8148
#define USB_RXCSRH4_ISO 0x00000040 // Isochronous Transfers
8149
#define USB_RXCSRH4_DMAEN 0x00000020 // DMA Request Enable
8150
#define USB_RXCSRH4_DISNYET 0x00000010 // Disable NYET
8151
#define USB_RXCSRH4_PIDERR 0x00000010 // PID Error
8152
#define USB_RXCSRH4_DMAMOD 0x00000008 // DMA Request Mode
8153
#define USB_RXCSRH4_DTWE 0x00000004 // Data Toggle Write Enable
8154
#define USB_RXCSRH4_DT 0x00000002 // Data Toggle
8155
8156
//*****************************************************************************
8157
//
8158
// The following are defines for the bit fields in the USB_O_RXCOUNT4 register.
8159
//
8160
//*****************************************************************************
8161
#define USB_RXCOUNT4_COUNT_M 0x00001FFF // Receive Packet Count
8162
#define USB_RXCOUNT4_COUNT_S 0
8163
8164
//*****************************************************************************
8165
//
8166
// The following are defines for the bit fields in the USB_O_TXTYPE4 register.
8167
//
8168
//*****************************************************************************
8169
#define USB_TXTYPE4_SPEED_M 0x000000C0 // Operating Speed
8170
#define USB_TXTYPE4_SPEED_DFLT 0x00000000 // Default
8171
#define USB_TXTYPE4_SPEED_FULL 0x00000080 // Full
8172
#define USB_TXTYPE4_SPEED_LOW 0x000000C0 // Low
8173
#define USB_TXTYPE4_PROTO_M 0x00000030 // Protocol
8174
#define USB_TXTYPE4_PROTO_CTRL 0x00000000 // Control
8175
#define USB_TXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
8176
#define USB_TXTYPE4_PROTO_BULK 0x00000020 // Bulk
8177
#define USB_TXTYPE4_PROTO_INT 0x00000030 // Interrupt
8178
#define USB_TXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
8179
#define USB_TXTYPE4_TEP_S 0
8180
8181
//*****************************************************************************
8182
//
8183
// The following are defines for the bit fields in the USB_O_TXINTERVAL4
8184
// register.
8185
//
8186
//*****************************************************************************
8187
#define USB_TXINTERVAL4_TXPOLL_M \
8188
0x000000FF // TX Polling
8189
#define USB_TXINTERVAL4_NAKLMT_M \
8190
0x000000FF // NAK Limit
8191
#define USB_TXINTERVAL4_NAKLMT_S \
8192
0
8193
#define USB_TXINTERVAL4_TXPOLL_S \
8194
0
8195
8196
//*****************************************************************************
8197
//
8198
// The following are defines for the bit fields in the USB_O_RXTYPE4 register.
8199
//
8200
//*****************************************************************************
8201
#define USB_RXTYPE4_SPEED_M 0x000000C0 // Operating Speed
8202
#define USB_RXTYPE4_SPEED_DFLT 0x00000000 // Default
8203
#define USB_RXTYPE4_SPEED_FULL 0x00000080 // Full
8204
#define USB_RXTYPE4_SPEED_LOW 0x000000C0 // Low
8205
#define USB_RXTYPE4_PROTO_M 0x00000030 // Protocol
8206
#define USB_RXTYPE4_PROTO_CTRL 0x00000000 // Control
8207
#define USB_RXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
8208
#define USB_RXTYPE4_PROTO_BULK 0x00000020 // Bulk
8209
#define USB_RXTYPE4_PROTO_INT 0x00000030 // Interrupt
8210
#define USB_RXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
8211
#define USB_RXTYPE4_TEP_S 0
8212
8213
//*****************************************************************************
8214
//
8215
// The following are defines for the bit fields in the USB_O_RXINTERVAL4
8216
// register.
8217
//
8218
//*****************************************************************************
8219
#define USB_RXINTERVAL4_TXPOLL_M \
8220
0x000000FF // RX Polling
8221
#define USB_RXINTERVAL4_NAKLMT_M \
8222
0x000000FF // NAK Limit
8223
#define USB_RXINTERVAL4_NAKLMT_S \
8224
0
8225
#define USB_RXINTERVAL4_TXPOLL_S \
8226
0
8227
8228
//*****************************************************************************
8229
//
8230
// The following are defines for the bit fields in the USB_O_TXMAXP5 register.
8231
//
8232
//*****************************************************************************
8233
#define USB_TXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
8234
#define USB_TXMAXP5_MAXLOAD_S 0
8235
8236
//*****************************************************************************
8237
//
8238
// The following are defines for the bit fields in the USB_O_TXCSRL5 register.
8239
//
8240
//*****************************************************************************
8241
#define USB_TXCSRL5_NAKTO 0x00000080 // NAK Timeout
8242
#define USB_TXCSRL5_CLRDT 0x00000040 // Clear Data Toggle
8243
#define USB_TXCSRL5_STALLED 0x00000020 // Endpoint Stalled
8244
#define USB_TXCSRL5_SETUP 0x00000010 // Setup Packet
8245
#define USB_TXCSRL5_STALL 0x00000010 // Send STALL
8246
#define USB_TXCSRL5_FLUSH 0x00000008 // Flush FIFO
8247
#define USB_TXCSRL5_ERROR 0x00000004 // Error
8248
#define USB_TXCSRL5_UNDRN 0x00000004 // Underrun
8249
#define USB_TXCSRL5_FIFONE 0x00000002 // FIFO Not Empty
8250
#define USB_TXCSRL5_TXRDY 0x00000001 // Transmit Packet Ready
8251
8252
//*****************************************************************************
8253
//
8254
// The following are defines for the bit fields in the USB_O_TXCSRH5 register.
8255
//
8256
//*****************************************************************************
8257
#define USB_TXCSRH5_AUTOSET 0x00000080 // Auto Set
8258
#define USB_TXCSRH5_ISO 0x00000040 // Isochronous Transfers
8259
#define USB_TXCSRH5_MODE 0x00000020 // Mode
8260
#define USB_TXCSRH5_DMAEN 0x00000010 // DMA Request Enable
8261
#define USB_TXCSRH5_FDT 0x00000008 // Force Data Toggle
8262
#define USB_TXCSRH5_DMAMOD 0x00000004 // DMA Request Mode
8263
#define USB_TXCSRH5_DTWE 0x00000002 // Data Toggle Write Enable
8264
#define USB_TXCSRH5_DT 0x00000001 // Data Toggle
8265
8266
//*****************************************************************************
8267
//
8268
// The following are defines for the bit fields in the USB_O_RXMAXP5 register.
8269
//
8270
//*****************************************************************************
8271
#define USB_RXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
8272
#define USB_RXMAXP5_MAXLOAD_S 0
8273
8274
//*****************************************************************************
8275
//
8276
// The following are defines for the bit fields in the USB_O_RXCSRL5 register.
8277
//
8278
//*****************************************************************************
8279
#define USB_RXCSRL5_CLRDT 0x00000080 // Clear Data Toggle
8280
#define USB_RXCSRL5_STALLED 0x00000040 // Endpoint Stalled
8281
#define USB_RXCSRL5_STALL 0x00000020 // Send STALL
8282
#define USB_RXCSRL5_REQPKT 0x00000020 // Request Packet
8283
#define USB_RXCSRL5_FLUSH 0x00000010 // Flush FIFO
8284
#define USB_RXCSRL5_NAKTO 0x00000008 // NAK Timeout
8285
#define USB_RXCSRL5_DATAERR 0x00000008 // Data Error
8286
#define USB_RXCSRL5_ERROR 0x00000004 // Error
8287
#define USB_RXCSRL5_OVER 0x00000004 // Overrun
8288
#define USB_RXCSRL5_FULL 0x00000002 // FIFO Full
8289
#define USB_RXCSRL5_RXRDY 0x00000001 // Receive Packet Ready
8290
8291
//*****************************************************************************
8292
//
8293
// The following are defines for the bit fields in the USB_O_RXCSRH5 register.
8294
//
8295
//*****************************************************************************
8296
#define USB_RXCSRH5_AUTOCL 0x00000080 // Auto Clear
8297
#define USB_RXCSRH5_AUTORQ 0x00000040 // Auto Request
8298
#define USB_RXCSRH5_ISO 0x00000040 // Isochronous Transfers
8299
#define USB_RXCSRH5_DMAEN 0x00000020 // DMA Request Enable
8300
#define USB_RXCSRH5_DISNYET 0x00000010 // Disable NYET
8301
#define USB_RXCSRH5_PIDERR 0x00000010 // PID Error
8302
#define USB_RXCSRH5_DMAMOD 0x00000008 // DMA Request Mode
8303
#define USB_RXCSRH5_DTWE 0x00000004 // Data Toggle Write Enable
8304
#define USB_RXCSRH5_DT 0x00000002 // Data Toggle
8305
8306
//*****************************************************************************
8307
//
8308
// The following are defines for the bit fields in the USB_O_RXCOUNT5 register.
8309
//
8310
//*****************************************************************************
8311
#define USB_RXCOUNT5_COUNT_M 0x00001FFF // Receive Packet Count
8312
#define USB_RXCOUNT5_COUNT_S 0
8313
8314
//*****************************************************************************
8315
//
8316
// The following are defines for the bit fields in the USB_O_TXTYPE5 register.
8317
//
8318
//*****************************************************************************
8319
#define USB_TXTYPE5_SPEED_M 0x000000C0 // Operating Speed
8320
#define USB_TXTYPE5_SPEED_DFLT 0x00000000 // Default
8321
#define USB_TXTYPE5_SPEED_FULL 0x00000080 // Full
8322
#define USB_TXTYPE5_SPEED_LOW 0x000000C0 // Low
8323
#define USB_TXTYPE5_PROTO_M 0x00000030 // Protocol
8324
#define USB_TXTYPE5_PROTO_CTRL 0x00000000 // Control
8325
#define USB_TXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
8326
#define USB_TXTYPE5_PROTO_BULK 0x00000020 // Bulk
8327
#define USB_TXTYPE5_PROTO_INT 0x00000030 // Interrupt
8328
#define USB_TXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
8329
#define USB_TXTYPE5_TEP_S 0
8330
8331
//*****************************************************************************
8332
//
8333
// The following are defines for the bit fields in the USB_O_TXINTERVAL5
8334
// register.
8335
//
8336
//*****************************************************************************
8337
#define USB_TXINTERVAL5_TXPOLL_M \
8338
0x000000FF // TX Polling
8339
#define USB_TXINTERVAL5_NAKLMT_M \
8340
0x000000FF // NAK Limit
8341
#define USB_TXINTERVAL5_NAKLMT_S \
8342
0
8343
#define USB_TXINTERVAL5_TXPOLL_S \
8344
0
8345
8346
//*****************************************************************************
8347
//
8348
// The following are defines for the bit fields in the USB_O_RXTYPE5 register.
8349
//
8350
//*****************************************************************************
8351
#define USB_RXTYPE5_SPEED_M 0x000000C0 // Operating Speed
8352
#define USB_RXTYPE5_SPEED_DFLT 0x00000000 // Default
8353
#define USB_RXTYPE5_SPEED_FULL 0x00000080 // Full
8354
#define USB_RXTYPE5_SPEED_LOW 0x000000C0 // Low
8355
#define USB_RXTYPE5_PROTO_M 0x00000030 // Protocol
8356
#define USB_RXTYPE5_PROTO_CTRL 0x00000000 // Control
8357
#define USB_RXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
8358
#define USB_RXTYPE5_PROTO_BULK 0x00000020 // Bulk
8359
#define USB_RXTYPE5_PROTO_INT 0x00000030 // Interrupt
8360
#define USB_RXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
8361
#define USB_RXTYPE5_TEP_S 0
8362
8363
//*****************************************************************************
8364
//
8365
// The following are defines for the bit fields in the USB_O_RXINTERVAL5
8366
// register.
8367
//
8368
//*****************************************************************************
8369
#define USB_RXINTERVAL5_TXPOLL_M \
8370
0x000000FF // RX Polling
8371
#define USB_RXINTERVAL5_NAKLMT_M \
8372
0x000000FF // NAK Limit
8373
#define USB_RXINTERVAL5_TXPOLL_S \
8374
0
8375
#define USB_RXINTERVAL5_NAKLMT_S \
8376
0
8377
8378
//*****************************************************************************
8379
//
8380
// The following are defines for the bit fields in the USB_O_TXMAXP6 register.
8381
//
8382
//*****************************************************************************
8383
#define USB_TXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
8384
#define USB_TXMAXP6_MAXLOAD_S 0
8385
8386
//*****************************************************************************
8387
//
8388
// The following are defines for the bit fields in the USB_O_TXCSRL6 register.
8389
//
8390
//*****************************************************************************
8391
#define USB_TXCSRL6_NAKTO 0x00000080 // NAK Timeout
8392
#define USB_TXCSRL6_CLRDT 0x00000040 // Clear Data Toggle
8393
#define USB_TXCSRL6_STALLED 0x00000020 // Endpoint Stalled
8394
#define USB_TXCSRL6_STALL 0x00000010 // Send STALL
8395
#define USB_TXCSRL6_SETUP 0x00000010 // Setup Packet
8396
#define USB_TXCSRL6_FLUSH 0x00000008 // Flush FIFO
8397
#define USB_TXCSRL6_ERROR 0x00000004 // Error
8398
#define USB_TXCSRL6_UNDRN 0x00000004 // Underrun
8399
#define USB_TXCSRL6_FIFONE 0x00000002 // FIFO Not Empty
8400
#define USB_TXCSRL6_TXRDY 0x00000001 // Transmit Packet Ready
8401
8402
//*****************************************************************************
8403
//
8404
// The following are defines for the bit fields in the USB_O_TXCSRH6 register.
8405
//
8406
//*****************************************************************************
8407
#define USB_TXCSRH6_AUTOSET 0x00000080 // Auto Set
8408
#define USB_TXCSRH6_ISO 0x00000040 // Isochronous Transfers
8409
#define USB_TXCSRH6_MODE 0x00000020 // Mode
8410
#define USB_TXCSRH6_DMAEN 0x00000010 // DMA Request Enable
8411
#define USB_TXCSRH6_FDT 0x00000008 // Force Data Toggle
8412
#define USB_TXCSRH6_DMAMOD 0x00000004 // DMA Request Mode
8413
#define USB_TXCSRH6_DTWE 0x00000002 // Data Toggle Write Enable
8414
#define USB_TXCSRH6_DT 0x00000001 // Data Toggle
8415
8416
//*****************************************************************************
8417
//
8418
// The following are defines for the bit fields in the USB_O_RXMAXP6 register.
8419
//
8420
//*****************************************************************************
8421
#define USB_RXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
8422
#define USB_RXMAXP6_MAXLOAD_S 0
8423
8424
//*****************************************************************************
8425
//
8426
// The following are defines for the bit fields in the USB_O_RXCSRL6 register.
8427
//
8428
//*****************************************************************************
8429
#define USB_RXCSRL6_CLRDT 0x00000080 // Clear Data Toggle
8430
#define USB_RXCSRL6_STALLED 0x00000040 // Endpoint Stalled
8431
#define USB_RXCSRL6_REQPKT 0x00000020 // Request Packet
8432
#define USB_RXCSRL6_STALL 0x00000020 // Send STALL
8433
#define USB_RXCSRL6_FLUSH 0x00000010 // Flush FIFO
8434
#define USB_RXCSRL6_NAKTO 0x00000008 // NAK Timeout
8435
#define USB_RXCSRL6_DATAERR 0x00000008 // Data Error
8436
#define USB_RXCSRL6_ERROR 0x00000004 // Error
8437
#define USB_RXCSRL6_OVER 0x00000004 // Overrun
8438
#define USB_RXCSRL6_FULL 0x00000002 // FIFO Full
8439
#define USB_RXCSRL6_RXRDY 0x00000001 // Receive Packet Ready
8440
8441
//*****************************************************************************
8442
//
8443
// The following are defines for the bit fields in the USB_O_RXCSRH6 register.
8444
//
8445
//*****************************************************************************
8446
#define USB_RXCSRH6_AUTOCL 0x00000080 // Auto Clear
8447
#define USB_RXCSRH6_AUTORQ 0x00000040 // Auto Request
8448
#define USB_RXCSRH6_ISO 0x00000040 // Isochronous Transfers
8449
#define USB_RXCSRH6_DMAEN 0x00000020 // DMA Request Enable
8450
#define USB_RXCSRH6_DISNYET 0x00000010 // Disable NYET
8451
#define USB_RXCSRH6_PIDERR 0x00000010 // PID Error
8452
#define USB_RXCSRH6_DMAMOD 0x00000008 // DMA Request Mode
8453
#define USB_RXCSRH6_DTWE 0x00000004 // Data Toggle Write Enable
8454
#define USB_RXCSRH6_DT 0x00000002 // Data Toggle
8455
8456
//*****************************************************************************
8457
//
8458
// The following are defines for the bit fields in the USB_O_RXCOUNT6 register.
8459
//
8460
//*****************************************************************************
8461
#define USB_RXCOUNT6_COUNT_M 0x00001FFF // Receive Packet Count
8462
#define USB_RXCOUNT6_COUNT_S 0
8463
8464
//*****************************************************************************
8465
//
8466
// The following are defines for the bit fields in the USB_O_TXTYPE6 register.
8467
//
8468
//*****************************************************************************
8469
#define USB_TXTYPE6_SPEED_M 0x000000C0 // Operating Speed
8470
#define USB_TXTYPE6_SPEED_DFLT 0x00000000 // Default
8471
#define USB_TXTYPE6_SPEED_FULL 0x00000080 // Full
8472
#define USB_TXTYPE6_SPEED_LOW 0x000000C0 // Low
8473
#define USB_TXTYPE6_PROTO_M 0x00000030 // Protocol
8474
#define USB_TXTYPE6_PROTO_CTRL 0x00000000 // Control
8475
#define USB_TXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
8476
#define USB_TXTYPE6_PROTO_BULK 0x00000020 // Bulk
8477
#define USB_TXTYPE6_PROTO_INT 0x00000030 // Interrupt
8478
#define USB_TXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
8479
#define USB_TXTYPE6_TEP_S 0
8480
8481
//*****************************************************************************
8482
//
8483
// The following are defines for the bit fields in the USB_O_TXINTERVAL6
8484
// register.
8485
//
8486
//*****************************************************************************
8487
#define USB_TXINTERVAL6_TXPOLL_M \
8488
0x000000FF // TX Polling
8489
#define USB_TXINTERVAL6_NAKLMT_M \
8490
0x000000FF // NAK Limit
8491
#define USB_TXINTERVAL6_TXPOLL_S \
8492
0
8493
#define USB_TXINTERVAL6_NAKLMT_S \
8494
0
8495
8496
//*****************************************************************************
8497
//
8498
// The following are defines for the bit fields in the USB_O_RXTYPE6 register.
8499
//
8500
//*****************************************************************************
8501
#define USB_RXTYPE6_SPEED_M 0x000000C0 // Operating Speed
8502
#define USB_RXTYPE6_SPEED_DFLT 0x00000000 // Default
8503
#define USB_RXTYPE6_SPEED_FULL 0x00000080 // Full
8504
#define USB_RXTYPE6_SPEED_LOW 0x000000C0 // Low
8505
#define USB_RXTYPE6_PROTO_M 0x00000030 // Protocol
8506
#define USB_RXTYPE6_PROTO_CTRL 0x00000000 // Control
8507
#define USB_RXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
8508
#define USB_RXTYPE6_PROTO_BULK 0x00000020 // Bulk
8509
#define USB_RXTYPE6_PROTO_INT 0x00000030 // Interrupt
8510
#define USB_RXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
8511
#define USB_RXTYPE6_TEP_S 0
8512
8513
//*****************************************************************************
8514
//
8515
// The following are defines for the bit fields in the USB_O_RXINTERVAL6
8516
// register.
8517
//
8518
//*****************************************************************************
8519
#define USB_RXINTERVAL6_TXPOLL_M \
8520
0x000000FF // RX Polling
8521
#define USB_RXINTERVAL6_NAKLMT_M \
8522
0x000000FF // NAK Limit
8523
#define USB_RXINTERVAL6_NAKLMT_S \
8524
0
8525
#define USB_RXINTERVAL6_TXPOLL_S \
8526
0
8527
8528
//*****************************************************************************
8529
//
8530
// The following are defines for the bit fields in the USB_O_TXMAXP7 register.
8531
//
8532
//*****************************************************************************
8533
#define USB_TXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
8534
#define USB_TXMAXP7_MAXLOAD_S 0
8535
8536
//*****************************************************************************
8537
//
8538
// The following are defines for the bit fields in the USB_O_TXCSRL7 register.
8539
//
8540
//*****************************************************************************
8541
#define USB_TXCSRL7_NAKTO 0x00000080 // NAK Timeout
8542
#define USB_TXCSRL7_CLRDT 0x00000040 // Clear Data Toggle
8543
#define USB_TXCSRL7_STALLED 0x00000020 // Endpoint Stalled
8544
#define USB_TXCSRL7_STALL 0x00000010 // Send STALL
8545
#define USB_TXCSRL7_SETUP 0x00000010 // Setup Packet
8546
#define USB_TXCSRL7_FLUSH 0x00000008 // Flush FIFO
8547
#define USB_TXCSRL7_ERROR 0x00000004 // Error
8548
#define USB_TXCSRL7_UNDRN 0x00000004 // Underrun
8549
#define USB_TXCSRL7_FIFONE 0x00000002 // FIFO Not Empty
8550
#define USB_TXCSRL7_TXRDY 0x00000001 // Transmit Packet Ready
8551
8552
//*****************************************************************************
8553
//
8554
// The following are defines for the bit fields in the USB_O_TXCSRH7 register.
8555
//
8556
//*****************************************************************************
8557
#define USB_TXCSRH7_AUTOSET 0x00000080 // Auto Set
8558
#define USB_TXCSRH7_ISO 0x00000040 // Isochronous Transfers
8559
#define USB_TXCSRH7_MODE 0x00000020 // Mode
8560
#define USB_TXCSRH7_DMAEN 0x00000010 // DMA Request Enable
8561
#define USB_TXCSRH7_FDT 0x00000008 // Force Data Toggle
8562
#define USB_TXCSRH7_DMAMOD 0x00000004 // DMA Request Mode
8563
#define USB_TXCSRH7_DTWE 0x00000002 // Data Toggle Write Enable
8564
#define USB_TXCSRH7_DT 0x00000001 // Data Toggle
8565
8566
//*****************************************************************************
8567
//
8568
// The following are defines for the bit fields in the USB_O_RXMAXP7 register.
8569
//
8570
//*****************************************************************************
8571
#define USB_RXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
8572
#define USB_RXMAXP7_MAXLOAD_S 0
8573
8574
//*****************************************************************************
8575
//
8576
// The following are defines for the bit fields in the USB_O_RXCSRL7 register.
8577
//
8578
//*****************************************************************************
8579
#define USB_RXCSRL7_CLRDT 0x00000080 // Clear Data Toggle
8580
#define USB_RXCSRL7_STALLED 0x00000040 // Endpoint Stalled
8581
#define USB_RXCSRL7_REQPKT 0x00000020 // Request Packet
8582
#define USB_RXCSRL7_STALL 0x00000020 // Send STALL
8583
#define USB_RXCSRL7_FLUSH 0x00000010 // Flush FIFO
8584
#define USB_RXCSRL7_DATAERR 0x00000008 // Data Error
8585
#define USB_RXCSRL7_NAKTO 0x00000008 // NAK Timeout
8586
#define USB_RXCSRL7_ERROR 0x00000004 // Error
8587
#define USB_RXCSRL7_OVER 0x00000004 // Overrun
8588
#define USB_RXCSRL7_FULL 0x00000002 // FIFO Full
8589
#define USB_RXCSRL7_RXRDY 0x00000001 // Receive Packet Ready
8590
8591
//*****************************************************************************
8592
//
8593
// The following are defines for the bit fields in the USB_O_RXCSRH7 register.
8594
//
8595
//*****************************************************************************
8596
#define USB_RXCSRH7_AUTOCL 0x00000080 // Auto Clear
8597
#define USB_RXCSRH7_ISO 0x00000040 // Isochronous Transfers
8598
#define USB_RXCSRH7_AUTORQ 0x00000040 // Auto Request
8599
#define USB_RXCSRH7_DMAEN 0x00000020 // DMA Request Enable
8600
#define USB_RXCSRH7_PIDERR 0x00000010 // PID Error
8601
#define USB_RXCSRH7_DISNYET 0x00000010 // Disable NYET
8602
#define USB_RXCSRH7_DMAMOD 0x00000008 // DMA Request Mode
8603
#define USB_RXCSRH7_DTWE 0x00000004 // Data Toggle Write Enable
8604
#define USB_RXCSRH7_DT 0x00000002 // Data Toggle
8605
8606
//*****************************************************************************
8607
//
8608
// The following are defines for the bit fields in the USB_O_RXCOUNT7 register.
8609
//
8610
//*****************************************************************************
8611
#define USB_RXCOUNT7_COUNT_M 0x00001FFF // Receive Packet Count
8612
#define USB_RXCOUNT7_COUNT_S 0
8613
8614
//*****************************************************************************
8615
//
8616
// The following are defines for the bit fields in the USB_O_TXTYPE7 register.
8617
//
8618
//*****************************************************************************
8619
#define USB_TXTYPE7_SPEED_M 0x000000C0 // Operating Speed
8620
#define USB_TXTYPE7_SPEED_DFLT 0x00000000 // Default
8621
#define USB_TXTYPE7_SPEED_FULL 0x00000080 // Full
8622
#define USB_TXTYPE7_SPEED_LOW 0x000000C0 // Low
8623
#define USB_TXTYPE7_PROTO_M 0x00000030 // Protocol
8624
#define USB_TXTYPE7_PROTO_CTRL 0x00000000 // Control
8625
#define USB_TXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
8626
#define USB_TXTYPE7_PROTO_BULK 0x00000020 // Bulk
8627
#define USB_TXTYPE7_PROTO_INT 0x00000030 // Interrupt
8628
#define USB_TXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
8629
#define USB_TXTYPE7_TEP_S 0
8630
8631
//*****************************************************************************
8632
//
8633
// The following are defines for the bit fields in the USB_O_TXINTERVAL7
8634
// register.
8635
//
8636
//*****************************************************************************
8637
#define USB_TXINTERVAL7_TXPOLL_M \
8638
0x000000FF // TX Polling
8639
#define USB_TXINTERVAL7_NAKLMT_M \
8640
0x000000FF // NAK Limit
8641
#define USB_TXINTERVAL7_NAKLMT_S \
8642
0
8643
#define USB_TXINTERVAL7_TXPOLL_S \
8644
0
8645
8646
//*****************************************************************************
8647
//
8648
// The following are defines for the bit fields in the USB_O_RXTYPE7 register.
8649
//
8650
//*****************************************************************************
8651
#define USB_RXTYPE7_SPEED_M 0x000000C0 // Operating Speed
8652
#define USB_RXTYPE7_SPEED_DFLT 0x00000000 // Default
8653
#define USB_RXTYPE7_SPEED_FULL 0x00000080 // Full
8654
#define USB_RXTYPE7_SPEED_LOW 0x000000C0 // Low
8655
#define USB_RXTYPE7_PROTO_M 0x00000030 // Protocol
8656
#define USB_RXTYPE7_PROTO_CTRL 0x00000000 // Control
8657
#define USB_RXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
8658
#define USB_RXTYPE7_PROTO_BULK 0x00000020 // Bulk
8659
#define USB_RXTYPE7_PROTO_INT 0x00000030 // Interrupt
8660
#define USB_RXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
8661
#define USB_RXTYPE7_TEP_S 0
8662
8663
//*****************************************************************************
8664
//
8665
// The following are defines for the bit fields in the USB_O_RXINTERVAL7
8666
// register.
8667
//
8668
//*****************************************************************************
8669
#define USB_RXINTERVAL7_TXPOLL_M \
8670
0x000000FF // RX Polling
8671
#define USB_RXINTERVAL7_NAKLMT_M \
8672
0x000000FF // NAK Limit
8673
#define USB_RXINTERVAL7_NAKLMT_S \
8674
0
8675
#define USB_RXINTERVAL7_TXPOLL_S \
8676
0
8677
8678
//*****************************************************************************
8679
//
8680
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT1
8681
// register.
8682
//
8683
//*****************************************************************************
8684
#define USB_RQPKTCOUNT1_M 0x0000FFFF // Block Transfer Packet Count
8685
#define USB_RQPKTCOUNT1_S 0
8686
8687
//*****************************************************************************
8688
//
8689
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT2
8690
// register.
8691
//
8692
//*****************************************************************************
8693
#define USB_RQPKTCOUNT2_M 0x0000FFFF // Block Transfer Packet Count
8694
#define USB_RQPKTCOUNT2_S 0
8695
8696
//*****************************************************************************
8697
//
8698
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT3
8699
// register.
8700
//
8701
//*****************************************************************************
8702
#define USB_RQPKTCOUNT3_M 0x0000FFFF // Block Transfer Packet Count
8703
#define USB_RQPKTCOUNT3_S 0
8704
8705
//*****************************************************************************
8706
//
8707
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT4
8708
// register.
8709
//
8710
//*****************************************************************************
8711
#define USB_RQPKTCOUNT4_COUNT_M 0x0000FFFF // Block Transfer Packet Count
8712
#define USB_RQPKTCOUNT4_COUNT_S 0
8713
8714
//*****************************************************************************
8715
//
8716
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT5
8717
// register.
8718
//
8719
//*****************************************************************************
8720
#define USB_RQPKTCOUNT5_COUNT_M 0x0000FFFF // Block Transfer Packet Count
8721
#define USB_RQPKTCOUNT5_COUNT_S 0
8722
8723
//*****************************************************************************
8724
//
8725
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT6
8726
// register.
8727
//
8728
//*****************************************************************************
8729
#define USB_RQPKTCOUNT6_COUNT_M 0x0000FFFF // Block Transfer Packet Count
8730
#define USB_RQPKTCOUNT6_COUNT_S 0
8731
8732
//*****************************************************************************
8733
//
8734
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT7
8735
// register.
8736
//
8737
//*****************************************************************************
8738
#define USB_RQPKTCOUNT7_COUNT_M 0x0000FFFF // Block Transfer Packet Count
8739
#define USB_RQPKTCOUNT7_COUNT_S 0
8740
8741
//*****************************************************************************
8742
//
8743
// The following are defines for the bit fields in the USB_O_RXDPKTBUFDIS
8744
// register.
8745
//
8746
//*****************************************************************************
8747
#define USB_RXDPKTBUFDIS_EP7 0x00000080 // EP7 RX Double-Packet Buffer
8748
// Disable
8749
#define USB_RXDPKTBUFDIS_EP6 0x00000040 // EP6 RX Double-Packet Buffer
8750
// Disable
8751
#define USB_RXDPKTBUFDIS_EP5 0x00000020 // EP5 RX Double-Packet Buffer
8752
// Disable
8753
#define USB_RXDPKTBUFDIS_EP4 0x00000010 // EP4 RX Double-Packet Buffer
8754
// Disable
8755
#define USB_RXDPKTBUFDIS_EP3 0x00000008 // EP3 RX Double-Packet Buffer
8756
// Disable
8757
#define USB_RXDPKTBUFDIS_EP2 0x00000004 // EP2 RX Double-Packet Buffer
8758
// Disable
8759
#define USB_RXDPKTBUFDIS_EP1 0x00000002 // EP1 RX Double-Packet Buffer
8760
// Disable
8761
8762
//*****************************************************************************
8763
//
8764
// The following are defines for the bit fields in the USB_O_TXDPKTBUFDIS
8765
// register.
8766
//
8767
//*****************************************************************************
8768
#define USB_TXDPKTBUFDIS_EP7 0x00000080 // EP7 TX Double-Packet Buffer
8769
// Disable
8770
#define USB_TXDPKTBUFDIS_EP6 0x00000040 // EP6 TX Double-Packet Buffer
8771
// Disable
8772
#define USB_TXDPKTBUFDIS_EP5 0x00000020 // EP5 TX Double-Packet Buffer
8773
// Disable
8774
#define USB_TXDPKTBUFDIS_EP4 0x00000010 // EP4 TX Double-Packet Buffer
8775
// Disable
8776
#define USB_TXDPKTBUFDIS_EP3 0x00000008 // EP3 TX Double-Packet Buffer
8777
// Disable
8778
#define USB_TXDPKTBUFDIS_EP2 0x00000004 // EP2 TX Double-Packet Buffer
8779
// Disable
8780
#define USB_TXDPKTBUFDIS_EP1 0x00000002 // EP1 TX Double-Packet Buffer
8781
// Disable
8782
8783
//*****************************************************************************
8784
//
8785
// The following are defines for the bit fields in the USB_O_EPC register.
8786
//
8787
//*****************************************************************************
8788
#define USB_EPC_PFLTACT_M 0x00000300 // Power Fault Action
8789
#define USB_EPC_PFLTACT_UNCHG 0x00000000 // Unchanged
8790
#define USB_EPC_PFLTACT_TRIS 0x00000100 // Tristate
8791
#define USB_EPC_PFLTACT_LOW 0x00000200 // Low
8792
#define USB_EPC_PFLTACT_HIGH 0x00000300 // High
8793
#define USB_EPC_PFLTAEN 0x00000040 // Power Fault Action Enable
8794
#define USB_EPC_PFLTSEN_HIGH 0x00000020 // Power Fault Sense
8795
#define USB_EPC_PFLTEN 0x00000010 // Power Fault Input Enable
8796
#define USB_EPC_EPENDE 0x00000004 // EPEN Drive Enable
8797
#define USB_EPC_EPEN_M 0x00000003 // External Power Supply Enable
8798
// Configuration
8799
#define USB_EPC_EPEN_LOW 0x00000000 // Power Enable Active Low
8800
#define USB_EPC_EPEN_HIGH 0x00000001 // Power Enable Active High
8801
#define USB_EPC_EPEN_VBLOW 0x00000002 // Power Enable High if VBUS Low
8802
// (OTG only)
8803
#define USB_EPC_EPEN_VBHIGH 0x00000003 // Power Enable High if VBUS High
8804
// (OTG only)
8805
8806
//*****************************************************************************
8807
//
8808
// The following are defines for the bit fields in the USB_O_EPCRIS register.
8809
//
8810
//*****************************************************************************
8811
#define USB_EPCRIS_PF 0x00000001 // USB Power Fault Interrupt Status
8812
8813
//*****************************************************************************
8814
//
8815
// The following are defines for the bit fields in the USB_O_EPCIM register.
8816
//
8817
//*****************************************************************************
8818
#define USB_EPCIM_PF 0x00000001 // USB Power Fault Interrupt Mask
8819
8820
//*****************************************************************************
8821
//
8822
// The following are defines for the bit fields in the USB_O_EPCISC register.
8823
//
8824
//*****************************************************************************
8825
#define USB_EPCISC_PF 0x00000001 // USB Power Fault Interrupt Status
8826
// and Clear
8827
8828
//*****************************************************************************
8829
//
8830
// The following are defines for the bit fields in the USB_O_DRRIS register.
8831
//
8832
//*****************************************************************************
8833
#define USB_DRRIS_RESUME 0x00000001 // RESUME Interrupt Status
8834
8835
//*****************************************************************************
8836
//
8837
// The following are defines for the bit fields in the USB_O_DRIM register.
8838
//
8839
//*****************************************************************************
8840
#define USB_DRIM_RESUME 0x00000001 // RESUME Interrupt Mask
8841
8842
//*****************************************************************************
8843
//
8844
// The following are defines for the bit fields in the USB_O_DRISC register.
8845
//
8846
//*****************************************************************************
8847
#define USB_DRISC_RESUME 0x00000001 // RESUME Interrupt Status and
8848
// Clear
8849
8850
//*****************************************************************************
8851
//
8852
// The following are defines for the bit fields in the USB_O_GPCS register.
8853
//
8854
//*****************************************************************************
8855
#define USB_GPCS_DEVMODOTG 0x00000002 // Enable Device Mode
8856
#define USB_GPCS_DEVMOD 0x00000001 // Device Mode
8857
8858
//*****************************************************************************
8859
//
8860
// The following are defines for the bit fields in the USB_O_VDC register.
8861
//
8862
//*****************************************************************************
8863
#define USB_VDC_VBDEN 0x00000001 // VBUS Droop Enable
8864
8865
//*****************************************************************************
8866
//
8867
// The following are defines for the bit fields in the USB_O_VDCRIS register.
8868
//
8869
//*****************************************************************************
8870
#define USB_VDCRIS_VD 0x00000001 // VBUS Droop Raw Interrupt Status
8871
8872
//*****************************************************************************
8873
//
8874
// The following are defines for the bit fields in the USB_O_VDCIM register.
8875
//
8876
//*****************************************************************************
8877
#define USB_VDCIM_VD 0x00000001 // VBUS Droop Interrupt Mask
8878
8879
//*****************************************************************************
8880
//
8881
// The following are defines for the bit fields in the USB_O_VDCISC register.
8882
//
8883
//*****************************************************************************
8884
#define USB_VDCISC_VD 0x00000001 // VBUS Droop Interrupt Status and
8885
// Clear
8886
8887
//*****************************************************************************
8888
//
8889
// The following are defines for the bit fields in the USB_O_IDVRIS register.
8890
//
8891
//*****************************************************************************
8892
#define USB_IDVRIS_ID 0x00000001 // ID Valid Detect Raw Interrupt
8893
// Status
8894
8895
//*****************************************************************************
8896
//
8897
// The following are defines for the bit fields in the USB_O_IDVIM register.
8898
//
8899
//*****************************************************************************
8900
#define USB_IDVIM_ID 0x00000001 // ID Valid Detect Interrupt Mask
8901
8902
//*****************************************************************************
8903
//
8904
// The following are defines for the bit fields in the USB_O_IDVISC register.
8905
//
8906
//*****************************************************************************
8907
#define USB_IDVISC_ID 0x00000001 // ID Valid Detect Interrupt Status
8908
// and Clear
8909
8910
//*****************************************************************************
8911
//
8912
// The following are defines for the bit fields in the USB_O_DMASEL register.
8913
//
8914
//*****************************************************************************
8915
#define USB_DMASEL_DMACTX_M 0x00F00000 // DMA C TX Select
8916
#define USB_DMASEL_DMACRX_M 0x000F0000 // DMA C RX Select
8917
#define USB_DMASEL_DMABTX_M 0x0000F000 // DMA B TX Select
8918
#define USB_DMASEL_DMABRX_M 0x00000F00 // DMA B RX Select
8919
#define USB_DMASEL_DMAATX_M 0x000000F0 // DMA A TX Select
8920
#define USB_DMASEL_DMAARX_M 0x0000000F // DMA A RX Select
8921
#define USB_DMASEL_DMACTX_S 20
8922
#define USB_DMASEL_DMACRX_S 16
8923
#define USB_DMASEL_DMABTX_S 12
8924
#define USB_DMASEL_DMABRX_S 8
8925
#define USB_DMASEL_DMAATX_S 4
8926
#define USB_DMASEL_DMAARX_S 0
8927
8928
//*****************************************************************************
8929
//
8930
// The following are defines for the bit fields in the USB_O_PP register.
8931
//
8932
//*****************************************************************************
8933
#define USB_PP_ECNT_M 0x0000FF00 // Endpoint Count
8934
#define USB_PP_USB_M 0x000000C0 // USB Capability
8935
#define USB_PP_USB_DEVICE 0x00000040 // DEVICE
8936
#define USB_PP_USB_HOSTDEVICE 0x00000080 // HOST
8937
#define USB_PP_USB_OTG 0x000000C0 // OTG
8938
#define USB_PP_PHY 0x00000010 // PHY Present
8939
#define USB_PP_TYPE_M 0x0000000F // Controller Type
8940
#define USB_PP_TYPE_0 0x00000000 // The first-generation USB
8941
// controller
8942
#define USB_PP_ECNT_S 8
8943
8944
//*****************************************************************************
8945
//
8946
// The following are defines for the bit fields in the EEPROM_EESIZE register.
8947
//
8948
//*****************************************************************************
8949
#define EEPROM_EESIZE_BLKCNT_M 0x07FF0000 // Number of 16-Word Blocks
8950
#define EEPROM_EESIZE_WORDCNT_M 0x0000FFFF // Number of 32-Bit Words
8951
#define EEPROM_EESIZE_BLKCNT_S 16
8952
#define EEPROM_EESIZE_WORDCNT_S 0
8953
8954
//*****************************************************************************
8955
//
8956
// The following are defines for the bit fields in the EEPROM_EEBLOCK register.
8957
//
8958
//*****************************************************************************
8959
#define EEPROM_EEBLOCK_BLOCK_M 0x0000FFFF // Current Block
8960
#define EEPROM_EEBLOCK_BLOCK_S 0
8961
8962
//*****************************************************************************
8963
//
8964
// The following are defines for the bit fields in the EEPROM_EEOFFSET
8965
// register.
8966
//
8967
//*****************************************************************************
8968
#define EEPROM_EEOFFSET_OFFSET_M \
8969
0x0000000F // Current Address Offset
8970
#define EEPROM_EEOFFSET_OFFSET_S \
8971
0
8972
8973
//*****************************************************************************
8974
//
8975
// The following are defines for the bit fields in the EEPROM_EERDWR register.
8976
//
8977
//*****************************************************************************
8978
#define EEPROM_EERDWR_VALUE_M 0xFFFFFFFF // EEPROM Read or Write Data
8979
#define EEPROM_EERDWR_VALUE_S 0
8980
8981
//*****************************************************************************
8982
//
8983
// The following are defines for the bit fields in the EEPROM_EERDWRINC
8984
// register.
8985
//
8986
//*****************************************************************************
8987
#define EEPROM_EERDWRINC_VALUE_M \
8988
0xFFFFFFFF // EEPROM Read or Write Data with
8989
// Increment
8990
#define EEPROM_EERDWRINC_VALUE_S \
8991
0
8992
8993
//*****************************************************************************
8994
//
8995
// The following are defines for the bit fields in the EEPROM_EEDONE register.
8996
//
8997
//*****************************************************************************
8998
#define EEPROM_EEDONE_WRBUSY 0x00000020 // Write Busy
8999
#define EEPROM_EEDONE_NOPERM 0x00000010 // Write Without Permission
9000
#define EEPROM_EEDONE_WKCOPY 0x00000008 // Working on a Copy
9001
#define EEPROM_EEDONE_WKERASE 0x00000004 // Working on an Erase
9002
#define EEPROM_EEDONE_WORKING 0x00000001 // EEPROM Working
9003
9004
//*****************************************************************************
9005
//
9006
// The following are defines for the bit fields in the EEPROM_EESUPP register.
9007
//
9008
//*****************************************************************************
9009
#define EEPROM_EESUPP_PRETRY 0x00000008 // Programming Must Be Retried
9010
#define EEPROM_EESUPP_ERETRY 0x00000004 // Erase Must Be Retried
9011
9012
//*****************************************************************************
9013
//
9014
// The following are defines for the bit fields in the EEPROM_EEUNLOCK
9015
// register.
9016
//
9017
//*****************************************************************************
9018
#define EEPROM_EEUNLOCK_UNLOCK_M \
9019
0xFFFFFFFF // EEPROM Unlock
9020
9021
//*****************************************************************************
9022
//
9023
// The following are defines for the bit fields in the EEPROM_EEPROT register.
9024
//
9025
//*****************************************************************************
9026
#define EEPROM_EEPROT_ACC 0x00000008 // Access Control
9027
#define EEPROM_EEPROT_PROT_M 0x00000007 // Protection Control
9028
#define EEPROM_EEPROT_PROT_RWNPW \
9029
0x00000000 // This setting is the default. If
9030
// there is no password, the block
9031
// is not protected and is readable
9032
// and writable
9033
#define EEPROM_EEPROT_PROT_RWPW 0x00000001 // If there is a password, the
9034
// block is readable or writable
9035
// only when unlocked
9036
#define EEPROM_EEPROT_PROT_RONPW \
9037
0x00000002 // If there is no password, the
9038
// block is readable, not writable
9039
9040
//*****************************************************************************
9041
//
9042
// The following are defines for the bit fields in the EEPROM_EEPASS0 register.
9043
//
9044
//*****************************************************************************
9045
#define EEPROM_EEPASS0_PASS_M 0xFFFFFFFF // Password
9046
#define EEPROM_EEPASS0_PASS_S 0
9047
9048
//*****************************************************************************
9049
//
9050
// The following are defines for the bit fields in the EEPROM_EEPASS1 register.
9051
//
9052
//*****************************************************************************
9053
#define EEPROM_EEPASS1_PASS_M 0xFFFFFFFF // Password
9054
#define EEPROM_EEPASS1_PASS_S 0
9055
9056
//*****************************************************************************
9057
//
9058
// The following are defines for the bit fields in the EEPROM_EEPASS2 register.
9059
//
9060
//*****************************************************************************
9061
#define EEPROM_EEPASS2_PASS_M 0xFFFFFFFF // Password
9062
#define EEPROM_EEPASS2_PASS_S 0
9063
9064
//*****************************************************************************
9065
//
9066
// The following are defines for the bit fields in the EEPROM_EEINT register.
9067
//
9068
//*****************************************************************************
9069
#define EEPROM_EEINT_INT 0x00000001 // Interrupt Enable
9070
9071
//*****************************************************************************
9072
//
9073
// The following are defines for the bit fields in the EEPROM_EEHIDE register.
9074
//
9075
//*****************************************************************************
9076
#define EEPROM_EEHIDE_HN_M 0xFFFFFFFE // Hide Block
9077
9078
//*****************************************************************************
9079
//
9080
// The following are defines for the bit fields in the EEPROM_EEDBGME register.
9081
//
9082
//*****************************************************************************
9083
#define EEPROM_EEDBGME_KEY_M 0xFFFF0000 // Erase Key
9084
#define EEPROM_EEDBGME_ME 0x00000001 // Mass Erase
9085
#define EEPROM_EEDBGME_KEY_S 16
9086
9087
//*****************************************************************************
9088
//
9089
// The following are defines for the bit fields in the EEPROM_PP register.
9090
//
9091
//*****************************************************************************
9092
#define EEPROM_PP_SIZE_M 0x0000001F // EEPROM Size
9093
#define EEPROM_PP_SIZE_S 0
9094
9095
//*****************************************************************************
9096
//
9097
// The following are defines for the bit fields in the SYSEXC_RIS register.
9098
//
9099
//*****************************************************************************
9100
#define SYSEXC_RIS_FPIXCRIS 0x00000020 // Floating-Point Inexact Exception
9101
// Raw Interrupt Status
9102
#define SYSEXC_RIS_FPOFCRIS 0x00000010 // Floating-Point Overflow
9103
// Exception Raw Interrupt Status
9104
#define SYSEXC_RIS_FPUFCRIS 0x00000008 // Floating-Point Underflow
9105
// Exception Raw Interrupt Status
9106
#define SYSEXC_RIS_FPIOCRIS 0x00000004 // Floating-Point Invalid Operation
9107
// Raw Interrupt Status
9108
#define SYSEXC_RIS_FPDZCRIS 0x00000002 // Floating-Point Divide By 0
9109
// Exception Raw Interrupt Status
9110
#define SYSEXC_RIS_FPIDCRIS 0x00000001 // Floating-Point Input Denormal
9111
// Exception Raw Interrupt Status
9112
9113
//*****************************************************************************
9114
//
9115
// The following are defines for the bit fields in the SYSEXC_IM register.
9116
//
9117
//*****************************************************************************
9118
#define SYSEXC_IM_FPIXCIM 0x00000020 // Floating-Point Inexact Exception
9119
// Interrupt Mask
9120
#define SYSEXC_IM_FPOFCIM 0x00000010 // Floating-Point Overflow
9121
// Exception Interrupt Mask
9122
#define SYSEXC_IM_FPUFCIM 0x00000008 // Floating-Point Underflow
9123
// Exception Interrupt Mask
9124
#define SYSEXC_IM_FPIOCIM 0x00000004 // Floating-Point Invalid Operation
9125
// Interrupt Mask
9126
#define SYSEXC_IM_FPDZCIM 0x00000002 // Floating-Point Divide By 0
9127
// Exception Interrupt Mask
9128
#define SYSEXC_IM_FPIDCIM 0x00000001 // Floating-Point Input Denormal
9129
// Exception Interrupt Mask
9130
9131
//*****************************************************************************
9132
//
9133
// The following are defines for the bit fields in the SYSEXC_MIS register.
9134
//
9135
//*****************************************************************************
9136
#define SYSEXC_MIS_FPIXCMIS 0x00000020 // Floating-Point Inexact Exception
9137
// Masked Interrupt Status
9138
#define SYSEXC_MIS_FPOFCMIS 0x00000010 // Floating-Point Overflow
9139
// Exception Masked Interrupt
9140
// Status
9141
#define SYSEXC_MIS_FPUFCMIS 0x00000008 // Floating-Point Underflow
9142
// Exception Masked Interrupt
9143
// Status
9144
#define SYSEXC_MIS_FPIOCMIS 0x00000004 // Floating-Point Invalid Operation
9145
// Masked Interrupt Status
9146
#define SYSEXC_MIS_FPDZCMIS 0x00000002 // Floating-Point Divide By 0
9147
// Exception Masked Interrupt
9148
// Status
9149
#define SYSEXC_MIS_FPIDCMIS 0x00000001 // Floating-Point Input Denormal
9150
// Exception Masked Interrupt
9151
// Status
9152
9153
//*****************************************************************************
9154
//
9155
// The following are defines for the bit fields in the SYSEXC_IC register.
9156
//
9157
//*****************************************************************************
9158
#define SYSEXC_IC_FPIXCIC 0x00000020 // Floating-Point Inexact Exception
9159
// Interrupt Clear
9160
#define SYSEXC_IC_FPOFCIC 0x00000010 // Floating-Point Overflow
9161
// Exception Interrupt Clear
9162
#define SYSEXC_IC_FPUFCIC 0x00000008 // Floating-Point Underflow
9163
// Exception Interrupt Clear
9164
#define SYSEXC_IC_FPIOCIC 0x00000004 // Floating-Point Invalid Operation
9165
// Interrupt Clear
9166
#define SYSEXC_IC_FPDZCIC 0x00000002 // Floating-Point Divide By 0
9167
// Exception Interrupt Clear
9168
#define SYSEXC_IC_FPIDCIC 0x00000001 // Floating-Point Input Denormal
9169
// Exception Interrupt Clear
9170
9171
//*****************************************************************************
9172
//
9173
// The following are defines for the bit fields in the FLASH_FMA register.
9174
//
9175
//*****************************************************************************
9176
#define FLASH_FMA_OFFSET_M 0x0001FFFF // Address Offset
9177
#define FLASH_FMA_OFFSET_S 0
9178
9179
//*****************************************************************************
9180
//
9181
// The following are defines for the bit fields in the FLASH_FMD register.
9182
//
9183
//*****************************************************************************
9184
#define FLASH_FMD_DATA_M 0xFFFFFFFF // Data Value
9185
#define FLASH_FMD_DATA_S 0
9186
9187
//*****************************************************************************
9188
//
9189
// The following are defines for the bit fields in the FLASH_FMC register.
9190
//
9191
//*****************************************************************************
9192
#define FLASH_FMC_WRKEY 0xA4420000 // FLASH write key
9193
#define FLASH_FMC_COMT 0x00000008 // Commit Register Value
9194
#define FLASH_FMC_MERASE 0x00000004 // Mass Erase Flash Memory
9195
#define FLASH_FMC_ERASE 0x00000002 // Erase a Page of Flash Memory
9196
#define FLASH_FMC_WRITE 0x00000001 // Write a Word into Flash Memory
9197
9198
//*****************************************************************************
9199
//
9200
// The following are defines for the bit fields in the FLASH_FCRIS register.
9201
//
9202
//*****************************************************************************
9203
#define FLASH_FCRIS_PROGRIS 0x00002000 // Program Verify Error Raw
9204
// Interrupt Status
9205
#define FLASH_FCRIS_ERRIS 0x00000800 // Erase Verify Error Raw Interrupt
9206
// Status
9207
#define FLASH_FCRIS_INVDRIS 0x00000400 // Invalid Data Raw Interrupt
9208
// Status
9209
#define FLASH_FCRIS_VOLTRIS 0x00000200 // Pump Voltage Raw Interrupt
9210
// Status
9211
#define FLASH_FCRIS_ERIS 0x00000004 // EEPROM Raw Interrupt Status
9212
#define FLASH_FCRIS_PRIS 0x00000002 // Programming Raw Interrupt Status
9213
#define FLASH_FCRIS_ARIS 0x00000001 // Access Raw Interrupt Status
9214
9215
//*****************************************************************************
9216
//
9217
// The following are defines for the bit fields in the FLASH_FCIM register.
9218
//
9219
//*****************************************************************************
9220
#define FLASH_FCIM_PROGMASK 0x00002000 // PROGVER Interrupt Mask
9221
#define FLASH_FCIM_ERMASK 0x00000800 // ERVER Interrupt Mask
9222
#define FLASH_FCIM_INVDMASK 0x00000400 // Invalid Data Interrupt Mask
9223
#define FLASH_FCIM_VOLTMASK 0x00000200 // VOLT Interrupt Mask
9224
#define FLASH_FCIM_EMASK 0x00000004 // EEPROM Interrupt Mask
9225
#define FLASH_FCIM_PMASK 0x00000002 // Programming Interrupt Mask
9226
#define FLASH_FCIM_AMASK 0x00000001 // Access Interrupt Mask
9227
9228
//*****************************************************************************
9229
//
9230
// The following are defines for the bit fields in the FLASH_FCMISC register.
9231
//
9232
//*****************************************************************************
9233
#define FLASH_FCMISC_PROGMISC 0x00002000 // PROGVER Masked Interrupt Status
9234
// and Clear
9235
#define FLASH_FCMISC_ERMISC 0x00000800 // ERVER Masked Interrupt Status
9236
// and Clear
9237
#define FLASH_FCMISC_INVDMISC 0x00000400 // Invalid Data Masked Interrupt
9238
// Status and Clear
9239
#define FLASH_FCMISC_VOLTMISC 0x00000200 // VOLT Masked Interrupt Status and
9240
// Clear
9241
#define FLASH_FCMISC_EMISC 0x00000004 // EEPROM Masked Interrupt Status
9242
// and Clear
9243
#define FLASH_FCMISC_PMISC 0x00000002 // Programming Masked Interrupt
9244
// Status and Clear
9245
#define FLASH_FCMISC_AMISC 0x00000001 // Access Masked Interrupt Status
9246
// and Clear
9247
9248
//*****************************************************************************
9249
//
9250
// The following are defines for the bit fields in the FLASH_FMC2 register.
9251
//
9252
//*****************************************************************************
9253
#define FLASH_FMC2_WRBUF 0x00000001 // Buffered Flash Memory Write
9254
9255
//*****************************************************************************
9256
//
9257
// The following are defines for the bit fields in the FLASH_FWBVAL register.
9258
//
9259
//*****************************************************************************
9260
#define FLASH_FWBVAL_FWB_M 0xFFFFFFFF // Flash Memory Write Buffer
9261
9262
//*****************************************************************************
9263
//
9264
// The following are defines for the bit fields in the FLASH_FWBN register.
9265
//
9266
//*****************************************************************************
9267
#define FLASH_FWBN_DATA_M 0xFFFFFFFF // Data
9268
9269
//*****************************************************************************
9270
//
9271
// The following are defines for the bit fields in the FLASH_FSIZE register.
9272
//
9273
//*****************************************************************************
9274
#define FLASH_FSIZE_SIZE_M 0x0000FFFF // Flash Size
9275
#define FLASH_FSIZE_SIZE_128KB 0x0000003F // 128 KB of Flash
9276
9277
//*****************************************************************************
9278
//
9279
// The following are defines for the bit fields in the FLASH_SSIZE register.
9280
//
9281
//*****************************************************************************
9282
#define FLASH_SSIZE_SIZE_M 0x0000FFFF // SRAM Size
9283
#define FLASH_SSIZE_SIZE_32KB 0x0000007F // 32 KB of SRAM
9284
9285
//*****************************************************************************
9286
//
9287
// The following are defines for the bit fields in the FLASH_ROMSWMAP register.
9288
//
9289
//*****************************************************************************
9290
#define FLASH_ROMSWMAP_SAFERTOS 0x00000001 // SafeRTOS Present
9291
9292
//*****************************************************************************
9293
//
9294
// The following are defines for the bit fields in the FLASH_RMCTL register.
9295
//
9296
//*****************************************************************************
9297
#define FLASH_RMCTL_BA 0x00000001 // Boot Alias
9298
9299
//*****************************************************************************
9300
//
9301
// The following are defines for the bit fields in the FLASH_BOOTCFG register.
9302
//
9303
//*****************************************************************************
9304
#define FLASH_BOOTCFG_NW 0x80000000 // Not Written
9305
#define FLASH_BOOTCFG_PORT_M 0x0000E000 // Boot GPIO Port
9306
#define FLASH_BOOTCFG_PORT_A 0x00000000 // Port A
9307
#define FLASH_BOOTCFG_PORT_B 0x00002000 // Port B
9308
#define FLASH_BOOTCFG_PORT_C 0x00004000 // Port C
9309
#define FLASH_BOOTCFG_PORT_D 0x00006000 // Port D
9310
#define FLASH_BOOTCFG_PORT_E 0x00008000 // Port E
9311
#define FLASH_BOOTCFG_PORT_F 0x0000A000 // Port F
9312
#define FLASH_BOOTCFG_PORT_G 0x0000C000 // Port G
9313
#define FLASH_BOOTCFG_PORT_H 0x0000E000 // Port H
9314
#define FLASH_BOOTCFG_PIN_M 0x00001C00 // Boot GPIO Pin
9315
#define FLASH_BOOTCFG_PIN_0 0x00000000 // Pin 0
9316
#define FLASH_BOOTCFG_PIN_1 0x00000400 // Pin 1
9317
#define FLASH_BOOTCFG_PIN_2 0x00000800 // Pin 2
9318
#define FLASH_BOOTCFG_PIN_3 0x00000C00 // Pin 3
9319
#define FLASH_BOOTCFG_PIN_4 0x00001000 // Pin 4
9320
#define FLASH_BOOTCFG_PIN_5 0x00001400 // Pin 5
9321
#define FLASH_BOOTCFG_PIN_6 0x00001800 // Pin 6
9322
#define FLASH_BOOTCFG_PIN_7 0x00001C00 // Pin 7
9323
#define FLASH_BOOTCFG_POL 0x00000200 // Boot GPIO Polarity
9324
#define FLASH_BOOTCFG_EN 0x00000100 // Boot GPIO Enable
9325
#define FLASH_BOOTCFG_KEY 0x00000010 // KEY Select
9326
#define FLASH_BOOTCFG_DBG1 0x00000002 // Debug Control 1
9327
#define FLASH_BOOTCFG_DBG0 0x00000001 // Debug Control 0
9328
9329
//*****************************************************************************
9330
//
9331
// The following are defines for the bit fields in the FLASH_USERREG0 register.
9332
//
9333
//*****************************************************************************
9334
#define FLASH_USERREG0_DATA_M 0xFFFFFFFF // User Data
9335
#define FLASH_USERREG0_DATA_S 0
9336
9337
//*****************************************************************************
9338
//
9339
// The following are defines for the bit fields in the FLASH_USERREG1 register.
9340
//
9341
//*****************************************************************************
9342
#define FLASH_USERREG1_DATA_M 0xFFFFFFFF // User Data
9343
#define FLASH_USERREG1_DATA_S 0
9344
9345
//*****************************************************************************
9346
//
9347
// The following are defines for the bit fields in the FLASH_USERREG2 register.
9348
//
9349
//*****************************************************************************
9350
#define FLASH_USERREG2_DATA_M 0xFFFFFFFF // User Data
9351
#define FLASH_USERREG2_DATA_S 0
9352
9353
//*****************************************************************************
9354
//
9355
// The following are defines for the bit fields in the FLASH_USERREG3 register.
9356
//
9357
//*****************************************************************************
9358
#define FLASH_USERREG3_DATA_M 0xFFFFFFFF // User Data
9359
#define FLASH_USERREG3_DATA_S 0
9360
9361
//*****************************************************************************
9362
//
9363
// The following are defines for the bit fields in the SYSCTL_DID0 register.
9364
//
9365
//*****************************************************************************
9366
#define SYSCTL_DID0_VER_M 0x70000000 // DID0 Version
9367
#define SYSCTL_DID0_VER_1 0x10000000 // Second version of the DID0
9368
// register format.
9369
#define SYSCTL_DID0_CLASS_M 0x00FF0000 // Device Class
9370
#define SYSCTL_DID0_CLASS_TM4C123 \
9371
0x00050000 // Tiva TM4C123x and TM4E123x
9372
// microcontrollers
9373
#define SYSCTL_DID0_MAJ_M 0x0000FF00 // Major Revision
9374
#define SYSCTL_DID0_MAJ_REVA 0x00000000 // Revision A (initial device)
9375
#define SYSCTL_DID0_MAJ_REVB 0x00000100 // Revision B (first base layer
9376
// revision)
9377
#define SYSCTL_DID0_MAJ_REVC 0x00000200 // Revision C (second base layer
9378
// revision)
9379
#define SYSCTL_DID0_MIN_M 0x000000FF // Minor Revision
9380
#define SYSCTL_DID0_MIN_0 0x00000000 // Initial device, or a major
9381
// revision update
9382
#define SYSCTL_DID0_MIN_1 0x00000001 // First metal layer change
9383
#define SYSCTL_DID0_MIN_2 0x00000002 // Second metal layer change
9384
9385
//*****************************************************************************
9386
//
9387
// The following are defines for the bit fields in the SYSCTL_DID1 register.
9388
//
9389
//*****************************************************************************
9390
#define SYSCTL_DID1_VER_M 0xF0000000 // DID1 Version
9391
#define SYSCTL_DID1_VER_1 0x10000000 // fury_ib
9392
#define SYSCTL_DID1_FAM_M 0x0F000000 // Family
9393
#define SYSCTL_DID1_FAM_TIVA 0x00000000 // Tiva family of microcontollers
9394
#define SYSCTL_DID1_PRTNO_M 0x00FF0000 // Part Number
9395
#define SYSCTL_DID1_PRTNO_TM4C123FE6PM \
9396
0x00B00000 // TM4C123FE6PM
9397
#define SYSCTL_DID1_PINCNT_M 0x0000E000 // Package Pin Count
9398
#define SYSCTL_DID1_PINCNT_100 0x00004000 // 100-pin LQFP package
9399
#define SYSCTL_DID1_PINCNT_64 0x00006000 // 64-pin LQFP package
9400
#define SYSCTL_DID1_PINCNT_144 0x00008000 // 144-pin LQFP package
9401
#define SYSCTL_DID1_PINCNT_157 0x0000A000 // 157-pin BGA package
9402
#define SYSCTL_DID1_PINCNT_128 0x0000C000 // 128-pin TQFP package
9403
#define SYSCTL_DID1_TEMP_M 0x000000E0 // Temperature Range
9404
#define SYSCTL_DID1_TEMP_I 0x00000020 // Industrial temperature range
9405
#define SYSCTL_DID1_TEMP_E 0x00000040 // Extended temperature range
9406
#define SYSCTL_DID1_TEMP_IE 0x00000060 // Available in both industrial
9407
// temperature range (-40C to 85C)
9408
// and extended temperature range
9409
// (-40C to 105C) devices. See
9410
#define SYSCTL_DID1_PKG_M 0x00000018 // Package Type
9411
#define SYSCTL_DID1_PKG_QFP 0x00000008 // QFP package
9412
#define SYSCTL_DID1_PKG_BGA 0x00000010 // BGA package
9413
#define SYSCTL_DID1_ROHS 0x00000004 // RoHS-Compliance
9414
#define SYSCTL_DID1_QUAL_M 0x00000003 // Qualification Status
9415
#define SYSCTL_DID1_QUAL_ES 0x00000000 // Engineering Sample (unqualified)
9416
#define SYSCTL_DID1_QUAL_PP 0x00000001 // Pilot Production (unqualified)
9417
#define SYSCTL_DID1_QUAL_FQ 0x00000002 // Fully Qualified
9418
9419
//*****************************************************************************
9420
//
9421
// The following are defines for the bit fields in the SYSCTL_DC0 register.
9422
//
9423
//*****************************************************************************
9424
#define SYSCTL_DC0_SRAMSZ_M 0xFFFF0000 // SRAM Size
9425
#define SYSCTL_DC0_SRAMSZ_2KB 0x00070000 // 2 KB of SRAM
9426
#define SYSCTL_DC0_SRAMSZ_4KB 0x000F0000 // 4 KB of SRAM
9427
#define SYSCTL_DC0_SRAMSZ_6KB 0x00170000 // 6 KB of SRAM
9428
#define SYSCTL_DC0_SRAMSZ_8KB 0x001F0000 // 8 KB of SRAM
9429
#define SYSCTL_DC0_SRAMSZ_12KB 0x002F0000 // 12 KB of SRAM
9430
#define SYSCTL_DC0_SRAMSZ_16KB 0x003F0000 // 16 KB of SRAM
9431
#define SYSCTL_DC0_SRAMSZ_20KB 0x004F0000 // 20 KB of SRAM
9432
#define SYSCTL_DC0_SRAMSZ_24KB 0x005F0000 // 24 KB of SRAM
9433
#define SYSCTL_DC0_SRAMSZ_32KB 0x007F0000 // 32 KB of SRAM
9434
#define SYSCTL_DC0_FLASHSZ_M 0x0000FFFF // Flash Size
9435
#define SYSCTL_DC0_FLASHSZ_8KB 0x00000003 // 8 KB of Flash
9436
#define SYSCTL_DC0_FLASHSZ_16KB 0x00000007 // 16 KB of Flash
9437
#define SYSCTL_DC0_FLASHSZ_32KB 0x0000000F // 32 KB of Flash
9438
#define SYSCTL_DC0_FLASHSZ_64KB 0x0000001F // 64 KB of Flash
9439
#define SYSCTL_DC0_FLASHSZ_96KB 0x0000002F // 96 KB of Flash
9440
#define SYSCTL_DC0_FLASHSZ_128K 0x0000003F // 128 KB of Flash
9441
#define SYSCTL_DC0_FLASHSZ_192K 0x0000005F // 192 KB of Flash
9442
#define SYSCTL_DC0_FLASHSZ_256K 0x0000007F // 256 KB of Flash
9443
9444
//*****************************************************************************
9445
//
9446
// The following are defines for the bit fields in the SYSCTL_DC1 register.
9447
//
9448
//*****************************************************************************
9449
#define SYSCTL_DC1_WDT1 0x10000000 // Watchdog Timer1 Present
9450
#define SYSCTL_DC1_CAN1 0x02000000 // CAN Module 1 Present
9451
#define SYSCTL_DC1_CAN0 0x01000000 // CAN Module 0 Present
9452
#define SYSCTL_DC1_PWM1 0x00200000 // PWM Module 1 Present
9453
#define SYSCTL_DC1_PWM0 0x00100000 // PWM Module 0 Present
9454
#define SYSCTL_DC1_ADC1 0x00020000 // ADC Module 1 Present
9455
#define SYSCTL_DC1_ADC0 0x00010000 // ADC Module 0 Present
9456
#define SYSCTL_DC1_MINSYSDIV_M 0x0000F000 // System Clock Divider
9457
#define SYSCTL_DC1_MINSYSDIV_80 0x00001000 // Specifies an 80-MHz CPU clock
9458
// with a PLL divider of 2.5
9459
#define SYSCTL_DC1_MINSYSDIV_66 0x00002000 // Specifies a 66-MHz CPU clock
9460
// with a PLL divider of 3
9461
#define SYSCTL_DC1_MINSYSDIV_50 0x00003000 // Specifies a 50-MHz CPU clock
9462
// with a PLL divider of 4
9463
#define SYSCTL_DC1_MINSYSDIV_40 0x00004000 // Specifies a 40-MHz CPU clock
9464
// with a PLL divider of 5
9465
#define SYSCTL_DC1_MINSYSDIV_25 0x00007000 // Specifies a 25-MHz clock with a
9466
// PLL divider of 8
9467
#define SYSCTL_DC1_MINSYSDIV_20 0x00009000 // Specifies a 20-MHz clock with a
9468
// PLL divider of 10
9469
#define SYSCTL_DC1_ADC1SPD_M 0x00000C00 // Max ADC1 Speed
9470
#define SYSCTL_DC1_ADC1SPD_125K 0x00000000 // 125K samples/second
9471
#define SYSCTL_DC1_ADC1SPD_250K 0x00000400 // 250K samples/second
9472
#define SYSCTL_DC1_ADC1SPD_500K 0x00000800 // 500K samples/second
9473
#define SYSCTL_DC1_ADC1SPD_1M 0x00000C00 // 1M samples/second
9474
#define SYSCTL_DC1_ADC0SPD_M 0x00000300 // Max ADC0 Speed
9475
#define SYSCTL_DC1_ADC0SPD_125K 0x00000000 // 125K samples/second
9476
#define SYSCTL_DC1_ADC0SPD_250K 0x00000100 // 250K samples/second
9477
#define SYSCTL_DC1_ADC0SPD_500K 0x00000200 // 500K samples/second
9478
#define SYSCTL_DC1_ADC0SPD_1M 0x00000300 // 1M samples/second
9479
#define SYSCTL_DC1_MPU 0x00000080 // MPU Present
9480
#define SYSCTL_DC1_HIB 0x00000040 // Hibernation Module Present
9481
#define SYSCTL_DC1_TEMP 0x00000020 // Temp Sensor Present
9482
#define SYSCTL_DC1_PLL 0x00000010 // PLL Present
9483
#define SYSCTL_DC1_WDT0 0x00000008 // Watchdog Timer 0 Present
9484
#define SYSCTL_DC1_SWO 0x00000004 // SWO Trace Port Present
9485
#define SYSCTL_DC1_SWD 0x00000002 // SWD Present
9486
#define SYSCTL_DC1_JTAG 0x00000001 // JTAG Present
9487
9488
//*****************************************************************************
9489
//
9490
// The following are defines for the bit fields in the SYSCTL_DC2 register.
9491
//
9492
//*****************************************************************************
9493
#define SYSCTL_DC2_EPI0 0x40000000 // EPI Module 0 Present
9494
#define SYSCTL_DC2_I2S0 0x10000000 // I2S Module 0 Present
9495
#define SYSCTL_DC2_COMP2 0x04000000 // Analog Comparator 2 Present
9496
#define SYSCTL_DC2_COMP1 0x02000000 // Analog Comparator 1 Present
9497
#define SYSCTL_DC2_COMP0 0x01000000 // Analog Comparator 0 Present
9498
#define SYSCTL_DC2_TIMER3 0x00080000 // Timer Module 3 Present
9499
#define SYSCTL_DC2_TIMER2 0x00040000 // Timer Module 2 Present
9500
#define SYSCTL_DC2_TIMER1 0x00020000 // Timer Module 1 Present
9501
#define SYSCTL_DC2_TIMER0 0x00010000 // Timer Module 0 Present
9502
#define SYSCTL_DC2_I2C1HS 0x00008000 // I2C Module 1 Speed
9503
#define SYSCTL_DC2_I2C1 0x00004000 // I2C Module 1 Present
9504
#define SYSCTL_DC2_I2C0HS 0x00002000 // I2C Module 0 Speed
9505
#define SYSCTL_DC2_I2C0 0x00001000 // I2C Module 0 Present
9506
#define SYSCTL_DC2_QEI1 0x00000200 // QEI Module 1 Present
9507
#define SYSCTL_DC2_QEI0 0x00000100 // QEI Module 0 Present
9508
#define SYSCTL_DC2_SSI1 0x00000020 // SSI Module 1 Present
9509
#define SYSCTL_DC2_SSI0 0x00000010 // SSI Module 0 Present
9510
#define SYSCTL_DC2_UART2 0x00000004 // UART Module 2 Present
9511
#define SYSCTL_DC2_UART1 0x00000002 // UART Module 1 Present
9512
#define SYSCTL_DC2_UART0 0x00000001 // UART Module 0 Present
9513
9514
//*****************************************************************************
9515
//
9516
// The following are defines for the bit fields in the SYSCTL_DC3 register.
9517
//
9518
//*****************************************************************************
9519
#define SYSCTL_DC3_32KHZ 0x80000000 // 32KHz Input Clock Available
9520
#define SYSCTL_DC3_CCP5 0x20000000 // T2CCP1 Pin Present
9521
#define SYSCTL_DC3_CCP4 0x10000000 // T2CCP0 Pin Present
9522
#define SYSCTL_DC3_CCP3 0x08000000 // T1CCP1 Pin Present
9523
#define SYSCTL_DC3_CCP2 0x04000000 // T1CCP0 Pin Present
9524
#define SYSCTL_DC3_CCP1 0x02000000 // T0CCP1 Pin Present
9525
#define SYSCTL_DC3_CCP0 0x01000000 // T0CCP0 Pin Present
9526
#define SYSCTL_DC3_ADC0AIN7 0x00800000 // ADC Module 0 AIN7 Pin Present
9527
#define SYSCTL_DC3_ADC0AIN6 0x00400000 // ADC Module 0 AIN6 Pin Present
9528
#define SYSCTL_DC3_ADC0AIN5 0x00200000 // ADC Module 0 AIN5 Pin Present
9529
#define SYSCTL_DC3_ADC0AIN4 0x00100000 // ADC Module 0 AIN4 Pin Present
9530
#define SYSCTL_DC3_ADC0AIN3 0x00080000 // ADC Module 0 AIN3 Pin Present
9531
#define SYSCTL_DC3_ADC0AIN2 0x00040000 // ADC Module 0 AIN2 Pin Present
9532
#define SYSCTL_DC3_ADC0AIN1 0x00020000 // ADC Module 0 AIN1 Pin Present
9533
#define SYSCTL_DC3_ADC0AIN0 0x00010000 // ADC Module 0 AIN0 Pin Present
9534
#define SYSCTL_DC3_PWMFAULT 0x00008000 // PWM Fault Pin Present
9535
#define SYSCTL_DC3_C2O 0x00004000 // C2o Pin Present
9536
#define SYSCTL_DC3_C2PLUS 0x00002000 // C2+ Pin Present
9537
#define SYSCTL_DC3_C2MINUS 0x00001000 // C2- Pin Present
9538
#define SYSCTL_DC3_C1O 0x00000800 // C1o Pin Present
9539
#define SYSCTL_DC3_C1PLUS 0x00000400 // C1+ Pin Present
9540
#define SYSCTL_DC3_C1MINUS 0x00000200 // C1- Pin Present
9541
#define SYSCTL_DC3_C0O 0x00000100 // C0o Pin Present
9542
#define SYSCTL_DC3_C0PLUS 0x00000080 // C0+ Pin Present
9543
#define SYSCTL_DC3_C0MINUS 0x00000040 // C0- Pin Present
9544
#define SYSCTL_DC3_PWM5 0x00000020 // PWM5 Pin Present
9545
#define SYSCTL_DC3_PWM4 0x00000010 // PWM4 Pin Present
9546
#define SYSCTL_DC3_PWM3 0x00000008 // PWM3 Pin Present
9547
#define SYSCTL_DC3_PWM2 0x00000004 // PWM2 Pin Present
9548
#define SYSCTL_DC3_PWM1 0x00000002 // PWM1 Pin Present
9549
#define SYSCTL_DC3_PWM0 0x00000001 // PWM0 Pin Present
9550
9551
//*****************************************************************************
9552
//
9553
// The following are defines for the bit fields in the SYSCTL_DC4 register.
9554
//
9555
//*****************************************************************************
9556
#define SYSCTL_DC4_EPHY0 0x40000000 // Ethernet PHY Layer 0 Present
9557
#define SYSCTL_DC4_EMAC0 0x10000000 // Ethernet MAC Layer 0 Present
9558
#define SYSCTL_DC4_E1588 0x01000000 // 1588 Capable
9559
#define SYSCTL_DC4_PICAL 0x00040000 // PIOSC Calibrate
9560
#define SYSCTL_DC4_CCP7 0x00008000 // T3CCP1 Pin Present
9561
#define SYSCTL_DC4_CCP6 0x00004000 // T3CCP0 Pin Present
9562
#define SYSCTL_DC4_UDMA 0x00002000 // Micro-DMA Module Present
9563
#define SYSCTL_DC4_ROM 0x00001000 // Internal Code ROM Present
9564
#define SYSCTL_DC4_GPIOJ 0x00000100 // GPIO Port J Present
9565
#define SYSCTL_DC4_GPIOH 0x00000080 // GPIO Port H Present
9566
#define SYSCTL_DC4_GPIOG 0x00000040 // GPIO Port G Present
9567
#define SYSCTL_DC4_GPIOF 0x00000020 // GPIO Port F Present
9568
#define SYSCTL_DC4_GPIOE 0x00000010 // GPIO Port E Present
9569
#define SYSCTL_DC4_GPIOD 0x00000008 // GPIO Port D Present
9570
#define SYSCTL_DC4_GPIOC 0x00000004 // GPIO Port C Present
9571
#define SYSCTL_DC4_GPIOB 0x00000002 // GPIO Port B Present
9572
#define SYSCTL_DC4_GPIOA 0x00000001 // GPIO Port A Present
9573
9574
//*****************************************************************************
9575
//
9576
// The following are defines for the bit fields in the SYSCTL_DC5 register.
9577
//
9578
//*****************************************************************************
9579
#define SYSCTL_DC5_PWMFAULT3 0x08000000 // PWM Fault 3 Pin Present
9580
#define SYSCTL_DC5_PWMFAULT2 0x04000000 // PWM Fault 2 Pin Present
9581
#define SYSCTL_DC5_PWMFAULT1 0x02000000 // PWM Fault 1 Pin Present
9582
#define SYSCTL_DC5_PWMFAULT0 0x01000000 // PWM Fault 0 Pin Present
9583
#define SYSCTL_DC5_PWMEFLT 0x00200000 // PWM Extended Fault Active
9584
#define SYSCTL_DC5_PWMESYNC 0x00100000 // PWM Extended SYNC Active
9585
#define SYSCTL_DC5_PWM7 0x00000080 // PWM7 Pin Present
9586
#define SYSCTL_DC5_PWM6 0x00000040 // PWM6 Pin Present
9587
#define SYSCTL_DC5_PWM5 0x00000020 // PWM5 Pin Present
9588
#define SYSCTL_DC5_PWM4 0x00000010 // PWM4 Pin Present
9589
#define SYSCTL_DC5_PWM3 0x00000008 // PWM3 Pin Present
9590
#define SYSCTL_DC5_PWM2 0x00000004 // PWM2 Pin Present
9591
#define SYSCTL_DC5_PWM1 0x00000002 // PWM1 Pin Present
9592
#define SYSCTL_DC5_PWM0 0x00000001 // PWM0 Pin Present
9593
9594
//*****************************************************************************
9595
//
9596
// The following are defines for the bit fields in the SYSCTL_DC6 register.
9597
//
9598
//*****************************************************************************
9599
#define SYSCTL_DC6_USB0PHY 0x00000010 // USB Module 0 PHY Present
9600
#define SYSCTL_DC6_USB0_M 0x00000003 // USB Module 0 Present
9601
#define SYSCTL_DC6_USB0_DEV 0x00000001 // USB0 is Device Only
9602
#define SYSCTL_DC6_USB0_HOSTDEV 0x00000002 // USB is Device or Host
9603
#define SYSCTL_DC6_USB0_OTG 0x00000003 // USB0 is OTG
9604
9605
//*****************************************************************************
9606
//
9607
// The following are defines for the bit fields in the SYSCTL_DC7 register.
9608
//
9609
//*****************************************************************************
9610
#define SYSCTL_DC7_DMACH30 0x40000000 // DMA Channel 30
9611
#define SYSCTL_DC7_DMACH29 0x20000000 // DMA Channel 29
9612
#define SYSCTL_DC7_DMACH28 0x10000000 // DMA Channel 28
9613
#define SYSCTL_DC7_DMACH27 0x08000000 // DMA Channel 27
9614
#define SYSCTL_DC7_DMACH26 0x04000000 // DMA Channel 26
9615
#define SYSCTL_DC7_DMACH25 0x02000000 // DMA Channel 25
9616
#define SYSCTL_DC7_DMACH24 0x01000000 // DMA Channel 24
9617
#define SYSCTL_DC7_DMACH23 0x00800000 // DMA Channel 23
9618
#define SYSCTL_DC7_DMACH22 0x00400000 // DMA Channel 22
9619
#define SYSCTL_DC7_DMACH21 0x00200000 // DMA Channel 21
9620
#define SYSCTL_DC7_DMACH20 0x00100000 // DMA Channel 20
9621
#define SYSCTL_DC7_DMACH19 0x00080000 // DMA Channel 19
9622
#define SYSCTL_DC7_DMACH18 0x00040000 // DMA Channel 18
9623
#define SYSCTL_DC7_DMACH17 0x00020000 // DMA Channel 17
9624
#define SYSCTL_DC7_DMACH16 0x00010000 // DMA Channel 16
9625
#define SYSCTL_DC7_DMACH15 0x00008000 // DMA Channel 15
9626
#define SYSCTL_DC7_DMACH14 0x00004000 // DMA Channel 14
9627
#define SYSCTL_DC7_DMACH13 0x00002000 // DMA Channel 13
9628
#define SYSCTL_DC7_DMACH12 0x00001000 // DMA Channel 12
9629
#define SYSCTL_DC7_DMACH11 0x00000800 // DMA Channel 11
9630
#define SYSCTL_DC7_DMACH10 0x00000400 // DMA Channel 10
9631
#define SYSCTL_DC7_DMACH9 0x00000200 // DMA Channel 9
9632
#define SYSCTL_DC7_DMACH8 0x00000100 // DMA Channel 8
9633
#define SYSCTL_DC7_DMACH7 0x00000080 // DMA Channel 7
9634
#define SYSCTL_DC7_DMACH6 0x00000040 // DMA Channel 6
9635
#define SYSCTL_DC7_DMACH5 0x00000020 // DMA Channel 5
9636
#define SYSCTL_DC7_DMACH4 0x00000010 // DMA Channel 4
9637
#define SYSCTL_DC7_DMACH3 0x00000008 // DMA Channel 3
9638
#define SYSCTL_DC7_DMACH2 0x00000004 // DMA Channel 2
9639
#define SYSCTL_DC7_DMACH1 0x00000002 // DMA Channel 1
9640
#define SYSCTL_DC7_DMACH0 0x00000001 // DMA Channel 0
9641
9642
//*****************************************************************************
9643
//
9644
// The following are defines for the bit fields in the SYSCTL_DC8 register.
9645
//
9646
//*****************************************************************************
9647
#define SYSCTL_DC8_ADC1AIN15 0x80000000 // ADC Module 1 AIN15 Pin Present
9648
#define SYSCTL_DC8_ADC1AIN14 0x40000000 // ADC Module 1 AIN14 Pin Present
9649
#define SYSCTL_DC8_ADC1AIN13 0x20000000 // ADC Module 1 AIN13 Pin Present
9650
#define SYSCTL_DC8_ADC1AIN12 0x10000000 // ADC Module 1 AIN12 Pin Present
9651
#define SYSCTL_DC8_ADC1AIN11 0x08000000 // ADC Module 1 AIN11 Pin Present
9652
#define SYSCTL_DC8_ADC1AIN10 0x04000000 // ADC Module 1 AIN10 Pin Present
9653
#define SYSCTL_DC8_ADC1AIN9 0x02000000 // ADC Module 1 AIN9 Pin Present
9654
#define SYSCTL_DC8_ADC1AIN8 0x01000000 // ADC Module 1 AIN8 Pin Present
9655
#define SYSCTL_DC8_ADC1AIN7 0x00800000 // ADC Module 1 AIN7 Pin Present
9656
#define SYSCTL_DC8_ADC1AIN6 0x00400000 // ADC Module 1 AIN6 Pin Present
9657
#define SYSCTL_DC8_ADC1AIN5 0x00200000 // ADC Module 1 AIN5 Pin Present
9658
#define SYSCTL_DC8_ADC1AIN4 0x00100000 // ADC Module 1 AIN4 Pin Present
9659
#define SYSCTL_DC8_ADC1AIN3 0x00080000 // ADC Module 1 AIN3 Pin Present
9660
#define SYSCTL_DC8_ADC1AIN2 0x00040000 // ADC Module 1 AIN2 Pin Present
9661
#define SYSCTL_DC8_ADC1AIN1 0x00020000 // ADC Module 1 AIN1 Pin Present
9662
#define SYSCTL_DC8_ADC1AIN0 0x00010000 // ADC Module 1 AIN0 Pin Present
9663
#define SYSCTL_DC8_ADC0AIN15 0x00008000 // ADC Module 0 AIN15 Pin Present
9664
#define SYSCTL_DC8_ADC0AIN14 0x00004000 // ADC Module 0 AIN14 Pin Present
9665
#define SYSCTL_DC8_ADC0AIN13 0x00002000 // ADC Module 0 AIN13 Pin Present
9666
#define SYSCTL_DC8_ADC0AIN12 0x00001000 // ADC Module 0 AIN12 Pin Present
9667
#define SYSCTL_DC8_ADC0AIN11 0x00000800 // ADC Module 0 AIN11 Pin Present
9668
#define SYSCTL_DC8_ADC0AIN10 0x00000400 // ADC Module 0 AIN10 Pin Present
9669
#define SYSCTL_DC8_ADC0AIN9 0x00000200 // ADC Module 0 AIN9 Pin Present
9670
#define SYSCTL_DC8_ADC0AIN8 0x00000100 // ADC Module 0 AIN8 Pin Present
9671
#define SYSCTL_DC8_ADC0AIN7 0x00000080 // ADC Module 0 AIN7 Pin Present
9672
#define SYSCTL_DC8_ADC0AIN6 0x00000040 // ADC Module 0 AIN6 Pin Present
9673
#define SYSCTL_DC8_ADC0AIN5 0x00000020 // ADC Module 0 AIN5 Pin Present
9674
#define SYSCTL_DC8_ADC0AIN4 0x00000010 // ADC Module 0 AIN4 Pin Present
9675
#define SYSCTL_DC8_ADC0AIN3 0x00000008 // ADC Module 0 AIN3 Pin Present
9676
#define SYSCTL_DC8_ADC0AIN2 0x00000004 // ADC Module 0 AIN2 Pin Present
9677
#define SYSCTL_DC8_ADC0AIN1 0x00000002 // ADC Module 0 AIN1 Pin Present
9678
#define SYSCTL_DC8_ADC0AIN0 0x00000001 // ADC Module 0 AIN0 Pin Present
9679
9680
//*****************************************************************************
9681
//
9682
// The following are defines for the bit fields in the SYSCTL_PBORCTL register.
9683
//
9684
//*****************************************************************************
9685
#define SYSCTL_PBORCTL_BOR0 0x00000004 // VDD under BOR0 Event Action
9686
#define SYSCTL_PBORCTL_BOR1 0x00000002 // VDD under BOR1 Event Action
9687
9688
//*****************************************************************************
9689
//
9690
// The following are defines for the bit fields in the SYSCTL_SRCR0 register.
9691
//
9692
//*****************************************************************************
9693
#define SYSCTL_SRCR0_WDT1 0x10000000 // WDT1 Reset Control
9694
#define SYSCTL_SRCR0_CAN1 0x02000000 // CAN1 Reset Control
9695
#define SYSCTL_SRCR0_CAN0 0x01000000 // CAN0 Reset Control
9696
#define SYSCTL_SRCR0_PWM0 0x00100000 // PWM Reset Control
9697
#define SYSCTL_SRCR0_ADC1 0x00020000 // ADC1 Reset Control
9698
#define SYSCTL_SRCR0_ADC0 0x00010000 // ADC0 Reset Control
9699
#define SYSCTL_SRCR0_WDT0 0x00000008 // WDT0 Reset Control
9700
9701
//*****************************************************************************
9702
//
9703
// The following are defines for the bit fields in the SYSCTL_SRCR1 register.
9704
//
9705
//*****************************************************************************
9706
#define SYSCTL_SRCR1_COMP1 0x02000000 // Analog Comp 1 Reset Control
9707
#define SYSCTL_SRCR1_COMP0 0x01000000 // Analog Comp 0 Reset Control
9708
#define SYSCTL_SRCR1_TIMER3 0x00080000 // Timer 3 Reset Control
9709
#define SYSCTL_SRCR1_TIMER2 0x00040000 // Timer 2 Reset Control
9710
#define SYSCTL_SRCR1_TIMER1 0x00020000 // Timer 1 Reset Control
9711
#define SYSCTL_SRCR1_TIMER0 0x00010000 // Timer 0 Reset Control
9712
#define SYSCTL_SRCR1_I2C1 0x00004000 // I2C1 Reset Control
9713
#define SYSCTL_SRCR1_I2C0 0x00001000 // I2C0 Reset Control
9714
#define SYSCTL_SRCR1_QEI1 0x00000200 // QEI1 Reset Control
9715
#define SYSCTL_SRCR1_QEI0 0x00000100 // QEI0 Reset Control
9716
#define SYSCTL_SRCR1_SSI1 0x00000020 // SSI1 Reset Control
9717
#define SYSCTL_SRCR1_SSI0 0x00000010 // SSI0 Reset Control
9718
#define SYSCTL_SRCR1_UART2 0x00000004 // UART2 Reset Control
9719
#define SYSCTL_SRCR1_UART1 0x00000002 // UART1 Reset Control
9720
#define SYSCTL_SRCR1_UART0 0x00000001 // UART0 Reset Control
9721
9722
//*****************************************************************************
9723
//
9724
// The following are defines for the bit fields in the SYSCTL_SRCR2 register.
9725
//
9726
//*****************************************************************************
9727
#define SYSCTL_SRCR2_USB0 0x00010000 // USB0 Reset Control
9728
#define SYSCTL_SRCR2_UDMA 0x00002000 // Micro-DMA Reset Control
9729
#define SYSCTL_SRCR2_GPIOG 0x00000040 // Port G Reset Control
9730
#define SYSCTL_SRCR2_GPIOF 0x00000020 // Port F Reset Control
9731
#define SYSCTL_SRCR2_GPIOE 0x00000010 // Port E Reset Control
9732
#define SYSCTL_SRCR2_GPIOD 0x00000008 // Port D Reset Control
9733
#define SYSCTL_SRCR2_GPIOC 0x00000004 // Port C Reset Control
9734
#define SYSCTL_SRCR2_GPIOB 0x00000002 // Port B Reset Control
9735
#define SYSCTL_SRCR2_GPIOA 0x00000001 // Port A Reset Control
9736
9737
//*****************************************************************************
9738
//
9739
// The following are defines for the bit fields in the SYSCTL_RIS register.
9740
//
9741
//*****************************************************************************
9742
#define SYSCTL_RIS_BOR0RIS 0x00000800 // VDD under BOR0 Raw Interrupt
9743
// Status
9744
#define SYSCTL_RIS_VDDARIS 0x00000400 // VDDA Power OK Event Raw
9745
// Interrupt Status
9746
#define SYSCTL_RIS_MOSCPUPRIS 0x00000100 // MOSC Power Up Raw Interrupt
9747
// Status
9748
#define SYSCTL_RIS_USBPLLLRIS 0x00000080 // USB PLL Lock Raw Interrupt
9749
// Status
9750
#define SYSCTL_RIS_PLLLRIS 0x00000040 // PLL Lock Raw Interrupt Status
9751
#define SYSCTL_RIS_MOFRIS 0x00000008 // Main Oscillator Failure Raw
9752
// Interrupt Status
9753
#define SYSCTL_RIS_BOR1RIS 0x00000002 // VDD under BOR1 Raw Interrupt
9754
// Status
9755
9756
//*****************************************************************************
9757
//
9758
// The following are defines for the bit fields in the SYSCTL_IMC register.
9759
//
9760
//*****************************************************************************
9761
#define SYSCTL_IMC_BOR0IM 0x00000800 // VDD under BOR0 Interrupt Mask
9762
#define SYSCTL_IMC_VDDAIM 0x00000400 // VDDA Power OK Interrupt Mask
9763
#define SYSCTL_IMC_MOSCPUPIM 0x00000100 // MOSC Power Up Interrupt Mask
9764
#define SYSCTL_IMC_USBPLLLIM 0x00000080 // USB PLL Lock Interrupt Mask
9765
#define SYSCTL_IMC_PLLLIM 0x00000040 // PLL Lock Interrupt Mask
9766
#define SYSCTL_IMC_MOFIM 0x00000008 // Main Oscillator Failure
9767
// Interrupt Mask
9768
#define SYSCTL_IMC_BOR1IM 0x00000002 // VDD under BOR1 Interrupt Mask
9769
9770
//*****************************************************************************
9771
//
9772
// The following are defines for the bit fields in the SYSCTL_MISC register.
9773
//
9774
//*****************************************************************************
9775
#define SYSCTL_MISC_BOR0MIS 0x00000800 // VDD under BOR0 Masked Interrupt
9776
// Status
9777
#define SYSCTL_MISC_VDDAMIS 0x00000400 // VDDA Power OK Masked Interrupt
9778
// Status
9779
#define SYSCTL_MISC_MOSCPUPMIS 0x00000100 // MOSC Power Up Masked Interrupt
9780
// Status
9781
#define SYSCTL_MISC_USBPLLLMIS 0x00000080 // USB PLL Lock Masked Interrupt
9782
// Status
9783
#define SYSCTL_MISC_PLLLMIS 0x00000040 // PLL Lock Masked Interrupt Status
9784
#define SYSCTL_MISC_MOFMIS 0x00000008 // Main Oscillator Failure Masked
9785
// Interrupt Status
9786
#define SYSCTL_MISC_BOR1MIS 0x00000002 // VDD under BOR1 Masked Interrupt
9787
// Status
9788
9789
//*****************************************************************************
9790
//
9791
// The following are defines for the bit fields in the SYSCTL_RESC register.
9792
//
9793
//*****************************************************************************
9794
#define SYSCTL_RESC_MOSCFAIL 0x00010000 // MOSC Failure Reset
9795
#define SYSCTL_RESC_WDT1 0x00000020 // Watchdog Timer 1 Reset
9796
#define SYSCTL_RESC_SW 0x00000010 // Software Reset
9797
#define SYSCTL_RESC_WDT0 0x00000008 // Watchdog Timer 0 Reset
9798
#define SYSCTL_RESC_BOR 0x00000004 // Brown-Out Reset
9799
#define SYSCTL_RESC_POR 0x00000002 // Power-On Reset
9800
#define SYSCTL_RESC_EXT 0x00000001 // External Reset
9801
9802
//*****************************************************************************
9803
//
9804
// The following are defines for the bit fields in the SYSCTL_RCC register.
9805
//
9806
//*****************************************************************************
9807
#define SYSCTL_RCC_ACG 0x08000000 // Auto Clock Gating
9808
#define SYSCTL_RCC_SYSDIV_M 0x07800000 // System Clock Divisor
9809
#define SYSCTL_RCC_USESYSDIV 0x00400000 // Enable System Clock Divider
9810
#define SYSCTL_RCC_USEPWMDIV 0x00100000 // Enable PWM Clock Divisor
9811
#define SYSCTL_RCC_PWMDIV_M 0x000E0000 // PWM Unit Clock Divisor
9812
#define SYSCTL_RCC_PWMDIV_2 0x00000000 // PWM clock /2
9813
#define SYSCTL_RCC_PWMDIV_4 0x00020000 // PWM clock /4
9814
#define SYSCTL_RCC_PWMDIV_8 0x00040000 // PWM clock /8
9815
#define SYSCTL_RCC_PWMDIV_16 0x00060000 // PWM clock /16
9816
#define SYSCTL_RCC_PWMDIV_32 0x00080000 // PWM clock /32
9817
#define SYSCTL_RCC_PWMDIV_64 0x000A0000 // PWM clock /64
9818
#define SYSCTL_RCC_PWRDN 0x00002000 // PLL Power Down
9819
#define SYSCTL_RCC_BYPASS 0x00000800 // PLL Bypass
9820
#define SYSCTL_RCC_XTAL_M 0x000007C0 // Crystal Value
9821
#define SYSCTL_RCC_XTAL_4MHZ 0x00000180 // 4 MHz
9822
#define SYSCTL_RCC_XTAL_4_09MHZ 0x000001C0 // 4.096 MHz
9823
#define SYSCTL_RCC_XTAL_4_91MHZ 0x00000200 // 4.9152 MHz
9824
#define SYSCTL_RCC_XTAL_5MHZ 0x00000240 // 5 MHz
9825
#define SYSCTL_RCC_XTAL_5_12MHZ 0x00000280 // 5.12 MHz
9826
#define SYSCTL_RCC_XTAL_6MHZ 0x000002C0 // 6 MHz
9827
#define SYSCTL_RCC_XTAL_6_14MHZ 0x00000300 // 6.144 MHz
9828
#define SYSCTL_RCC_XTAL_7_37MHZ 0x00000340 // 7.3728 MHz
9829
#define SYSCTL_RCC_XTAL_8MHZ 0x00000380 // 8 MHz
9830
#define SYSCTL_RCC_XTAL_8_19MHZ 0x000003C0 // 8.192 MHz
9831
#define SYSCTL_RCC_XTAL_10MHZ 0x00000400 // 10 MHz
9832
#define SYSCTL_RCC_XTAL_12MHZ 0x00000440 // 12 MHz
9833
#define SYSCTL_RCC_XTAL_12_2MHZ 0x00000480 // 12.288 MHz
9834
#define SYSCTL_RCC_XTAL_13_5MHZ 0x000004C0 // 13.56 MHz
9835
#define SYSCTL_RCC_XTAL_14_3MHZ 0x00000500 // 14.31818 MHz
9836
#define SYSCTL_RCC_XTAL_16MHZ 0x00000540 // 16 MHz
9837
#define SYSCTL_RCC_XTAL_16_3MHZ 0x00000580 // 16.384 MHz
9838
#define SYSCTL_RCC_XTAL_18MHZ 0x000005C0 // 18.0 MHz (USB)
9839
#define SYSCTL_RCC_XTAL_20MHZ 0x00000600 // 20.0 MHz (USB)
9840
#define SYSCTL_RCC_XTAL_24MHZ 0x00000640 // 24.0 MHz (USB)
9841
#define SYSCTL_RCC_XTAL_25MHZ 0x00000680 // 25.0 MHz (USB)
9842
#define SYSCTL_RCC_OSCSRC_M 0x00000030 // Oscillator Source
9843
#define SYSCTL_RCC_OSCSRC_MAIN 0x00000000 // MOSC
9844
#define SYSCTL_RCC_OSCSRC_INT 0x00000010 // IOSC
9845
#define SYSCTL_RCC_OSCSRC_INT4 0x00000020 // IOSC/4
9846
#define SYSCTL_RCC_OSCSRC_30 0x00000030 // LFIOSC
9847
#define SYSCTL_RCC_MOSCDIS 0x00000001 // Main Oscillator Disable
9848
#define SYSCTL_RCC_SYSDIV_S 23
9849
9850
//*****************************************************************************
9851
//
9852
// The following are defines for the bit fields in the SYSCTL_GPIOHBCTL
9853
// register.
9854
//
9855
//*****************************************************************************
9856
#define SYSCTL_GPIOHBCTL_PORTG 0x00000040 // Port G Advanced High-Performance
9857
// Bus
9858
#define SYSCTL_GPIOHBCTL_PORTF 0x00000020 // Port F Advanced High-Performance
9859
// Bus
9860
#define SYSCTL_GPIOHBCTL_PORTE 0x00000010 // Port E Advanced High-Performance
9861
// Bus
9862
#define SYSCTL_GPIOHBCTL_PORTD 0x00000008 // Port D Advanced High-Performance
9863
// Bus
9864
#define SYSCTL_GPIOHBCTL_PORTC 0x00000004 // Port C Advanced High-Performance
9865
// Bus
9866
#define SYSCTL_GPIOHBCTL_PORTB 0x00000002 // Port B Advanced High-Performance
9867
// Bus
9868
#define SYSCTL_GPIOHBCTL_PORTA 0x00000001 // Port A Advanced High-Performance
9869
// Bus
9870
9871
//*****************************************************************************
9872
//
9873
// The following are defines for the bit fields in the SYSCTL_RCC2 register.
9874
//
9875
//*****************************************************************************
9876
#define SYSCTL_RCC2_USERCC2 0x80000000 // Use RCC2
9877
#define SYSCTL_RCC2_DIV400 0x40000000 // Divide PLL as 400 MHz vs. 200
9878
// MHz
9879
#define SYSCTL_RCC2_SYSDIV2_M 0x1F800000 // System Clock Divisor 2
9880
#define SYSCTL_RCC2_SYSDIV2LSB 0x00400000 // Additional LSB for SYSDIV2
9881
#define SYSCTL_RCC2_USBPWRDN 0x00004000 // Power-Down USB PLL
9882
#define SYSCTL_RCC2_PWRDN2 0x00002000 // Power-Down PLL 2
9883
#define SYSCTL_RCC2_BYPASS2 0x00000800 // PLL Bypass 2
9884
#define SYSCTL_RCC2_OSCSRC2_M 0x00000070 // Oscillator Source 2
9885
#define SYSCTL_RCC2_OSCSRC2_MO 0x00000000 // MOSC
9886
#define SYSCTL_RCC2_OSCSRC2_IO 0x00000010 // PIOSC
9887
#define SYSCTL_RCC2_OSCSRC2_IO4 0x00000020 // PIOSC/4
9888
#define SYSCTL_RCC2_OSCSRC2_30 0x00000030 // LFIOSC
9889
#define SYSCTL_RCC2_SYSDIV2_S 23
9890
9891
//*****************************************************************************
9892
//
9893
// The following are defines for the bit fields in the SYSCTL_MOSCCTL register.
9894
//
9895
//*****************************************************************************
9896
#define SYSCTL_MOSCCTL_NOXTAL 0x00000004 // No Crystal Connected
9897
#define SYSCTL_MOSCCTL_MOSCIM 0x00000002 // MOSC Failure Action
9898
#define SYSCTL_MOSCCTL_CVAL 0x00000001 // Clock Validation for MOSC
9899
9900
//*****************************************************************************
9901
//
9902
// The following are defines for the bit fields in the SYSCTL_RCGC0 register.
9903
//
9904
//*****************************************************************************
9905
#define SYSCTL_RCGC0_WDT1 0x10000000 // WDT1 Clock Gating Control
9906
#define SYSCTL_RCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control
9907
#define SYSCTL_RCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control
9908
#define SYSCTL_RCGC0_PWM0 0x00100000 // PWM Clock Gating Control
9909
#define SYSCTL_RCGC0_ADC1 0x00020000 // ADC1 Clock Gating Control
9910
#define SYSCTL_RCGC0_ADC0 0x00010000 // ADC0 Clock Gating Control
9911
#define SYSCTL_RCGC0_ADC1SPD_M 0x00000C00 // ADC1 Sample Speed
9912
#define SYSCTL_RCGC0_ADC1SPD_125K \
9913
0x00000000 // 125K samples/second
9914
#define SYSCTL_RCGC0_ADC1SPD_250K \
9915
0x00000400 // 250K samples/second
9916
#define SYSCTL_RCGC0_ADC1SPD_500K \
9917
0x00000800 // 500K samples/second
9918
#define SYSCTL_RCGC0_ADC1SPD_1M 0x00000C00 // 1M samples/second
9919
#define SYSCTL_RCGC0_ADC0SPD_M 0x00000300 // ADC0 Sample Speed
9920
#define SYSCTL_RCGC0_ADC0SPD_125K \
9921
0x00000000 // 125K samples/second
9922
#define SYSCTL_RCGC0_ADC0SPD_250K \
9923
0x00000100 // 250K samples/second
9924
#define SYSCTL_RCGC0_ADC0SPD_500K \
9925
0x00000200 // 500K samples/second
9926
#define SYSCTL_RCGC0_ADC0SPD_1M 0x00000300 // 1M samples/second
9927
#define SYSCTL_RCGC0_WDT0 0x00000008 // WDT0 Clock Gating Control
9928
9929
//*****************************************************************************
9930
//
9931
// The following are defines for the bit fields in the SYSCTL_RCGC1 register.
9932
//
9933
//*****************************************************************************
9934
#define SYSCTL_RCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock Gating
9935
#define SYSCTL_RCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock Gating
9936
#define SYSCTL_RCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control
9937
#define SYSCTL_RCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control
9938
#define SYSCTL_RCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control
9939
#define SYSCTL_RCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control
9940
#define SYSCTL_RCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control
9941
#define SYSCTL_RCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control
9942
#define SYSCTL_RCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control
9943
#define SYSCTL_RCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control
9944
#define SYSCTL_RCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control
9945
#define SYSCTL_RCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control
9946
#define SYSCTL_RCGC1_UART2 0x00000004 // UART2 Clock Gating Control
9947
#define SYSCTL_RCGC1_UART1 0x00000002 // UART1 Clock Gating Control
9948
#define SYSCTL_RCGC1_UART0 0x00000001 // UART0 Clock Gating Control
9949
9950
//*****************************************************************************
9951
//
9952
// The following are defines for the bit fields in the SYSCTL_RCGC2 register.
9953
//
9954
//*****************************************************************************
9955
#define SYSCTL_RCGC2_USB0 0x00010000 // USB0 Clock Gating Control
9956
#define SYSCTL_RCGC2_UDMA 0x00002000 // Micro-DMA Clock Gating Control
9957
#define SYSCTL_RCGC2_GPIOG 0x00000040 // Port G Clock Gating Control
9958
#define SYSCTL_RCGC2_GPIOF 0x00000020 // Port F Clock Gating Control
9959
#define SYSCTL_RCGC2_GPIOE 0x00000010 // Port E Clock Gating Control
9960
#define SYSCTL_RCGC2_GPIOD 0x00000008 // Port D Clock Gating Control
9961
#define SYSCTL_RCGC2_GPIOC 0x00000004 // Port C Clock Gating Control
9962
#define SYSCTL_RCGC2_GPIOB 0x00000002 // Port B Clock Gating Control
9963
#define SYSCTL_RCGC2_GPIOA 0x00000001 // Port A Clock Gating Control
9964
9965
//*****************************************************************************
9966
//
9967
// The following are defines for the bit fields in the SYSCTL_SCGC0 register.
9968
//
9969
//*****************************************************************************
9970
#define SYSCTL_SCGC0_WDT1 0x10000000 // WDT1 Clock Gating Control
9971
#define SYSCTL_SCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control
9972
#define SYSCTL_SCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control
9973
#define SYSCTL_SCGC0_PWM0 0x00100000 // PWM Clock Gating Control
9974
#define SYSCTL_SCGC0_ADC1 0x00020000 // ADC1 Clock Gating Control
9975
#define SYSCTL_SCGC0_ADC0 0x00010000 // ADC0 Clock Gating Control
9976
#define SYSCTL_SCGC0_WDT0 0x00000008 // WDT0 Clock Gating Control
9977
9978
//*****************************************************************************
9979
//
9980
// The following are defines for the bit fields in the SYSCTL_SCGC1 register.
9981
//
9982
//*****************************************************************************
9983
#define SYSCTL_SCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock Gating
9984
#define SYSCTL_SCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock Gating
9985
#define SYSCTL_SCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control
9986
#define SYSCTL_SCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control
9987
#define SYSCTL_SCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control
9988
#define SYSCTL_SCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control
9989
#define SYSCTL_SCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control
9990
#define SYSCTL_SCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control
9991
#define SYSCTL_SCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control
9992
#define SYSCTL_SCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control
9993
#define SYSCTL_SCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control
9994
#define SYSCTL_SCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control
9995
#define SYSCTL_SCGC1_UART2 0x00000004 // UART2 Clock Gating Control
9996
#define SYSCTL_SCGC1_UART1 0x00000002 // UART1 Clock Gating Control
9997
#define SYSCTL_SCGC1_UART0 0x00000001 // UART0 Clock Gating Control
9998
9999
//*****************************************************************************
10000
//
10001
// The following are defines for the bit fields in the SYSCTL_SCGC2 register.
10002
//
10003
//*****************************************************************************
10004
#define SYSCTL_SCGC2_USB0 0x00010000 // USB0 Clock Gating Control
10005
#define SYSCTL_SCGC2_UDMA 0x00002000 // Micro-DMA Clock Gating Control
10006
#define SYSCTL_SCGC2_GPIOG 0x00000040 // Port G Clock Gating Control
10007
#define SYSCTL_SCGC2_GPIOF 0x00000020 // Port F Clock Gating Control
10008
#define SYSCTL_SCGC2_GPIOE 0x00000010 // Port E Clock Gating Control
10009
#define SYSCTL_SCGC2_GPIOD 0x00000008 // Port D Clock Gating Control
10010
#define SYSCTL_SCGC2_GPIOC 0x00000004 // Port C Clock Gating Control
10011
#define SYSCTL_SCGC2_GPIOB 0x00000002 // Port B Clock Gating Control
10012
#define SYSCTL_SCGC2_GPIOA 0x00000001 // Port A Clock Gating Control
10013
10014
//*****************************************************************************
10015
//
10016
// The following are defines for the bit fields in the SYSCTL_DCGC0 register.
10017
//
10018
//*****************************************************************************
10019
#define SYSCTL_DCGC0_WDT1 0x10000000 // WDT1 Clock Gating Control
10020
#define SYSCTL_DCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control
10021
#define SYSCTL_DCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control
10022
#define SYSCTL_DCGC0_PWM0 0x00100000 // PWM Clock Gating Control
10023
#define SYSCTL_DCGC0_ADC1 0x00020000 // ADC1 Clock Gating Control
10024
#define SYSCTL_DCGC0_ADC0 0x00010000 // ADC0 Clock Gating Control
10025
#define SYSCTL_DCGC0_WDT0 0x00000008 // WDT0 Clock Gating Control
10026
10027
//*****************************************************************************
10028
//
10029
// The following are defines for the bit fields in the SYSCTL_DCGC1 register.
10030
//
10031
//*****************************************************************************
10032
#define SYSCTL_DCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock Gating
10033
#define SYSCTL_DCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock Gating
10034
#define SYSCTL_DCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control
10035
#define SYSCTL_DCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control
10036
#define SYSCTL_DCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control
10037
#define SYSCTL_DCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control
10038
#define SYSCTL_DCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control
10039
#define SYSCTL_DCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control
10040
#define SYSCTL_DCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control
10041
#define SYSCTL_DCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control
10042
#define SYSCTL_DCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control
10043
#define SYSCTL_DCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control
10044
#define SYSCTL_DCGC1_UART2 0x00000004 // UART2 Clock Gating Control
10045
#define SYSCTL_DCGC1_UART1 0x00000002 // UART1 Clock Gating Control
10046
#define SYSCTL_DCGC1_UART0 0x00000001 // UART0 Clock Gating Control
10047
10048
//*****************************************************************************
10049
//
10050
// The following are defines for the bit fields in the SYSCTL_DCGC2 register.
10051
//
10052
//*****************************************************************************
10053
#define SYSCTL_DCGC2_USB0 0x00010000 // USB0 Clock Gating Control
10054
#define SYSCTL_DCGC2_UDMA 0x00002000 // Micro-DMA Clock Gating Control
10055
#define SYSCTL_DCGC2_GPIOG 0x00000040 // Port G Clock Gating Control
10056
#define SYSCTL_DCGC2_GPIOF 0x00000020 // Port F Clock Gating Control
10057
#define SYSCTL_DCGC2_GPIOE 0x00000010 // Port E Clock Gating Control
10058
#define SYSCTL_DCGC2_GPIOD 0x00000008 // Port D Clock Gating Control
10059
#define SYSCTL_DCGC2_GPIOC 0x00000004 // Port C Clock Gating Control
10060
#define SYSCTL_DCGC2_GPIOB 0x00000002 // Port B Clock Gating Control
10061
#define SYSCTL_DCGC2_GPIOA 0x00000001 // Port A Clock Gating Control
10062
10063
//*****************************************************************************
10064
//
10065
// The following are defines for the bit fields in the SYSCTL_DSLPCLKCFG
10066
// register.
10067
//
10068
//*****************************************************************************
10069
#define SYSCTL_DSLPCLKCFG_D_M 0x1F800000 // Divider Field Override
10070
#define SYSCTL_DSLPCLKCFG_O_M 0x00000070 // Clock Source
10071
#define SYSCTL_DSLPCLKCFG_O_IGN 0x00000000 // MOSC
10072
#define SYSCTL_DSLPCLKCFG_O_IO 0x00000010 // PIOSC
10073
#define SYSCTL_DSLPCLKCFG_O_30 0x00000030 // LFIOSC
10074
#define SYSCTL_DSLPCLKCFG_PIOSCPD \
10075
0x00000002 // PIOSC Power Down Request
10076
#define SYSCTL_DSLPCLKCFG_D_S 23
10077
10078
//*****************************************************************************
10079
//
10080
// The following are defines for the bit fields in the SYSCTL_SYSPROP register.
10081
//
10082
//*****************************************************************************
10083
#define SYSCTL_SYSPROP_FPU 0x00000001 // FPU Present
10084
10085
//*****************************************************************************
10086
//
10087
// The following are defines for the bit fields in the SYSCTL_PIOSCCAL
10088
// register.
10089
//
10090
//*****************************************************************************
10091
#define SYSCTL_PIOSCCAL_UTEN 0x80000000 // Use User Trim Value
10092
#define SYSCTL_PIOSCCAL_UPDATE 0x00000100 // Update Trim
10093
#define SYSCTL_PIOSCCAL_UT_M 0x0000007F // User Trim Value
10094
#define SYSCTL_PIOSCCAL_UT_S 0
10095
10096
//*****************************************************************************
10097
//
10098
// The following are defines for the bit fields in the SYSCTL_PLLFREQ0
10099
// register.
10100
//
10101
//*****************************************************************************
10102
#define SYSCTL_PLLFREQ0_MFRAC_M 0x000FFC00 // PLL M Fractional Value
10103
#define SYSCTL_PLLFREQ0_MINT_M 0x000003FF // PLL M Integer Value
10104
#define SYSCTL_PLLFREQ0_MFRAC_S 10
10105
#define SYSCTL_PLLFREQ0_MINT_S 0
10106
10107
//*****************************************************************************
10108
//
10109
// The following are defines for the bit fields in the SYSCTL_PLLFREQ1
10110
// register.
10111
//
10112
//*****************************************************************************
10113
#define SYSCTL_PLLFREQ1_Q_M 0x00001F00 // PLL Q Value
10114
#define SYSCTL_PLLFREQ1_N_M 0x0000001F // PLL N Value
10115
#define SYSCTL_PLLFREQ1_Q_S 8
10116
#define SYSCTL_PLLFREQ1_N_S 0
10117
10118
//*****************************************************************************
10119
//
10120
// The following are defines for the bit fields in the SYSCTL_PLLSTAT register.
10121
//
10122
//*****************************************************************************
10123
#define SYSCTL_PLLSTAT_LOCK 0x00000001 // PLL Lock
10124
10125
//*****************************************************************************
10126
//
10127
// The following are defines for the bit fields in the SYSCTL_SLPPWRCFG
10128
// register.
10129
//
10130
//*****************************************************************************
10131
#define SYSCTL_SLPPWRCFG_FLASHPM_M \
10132
0x00000030 // Flash Power Modes
10133
#define SYSCTL_SLPPWRCFG_FLASHPM_NRM \
10134
0x00000000 // Active Mode
10135
#define SYSCTL_SLPPWRCFG_FLASHPM_SLP \
10136
0x00000020 // Low Power Mode
10137
#define SYSCTL_SLPPWRCFG_SRAMPM_M \
10138
0x00000003 // SRAM Power Modes
10139
#define SYSCTL_SLPPWRCFG_SRAMPM_NRM \
10140
0x00000000 // Active Mode
10141
#define SYSCTL_SLPPWRCFG_SRAMPM_SBY \
10142
0x00000001 // Standby Mode
10143
#define SYSCTL_SLPPWRCFG_SRAMPM_LP \
10144
0x00000003 // Low Power Mode
10145
10146
//*****************************************************************************
10147
//
10148
// The following are defines for the bit fields in the SYSCTL_DSLPPWRCFG
10149
// register.
10150
//
10151
//*****************************************************************************
10152
#define SYSCTL_DSLPPWRCFG_FLASHPM_M \
10153
0x00000030 // Flash Power Modes
10154
#define SYSCTL_DSLPPWRCFG_FLASHPM_NRM \
10155
0x00000000 // Active Mode
10156
#define SYSCTL_DSLPPWRCFG_FLASHPM_SLP \
10157
0x00000020 // Low Power Mode
10158
#define SYSCTL_DSLPPWRCFG_SRAMPM_M \
10159
0x00000003 // SRAM Power Modes
10160
#define SYSCTL_DSLPPWRCFG_SRAMPM_NRM \
10161
0x00000000 // Active Mode
10162
#define SYSCTL_DSLPPWRCFG_SRAMPM_SBY \
10163
0x00000001 // Standby Mode
10164
#define SYSCTL_DSLPPWRCFG_SRAMPM_LP \
10165
0x00000003 // Low Power Mode
10166
10167
//*****************************************************************************
10168
//
10169
// The following are defines for the bit fields in the SYSCTL_DC9 register.
10170
//
10171
//*****************************************************************************
10172
#define SYSCTL_DC9_ADC1DC7 0x00800000 // ADC1 DC7 Present
10173
#define SYSCTL_DC9_ADC1DC6 0x00400000 // ADC1 DC6 Present
10174
#define SYSCTL_DC9_ADC1DC5 0x00200000 // ADC1 DC5 Present
10175
#define SYSCTL_DC9_ADC1DC4 0x00100000 // ADC1 DC4 Present
10176
#define SYSCTL_DC9_ADC1DC3 0x00080000 // ADC1 DC3 Present
10177
#define SYSCTL_DC9_ADC1DC2 0x00040000 // ADC1 DC2 Present
10178
#define SYSCTL_DC9_ADC1DC1 0x00020000 // ADC1 DC1 Present
10179
#define SYSCTL_DC9_ADC1DC0 0x00010000 // ADC1 DC0 Present
10180
#define SYSCTL_DC9_ADC0DC7 0x00000080 // ADC0 DC7 Present
10181
#define SYSCTL_DC9_ADC0DC6 0x00000040 // ADC0 DC6 Present
10182
#define SYSCTL_DC9_ADC0DC5 0x00000020 // ADC0 DC5 Present
10183
#define SYSCTL_DC9_ADC0DC4 0x00000010 // ADC0 DC4 Present
10184
#define SYSCTL_DC9_ADC0DC3 0x00000008 // ADC0 DC3 Present
10185
#define SYSCTL_DC9_ADC0DC2 0x00000004 // ADC0 DC2 Present
10186
#define SYSCTL_DC9_ADC0DC1 0x00000002 // ADC0 DC1 Present
10187
#define SYSCTL_DC9_ADC0DC0 0x00000001 // ADC0 DC0 Present
10188
10189
//*****************************************************************************
10190
//
10191
// The following are defines for the bit fields in the SYSCTL_NVMSTAT register.
10192
//
10193
//*****************************************************************************
10194
#define SYSCTL_NVMSTAT_FWB 0x00000001 // 32 Word Flash Write Buffer
10195
// Available
10196
10197
//*****************************************************************************
10198
//
10199
// The following are defines for the bit fields in the SYSCTL_LDOSPCTL
10200
// register.
10201
//
10202
//*****************************************************************************
10203
#define SYSCTL_LDOSPCTL_VADJEN 0x80000000 // Voltage Adjust Enable
10204
#define SYSCTL_LDOSPCTL_VLDO_M 0x000000FF // LDO Output Voltage
10205
#define SYSCTL_LDOSPCTL_VLDO_0_90V \
10206
0x00000012 // 0.90 V
10207
#define SYSCTL_LDOSPCTL_VLDO_0_95V \
10208
0x00000013 // 0.95 V
10209
#define SYSCTL_LDOSPCTL_VLDO_1_00V \
10210
0x00000014 // 1.00 V
10211
#define SYSCTL_LDOSPCTL_VLDO_1_05V \
10212
0x00000015 // 1.05 V
10213
#define SYSCTL_LDOSPCTL_VLDO_1_10V \
10214
0x00000016 // 1.10 V
10215
#define SYSCTL_LDOSPCTL_VLDO_1_15V \
10216
0x00000017 // 1.15 V
10217
#define SYSCTL_LDOSPCTL_VLDO_1_20V \
10218
0x00000018 // 1.20 V
10219
10220
//*****************************************************************************
10221
//
10222
// The following are defines for the bit fields in the SYSCTL_LDODPCTL
10223
// register.
10224
//
10225
//*****************************************************************************
10226
#define SYSCTL_LDODPCTL_VADJEN 0x80000000 // Voltage Adjust Enable
10227
#define SYSCTL_LDODPCTL_VLDO_M 0x000000FF // LDO Output Voltage
10228
#define SYSCTL_LDODPCTL_VLDO_0_90V \
10229
0x00000012 // 0.90 V
10230
#define SYSCTL_LDODPCTL_VLDO_0_95V \
10231
0x00000013 // 0.95 V
10232
#define SYSCTL_LDODPCTL_VLDO_1_00V \
10233
0x00000014 // 1.00 V
10234
#define SYSCTL_LDODPCTL_VLDO_1_05V \
10235
0x00000015 // 1.05 V
10236
#define SYSCTL_LDODPCTL_VLDO_1_10V \
10237
0x00000016 // 1.10 V
10238
#define SYSCTL_LDODPCTL_VLDO_1_15V \
10239
0x00000017 // 1.15 V
10240
#define SYSCTL_LDODPCTL_VLDO_1_20V \
10241
0x00000018 // 1.20 V
10242
10243
//*****************************************************************************
10244
//
10245
// The following are defines for the bit fields in the SYSCTL_PPWD register.
10246
//
10247
//*****************************************************************************
10248
#define SYSCTL_PPWD_P1 0x00000002 // Watchdog Timer 1 Present
10249
#define SYSCTL_PPWD_P0 0x00000001 // Watchdog Timer 0 Present
10250
10251
//*****************************************************************************
10252
//
10253
// The following are defines for the bit fields in the SYSCTL_PPTIMER register.
10254
//
10255
//*****************************************************************************
10256
#define SYSCTL_PPTIMER_P5 0x00000020 // 16/32-Bit General-Purpose Timer
10257
// 5 Present
10258
#define SYSCTL_PPTIMER_P4 0x00000010 // 16/32-Bit General-Purpose Timer
10259
// 4 Present
10260
#define SYSCTL_PPTIMER_P3 0x00000008 // 16/32-Bit General-Purpose Timer
10261
// 3 Present
10262
#define SYSCTL_PPTIMER_P2 0x00000004 // 16/32-Bit General-Purpose Timer
10263
// 2 Present
10264
#define SYSCTL_PPTIMER_P1 0x00000002 // 16/32-Bit General-Purpose Timer
10265
// 1 Present
10266
#define SYSCTL_PPTIMER_P0 0x00000001 // 16/32-Bit General-Purpose Timer
10267
// 0 Present
10268
10269
//*****************************************************************************
10270
//
10271
// The following are defines for the bit fields in the SYSCTL_PPGPIO register.
10272
//
10273
//*****************************************************************************
10274
#define SYSCTL_PPGPIO_P14 0x00004000 // GPIO Port Q Present
10275
#define SYSCTL_PPGPIO_P13 0x00002000 // GPIO Port P Present
10276
#define SYSCTL_PPGPIO_P12 0x00001000 // GPIO Port N Present
10277
#define SYSCTL_PPGPIO_P11 0x00000800 // GPIO Port M Present
10278
#define SYSCTL_PPGPIO_P10 0x00000400 // GPIO Port L Present
10279
#define SYSCTL_PPGPIO_P9 0x00000200 // GPIO Port K Present
10280
#define SYSCTL_PPGPIO_P8 0x00000100 // GPIO Port J Present
10281
#define SYSCTL_PPGPIO_P7 0x00000080 // GPIO Port H Present
10282
#define SYSCTL_PPGPIO_P6 0x00000040 // GPIO Port G Present
10283
#define SYSCTL_PPGPIO_P5 0x00000020 // GPIO Port F Present
10284
#define SYSCTL_PPGPIO_P4 0x00000010 // GPIO Port E Present
10285
#define SYSCTL_PPGPIO_P3 0x00000008 // GPIO Port D Present
10286
#define SYSCTL_PPGPIO_P2 0x00000004 // GPIO Port C Present
10287
#define SYSCTL_PPGPIO_P1 0x00000002 // GPIO Port B Present
10288
#define SYSCTL_PPGPIO_P0 0x00000001 // GPIO Port A Present
10289
10290
//*****************************************************************************
10291
//
10292
// The following are defines for the bit fields in the SYSCTL_PPDMA register.
10293
//
10294
//*****************************************************************************
10295
#define SYSCTL_PPDMA_P0 0x00000001 // uDMA Module Present
10296
10297
//*****************************************************************************
10298
//
10299
// The following are defines for the bit fields in the SYSCTL_PPHIB register.
10300
//
10301
//*****************************************************************************
10302
#define SYSCTL_PPHIB_P0 0x00000001 // Hibernation Module Present
10303
10304
//*****************************************************************************
10305
//
10306
// The following are defines for the bit fields in the SYSCTL_PPUART register.
10307
//
10308
//*****************************************************************************
10309
#define SYSCTL_PPUART_P7 0x00000080 // UART Module 7 Present
10310
#define SYSCTL_PPUART_P6 0x00000040 // UART Module 6 Present
10311
#define SYSCTL_PPUART_P5 0x00000020 // UART Module 5 Present
10312
#define SYSCTL_PPUART_P4 0x00000010 // UART Module 4 Present
10313
#define SYSCTL_PPUART_P3 0x00000008 // UART Module 3 Present
10314
#define SYSCTL_PPUART_P2 0x00000004 // UART Module 2 Present
10315
#define SYSCTL_PPUART_P1 0x00000002 // UART Module 1 Present
10316
#define SYSCTL_PPUART_P0 0x00000001 // UART Module 0 Present
10317
10318
//*****************************************************************************
10319
//
10320
// The following are defines for the bit fields in the SYSCTL_PPSSI register.
10321
//
10322
//*****************************************************************************
10323
#define SYSCTL_PPSSI_P3 0x00000008 // SSI Module 3 Present
10324
#define SYSCTL_PPSSI_P2 0x00000004 // SSI Module 2 Present
10325
#define SYSCTL_PPSSI_P1 0x00000002 // SSI Module 1 Present
10326
#define SYSCTL_PPSSI_P0 0x00000001 // SSI Module 0 Present
10327
10328
//*****************************************************************************
10329
//
10330
// The following are defines for the bit fields in the SYSCTL_PPI2C register.
10331
//
10332
//*****************************************************************************
10333
#define SYSCTL_PPI2C_P5 0x00000020 // I2C Module 5 Present
10334
#define SYSCTL_PPI2C_P4 0x00000010 // I2C Module 4 Present
10335
#define SYSCTL_PPI2C_P3 0x00000008 // I2C Module 3 Present
10336
#define SYSCTL_PPI2C_P2 0x00000004 // I2C Module 2 Present
10337
#define SYSCTL_PPI2C_P1 0x00000002 // I2C Module 1 Present
10338
#define SYSCTL_PPI2C_P0 0x00000001 // I2C Module 0 Present
10339
10340
//*****************************************************************************
10341
//
10342
// The following are defines for the bit fields in the SYSCTL_PPUSB register.
10343
//
10344
//*****************************************************************************
10345
#define SYSCTL_PPUSB_P0 0x00000001 // USB Module Present
10346
10347
//*****************************************************************************
10348
//
10349
// The following are defines for the bit fields in the SYSCTL_PPCAN register.
10350
//
10351
//*****************************************************************************
10352
#define SYSCTL_PPCAN_P1 0x00000002 // CAN Module 1 Present
10353
#define SYSCTL_PPCAN_P0 0x00000001 // CAN Module 0 Present
10354
10355
//*****************************************************************************
10356
//
10357
// The following are defines for the bit fields in the SYSCTL_PPADC register.
10358
//
10359
//*****************************************************************************
10360
#define SYSCTL_PPADC_P1 0x00000002 // ADC Module 1 Present
10361
#define SYSCTL_PPADC_P0 0x00000001 // ADC Module 0 Present
10362
10363
//*****************************************************************************
10364
//
10365
// The following are defines for the bit fields in the SYSCTL_PPACMP register.
10366
//
10367
//*****************************************************************************
10368
#define SYSCTL_PPACMP_P0 0x00000001 // Analog Comparator Module Present
10369
10370
//*****************************************************************************
10371
//
10372
// The following are defines for the bit fields in the SYSCTL_PPPWM register.
10373
//
10374
//*****************************************************************************
10375
#define SYSCTL_PPPWM_P1 0x00000002 // PWM Module 1 Present
10376
#define SYSCTL_PPPWM_P0 0x00000001 // PWM Module 0 Present
10377
10378
//*****************************************************************************
10379
//
10380
// The following are defines for the bit fields in the SYSCTL_PPQEI register.
10381
//
10382
//*****************************************************************************
10383
#define SYSCTL_PPQEI_P1 0x00000002 // QEI Module 1 Present
10384
#define SYSCTL_PPQEI_P0 0x00000001 // QEI Module 0 Present
10385
10386
//*****************************************************************************
10387
//
10388
// The following are defines for the bit fields in the SYSCTL_PPEEPROM
10389
// register.
10390
//
10391
//*****************************************************************************
10392
#define SYSCTL_PPEEPROM_P0 0x00000001 // EEPROM Module Present
10393
10394
//*****************************************************************************
10395
//
10396
// The following are defines for the bit fields in the SYSCTL_PPWTIMER
10397
// register.
10398
//
10399
//*****************************************************************************
10400
#define SYSCTL_PPWTIMER_P5 0x00000020 // 32/64-Bit Wide General-Purpose
10401
// Timer 5 Present
10402
#define SYSCTL_PPWTIMER_P4 0x00000010 // 32/64-Bit Wide General-Purpose
10403
// Timer 4 Present
10404
#define SYSCTL_PPWTIMER_P3 0x00000008 // 32/64-Bit Wide General-Purpose
10405
// Timer 3 Present
10406
#define SYSCTL_PPWTIMER_P2 0x00000004 // 32/64-Bit Wide General-Purpose
10407
// Timer 2 Present
10408
#define SYSCTL_PPWTIMER_P1 0x00000002 // 32/64-Bit Wide General-Purpose
10409
// Timer 1 Present
10410
#define SYSCTL_PPWTIMER_P0 0x00000001 // 32/64-Bit Wide General-Purpose
10411
// Timer 0 Present
10412
10413
//*****************************************************************************
10414
//
10415
// The following are defines for the bit fields in the SYSCTL_SRWD register.
10416
//
10417
//*****************************************************************************
10418
#define SYSCTL_SRWD_R1 0x00000002 // Watchdog Timer 1 Software Reset
10419
#define SYSCTL_SRWD_R0 0x00000001 // Watchdog Timer 0 Software Reset
10420
10421
//*****************************************************************************
10422
//
10423
// The following are defines for the bit fields in the SYSCTL_SRTIMER register.
10424
//
10425
//*****************************************************************************
10426
#define SYSCTL_SRTIMER_R5 0x00000020 // 16/32-Bit General-Purpose Timer
10427
// 5 Software Reset
10428
#define SYSCTL_SRTIMER_R4 0x00000010 // 16/32-Bit General-Purpose Timer
10429
// 4 Software Reset
10430
#define SYSCTL_SRTIMER_R3 0x00000008 // 16/32-Bit General-Purpose Timer
10431
// 3 Software Reset
10432
#define SYSCTL_SRTIMER_R2 0x00000004 // 16/32-Bit General-Purpose Timer
10433
// 2 Software Reset
10434
#define SYSCTL_SRTIMER_R1 0x00000002 // 16/32-Bit General-Purpose Timer
10435
// 1 Software Reset
10436
#define SYSCTL_SRTIMER_R0 0x00000001 // 16/32-Bit General-Purpose Timer
10437
// 0 Software Reset
10438
10439
//*****************************************************************************
10440
//
10441
// The following are defines for the bit fields in the SYSCTL_SRGPIO register.
10442
//
10443
//*****************************************************************************
10444
#define SYSCTL_SRGPIO_R6 0x00000040 // GPIO Port G Software Reset
10445
#define SYSCTL_SRGPIO_R5 0x00000020 // GPIO Port F Software Reset
10446
#define SYSCTL_SRGPIO_R4 0x00000010 // GPIO Port E Software Reset
10447
#define SYSCTL_SRGPIO_R3 0x00000008 // GPIO Port D Software Reset
10448
#define SYSCTL_SRGPIO_R2 0x00000004 // GPIO Port C Software Reset
10449
#define SYSCTL_SRGPIO_R1 0x00000002 // GPIO Port B Software Reset
10450
#define SYSCTL_SRGPIO_R0 0x00000001 // GPIO Port A Software Reset
10451
10452
//*****************************************************************************
10453
//
10454
// The following are defines for the bit fields in the SYSCTL_SRDMA register.
10455
//
10456
//*****************************************************************************
10457
#define SYSCTL_SRDMA_R0 0x00000001 // uDMA Module Software Reset
10458
10459
//*****************************************************************************
10460
//
10461
// The following are defines for the bit fields in the SYSCTL_SRUART register.
10462
//
10463
//*****************************************************************************
10464
#define SYSCTL_SRUART_R7 0x00000080 // UART Module 7 Software Reset
10465
#define SYSCTL_SRUART_R6 0x00000040 // UART Module 6 Software Reset
10466
#define SYSCTL_SRUART_R5 0x00000020 // UART Module 5 Software Reset
10467
#define SYSCTL_SRUART_R4 0x00000010 // UART Module 4 Software Reset
10468
#define SYSCTL_SRUART_R3 0x00000008 // UART Module 3 Software Reset
10469
#define SYSCTL_SRUART_R2 0x00000004 // UART Module 2 Software Reset
10470
#define SYSCTL_SRUART_R1 0x00000002 // UART Module 1 Software Reset
10471
#define SYSCTL_SRUART_R0 0x00000001 // UART Module 0 Software Reset
10472
10473
//*****************************************************************************
10474
//
10475
// The following are defines for the bit fields in the SYSCTL_SRSSI register.
10476
//
10477
//*****************************************************************************
10478
#define SYSCTL_SRSSI_R3 0x00000008 // SSI Module 3 Software Reset
10479
#define SYSCTL_SRSSI_R2 0x00000004 // SSI Module 2 Software Reset
10480
#define SYSCTL_SRSSI_R1 0x00000002 // SSI Module 1 Software Reset
10481
#define SYSCTL_SRSSI_R0 0x00000001 // SSI Module 0 Software Reset
10482
10483
//*****************************************************************************
10484
//
10485
// The following are defines for the bit fields in the SYSCTL_SRI2C register.
10486
//
10487
//*****************************************************************************
10488
#define SYSCTL_SRI2C_R5 0x00000020 // I2C Module 5 Software Reset
10489
#define SYSCTL_SRI2C_R4 0x00000010 // I2C Module 4 Software Reset
10490
#define SYSCTL_SRI2C_R3 0x00000008 // I2C Module 3 Software Reset
10491
#define SYSCTL_SRI2C_R2 0x00000004 // I2C Module 2 Software Reset
10492
#define SYSCTL_SRI2C_R1 0x00000002 // I2C Module 1 Software Reset
10493
#define SYSCTL_SRI2C_R0 0x00000001 // I2C Module 0 Software Reset
10494
10495
//*****************************************************************************
10496
//
10497
// The following are defines for the bit fields in the SYSCTL_SRUSB register.
10498
//
10499
//*****************************************************************************
10500
#define SYSCTL_SRUSB_R0 0x00000001 // USB Module Software Reset
10501
10502
//*****************************************************************************
10503
//
10504
// The following are defines for the bit fields in the SYSCTL_SRCAN register.
10505
//
10506
//*****************************************************************************
10507
#define SYSCTL_SRCAN_R1 0x00000002 // CAN Module 1 Software Reset
10508
#define SYSCTL_SRCAN_R0 0x00000001 // CAN Module 0 Software Reset
10509
10510
//*****************************************************************************
10511
//
10512
// The following are defines for the bit fields in the SYSCTL_SRADC register.
10513
//
10514
//*****************************************************************************
10515
#define SYSCTL_SRADC_R1 0x00000002 // ADC Module 1 Software Reset
10516
#define SYSCTL_SRADC_R0 0x00000001 // ADC Module 0 Software Reset
10517
10518
//*****************************************************************************
10519
//
10520
// The following are defines for the bit fields in the SYSCTL_SRACMP register.
10521
//
10522
//*****************************************************************************
10523
#define SYSCTL_SRACMP_R0 0x00000001 // Analog Comparator Module 0
10524
// Software Reset
10525
10526
//*****************************************************************************
10527
//
10528
// The following are defines for the bit fields in the SYSCTL_SRPWM register.
10529
//
10530
//*****************************************************************************
10531
#define SYSCTL_SRPWM_R1 0x00000002 // PWM Module 1 Software Reset
10532
#define SYSCTL_SRPWM_R0 0x00000001 // PWM Module 0 Software Reset
10533
10534
//*****************************************************************************
10535
//
10536
// The following are defines for the bit fields in the SYSCTL_SRQEI register.
10537
//
10538
//*****************************************************************************
10539
#define SYSCTL_SRQEI_R1 0x00000002 // QEI Module 1 Software Reset
10540
#define SYSCTL_SRQEI_R0 0x00000001 // QEI Module 0 Software Reset
10541
10542
//*****************************************************************************
10543
//
10544
// The following are defines for the bit fields in the SYSCTL_SREEPROM
10545
// register.
10546
//
10547
//*****************************************************************************
10548
#define SYSCTL_SREEPROM_R0 0x00000001 // EEPROM Module Software Reset
10549
10550
//*****************************************************************************
10551
//
10552
// The following are defines for the bit fields in the SYSCTL_SRWTIMER
10553
// register.
10554
//
10555
//*****************************************************************************
10556
#define SYSCTL_SRWTIMER_R5 0x00000020 // 32/64-Bit Wide General-Purpose
10557
// Timer 5 Software Reset
10558
#define SYSCTL_SRWTIMER_R4 0x00000010 // 32/64-Bit Wide General-Purpose
10559
// Timer 4 Software Reset
10560
#define SYSCTL_SRWTIMER_R3 0x00000008 // 32/64-Bit Wide General-Purpose
10561
// Timer 3 Software Reset
10562
#define SYSCTL_SRWTIMER_R2 0x00000004 // 32/64-Bit Wide General-Purpose
10563
// Timer 2 Software Reset
10564
#define SYSCTL_SRWTIMER_R1 0x00000002 // 32/64-Bit Wide General-Purpose
10565
// Timer 1 Software Reset
10566
#define SYSCTL_SRWTIMER_R0 0x00000001 // 32/64-Bit Wide General-Purpose
10567
// Timer 0 Software Reset
10568
10569
//*****************************************************************************
10570
//
10571
// The following are defines for the bit fields in the SYSCTL_RCGCWD register.
10572
//
10573
//*****************************************************************************
10574
#define SYSCTL_RCGCWD_R1 0x00000002 // Watchdog Timer 1 Run Mode Clock
10575
// Gating Control
10576
#define SYSCTL_RCGCWD_R0 0x00000001 // Watchdog Timer 0 Run Mode Clock
10577
// Gating Control
10578
10579
//*****************************************************************************
10580
//
10581
// The following are defines for the bit fields in the SYSCTL_RCGCTIMER
10582
// register.
10583
//
10584
//*****************************************************************************
10585
#define SYSCTL_RCGCTIMER_R5 0x00000020 // 16/32-Bit General-Purpose Timer
10586
// 5 Run Mode Clock Gating Control
10587
#define SYSCTL_RCGCTIMER_R4 0x00000010 // 16/32-Bit General-Purpose Timer
10588
// 4 Run Mode Clock Gating Control
10589
#define SYSCTL_RCGCTIMER_R3 0x00000008 // 16/32-Bit General-Purpose Timer
10590
// 3 Run Mode Clock Gating Control
10591
#define SYSCTL_RCGCTIMER_R2 0x00000004 // 16/32-Bit General-Purpose Timer
10592
// 2 Run Mode Clock Gating Control
10593
#define SYSCTL_RCGCTIMER_R1 0x00000002 // 16/32-Bit General-Purpose Timer
10594
// 1 Run Mode Clock Gating Control
10595
#define SYSCTL_RCGCTIMER_R0 0x00000001 // 16/32-Bit General-Purpose Timer
10596
// 0 Run Mode Clock Gating Control
10597
10598
//*****************************************************************************
10599
//
10600
// The following are defines for the bit fields in the SYSCTL_RCGCGPIO
10601
// register.
10602
//
10603
//*****************************************************************************
10604
#define SYSCTL_RCGCGPIO_R6 0x00000040 // GPIO Port G Run Mode Clock
10605
// Gating Control
10606
#define SYSCTL_RCGCGPIO_R5 0x00000020 // GPIO Port F Run Mode Clock
10607
// Gating Control
10608
#define SYSCTL_RCGCGPIO_R4 0x00000010 // GPIO Port E Run Mode Clock
10609
// Gating Control
10610
#define SYSCTL_RCGCGPIO_R3 0x00000008 // GPIO Port D Run Mode Clock
10611
// Gating Control
10612
#define SYSCTL_RCGCGPIO_R2 0x00000004 // GPIO Port C Run Mode Clock
10613
// Gating Control
10614
#define SYSCTL_RCGCGPIO_R1 0x00000002 // GPIO Port B Run Mode Clock
10615
// Gating Control
10616
#define SYSCTL_RCGCGPIO_R0 0x00000001 // GPIO Port A Run Mode Clock
10617
// Gating Control
10618
10619
//*****************************************************************************
10620
//
10621
// The following are defines for the bit fields in the SYSCTL_RCGCDMA register.
10622
//
10623
//*****************************************************************************
10624
#define SYSCTL_RCGCDMA_R0 0x00000001 // uDMA Module Run Mode Clock
10625
// Gating Control
10626
10627
//*****************************************************************************
10628
//
10629
// The following are defines for the bit fields in the SYSCTL_RCGCUART
10630
// register.
10631
//
10632
//*****************************************************************************
10633
#define SYSCTL_RCGCUART_R7 0x00000080 // UART Module 7 Run Mode Clock
10634
// Gating Control
10635
#define SYSCTL_RCGCUART_R6 0x00000040 // UART Module 6 Run Mode Clock
10636
// Gating Control
10637
#define SYSCTL_RCGCUART_R5 0x00000020 // UART Module 5 Run Mode Clock
10638
// Gating Control
10639
#define SYSCTL_RCGCUART_R4 0x00000010 // UART Module 4 Run Mode Clock
10640
// Gating Control
10641
#define SYSCTL_RCGCUART_R3 0x00000008 // UART Module 3 Run Mode Clock
10642
// Gating Control
10643
#define SYSCTL_RCGCUART_R2 0x00000004 // UART Module 2 Run Mode Clock
10644
// Gating Control
10645
#define SYSCTL_RCGCUART_R1 0x00000002 // UART Module 1 Run Mode Clock
10646
// Gating Control
10647
#define SYSCTL_RCGCUART_R0 0x00000001 // UART Module 0 Run Mode Clock
10648
// Gating Control
10649
10650
//*****************************************************************************
10651
//
10652
// The following are defines for the bit fields in the SYSCTL_RCGCSSI register.
10653
//
10654
//*****************************************************************************
10655
#define SYSCTL_RCGCSSI_R3 0x00000008 // SSI Module 3 Run Mode Clock
10656
// Gating Control
10657
#define SYSCTL_RCGCSSI_R2 0x00000004 // SSI Module 2 Run Mode Clock
10658
// Gating Control
10659
#define SYSCTL_RCGCSSI_R1 0x00000002 // SSI Module 1 Run Mode Clock
10660
// Gating Control
10661
#define SYSCTL_RCGCSSI_R0 0x00000001 // SSI Module 0 Run Mode Clock
10662
// Gating Control
10663
10664
//*****************************************************************************
10665
//
10666
// The following are defines for the bit fields in the SYSCTL_RCGCI2C register.
10667
//
10668
//*****************************************************************************
10669
#define SYSCTL_RCGCI2C_R5 0x00000020 // I2C Module 5 Run Mode Clock
10670
// Gating Control
10671
#define SYSCTL_RCGCI2C_R4 0x00000010 // I2C Module 4 Run Mode Clock
10672
// Gating Control
10673
#define SYSCTL_RCGCI2C_R3 0x00000008 // I2C Module 3 Run Mode Clock
10674
// Gating Control
10675
#define SYSCTL_RCGCI2C_R2 0x00000004 // I2C Module 2 Run Mode Clock
10676
// Gating Control
10677
#define SYSCTL_RCGCI2C_R1 0x00000002 // I2C Module 1 Run Mode Clock
10678
// Gating Control
10679
#define SYSCTL_RCGCI2C_R0 0x00000001 // I2C Module 0 Run Mode Clock
10680
// Gating Control
10681
10682
//*****************************************************************************
10683
//
10684
// The following are defines for the bit fields in the SYSCTL_RCGCUSB register.
10685
//
10686
//*****************************************************************************
10687
#define SYSCTL_RCGCUSB_R0 0x00000001 // USB Module Run Mode Clock Gating
10688
// Control
10689
10690
//*****************************************************************************
10691
//
10692
// The following are defines for the bit fields in the SYSCTL_RCGCCAN register.
10693
//
10694
//*****************************************************************************
10695
#define SYSCTL_RCGCCAN_R1 0x00000002 // CAN Module 1 Run Mode Clock
10696
// Gating Control
10697
#define SYSCTL_RCGCCAN_R0 0x00000001 // CAN Module 0 Run Mode Clock
10698
// Gating Control
10699
10700
//*****************************************************************************
10701
//
10702
// The following are defines for the bit fields in the SYSCTL_RCGCADC register.
10703
//
10704
//*****************************************************************************
10705
#define SYSCTL_RCGCADC_R1 0x00000002 // ADC Module 1 Run Mode Clock
10706
// Gating Control
10707
#define SYSCTL_RCGCADC_R0 0x00000001 // ADC Module 0 Run Mode Clock
10708
// Gating Control
10709
10710
//*****************************************************************************
10711
//
10712
// The following are defines for the bit fields in the SYSCTL_RCGCACMP
10713
// register.
10714
//
10715
//*****************************************************************************
10716
#define SYSCTL_RCGCACMP_R0 0x00000001 // Analog Comparator Module 0 Run
10717
// Mode Clock Gating Control
10718
10719
//*****************************************************************************
10720
//
10721
// The following are defines for the bit fields in the SYSCTL_RCGCPWM register.
10722
//
10723
//*****************************************************************************
10724
#define SYSCTL_RCGCPWM_R1 0x00000002 // PWM Module 1 Run Mode Clock
10725
// Gating Control
10726
#define SYSCTL_RCGCPWM_R0 0x00000001 // PWM Module 0 Run Mode Clock
10727
// Gating Control
10728
10729
//*****************************************************************************
10730
//
10731
// The following are defines for the bit fields in the SYSCTL_RCGCQEI register.
10732
//
10733
//*****************************************************************************
10734
#define SYSCTL_RCGCQEI_R1 0x00000002 // QEI Module 1 Run Mode Clock
10735
// Gating Control
10736
#define SYSCTL_RCGCQEI_R0 0x00000001 // QEI Module 0 Run Mode Clock
10737
// Gating Control
10738
10739
//*****************************************************************************
10740
//
10741
// The following are defines for the bit fields in the SYSCTL_RCGCEEPROM
10742
// register.
10743
//
10744
//*****************************************************************************
10745
#define SYSCTL_RCGCEEPROM_R0 0x00000001 // EEPROM Module Run Mode Clock
10746
// Gating Control
10747
10748
//*****************************************************************************
10749
//
10750
// The following are defines for the bit fields in the SYSCTL_RCGCWTIMER
10751
// register.
10752
//
10753
//*****************************************************************************
10754
#define SYSCTL_RCGCWTIMER_R5 0x00000020 // 32/64-Bit Wide General-Purpose
10755
// Timer 5 Run Mode Clock Gating
10756
// Control
10757
#define SYSCTL_RCGCWTIMER_R4 0x00000010 // 32/64-Bit Wide General-Purpose
10758
// Timer 4 Run Mode Clock Gating
10759
// Control
10760
#define SYSCTL_RCGCWTIMER_R3 0x00000008 // 32/64-Bit Wide General-Purpose
10761
// Timer 3 Run Mode Clock Gating
10762
// Control
10763
#define SYSCTL_RCGCWTIMER_R2 0x00000004 // 32/64-Bit Wide General-Purpose
10764
// Timer 2 Run Mode Clock Gating
10765
// Control
10766
#define SYSCTL_RCGCWTIMER_R1 0x00000002 // 32/64-Bit Wide General-Purpose
10767
// Timer 1 Run Mode Clock Gating
10768
// Control
10769
#define SYSCTL_RCGCWTIMER_R0 0x00000001 // 32/64-Bit Wide General-Purpose
10770
// Timer 0 Run Mode Clock Gating
10771
// Control
10772
10773
//*****************************************************************************
10774
//
10775
// The following are defines for the bit fields in the SYSCTL_SCGCWD register.
10776
//
10777
//*****************************************************************************
10778
#define SYSCTL_SCGCWD_S1 0x00000002 // Watchdog Timer 1 Sleep Mode
10779
// Clock Gating Control
10780
#define SYSCTL_SCGCWD_S0 0x00000001 // Watchdog Timer 0 Sleep Mode
10781
// Clock Gating Control
10782
10783
//*****************************************************************************
10784
//
10785
// The following are defines for the bit fields in the SYSCTL_SCGCTIMER
10786
// register.
10787
//
10788
//*****************************************************************************
10789
#define SYSCTL_SCGCTIMER_S5 0x00000020 // 16/32-Bit General-Purpose Timer
10790
// 5 Sleep Mode Clock Gating
10791
// Control
10792
#define SYSCTL_SCGCTIMER_S4 0x00000010 // 16/32-Bit General-Purpose Timer
10793
// 4 Sleep Mode Clock Gating
10794
// Control
10795
#define SYSCTL_SCGCTIMER_S3 0x00000008 // 16/32-Bit General-Purpose Timer
10796
// 3 Sleep Mode Clock Gating
10797
// Control
10798
#define SYSCTL_SCGCTIMER_S2 0x00000004 // 16/32-Bit General-Purpose Timer
10799
// 2 Sleep Mode Clock Gating
10800
// Control
10801
#define SYSCTL_SCGCTIMER_S1 0x00000002 // 16/32-Bit General-Purpose Timer
10802
// 1 Sleep Mode Clock Gating
10803
// Control
10804
#define SYSCTL_SCGCTIMER_S0 0x00000001 // 16/32-Bit General-Purpose Timer
10805
// 0 Sleep Mode Clock Gating
10806
// Control
10807
10808
//*****************************************************************************
10809
//
10810
// The following are defines for the bit fields in the SYSCTL_SCGCGPIO
10811
// register.
10812
//
10813
//*****************************************************************************
10814
#define SYSCTL_SCGCGPIO_S6 0x00000040 // GPIO Port G Sleep Mode Clock
10815
// Gating Control
10816
#define SYSCTL_SCGCGPIO_S5 0x00000020 // GPIO Port F Sleep Mode Clock
10817
// Gating Control
10818
#define SYSCTL_SCGCGPIO_S4 0x00000010 // GPIO Port E Sleep Mode Clock
10819
// Gating Control
10820
#define SYSCTL_SCGCGPIO_S3 0x00000008 // GPIO Port D Sleep Mode Clock
10821
// Gating Control
10822
#define SYSCTL_SCGCGPIO_S2 0x00000004 // GPIO Port C Sleep Mode Clock
10823
// Gating Control
10824
#define SYSCTL_SCGCGPIO_S1 0x00000002 // GPIO Port B Sleep Mode Clock
10825
// Gating Control
10826
#define SYSCTL_SCGCGPIO_S0 0x00000001 // GPIO Port A Sleep Mode Clock
10827
// Gating Control
10828
10829
//*****************************************************************************
10830
//
10831
// The following are defines for the bit fields in the SYSCTL_SCGCDMA register.
10832
//
10833
//*****************************************************************************
10834
#define SYSCTL_SCGCDMA_S0 0x00000001 // uDMA Module Sleep Mode Clock
10835
// Gating Control
10836
10837
//*****************************************************************************
10838
//
10839
// The following are defines for the bit fields in the SYSCTL_SCGCUART
10840
// register.
10841
//
10842
//*****************************************************************************
10843
#define SYSCTL_SCGCUART_S7 0x00000080 // UART Module 7 Sleep Mode Clock
10844
// Gating Control
10845
#define SYSCTL_SCGCUART_S6 0x00000040 // UART Module 6 Sleep Mode Clock
10846
// Gating Control
10847
#define SYSCTL_SCGCUART_S5 0x00000020 // UART Module 5 Sleep Mode Clock
10848
// Gating Control
10849
#define SYSCTL_SCGCUART_S4 0x00000010 // UART Module 4 Sleep Mode Clock
10850
// Gating Control
10851
#define SYSCTL_SCGCUART_S3 0x00000008 // UART Module 3 Sleep Mode Clock
10852
// Gating Control
10853
#define SYSCTL_SCGCUART_S2 0x00000004 // UART Module 2 Sleep Mode Clock
10854
// Gating Control
10855
#define SYSCTL_SCGCUART_S1 0x00000002 // UART Module 1 Sleep Mode Clock
10856
// Gating Control
10857
#define SYSCTL_SCGCUART_S0 0x00000001 // UART Module 0 Sleep Mode Clock
10858
// Gating Control
10859
10860
//*****************************************************************************
10861
//
10862
// The following are defines for the bit fields in the SYSCTL_SCGCSSI register.
10863
//
10864
//*****************************************************************************
10865
#define SYSCTL_SCGCSSI_S3 0x00000008 // SSI Module 3 Sleep Mode Clock
10866
// Gating Control
10867
#define SYSCTL_SCGCSSI_S2 0x00000004 // SSI Module 2 Sleep Mode Clock
10868
// Gating Control
10869
#define SYSCTL_SCGCSSI_S1 0x00000002 // SSI Module 1 Sleep Mode Clock
10870
// Gating Control
10871
#define SYSCTL_SCGCSSI_S0 0x00000001 // SSI Module 0 Sleep Mode Clock
10872
// Gating Control
10873
10874
//*****************************************************************************
10875
//
10876
// The following are defines for the bit fields in the SYSCTL_SCGCI2C register.
10877
//
10878
//*****************************************************************************
10879
#define SYSCTL_SCGCI2C_S5 0x00000020 // I2C Module 5 Sleep Mode Clock
10880
// Gating Control
10881
#define SYSCTL_SCGCI2C_S4 0x00000010 // I2C Module 4 Sleep Mode Clock
10882
// Gating Control
10883
#define SYSCTL_SCGCI2C_S3 0x00000008 // I2C Module 3 Sleep Mode Clock
10884
// Gating Control
10885
#define SYSCTL_SCGCI2C_S2 0x00000004 // I2C Module 2 Sleep Mode Clock
10886
// Gating Control
10887
#define SYSCTL_SCGCI2C_S1 0x00000002 // I2C Module 1 Sleep Mode Clock
10888
// Gating Control
10889
#define SYSCTL_SCGCI2C_S0 0x00000001 // I2C Module 0 Sleep Mode Clock
10890
// Gating Control
10891
10892
//*****************************************************************************
10893
//
10894
// The following are defines for the bit fields in the SYSCTL_SCGCUSB register.
10895
//
10896
//*****************************************************************************
10897
#define SYSCTL_SCGCUSB_S0 0x00000001 // USB Module Sleep Mode Clock
10898
// Gating Control
10899
10900
//*****************************************************************************
10901
//
10902
// The following are defines for the bit fields in the SYSCTL_SCGCCAN register.
10903
//
10904
//*****************************************************************************
10905
#define SYSCTL_SCGCCAN_S1 0x00000002 // CAN Module 1 Sleep Mode Clock
10906
// Gating Control
10907
#define SYSCTL_SCGCCAN_S0 0x00000001 // CAN Module 0 Sleep Mode Clock
10908
// Gating Control
10909
10910
//*****************************************************************************
10911
//
10912
// The following are defines for the bit fields in the SYSCTL_SCGCADC register.
10913
//
10914
//*****************************************************************************
10915
#define SYSCTL_SCGCADC_S1 0x00000002 // ADC Module 1 Sleep Mode Clock
10916
// Gating Control
10917
#define SYSCTL_SCGCADC_S0 0x00000001 // ADC Module 0 Sleep Mode Clock
10918
// Gating Control
10919
10920
//*****************************************************************************
10921
//
10922
// The following are defines for the bit fields in the SYSCTL_SCGCACMP
10923
// register.
10924
//
10925
//*****************************************************************************
10926
#define SYSCTL_SCGCACMP_S0 0x00000001 // Analog Comparator Module 0 Sleep
10927
// Mode Clock Gating Control
10928
10929
//*****************************************************************************
10930
//
10931
// The following are defines for the bit fields in the SYSCTL_SCGCPWM register.
10932
//
10933
//*****************************************************************************
10934
#define SYSCTL_SCGCPWM_S1 0x00000002 // PWM Module 1 Sleep Mode Clock
10935
// Gating Control
10936
#define SYSCTL_SCGCPWM_S0 0x00000001 // PWM Module 0 Sleep Mode Clock
10937
// Gating Control
10938
10939
//*****************************************************************************
10940
//
10941
// The following are defines for the bit fields in the SYSCTL_SCGCQEI register.
10942
//
10943
//*****************************************************************************
10944
#define SYSCTL_SCGCQEI_S1 0x00000002 // QEI Module 1 Sleep Mode Clock
10945
// Gating Control
10946
#define SYSCTL_SCGCQEI_S0 0x00000001 // QEI Module 0 Sleep Mode Clock
10947
// Gating Control
10948
10949
//*****************************************************************************
10950
//
10951
// The following are defines for the bit fields in the SYSCTL_SCGCEEPROM
10952
// register.
10953
//
10954
//*****************************************************************************
10955
#define SYSCTL_SCGCEEPROM_S0 0x00000001 // EEPROM Module Sleep Mode Clock
10956
// Gating Control
10957
10958
//*****************************************************************************
10959
//
10960
// The following are defines for the bit fields in the SYSCTL_SCGCWTIMER
10961
// register.
10962
//
10963
//*****************************************************************************
10964
#define SYSCTL_SCGCWTIMER_S5 0x00000020 // 32/64-Bit Wide General-Purpose
10965
// Timer 5 Sleep Mode Clock Gating
10966
// Control
10967
#define SYSCTL_SCGCWTIMER_S4 0x00000010 // 32/64-Bit Wide General-Purpose
10968
// Timer 4 Sleep Mode Clock Gating
10969
// Control
10970
#define SYSCTL_SCGCWTIMER_S3 0x00000008 // 32/64-Bit Wide General-Purpose
10971
// Timer 3 Sleep Mode Clock Gating
10972
// Control
10973
#define SYSCTL_SCGCWTIMER_S2 0x00000004 // 32/64-Bit Wide General-Purpose
10974
// Timer 2 Sleep Mode Clock Gating
10975
// Control
10976
#define SYSCTL_SCGCWTIMER_S1 0x00000002 // 32/64-Bit Wide General-Purpose
10977
// Timer 1 Sleep Mode Clock Gating
10978
// Control
10979
#define SYSCTL_SCGCWTIMER_S0 0x00000001 // 32/64-Bit Wide General-Purpose
10980
// Timer 0 Sleep Mode Clock Gating
10981
// Control
10982
10983
//*****************************************************************************
10984
//
10985
// The following are defines for the bit fields in the SYSCTL_DCGCWD register.
10986
//
10987
//*****************************************************************************
10988
#define SYSCTL_DCGCWD_D1 0x00000002 // Watchdog Timer 1 Deep-Sleep Mode
10989
// Clock Gating Control
10990
#define SYSCTL_DCGCWD_D0 0x00000001 // Watchdog Timer 0 Deep-Sleep Mode
10991
// Clock Gating Control
10992
10993
//*****************************************************************************
10994
//
10995
// The following are defines for the bit fields in the SYSCTL_DCGCTIMER
10996
// register.
10997
//
10998
//*****************************************************************************
10999
#define SYSCTL_DCGCTIMER_D5 0x00000020 // 16/32-Bit General-Purpose Timer
11000
// 5 Deep-Sleep Mode Clock Gating
11001
// Control
11002
#define SYSCTL_DCGCTIMER_D4 0x00000010 // 16/32-Bit General-Purpose Timer
11003
// 4 Deep-Sleep Mode Clock Gating
11004
// Control
11005
#define SYSCTL_DCGCTIMER_D3 0x00000008 // 16/32-Bit General-Purpose Timer
11006
// 3 Deep-Sleep Mode Clock Gating
11007
// Control
11008
#define SYSCTL_DCGCTIMER_D2 0x00000004 // 16/32-Bit General-Purpose Timer
11009
// 2 Deep-Sleep Mode Clock Gating
11010
// Control
11011
#define SYSCTL_DCGCTIMER_D1 0x00000002 // 16/32-Bit General-Purpose Timer
11012
// 1 Deep-Sleep Mode Clock Gating
11013
// Control
11014
#define SYSCTL_DCGCTIMER_D0 0x00000001 // 16/32-Bit General-Purpose Timer
11015
// 0 Deep-Sleep Mode Clock Gating
11016
// Control
11017
11018
//*****************************************************************************
11019
//
11020
// The following are defines for the bit fields in the SYSCTL_DCGCGPIO
11021
// register.
11022
//
11023
//*****************************************************************************
11024
#define SYSCTL_DCGCGPIO_D6 0x00000040 // GPIO Port G Deep-Sleep Mode
11025
// Clock Gating Control
11026
#define SYSCTL_DCGCGPIO_D5 0x00000020 // GPIO Port F Deep-Sleep Mode
11027
// Clock Gating Control
11028
#define SYSCTL_DCGCGPIO_D4 0x00000010 // GPIO Port E Deep-Sleep Mode
11029
// Clock Gating Control
11030
#define SYSCTL_DCGCGPIO_D3 0x00000008 // GPIO Port D Deep-Sleep Mode
11031
// Clock Gating Control
11032
#define SYSCTL_DCGCGPIO_D2 0x00000004 // GPIO Port C Deep-Sleep Mode
11033
// Clock Gating Control
11034
#define SYSCTL_DCGCGPIO_D1 0x00000002 // GPIO Port B Deep-Sleep Mode
11035
// Clock Gating Control
11036
#define SYSCTL_DCGCGPIO_D0 0x00000001 // GPIO Port A Deep-Sleep Mode
11037
// Clock Gating Control
11038
11039
//*****************************************************************************
11040
//
11041
// The following are defines for the bit fields in the SYSCTL_DCGCDMA register.
11042
//
11043
//*****************************************************************************
11044
#define SYSCTL_DCGCDMA_D0 0x00000001 // uDMA Module Deep-Sleep Mode
11045
// Clock Gating Control
11046
11047
//*****************************************************************************
11048
//
11049
// The following are defines for the bit fields in the SYSCTL_DCGCUART
11050
// register.
11051
//
11052
//*****************************************************************************
11053
#define SYSCTL_DCGCUART_D7 0x00000080 // UART Module 7 Deep-Sleep Mode
11054
// Clock Gating Control
11055
#define SYSCTL_DCGCUART_D6 0x00000040 // UART Module 6 Deep-Sleep Mode
11056
// Clock Gating Control
11057
#define SYSCTL_DCGCUART_D5 0x00000020 // UART Module 5 Deep-Sleep Mode
11058
// Clock Gating Control
11059
#define SYSCTL_DCGCUART_D4 0x00000010 // UART Module 4 Deep-Sleep Mode
11060
// Clock Gating Control
11061
#define SYSCTL_DCGCUART_D3 0x00000008 // UART Module 3 Deep-Sleep Mode
11062
// Clock Gating Control
11063
#define SYSCTL_DCGCUART_D2 0x00000004 // UART Module 2 Deep-Sleep Mode
11064
// Clock Gating Control
11065
#define SYSCTL_DCGCUART_D1 0x00000002 // UART Module 1 Deep-Sleep Mode
11066
// Clock Gating Control
11067
#define SYSCTL_DCGCUART_D0 0x00000001 // UART Module 0 Deep-Sleep Mode
11068
// Clock Gating Control
11069
11070
//*****************************************************************************
11071
//
11072
// The following are defines for the bit fields in the SYSCTL_DCGCSSI register.
11073
//
11074
//*****************************************************************************
11075
#define SYSCTL_DCGCSSI_D3 0x00000008 // SSI Module 3 Deep-Sleep Mode
11076
// Clock Gating Control
11077
#define SYSCTL_DCGCSSI_D2 0x00000004 // SSI Module 2 Deep-Sleep Mode
11078
// Clock Gating Control
11079
#define SYSCTL_DCGCSSI_D1 0x00000002 // SSI Module 1 Deep-Sleep Mode
11080
// Clock Gating Control
11081
#define SYSCTL_DCGCSSI_D0 0x00000001 // SSI Module 0 Deep-Sleep Mode
11082
// Clock Gating Control
11083
11084
//*****************************************************************************
11085
//
11086
// The following are defines for the bit fields in the SYSCTL_DCGCI2C register.
11087
//
11088
//*****************************************************************************
11089
#define SYSCTL_DCGCI2C_D5 0x00000020 // I2C Module 5 Deep-Sleep Mode
11090
// Clock Gating Control
11091
#define SYSCTL_DCGCI2C_D4 0x00000010 // I2C Module 4 Deep-Sleep Mode
11092
// Clock Gating Control
11093
#define SYSCTL_DCGCI2C_D3 0x00000008 // I2C Module 3 Deep-Sleep Mode
11094
// Clock Gating Control
11095
#define SYSCTL_DCGCI2C_D2 0x00000004 // I2C Module 2 Deep-Sleep Mode
11096
// Clock Gating Control
11097
#define SYSCTL_DCGCI2C_D1 0x00000002 // I2C Module 1 Deep-Sleep Mode
11098
// Clock Gating Control
11099
#define SYSCTL_DCGCI2C_D0 0x00000001 // I2C Module 0 Deep-Sleep Mode
11100
// Clock Gating Control
11101
11102
//*****************************************************************************
11103
//
11104
// The following are defines for the bit fields in the SYSCTL_DCGCUSB register.
11105
//
11106
//*****************************************************************************
11107
#define SYSCTL_DCGCUSB_D0 0x00000001 // USB Module Deep-Sleep Mode Clock
11108
// Gating Control
11109
11110
//*****************************************************************************
11111
//
11112
// The following are defines for the bit fields in the SYSCTL_DCGCCAN register.
11113
//
11114
//*****************************************************************************
11115
#define SYSCTL_DCGCCAN_D1 0x00000002 // CAN Module 1 Deep-Sleep Mode
11116
// Clock Gating Control
11117
#define SYSCTL_DCGCCAN_D0 0x00000001 // CAN Module 0 Deep-Sleep Mode
11118
// Clock Gating Control
11119
11120
//*****************************************************************************
11121
//
11122
// The following are defines for the bit fields in the SYSCTL_DCGCADC register.
11123
//
11124
//*****************************************************************************
11125
#define SYSCTL_DCGCADC_D1 0x00000002 // ADC Module 1 Deep-Sleep Mode
11126
// Clock Gating Control
11127
#define SYSCTL_DCGCADC_D0 0x00000001 // ADC Module 0 Deep-Sleep Mode
11128
// Clock Gating Control
11129
11130
//*****************************************************************************
11131
//
11132
// The following are defines for the bit fields in the SYSCTL_DCGCACMP
11133
// register.
11134
//
11135
//*****************************************************************************
11136
#define SYSCTL_DCGCACMP_D0 0x00000001 // Analog Comparator Module 0
11137
// Deep-Sleep Mode Clock Gating
11138
// Control
11139
11140
//*****************************************************************************
11141
//
11142
// The following are defines for the bit fields in the SYSCTL_DCGCPWM register.
11143
//
11144
//*****************************************************************************
11145
#define SYSCTL_DCGCPWM_D1 0x00000002 // PWM Module 1 Deep-Sleep Mode
11146
// Clock Gating Control
11147
#define SYSCTL_DCGCPWM_D0 0x00000001 // PWM Module 0 Deep-Sleep Mode
11148
// Clock Gating Control
11149
11150
//*****************************************************************************
11151
//
11152
// The following are defines for the bit fields in the SYSCTL_DCGCQEI register.
11153
//
11154
//*****************************************************************************
11155
#define SYSCTL_DCGCQEI_D1 0x00000002 // QEI Module 1 Deep-Sleep Mode
11156
// Clock Gating Control
11157
#define SYSCTL_DCGCQEI_D0 0x00000001 // QEI Module 0 Deep-Sleep Mode
11158
// Clock Gating Control
11159
11160
//*****************************************************************************
11161
//
11162
// The following are defines for the bit fields in the SYSCTL_DCGCEEPROM
11163
// register.
11164
//
11165
//*****************************************************************************
11166
#define SYSCTL_DCGCEEPROM_D0 0x00000001 // EEPROM Module Deep-Sleep Mode
11167
// Clock Gating Control
11168
11169
//*****************************************************************************
11170
//
11171
// The following are defines for the bit fields in the SYSCTL_DCGCWTIMER
11172
// register.
11173
//
11174
//*****************************************************************************
11175
#define SYSCTL_DCGCWTIMER_D5 0x00000020 // 32/64-Bit Wide General-Purpose
11176
// Timer 5 Deep-Sleep Mode Clock
11177
// Gating Control
11178
#define SYSCTL_DCGCWTIMER_D4 0x00000010 // 32/64-Bit Wide General-Purpose
11179
// Timer 4 Deep-Sleep Mode Clock
11180
// Gating Control
11181
#define SYSCTL_DCGCWTIMER_D3 0x00000008 // 32/64-Bit Wide General-Purpose
11182
// Timer 3 Deep-Sleep Mode Clock
11183
// Gating Control
11184
#define SYSCTL_DCGCWTIMER_D2 0x00000004 // 32/64-Bit Wide General-Purpose
11185
// Timer 2 Deep-Sleep Mode Clock
11186
// Gating Control
11187
#define SYSCTL_DCGCWTIMER_D1 0x00000002 // 32/64-Bit Wide General-Purpose
11188
// Timer 1 Deep-Sleep Mode Clock
11189
// Gating Control
11190
#define SYSCTL_DCGCWTIMER_D0 0x00000001 // 32/64-Bit Wide General-Purpose
11191
// Timer 0 Deep-Sleep Mode Clock
11192
// Gating Control
11193
11194
//*****************************************************************************
11195
//
11196
// The following are defines for the bit fields in the SYSCTL_PRWD register.
11197
//
11198
//*****************************************************************************
11199
#define SYSCTL_PRWD_R1 0x00000002 // Watchdog Timer 1 Peripheral
11200
// Ready
11201
#define SYSCTL_PRWD_R0 0x00000001 // Watchdog Timer 0 Peripheral
11202
// Ready
11203
11204
//*****************************************************************************
11205
//
11206
// The following are defines for the bit fields in the SYSCTL_PRTIMER register.
11207
//
11208
//*****************************************************************************
11209
#define SYSCTL_PRTIMER_R5 0x00000020 // 16/32-Bit General-Purpose Timer
11210
// 5 Peripheral Ready
11211
#define SYSCTL_PRTIMER_R4 0x00000010 // 16/32-Bit General-Purpose Timer
11212
// 4 Peripheral Ready
11213
#define SYSCTL_PRTIMER_R3 0x00000008 // 16/32-Bit General-Purpose Timer
11214
// 3 Peripheral Ready
11215
#define SYSCTL_PRTIMER_R2 0x00000004 // 16/32-Bit General-Purpose Timer
11216
// 2 Peripheral Ready
11217
#define SYSCTL_PRTIMER_R1 0x00000002 // 16/32-Bit General-Purpose Timer
11218
// 1 Peripheral Ready
11219
#define SYSCTL_PRTIMER_R0 0x00000001 // 16/32-Bit General-Purpose Timer
11220
// 0 Peripheral Ready
11221
11222
//*****************************************************************************
11223
//
11224
// The following are defines for the bit fields in the SYSCTL_PRGPIO register.
11225
//
11226
//*****************************************************************************
11227
#define SYSCTL_PRGPIO_R6 0x00000040 // GPIO Port G Peripheral Ready
11228
#define SYSCTL_PRGPIO_R5 0x00000020 // GPIO Port F Peripheral Ready
11229
#define SYSCTL_PRGPIO_R4 0x00000010 // GPIO Port E Peripheral Ready
11230
#define SYSCTL_PRGPIO_R3 0x00000008 // GPIO Port D Peripheral Ready
11231
#define SYSCTL_PRGPIO_R2 0x00000004 // GPIO Port C Peripheral Ready
11232
#define SYSCTL_PRGPIO_R1 0x00000002 // GPIO Port B Peripheral Ready
11233
#define SYSCTL_PRGPIO_R0 0x00000001 // GPIO Port A Peripheral Ready
11234
11235
//*****************************************************************************
11236
//
11237
// The following are defines for the bit fields in the SYSCTL_PRDMA register.
11238
//
11239
//*****************************************************************************
11240
#define SYSCTL_PRDMA_R0 0x00000001 // uDMA Module Peripheral Ready
11241
11242
//*****************************************************************************
11243
//
11244
// The following are defines for the bit fields in the SYSCTL_PRUART register.
11245
//
11246
//*****************************************************************************
11247
#define SYSCTL_PRUART_R7 0x00000080 // UART Module 7 Peripheral Ready
11248
#define SYSCTL_PRUART_R6 0x00000040 // UART Module 6 Peripheral Ready
11249
#define SYSCTL_PRUART_R5 0x00000020 // UART Module 5 Peripheral Ready
11250
#define SYSCTL_PRUART_R4 0x00000010 // UART Module 4 Peripheral Ready
11251
#define SYSCTL_PRUART_R3 0x00000008 // UART Module 3 Peripheral Ready
11252
#define SYSCTL_PRUART_R2 0x00000004 // UART Module 2 Peripheral Ready
11253
#define SYSCTL_PRUART_R1 0x00000002 // UART Module 1 Peripheral Ready
11254
#define SYSCTL_PRUART_R0 0x00000001 // UART Module 0 Peripheral Ready
11255
11256
//*****************************************************************************
11257
//
11258
// The following are defines for the bit fields in the SYSCTL_PRSSI register.
11259
//
11260
//*****************************************************************************
11261
#define SYSCTL_PRSSI_R3 0x00000008 // SSI Module 3 Peripheral Ready
11262
#define SYSCTL_PRSSI_R2 0x00000004 // SSI Module 2 Peripheral Ready
11263
#define SYSCTL_PRSSI_R1 0x00000002 // SSI Module 1 Peripheral Ready
11264
#define SYSCTL_PRSSI_R0 0x00000001 // SSI Module 0 Peripheral Ready
11265
11266
//*****************************************************************************
11267
//
11268
// The following are defines for the bit fields in the SYSCTL_PRI2C register.
11269
//
11270
//*****************************************************************************
11271
#define SYSCTL_PRI2C_R5 0x00000020 // I2C Module 5 Peripheral Ready
11272
#define SYSCTL_PRI2C_R4 0x00000010 // I2C Module 4 Peripheral Ready
11273
#define SYSCTL_PRI2C_R3 0x00000008 // I2C Module 3 Peripheral Ready
11274
#define SYSCTL_PRI2C_R2 0x00000004 // I2C Module 2 Peripheral Ready
11275
#define SYSCTL_PRI2C_R1 0x00000002 // I2C Module 1 Peripheral Ready
11276
#define SYSCTL_PRI2C_R0 0x00000001 // I2C Module 0 Peripheral Ready
11277
11278
//*****************************************************************************
11279
//
11280
// The following are defines for the bit fields in the SYSCTL_PRUSB register.
11281
//
11282
//*****************************************************************************
11283
#define SYSCTL_PRUSB_R0 0x00000001 // USB Module Peripheral Ready
11284
11285
//*****************************************************************************
11286
//
11287
// The following are defines for the bit fields in the SYSCTL_PRCAN register.
11288
//
11289
//*****************************************************************************
11290
#define SYSCTL_PRCAN_R1 0x00000002 // CAN Module 1 Peripheral Ready
11291
#define SYSCTL_PRCAN_R0 0x00000001 // CAN Module 0 Peripheral Ready
11292
11293
//*****************************************************************************
11294
//
11295
// The following are defines for the bit fields in the SYSCTL_PRADC register.
11296
//
11297
//*****************************************************************************
11298
#define SYSCTL_PRADC_R1 0x00000002 // ADC Module 1 Peripheral Ready
11299
#define SYSCTL_PRADC_R0 0x00000001 // ADC Module 0 Peripheral Ready
11300
11301
//*****************************************************************************
11302
//
11303
// The following are defines for the bit fields in the SYSCTL_PRACMP register.
11304
//
11305
//*****************************************************************************
11306
#define SYSCTL_PRACMP_R0 0x00000001 // Analog Comparator Module 0
11307
// Peripheral Ready
11308
11309
//*****************************************************************************
11310
//
11311
// The following are defines for the bit fields in the SYSCTL_PRPWM register.
11312
//
11313
//*****************************************************************************
11314
#define SYSCTL_PRPWM_R1 0x00000002 // PWM Module 1 Peripheral Ready
11315
#define SYSCTL_PRPWM_R0 0x00000001 // PWM Module 0 Peripheral Ready
11316
11317
//*****************************************************************************
11318
//
11319
// The following are defines for the bit fields in the SYSCTL_PRQEI register.
11320
//
11321
//*****************************************************************************
11322
#define SYSCTL_PRQEI_R1 0x00000002 // QEI Module 1 Peripheral Ready
11323
#define SYSCTL_PRQEI_R0 0x00000001 // QEI Module 0 Peripheral Ready
11324
11325
//*****************************************************************************
11326
//
11327
// The following are defines for the bit fields in the SYSCTL_PREEPROM
11328
// register.
11329
//
11330
//*****************************************************************************
11331
#define SYSCTL_PREEPROM_R0 0x00000001 // EEPROM Module Peripheral Ready
11332
11333
//*****************************************************************************
11334
//
11335
// The following are defines for the bit fields in the SYSCTL_PRWTIMER
11336
// register.
11337
//
11338
//*****************************************************************************
11339
#define SYSCTL_PRWTIMER_R5 0x00000020 // 32/64-Bit Wide General-Purpose
11340
// Timer 5 Peripheral Ready
11341
#define SYSCTL_PRWTIMER_R4 0x00000010 // 32/64-Bit Wide General-Purpose
11342
// Timer 4 Peripheral Ready
11343
#define SYSCTL_PRWTIMER_R3 0x00000008 // 32/64-Bit Wide General-Purpose
11344
// Timer 3 Peripheral Ready
11345
#define SYSCTL_PRWTIMER_R2 0x00000004 // 32/64-Bit Wide General-Purpose
11346
// Timer 2 Peripheral Ready
11347
#define SYSCTL_PRWTIMER_R1 0x00000002 // 32/64-Bit Wide General-Purpose
11348
// Timer 1 Peripheral Ready
11349
#define SYSCTL_PRWTIMER_R0 0x00000001 // 32/64-Bit Wide General-Purpose
11350
// Timer 0 Peripheral Ready
11351
11352
//*****************************************************************************
11353
//
11354
// The following are defines for the bit fields in the UDMA_STAT register.
11355
//
11356
//*****************************************************************************
11357
#define UDMA_STAT_DMACHANS_M 0x001F0000 // Available uDMA Channels Minus 1
11358
#define UDMA_STAT_STATE_M 0x000000F0 // Control State Machine Status
11359
#define UDMA_STAT_STATE_IDLE 0x00000000 // Idle
11360
#define UDMA_STAT_STATE_RD_CTRL 0x00000010 // Reading channel controller data
11361
#define UDMA_STAT_STATE_RD_SRCENDP \
11362
0x00000020 // Reading source end pointer
11363
#define UDMA_STAT_STATE_RD_DSTENDP \
11364
0x00000030 // Reading destination end pointer
11365
#define UDMA_STAT_STATE_RD_SRCDAT \
11366
0x00000040 // Reading source data
11367
#define UDMA_STAT_STATE_WR_DSTDAT \
11368
0x00000050 // Writing destination data
11369
#define UDMA_STAT_STATE_WAIT 0x00000060 // Waiting for uDMA request to
11370
// clear
11371
#define UDMA_STAT_STATE_WR_CTRL 0x00000070 // Writing channel controller data
11372
#define UDMA_STAT_STATE_STALL 0x00000080 // Stalled
11373
#define UDMA_STAT_STATE_DONE 0x00000090 // Done
11374
#define UDMA_STAT_STATE_UNDEF 0x000000A0 // Undefined
11375
#define UDMA_STAT_MASTEN 0x00000001 // Master Enable Status
11376
#define UDMA_STAT_DMACHANS_S 16
11377
11378
//*****************************************************************************
11379
//
11380
// The following are defines for the bit fields in the UDMA_CFG register.
11381
//
11382
//*****************************************************************************
11383
#define UDMA_CFG_MASTEN 0x00000001 // Controller Master Enable
11384
11385
//*****************************************************************************
11386
//
11387
// The following are defines for the bit fields in the UDMA_CTLBASE register.
11388
//
11389
//*****************************************************************************
11390
#define UDMA_CTLBASE_ADDR_M 0xFFFFFC00 // Channel Control Base Address
11391
#define UDMA_CTLBASE_ADDR_S 10
11392
11393
//*****************************************************************************
11394
//
11395
// The following are defines for the bit fields in the UDMA_ALTBASE register.
11396
//
11397
//*****************************************************************************
11398
#define UDMA_ALTBASE_ADDR_M 0xFFFFFFFF // Alternate Channel Address
11399
// Pointer
11400
#define UDMA_ALTBASE_ADDR_S 0
11401
11402
//*****************************************************************************
11403
//
11404
// The following are defines for the bit fields in the UDMA_WAITSTAT register.
11405
//
11406
//*****************************************************************************
11407
#define UDMA_WAITSTAT_WAITREQ_M 0xFFFFFFFF // Channel [n] Wait Status
11408
11409
//*****************************************************************************
11410
//
11411
// The following are defines for the bit fields in the UDMA_SWREQ register.
11412
//
11413
//*****************************************************************************
11414
#define UDMA_SWREQ_M 0xFFFFFFFF // Channel [n] Software Request
11415
11416
//*****************************************************************************
11417
//
11418
// The following are defines for the bit fields in the UDMA_USEBURSTSET
11419
// register.
11420
//
11421
//*****************************************************************************
11422
#define UDMA_USEBURSTSET_SET_M 0xFFFFFFFF // Channel [n] Useburst Set
11423
11424
//*****************************************************************************
11425
//
11426
// The following are defines for the bit fields in the UDMA_USEBURSTCLR
11427
// register.
11428
//
11429
//*****************************************************************************
11430
#define UDMA_USEBURSTCLR_CLR_M 0xFFFFFFFF // Channel [n] Useburst Clear
11431
11432
//*****************************************************************************
11433
//
11434
// The following are defines for the bit fields in the UDMA_REQMASKSET
11435
// register.
11436
//
11437
//*****************************************************************************
11438
#define UDMA_REQMASKSET_SET_M 0xFFFFFFFF // Channel [n] Request Mask Set
11439
11440
//*****************************************************************************
11441
//
11442
// The following are defines for the bit fields in the UDMA_REQMASKCLR
11443
// register.
11444
//
11445
//*****************************************************************************
11446
#define UDMA_REQMASKCLR_CLR_M 0xFFFFFFFF // Channel [n] Request Mask Clear
11447
11448
//*****************************************************************************
11449
//
11450
// The following are defines for the bit fields in the UDMA_ENASET register.
11451
//
11452
//*****************************************************************************
11453
#define UDMA_ENASET_SET_M 0xFFFFFFFF // Channel [n] Enable Set
11454
11455
//*****************************************************************************
11456
//
11457
// The following are defines for the bit fields in the UDMA_ENACLR register.
11458
//
11459
//*****************************************************************************
11460
#define UDMA_ENACLR_CLR_M 0xFFFFFFFF // Clear Channel [n] Enable Clear
11461
11462
//*****************************************************************************
11463
//
11464
// The following are defines for the bit fields in the UDMA_ALTSET register.
11465
//
11466
//*****************************************************************************
11467
#define UDMA_ALTSET_SET_M 0xFFFFFFFF // Channel [n] Alternate Set
11468
11469
//*****************************************************************************
11470
//
11471
// The following are defines for the bit fields in the UDMA_ALTCLR register.
11472
//
11473
//*****************************************************************************
11474
#define UDMA_ALTCLR_CLR_M 0xFFFFFFFF // Channel [n] Alternate Clear
11475
11476
//*****************************************************************************
11477
//
11478
// The following are defines for the bit fields in the UDMA_PRIOSET register.
11479
//
11480
//*****************************************************************************
11481
#define UDMA_PRIOSET_SET_M 0xFFFFFFFF // Channel [n] Priority Set
11482
11483
//*****************************************************************************
11484
//
11485
// The following are defines for the bit fields in the UDMA_PRIOCLR register.
11486
//
11487
//*****************************************************************************
11488
#define UDMA_PRIOCLR_CLR_M 0xFFFFFFFF // Channel [n] Priority Clear
11489
11490
//*****************************************************************************
11491
//
11492
// The following are defines for the bit fields in the UDMA_ERRCLR register.
11493
//
11494
//*****************************************************************************
11495
#define UDMA_ERRCLR_ERRCLR 0x00000001 // uDMA Bus Error Status
11496
11497
//*****************************************************************************
11498
//
11499
// The following are defines for the bit fields in the UDMA_CHASGN register.
11500
//
11501
//*****************************************************************************
11502
#define UDMA_CHASGN_M 0xFFFFFFFF // Channel [n] Assignment Select
11503
#define UDMA_CHASGN_PRIMARY 0x00000000 // Use the primary channel
11504
// assignment
11505
#define UDMA_CHASGN_SECONDARY 0x00000001 // Use the secondary channel
11506
// assignment
11507
11508
//*****************************************************************************
11509
//
11510
// The following are defines for the bit fields in the UDMA_CHIS register.
11511
//
11512
//*****************************************************************************
11513
#define UDMA_CHIS_M 0xFFFFFFFF // Channel [n] Interrupt Status
11514
11515
//*****************************************************************************
11516
//
11517
// The following are defines for the bit fields in the UDMA_CHMAP0 register.
11518
//
11519
//*****************************************************************************
11520
#define UDMA_CHMAP0_CH7SEL_M 0xF0000000 // uDMA Channel 7 Source Select
11521
#define UDMA_CHMAP0_CH6SEL_M 0x0F000000 // uDMA Channel 6 Source Select
11522
#define UDMA_CHMAP0_CH5SEL_M 0x00F00000 // uDMA Channel 5 Source Select
11523
#define UDMA_CHMAP0_CH4SEL_M 0x000F0000 // uDMA Channel 4 Source Select
11524
#define UDMA_CHMAP0_CH3SEL_M 0x0000F000 // uDMA Channel 3 Source Select
11525
#define UDMA_CHMAP0_CH2SEL_M 0x00000F00 // uDMA Channel 2 Source Select
11526
#define UDMA_CHMAP0_CH1SEL_M 0x000000F0 // uDMA Channel 1 Source Select
11527
#define UDMA_CHMAP0_CH0SEL_M 0x0000000F // uDMA Channel 0 Source Select
11528
#define UDMA_CHMAP0_CH7SEL_S 28
11529
#define UDMA_CHMAP0_CH6SEL_S 24
11530
#define UDMA_CHMAP0_CH5SEL_S 20
11531
#define UDMA_CHMAP0_CH4SEL_S 16
11532
#define UDMA_CHMAP0_CH3SEL_S 12
11533
#define UDMA_CHMAP0_CH2SEL_S 8
11534
#define UDMA_CHMAP0_CH1SEL_S 4
11535
#define UDMA_CHMAP0_CH0SEL_S 0
11536
11537
//*****************************************************************************
11538
//
11539
// The following are defines for the bit fields in the UDMA_CHMAP1 register.
11540
//
11541
//*****************************************************************************
11542
#define UDMA_CHMAP1_CH15SEL_M 0xF0000000 // uDMA Channel 15 Source Select
11543
#define UDMA_CHMAP1_CH14SEL_M 0x0F000000 // uDMA Channel 14 Source Select
11544
#define UDMA_CHMAP1_CH13SEL_M 0x00F00000 // uDMA Channel 13 Source Select
11545
#define UDMA_CHMAP1_CH12SEL_M 0x000F0000 // uDMA Channel 12 Source Select
11546
#define UDMA_CHMAP1_CH11SEL_M 0x0000F000 // uDMA Channel 11 Source Select
11547
#define UDMA_CHMAP1_CH10SEL_M 0x00000F00 // uDMA Channel 10 Source Select
11548
#define UDMA_CHMAP1_CH9SEL_M 0x000000F0 // uDMA Channel 9 Source Select
11549
#define UDMA_CHMAP1_CH8SEL_M 0x0000000F // uDMA Channel 8 Source Select
11550
#define UDMA_CHMAP1_CH15SEL_S 28
11551
#define UDMA_CHMAP1_CH14SEL_S 24
11552
#define UDMA_CHMAP1_CH13SEL_S 20
11553
#define UDMA_CHMAP1_CH12SEL_S 16
11554
#define UDMA_CHMAP1_CH11SEL_S 12
11555
#define UDMA_CHMAP1_CH10SEL_S 8
11556
#define UDMA_CHMAP1_CH9SEL_S 4
11557
#define UDMA_CHMAP1_CH8SEL_S 0
11558
11559
//*****************************************************************************
11560
//
11561
// The following are defines for the bit fields in the UDMA_CHMAP2 register.
11562
//
11563
//*****************************************************************************
11564
#define UDMA_CHMAP2_CH23SEL_M 0xF0000000 // uDMA Channel 23 Source Select
11565
#define UDMA_CHMAP2_CH22SEL_M 0x0F000000 // uDMA Channel 22 Source Select
11566
#define UDMA_CHMAP2_CH21SEL_M 0x00F00000 // uDMA Channel 21 Source Select
11567
#define UDMA_CHMAP2_CH20SEL_M 0x000F0000 // uDMA Channel 20 Source Select
11568
#define UDMA_CHMAP2_CH19SEL_M 0x0000F000 // uDMA Channel 19 Source Select
11569
#define UDMA_CHMAP2_CH18SEL_M 0x00000F00 // uDMA Channel 18 Source Select
11570
#define UDMA_CHMAP2_CH17SEL_M 0x000000F0 // uDMA Channel 17 Source Select
11571
#define UDMA_CHMAP2_CH16SEL_M 0x0000000F // uDMA Channel 16 Source Select
11572
#define UDMA_CHMAP2_CH23SEL_S 28
11573
#define UDMA_CHMAP2_CH22SEL_S 24
11574
#define UDMA_CHMAP2_CH21SEL_S 20
11575
#define UDMA_CHMAP2_CH20SEL_S 16
11576
#define UDMA_CHMAP2_CH19SEL_S 12
11577
#define UDMA_CHMAP2_CH18SEL_S 8
11578
#define UDMA_CHMAP2_CH17SEL_S 4
11579
#define UDMA_CHMAP2_CH16SEL_S 0
11580
11581
//*****************************************************************************
11582
//
11583
// The following are defines for the bit fields in the UDMA_CHMAP3 register.
11584
//
11585
//*****************************************************************************
11586
#define UDMA_CHMAP3_CH31SEL_M 0xF0000000 // uDMA Channel 31 Source Select
11587
#define UDMA_CHMAP3_CH30SEL_M 0x0F000000 // uDMA Channel 30 Source Select
11588
#define UDMA_CHMAP3_CH29SEL_M 0x00F00000 // uDMA Channel 29 Source Select
11589
#define UDMA_CHMAP3_CH28SEL_M 0x000F0000 // uDMA Channel 28 Source Select
11590
#define UDMA_CHMAP3_CH27SEL_M 0x0000F000 // uDMA Channel 27 Source Select
11591
#define UDMA_CHMAP3_CH26SEL_M 0x00000F00 // uDMA Channel 26 Source Select
11592
#define UDMA_CHMAP3_CH25SEL_M 0x000000F0 // uDMA Channel 25 Source Select
11593
#define UDMA_CHMAP3_CH24SEL_M 0x0000000F // uDMA Channel 24 Source Select
11594
#define UDMA_CHMAP3_CH31SEL_S 28
11595
#define UDMA_CHMAP3_CH30SEL_S 24
11596
#define UDMA_CHMAP3_CH29SEL_S 20
11597
#define UDMA_CHMAP3_CH28SEL_S 16
11598
#define UDMA_CHMAP3_CH27SEL_S 12
11599
#define UDMA_CHMAP3_CH26SEL_S 8
11600
#define UDMA_CHMAP3_CH25SEL_S 4
11601
#define UDMA_CHMAP3_CH24SEL_S 0
11602
11603
//*****************************************************************************
11604
//
11605
// The following are defines for the bit fields in the UDMA_O_SRCENDP register.
11606
//
11607
//*****************************************************************************
11608
#define UDMA_SRCENDP_ADDR_M 0xFFFFFFFF // Source Address End Pointer
11609
#define UDMA_SRCENDP_ADDR_S 0
11610
11611
//*****************************************************************************
11612
//
11613
// The following are defines for the bit fields in the UDMA_O_DSTENDP register.
11614
//
11615
//*****************************************************************************
11616
#define UDMA_DSTENDP_ADDR_M 0xFFFFFFFF // Destination Address End Pointer
11617
#define UDMA_DSTENDP_ADDR_S 0
11618
11619
//*****************************************************************************
11620
//
11621
// The following are defines for the bit fields in the UDMA_O_CHCTL register.
11622
//
11623
//*****************************************************************************
11624
#define UDMA_CHCTL_DSTINC_M 0xC0000000 // Destination Address Increment
11625
#define UDMA_CHCTL_DSTINC_8 0x00000000 // Byte
11626
#define UDMA_CHCTL_DSTINC_16 0x40000000 // Half-word
11627
#define UDMA_CHCTL_DSTINC_32 0x80000000 // Word
11628
#define UDMA_CHCTL_DSTINC_NONE 0xC0000000 // No increment
11629
#define UDMA_CHCTL_DSTSIZE_M 0x30000000 // Destination Data Size
11630
#define UDMA_CHCTL_DSTSIZE_8 0x00000000 // Byte
11631
#define UDMA_CHCTL_DSTSIZE_16 0x10000000 // Half-word
11632
#define UDMA_CHCTL_DSTSIZE_32 0x20000000 // Word
11633
#define UDMA_CHCTL_SRCINC_M 0x0C000000 // Source Address Increment
11634
#define UDMA_CHCTL_SRCINC_8 0x00000000 // Byte
11635
#define UDMA_CHCTL_SRCINC_16 0x04000000 // Half-word
11636
#define UDMA_CHCTL_SRCINC_32 0x08000000 // Word
11637
#define UDMA_CHCTL_SRCINC_NONE 0x0C000000 // No increment
11638
#define UDMA_CHCTL_SRCSIZE_M 0x03000000 // Source Data Size
11639
#define UDMA_CHCTL_SRCSIZE_8 0x00000000 // Byte
11640
#define UDMA_CHCTL_SRCSIZE_16 0x01000000 // Half-word
11641
#define UDMA_CHCTL_SRCSIZE_32 0x02000000 // Word
11642
#define UDMA_CHCTL_ARBSIZE_M 0x0003C000 // Arbitration Size
11643
#define UDMA_CHCTL_ARBSIZE_1 0x00000000 // 1 Transfer
11644
#define UDMA_CHCTL_ARBSIZE_2 0x00004000 // 2 Transfers
11645
#define UDMA_CHCTL_ARBSIZE_4 0x00008000 // 4 Transfers
11646
#define UDMA_CHCTL_ARBSIZE_8 0x0000C000 // 8 Transfers
11647
#define UDMA_CHCTL_ARBSIZE_16 0x00010000 // 16 Transfers
11648
#define UDMA_CHCTL_ARBSIZE_32 0x00014000 // 32 Transfers
11649
#define UDMA_CHCTL_ARBSIZE_64 0x00018000 // 64 Transfers
11650
#define UDMA_CHCTL_ARBSIZE_128 0x0001C000 // 128 Transfers
11651
#define UDMA_CHCTL_ARBSIZE_256 0x00020000 // 256 Transfers
11652
#define UDMA_CHCTL_ARBSIZE_512 0x00024000 // 512 Transfers
11653
#define UDMA_CHCTL_ARBSIZE_1024 0x00028000 // 1024 Transfers
11654
#define UDMA_CHCTL_XFERSIZE_M 0x00003FF0 // Transfer Size (minus 1)
11655
#define UDMA_CHCTL_NXTUSEBURST 0x00000008 // Next Useburst
11656
#define UDMA_CHCTL_XFERMODE_M 0x00000007 // uDMA Transfer Mode
11657
#define UDMA_CHCTL_XFERMODE_STOP \
11658
0x00000000 // Stop
11659
#define UDMA_CHCTL_XFERMODE_BASIC \
11660
0x00000001 // Basic
11661
#define UDMA_CHCTL_XFERMODE_AUTO \
11662
0x00000002 // Auto-Request
11663
#define UDMA_CHCTL_XFERMODE_PINGPONG \
11664
0x00000003 // Ping-Pong
11665
#define UDMA_CHCTL_XFERMODE_MEM_SG \
11666
0x00000004 // Memory Scatter-Gather
11667
#define UDMA_CHCTL_XFERMODE_MEM_SGA \
11668
0x00000005 // Alternate Memory Scatter-Gather
11669
#define UDMA_CHCTL_XFERMODE_PER_SG \
11670
0x00000006 // Peripheral Scatter-Gather
11671
#define UDMA_CHCTL_XFERMODE_PER_SGA \
11672
0x00000007 // Alternate Peripheral
11673
// Scatter-Gather
11674
#define UDMA_CHCTL_XFERSIZE_S 4
11675
11676
//*****************************************************************************
11677
//
11678
// The following are defines for the bit fields in the NVIC_ACTLR register.
11679
//
11680
//*****************************************************************************
11681
#define NVIC_ACTLR_DISOOFP 0x00000200 // Disable Out-Of-Order Floating
11682
// Point
11683
#define NVIC_ACTLR_DISFPCA 0x00000100 // Disable CONTROL
11684
#define NVIC_ACTLR_DISFOLD 0x00000004 // Disable IT Folding
11685
#define NVIC_ACTLR_DISWBUF 0x00000002 // Disable Write Buffer
11686
#define NVIC_ACTLR_DISMCYC 0x00000001 // Disable Interrupts of Multiple
11687
// Cycle Instructions
11688
11689
//*****************************************************************************
11690
//
11691
// The following are defines for the bit fields in the NVIC_ST_CTRL register.
11692
//
11693
//*****************************************************************************
11694
#define NVIC_ST_CTRL_COUNT 0x00010000 // Count Flag
11695
#define NVIC_ST_CTRL_CLK_SRC 0x00000004 // Clock Source
11696
#define NVIC_ST_CTRL_INTEN 0x00000002 // Interrupt Enable
11697
#define NVIC_ST_CTRL_ENABLE 0x00000001 // Enable
11698
11699
//*****************************************************************************
11700
//
11701
// The following are defines for the bit fields in the NVIC_ST_RELOAD register.
11702
//
11703
//*****************************************************************************
11704
#define NVIC_ST_RELOAD_M 0x00FFFFFF // Reload Value
11705
#define NVIC_ST_RELOAD_S 0
11706
11707
//*****************************************************************************
11708
//
11709
// The following are defines for the bit fields in the NVIC_ST_CURRENT
11710
// register.
11711
//
11712
//*****************************************************************************
11713
#define NVIC_ST_CURRENT_M 0x00FFFFFF // Current Value
11714
#define NVIC_ST_CURRENT_S 0
11715
11716
//*****************************************************************************
11717
//
11718
// The following are defines for the bit fields in the NVIC_EN0 register.
11719
//
11720
//*****************************************************************************
11721
#define NVIC_EN0_INT_M 0xFFFFFFFF // Interrupt Enable
11722
11723
//*****************************************************************************
11724
//
11725
// The following are defines for the bit fields in the NVIC_EN1 register.
11726
//
11727
//*****************************************************************************
11728
#define NVIC_EN1_INT_M 0xFFFFFFFF // Interrupt Enable
11729
11730
//*****************************************************************************
11731
//
11732
// The following are defines for the bit fields in the NVIC_EN2 register.
11733
//
11734
//*****************************************************************************
11735
#define NVIC_EN2_INT_M 0xFFFFFFFF // Interrupt Enable
11736
11737
//*****************************************************************************
11738
//
11739
// The following are defines for the bit fields in the NVIC_EN3 register.
11740
//
11741
//*****************************************************************************
11742
#define NVIC_EN3_INT_M 0xFFFFFFFF // Interrupt Enable
11743
11744
//*****************************************************************************
11745
//
11746
// The following are defines for the bit fields in the NVIC_EN4 register.
11747
//
11748
//*****************************************************************************
11749
#define NVIC_EN4_INT_M 0x000007FF // Interrupt Enable
11750
11751
//*****************************************************************************
11752
//
11753
// The following are defines for the bit fields in the NVIC_DIS0 register.
11754
//
11755
//*****************************************************************************
11756
#define NVIC_DIS0_INT_M 0xFFFFFFFF // Interrupt Disable
11757
11758
//*****************************************************************************
11759
//
11760
// The following are defines for the bit fields in the NVIC_DIS1 register.
11761
//
11762
//*****************************************************************************
11763
#define NVIC_DIS1_INT_M 0xFFFFFFFF // Interrupt Disable
11764
11765
//*****************************************************************************
11766
//
11767
// The following are defines for the bit fields in the NVIC_DIS2 register.
11768
//
11769
//*****************************************************************************
11770
#define NVIC_DIS2_INT_M 0xFFFFFFFF // Interrupt Disable
11771
11772
//*****************************************************************************
11773
//
11774
// The following are defines for the bit fields in the NVIC_DIS3 register.
11775
//
11776
//*****************************************************************************
11777
#define NVIC_DIS3_INT_M 0xFFFFFFFF // Interrupt Disable
11778
11779
//*****************************************************************************
11780
//
11781
// The following are defines for the bit fields in the NVIC_DIS4 register.
11782
//
11783
//*****************************************************************************
11784
#define NVIC_DIS4_INT_M 0x000007FF // Interrupt Disable
11785
11786
//*****************************************************************************
11787
//
11788
// The following are defines for the bit fields in the NVIC_PEND0 register.
11789
//
11790
//*****************************************************************************
11791
#define NVIC_PEND0_INT_M 0xFFFFFFFF // Interrupt Set Pending
11792
11793
//*****************************************************************************
11794
//
11795
// The following are defines for the bit fields in the NVIC_PEND1 register.
11796
//
11797
//*****************************************************************************
11798
#define NVIC_PEND1_INT_M 0xFFFFFFFF // Interrupt Set Pending
11799
11800
//*****************************************************************************
11801
//
11802
// The following are defines for the bit fields in the NVIC_PEND2 register.
11803
//
11804
//*****************************************************************************
11805
#define NVIC_PEND2_INT_M 0xFFFFFFFF // Interrupt Set Pending
11806
11807
//*****************************************************************************
11808
//
11809
// The following are defines for the bit fields in the NVIC_PEND3 register.
11810
//
11811
//*****************************************************************************
11812
#define NVIC_PEND3_INT_M 0xFFFFFFFF // Interrupt Set Pending
11813
11814
//*****************************************************************************
11815
//
11816
// The following are defines for the bit fields in the NVIC_PEND4 register.
11817
//
11818
//*****************************************************************************
11819
#define NVIC_PEND4_INT_M 0x000007FF // Interrupt Set Pending
11820
11821
//*****************************************************************************
11822
//
11823
// The following are defines for the bit fields in the NVIC_UNPEND0 register.
11824
//
11825
//*****************************************************************************
11826
#define NVIC_UNPEND0_INT_M 0xFFFFFFFF // Interrupt Clear Pending
11827
11828
//*****************************************************************************
11829
//
11830
// The following are defines for the bit fields in the NVIC_UNPEND1 register.
11831
//
11832
//*****************************************************************************
11833
#define NVIC_UNPEND1_INT_M 0xFFFFFFFF // Interrupt Clear Pending
11834
11835
//*****************************************************************************
11836
//
11837
// The following are defines for the bit fields in the NVIC_UNPEND2 register.
11838
//
11839
//*****************************************************************************
11840
#define NVIC_UNPEND2_INT_M 0xFFFFFFFF // Interrupt Clear Pending
11841
11842
//*****************************************************************************
11843
//
11844
// The following are defines for the bit fields in the NVIC_UNPEND3 register.
11845
//
11846
//*****************************************************************************
11847
#define NVIC_UNPEND3_INT_M 0xFFFFFFFF // Interrupt Clear Pending
11848
11849
//*****************************************************************************
11850
//
11851
// The following are defines for the bit fields in the NVIC_UNPEND4 register.
11852
//
11853
//*****************************************************************************
11854
#define NVIC_UNPEND4_INT_M 0x000007FF // Interrupt Clear Pending
11855
11856
//*****************************************************************************
11857
//
11858
// The following are defines for the bit fields in the NVIC_ACTIVE0 register.
11859
//
11860
//*****************************************************************************
11861
#define NVIC_ACTIVE0_INT_M 0xFFFFFFFF // Interrupt Active
11862
11863
//*****************************************************************************
11864
//
11865
// The following are defines for the bit fields in the NVIC_ACTIVE1 register.
11866
//
11867
//*****************************************************************************
11868
#define NVIC_ACTIVE1_INT_M 0xFFFFFFFF // Interrupt Active
11869
11870
//*****************************************************************************
11871
//
11872
// The following are defines for the bit fields in the NVIC_ACTIVE2 register.
11873
//
11874
//*****************************************************************************
11875
#define NVIC_ACTIVE2_INT_M 0xFFFFFFFF // Interrupt Active
11876
11877
//*****************************************************************************
11878
//
11879
// The following are defines for the bit fields in the NVIC_ACTIVE3 register.
11880
//
11881
//*****************************************************************************
11882
#define NVIC_ACTIVE3_INT_M 0xFFFFFFFF // Interrupt Active
11883
11884
//*****************************************************************************
11885
//
11886
// The following are defines for the bit fields in the NVIC_ACTIVE4 register.
11887
//
11888
//*****************************************************************************
11889
#define NVIC_ACTIVE4_INT_M 0x000007FF // Interrupt Active
11890
11891
//*****************************************************************************
11892
//
11893
// The following are defines for the bit fields in the NVIC_PRI0 register.
11894
//
11895
//*****************************************************************************
11896
#define NVIC_PRI0_INT3_M 0xE0000000 // Interrupt 3 Priority Mask
11897
#define NVIC_PRI0_INT2_M 0x00E00000 // Interrupt 2 Priority Mask
11898
#define NVIC_PRI0_INT1_M 0x0000E000 // Interrupt 1 Priority Mask
11899
#define NVIC_PRI0_INT0_M 0x000000E0 // Interrupt 0 Priority Mask
11900
#define NVIC_PRI0_INT3_S 29
11901
#define NVIC_PRI0_INT2_S 21
11902
#define NVIC_PRI0_INT1_S 13
11903
#define NVIC_PRI0_INT0_S 5
11904
11905
//*****************************************************************************
11906
//
11907
// The following are defines for the bit fields in the NVIC_PRI1 register.
11908
//
11909
//*****************************************************************************
11910
#define NVIC_PRI1_INT7_M 0xE0000000 // Interrupt 7 Priority Mask
11911
#define NVIC_PRI1_INT6_M 0x00E00000 // Interrupt 6 Priority Mask
11912
#define NVIC_PRI1_INT5_M 0x0000E000 // Interrupt 5 Priority Mask
11913
#define NVIC_PRI1_INT4_M 0x000000E0 // Interrupt 4 Priority Mask
11914
#define NVIC_PRI1_INT7_S 29
11915
#define NVIC_PRI1_INT6_S 21
11916
#define NVIC_PRI1_INT5_S 13
11917
#define NVIC_PRI1_INT4_S 5
11918
11919
//*****************************************************************************
11920
//
11921
// The following are defines for the bit fields in the NVIC_PRI2 register.
11922
//
11923
//*****************************************************************************
11924
#define NVIC_PRI2_INT11_M 0xE0000000 // Interrupt 11 Priority Mask
11925
#define NVIC_PRI2_INT10_M 0x00E00000 // Interrupt 10 Priority Mask
11926
#define NVIC_PRI2_INT9_M 0x0000E000 // Interrupt 9 Priority Mask
11927
#define NVIC_PRI2_INT8_M 0x000000E0 // Interrupt 8 Priority Mask
11928
#define NVIC_PRI2_INT11_S 29
11929
#define NVIC_PRI2_INT10_S 21
11930
#define NVIC_PRI2_INT9_S 13
11931
#define NVIC_PRI2_INT8_S 5
11932
11933
//*****************************************************************************
11934
//
11935
// The following are defines for the bit fields in the NVIC_PRI3 register.
11936
//
11937
//*****************************************************************************
11938
#define NVIC_PRI3_INT15_M 0xE0000000 // Interrupt 15 Priority Mask
11939
#define NVIC_PRI3_INT14_M 0x00E00000 // Interrupt 14 Priority Mask
11940
#define NVIC_PRI3_INT13_M 0x0000E000 // Interrupt 13 Priority Mask
11941
#define NVIC_PRI3_INT12_M 0x000000E0 // Interrupt 12 Priority Mask
11942
#define NVIC_PRI3_INT15_S 29
11943
#define NVIC_PRI3_INT14_S 21
11944
#define NVIC_PRI3_INT13_S 13
11945
#define NVIC_PRI3_INT12_S 5
11946
11947
//*****************************************************************************
11948
//
11949
// The following are defines for the bit fields in the NVIC_PRI4 register.
11950
//
11951
//*****************************************************************************
11952
#define NVIC_PRI4_INT19_M 0xE0000000 // Interrupt 19 Priority Mask
11953
#define NVIC_PRI4_INT18_M 0x00E00000 // Interrupt 18 Priority Mask
11954
#define NVIC_PRI4_INT17_M 0x0000E000 // Interrupt 17 Priority Mask
11955
#define NVIC_PRI4_INT16_M 0x000000E0 // Interrupt 16 Priority Mask
11956
#define NVIC_PRI4_INT19_S 29
11957
#define NVIC_PRI4_INT18_S 21
11958
#define NVIC_PRI4_INT17_S 13
11959
#define NVIC_PRI4_INT16_S 5
11960
11961
//*****************************************************************************
11962
//
11963
// The following are defines for the bit fields in the NVIC_PRI5 register.
11964
//
11965
//*****************************************************************************
11966
#define NVIC_PRI5_INT23_M 0xE0000000 // Interrupt 23 Priority Mask
11967
#define NVIC_PRI5_INT22_M 0x00E00000 // Interrupt 22 Priority Mask
11968
#define NVIC_PRI5_INT21_M 0x0000E000 // Interrupt 21 Priority Mask
11969
#define NVIC_PRI5_INT20_M 0x000000E0 // Interrupt 20 Priority Mask
11970
#define NVIC_PRI5_INT23_S 29
11971
#define NVIC_PRI5_INT22_S 21
11972
#define NVIC_PRI5_INT21_S 13
11973
#define NVIC_PRI5_INT20_S 5
11974
11975
//*****************************************************************************
11976
//
11977
// The following are defines for the bit fields in the NVIC_PRI6 register.
11978
//
11979
//*****************************************************************************
11980
#define NVIC_PRI6_INT27_M 0xE0000000 // Interrupt 27 Priority Mask
11981
#define NVIC_PRI6_INT26_M 0x00E00000 // Interrupt 26 Priority Mask
11982
#define NVIC_PRI6_INT25_M 0x0000E000 // Interrupt 25 Priority Mask
11983
#define NVIC_PRI6_INT24_M 0x000000E0 // Interrupt 24 Priority Mask
11984
#define NVIC_PRI6_INT27_S 29
11985
#define NVIC_PRI6_INT26_S 21
11986
#define NVIC_PRI6_INT25_S 13
11987
#define NVIC_PRI6_INT24_S 5
11988
11989
//*****************************************************************************
11990
//
11991
// The following are defines for the bit fields in the NVIC_PRI7 register.
11992
//
11993
//*****************************************************************************
11994
#define NVIC_PRI7_INT31_M 0xE0000000 // Interrupt 31 Priority Mask
11995
#define NVIC_PRI7_INT30_M 0x00E00000 // Interrupt 30 Priority Mask
11996
#define NVIC_PRI7_INT29_M 0x0000E000 // Interrupt 29 Priority Mask
11997
#define NVIC_PRI7_INT28_M 0x000000E0 // Interrupt 28 Priority Mask
11998
#define NVIC_PRI7_INT31_S 29
11999
#define NVIC_PRI7_INT30_S 21
12000
#define NVIC_PRI7_INT29_S 13
12001
#define NVIC_PRI7_INT28_S 5
12002
12003
//*****************************************************************************
12004
//
12005
// The following are defines for the bit fields in the NVIC_PRI8 register.
12006
//
12007
//*****************************************************************************
12008
#define NVIC_PRI8_INT35_M 0xE0000000 // Interrupt 35 Priority Mask
12009
#define NVIC_PRI8_INT34_M 0x00E00000 // Interrupt 34 Priority Mask
12010
#define NVIC_PRI8_INT33_M 0x0000E000 // Interrupt 33 Priority Mask
12011
#define NVIC_PRI8_INT32_M 0x000000E0 // Interrupt 32 Priority Mask
12012
#define NVIC_PRI8_INT35_S 29
12013
#define NVIC_PRI8_INT34_S 21
12014
#define NVIC_PRI8_INT33_S 13
12015
#define NVIC_PRI8_INT32_S 5
12016
12017
//*****************************************************************************
12018
//
12019
// The following are defines for the bit fields in the NVIC_PRI9 register.
12020
//
12021
//*****************************************************************************
12022
#define NVIC_PRI9_INT39_M 0xE0000000 // Interrupt 39 Priority Mask
12023
#define NVIC_PRI9_INT38_M 0x00E00000 // Interrupt 38 Priority Mask
12024
#define NVIC_PRI9_INT37_M 0x0000E000 // Interrupt 37 Priority Mask
12025
#define NVIC_PRI9_INT36_M 0x000000E0 // Interrupt 36 Priority Mask
12026
#define NVIC_PRI9_INT39_S 29
12027
#define NVIC_PRI9_INT38_S 21
12028
#define NVIC_PRI9_INT37_S 13
12029
#define NVIC_PRI9_INT36_S 5
12030
12031
//*****************************************************************************
12032
//
12033
// The following are defines for the bit fields in the NVIC_PRI10 register.
12034
//
12035
//*****************************************************************************
12036
#define NVIC_PRI10_INT43_M 0xE0000000 // Interrupt 43 Priority Mask
12037
#define NVIC_PRI10_INT42_M 0x00E00000 // Interrupt 42 Priority Mask
12038
#define NVIC_PRI10_INT41_M 0x0000E000 // Interrupt 41 Priority Mask
12039
#define NVIC_PRI10_INT40_M 0x000000E0 // Interrupt 40 Priority Mask
12040
#define NVIC_PRI10_INT43_S 29
12041
#define NVIC_PRI10_INT42_S 21
12042
#define NVIC_PRI10_INT41_S 13
12043
#define NVIC_PRI10_INT40_S 5
12044
12045
//*****************************************************************************
12046
//
12047
// The following are defines for the bit fields in the NVIC_PRI11 register.
12048
//
12049
//*****************************************************************************
12050
#define NVIC_PRI11_INT47_M 0xE0000000 // Interrupt 47 Priority Mask
12051
#define NVIC_PRI11_INT46_M 0x00E00000 // Interrupt 46 Priority Mask
12052
#define NVIC_PRI11_INT45_M 0x0000E000 // Interrupt 45 Priority Mask
12053
#define NVIC_PRI11_INT44_M 0x000000E0 // Interrupt 44 Priority Mask
12054
#define NVIC_PRI11_INT47_S 29
12055
#define NVIC_PRI11_INT46_S 21
12056
#define NVIC_PRI11_INT45_S 13
12057
#define NVIC_PRI11_INT44_S 5
12058
12059
//*****************************************************************************
12060
//
12061
// The following are defines for the bit fields in the NVIC_PRI12 register.
12062
//
12063
//*****************************************************************************
12064
#define NVIC_PRI12_INT51_M 0xE0000000 // Interrupt 51 Priority Mask
12065
#define NVIC_PRI12_INT50_M 0x00E00000 // Interrupt 50 Priority Mask
12066
#define NVIC_PRI12_INT49_M 0x0000E000 // Interrupt 49 Priority Mask
12067
#define NVIC_PRI12_INT48_M 0x000000E0 // Interrupt 48 Priority Mask
12068
#define NVIC_PRI12_INT51_S 29
12069
#define NVIC_PRI12_INT50_S 21
12070
#define NVIC_PRI12_INT49_S 13
12071
#define NVIC_PRI12_INT48_S 5
12072
12073
//*****************************************************************************
12074
//
12075
// The following are defines for the bit fields in the NVIC_PRI13 register.
12076
//
12077
//*****************************************************************************
12078
#define NVIC_PRI13_INT55_M 0xE0000000 // Interrupt 55 Priority Mask
12079
#define NVIC_PRI13_INT54_M 0x00E00000 // Interrupt 54 Priority Mask
12080
#define NVIC_PRI13_INT53_M 0x0000E000 // Interrupt 53 Priority Mask
12081
#define NVIC_PRI13_INT52_M 0x000000E0 // Interrupt 52 Priority Mask
12082
#define NVIC_PRI13_INT55_S 29
12083
#define NVIC_PRI13_INT54_S 21
12084
#define NVIC_PRI13_INT53_S 13
12085
#define NVIC_PRI13_INT52_S 5
12086
12087
//*****************************************************************************
12088
//
12089
// The following are defines for the bit fields in the NVIC_PRI14 register.
12090
//
12091
//*****************************************************************************
12092
#define NVIC_PRI14_INTD_M 0xE0000000 // Interrupt 59 Priority Mask
12093
#define NVIC_PRI14_INTC_M 0x00E00000 // Interrupt 58 Priority Mask
12094
#define NVIC_PRI14_INTB_M 0x0000E000 // Interrupt 57 Priority Mask
12095
#define NVIC_PRI14_INTA_M 0x000000E0 // Interrupt 56 Priority Mask
12096
#define NVIC_PRI14_INTD_S 29
12097
#define NVIC_PRI14_INTC_S 21
12098
#define NVIC_PRI14_INTB_S 13
12099
#define NVIC_PRI14_INTA_S 5
12100
12101
//*****************************************************************************
12102
//
12103
// The following are defines for the bit fields in the NVIC_PRI15 register.
12104
//
12105
//*****************************************************************************
12106
#define NVIC_PRI15_INTD_M 0xE0000000 // Interrupt 63 Priority Mask
12107
#define NVIC_PRI15_INTC_M 0x00E00000 // Interrupt 62 Priority Mask
12108
#define NVIC_PRI15_INTB_M 0x0000E000 // Interrupt 61 Priority Mask
12109
#define NVIC_PRI15_INTA_M 0x000000E0 // Interrupt 60 Priority Mask
12110
#define NVIC_PRI15_INTD_S 29
12111
#define NVIC_PRI15_INTC_S 21
12112
#define NVIC_PRI15_INTB_S 13
12113
#define NVIC_PRI15_INTA_S 5
12114
12115
//*****************************************************************************
12116
//
12117
// The following are defines for the bit fields in the NVIC_PRI16 register.
12118
//
12119
//*****************************************************************************
12120
#define NVIC_PRI16_INTD_M 0xE0000000 // Interrupt 67 Priority Mask
12121
#define NVIC_PRI16_INTC_M 0x00E00000 // Interrupt 66 Priority Mask
12122
#define NVIC_PRI16_INTB_M 0x0000E000 // Interrupt 65 Priority Mask
12123
#define NVIC_PRI16_INTA_M 0x000000E0 // Interrupt 64 Priority Mask
12124
#define NVIC_PRI16_INTD_S 29
12125
#define NVIC_PRI16_INTC_S 21
12126
#define NVIC_PRI16_INTB_S 13
12127
#define NVIC_PRI16_INTA_S 5
12128
12129
//*****************************************************************************
12130
//
12131
// The following are defines for the bit fields in the NVIC_PRI17 register.
12132
//
12133
//*****************************************************************************
12134
#define NVIC_PRI17_INTD_M 0xE0000000 // Interrupt 71 Priority Mask
12135
#define NVIC_PRI17_INTC_M 0x00E00000 // Interrupt 70 Priority Mask
12136
#define NVIC_PRI17_INTB_M 0x0000E000 // Interrupt 69 Priority Mask
12137
#define NVIC_PRI17_INTA_M 0x000000E0 // Interrupt 68 Priority Mask
12138
#define NVIC_PRI17_INTD_S 29
12139
#define NVIC_PRI17_INTC_S 21
12140
#define NVIC_PRI17_INTB_S 13
12141
#define NVIC_PRI17_INTA_S 5
12142
12143
//*****************************************************************************
12144
//
12145
// The following are defines for the bit fields in the NVIC_PRI18 register.
12146
//
12147
//*****************************************************************************
12148
#define NVIC_PRI18_INTD_M 0xE0000000 // Interrupt 75 Priority Mask
12149
#define NVIC_PRI18_INTC_M 0x00E00000 // Interrupt 74 Priority Mask
12150
#define NVIC_PRI18_INTB_M 0x0000E000 // Interrupt 73 Priority Mask
12151
#define NVIC_PRI18_INTA_M 0x000000E0 // Interrupt 72 Priority Mask
12152
#define NVIC_PRI18_INTD_S 29
12153
#define NVIC_PRI18_INTC_S 21
12154
#define NVIC_PRI18_INTB_S 13
12155
#define NVIC_PRI18_INTA_S 5
12156
12157
//*****************************************************************************
12158
//
12159
// The following are defines for the bit fields in the NVIC_PRI19 register.
12160
//
12161
//*****************************************************************************
12162
#define NVIC_PRI19_INTD_M 0xE0000000 // Interrupt 79 Priority Mask
12163
#define NVIC_PRI19_INTC_M 0x00E00000 // Interrupt 78 Priority Mask
12164
#define NVIC_PRI19_INTB_M 0x0000E000 // Interrupt 77 Priority Mask
12165
#define NVIC_PRI19_INTA_M 0x000000E0 // Interrupt 76 Priority Mask
12166
#define NVIC_PRI19_INTD_S 29
12167
#define NVIC_PRI19_INTC_S 21
12168
#define NVIC_PRI19_INTB_S 13
12169
#define NVIC_PRI19_INTA_S 5
12170
12171
//*****************************************************************************
12172
//
12173
// The following are defines for the bit fields in the NVIC_PRI20 register.
12174
//
12175
//*****************************************************************************
12176
#define NVIC_PRI20_INTD_M 0xE0000000 // Interrupt 83 Priority Mask
12177
#define NVIC_PRI20_INTC_M 0x00E00000 // Interrupt 82 Priority Mask
12178
#define NVIC_PRI20_INTB_M 0x0000E000 // Interrupt 81 Priority Mask
12179
#define NVIC_PRI20_INTA_M 0x000000E0 // Interrupt 80 Priority Mask
12180
#define NVIC_PRI20_INTD_S 29
12181
#define NVIC_PRI20_INTC_S 21
12182
#define NVIC_PRI20_INTB_S 13
12183
#define NVIC_PRI20_INTA_S 5
12184
12185
//*****************************************************************************
12186
//
12187
// The following are defines for the bit fields in the NVIC_PRI21 register.
12188
//
12189
//*****************************************************************************
12190
#define NVIC_PRI21_INTD_M 0xE0000000 // Interrupt 87 Priority Mask
12191
#define NVIC_PRI21_INTC_M 0x00E00000 // Interrupt 86 Priority Mask
12192
#define NVIC_PRI21_INTB_M 0x0000E000 // Interrupt 85 Priority Mask
12193
#define NVIC_PRI21_INTA_M 0x000000E0 // Interrupt 84 Priority Mask
12194
#define NVIC_PRI21_INTD_S 29
12195
#define NVIC_PRI21_INTC_S 21
12196
#define NVIC_PRI21_INTB_S 13
12197
#define NVIC_PRI21_INTA_S 5
12198
12199
//*****************************************************************************
12200
//
12201
// The following are defines for the bit fields in the NVIC_PRI22 register.
12202
//
12203
//*****************************************************************************
12204
#define NVIC_PRI22_INTD_M 0xE0000000 // Interrupt 91 Priority Mask
12205
#define NVIC_PRI22_INTC_M 0x00E00000 // Interrupt 90 Priority Mask
12206
#define NVIC_PRI22_INTB_M 0x0000E000 // Interrupt 89 Priority Mask
12207
#define NVIC_PRI22_INTA_M 0x000000E0 // Interrupt 88 Priority Mask
12208
#define NVIC_PRI22_INTD_S 29
12209
#define NVIC_PRI22_INTC_S 21
12210
#define NVIC_PRI22_INTB_S 13
12211
#define NVIC_PRI22_INTA_S 5
12212
12213
//*****************************************************************************
12214
//
12215
// The following are defines for the bit fields in the NVIC_PRI23 register.
12216
//
12217
//*****************************************************************************
12218
#define NVIC_PRI23_INTD_M 0xE0000000 // Interrupt 95 Priority Mask
12219
#define NVIC_PRI23_INTC_M 0x00E00000 // Interrupt 94 Priority Mask
12220
#define NVIC_PRI23_INTB_M 0x0000E000 // Interrupt 93 Priority Mask
12221
#define NVIC_PRI23_INTA_M 0x000000E0 // Interrupt 92 Priority Mask
12222
#define NVIC_PRI23_INTD_S 29
12223
#define NVIC_PRI23_INTC_S 21
12224
#define NVIC_PRI23_INTB_S 13
12225
#define NVIC_PRI23_INTA_S 5
12226
12227
//*****************************************************************************
12228
//
12229
// The following are defines for the bit fields in the NVIC_PRI24 register.
12230
//
12231
//*****************************************************************************
12232
#define NVIC_PRI24_INTD_M 0xE0000000 // Interrupt 99 Priority Mask
12233
#define NVIC_PRI24_INTC_M 0x00E00000 // Interrupt 98 Priority Mask
12234
#define NVIC_PRI24_INTB_M 0x0000E000 // Interrupt 97 Priority Mask
12235
#define NVIC_PRI24_INTA_M 0x000000E0 // Interrupt 96 Priority Mask
12236
#define NVIC_PRI24_INTD_S 29
12237
#define NVIC_PRI24_INTC_S 21
12238
#define NVIC_PRI24_INTB_S 13
12239
#define NVIC_PRI24_INTA_S 5
12240
12241
//*****************************************************************************
12242
//
12243
// The following are defines for the bit fields in the NVIC_PRI25 register.
12244
//
12245
//*****************************************************************************
12246
#define NVIC_PRI25_INTD_M 0xE0000000 // Interrupt 103 Priority Mask
12247
#define NVIC_PRI25_INTC_M 0x00E00000 // Interrupt 102 Priority Mask
12248
#define NVIC_PRI25_INTB_M 0x0000E000 // Interrupt 101 Priority Mask
12249
#define NVIC_PRI25_INTA_M 0x000000E0 // Interrupt 100 Priority Mask
12250
#define NVIC_PRI25_INTD_S 29
12251
#define NVIC_PRI25_INTC_S 21
12252
#define NVIC_PRI25_INTB_S 13
12253
#define NVIC_PRI25_INTA_S 5
12254
12255
//*****************************************************************************
12256
//
12257
// The following are defines for the bit fields in the NVIC_PRI26 register.
12258
//
12259
//*****************************************************************************
12260
#define NVIC_PRI26_INTD_M 0xE0000000 // Interrupt 107 Priority Mask
12261
#define NVIC_PRI26_INTC_M 0x00E00000 // Interrupt 106 Priority Mask
12262
#define NVIC_PRI26_INTB_M 0x0000E000 // Interrupt 105 Priority Mask
12263
#define NVIC_PRI26_INTA_M 0x000000E0 // Interrupt 104 Priority Mask
12264
#define NVIC_PRI26_INTD_S 29
12265
#define NVIC_PRI26_INTC_S 21
12266
#define NVIC_PRI26_INTB_S 13
12267
#define NVIC_PRI26_INTA_S 5
12268
12269
//*****************************************************************************
12270
//
12271
// The following are defines for the bit fields in the NVIC_PRI27 register.
12272
//
12273
//*****************************************************************************
12274
#define NVIC_PRI27_INTD_M 0xE0000000 // Interrupt 111 Priority Mask
12275
#define NVIC_PRI27_INTC_M 0x00E00000 // Interrupt 110 Priority Mask
12276
#define NVIC_PRI27_INTB_M 0x0000E000 // Interrupt 109 Priority Mask
12277
#define NVIC_PRI27_INTA_M 0x000000E0 // Interrupt 108 Priority Mask
12278
#define NVIC_PRI27_INTD_S 29
12279
#define NVIC_PRI27_INTC_S 21
12280
#define NVIC_PRI27_INTB_S 13
12281
#define NVIC_PRI27_INTA_S 5
12282
12283
//*****************************************************************************
12284
//
12285
// The following are defines for the bit fields in the NVIC_PRI28 register.
12286
//
12287
//*****************************************************************************
12288
#define NVIC_PRI28_INTD_M 0xE0000000 // Interrupt 115 Priority Mask
12289
#define NVIC_PRI28_INTC_M 0x00E00000 // Interrupt 114 Priority Mask
12290
#define NVIC_PRI28_INTB_M 0x0000E000 // Interrupt 113 Priority Mask
12291
#define NVIC_PRI28_INTA_M 0x000000E0 // Interrupt 112 Priority Mask
12292
#define NVIC_PRI28_INTD_S 29
12293
#define NVIC_PRI28_INTC_S 21
12294
#define NVIC_PRI28_INTB_S 13
12295
#define NVIC_PRI28_INTA_S 5
12296
12297
//*****************************************************************************
12298
//
12299
// The following are defines for the bit fields in the NVIC_PRI29 register.
12300
//
12301
//*****************************************************************************
12302
#define NVIC_PRI29_INTD_M 0xE0000000 // Interrupt 119 Priority Mask
12303
#define NVIC_PRI29_INTC_M 0x00E00000 // Interrupt 118 Priority Mask
12304
#define NVIC_PRI29_INTB_M 0x0000E000 // Interrupt 117 Priority Mask
12305
#define NVIC_PRI29_INTA_M 0x000000E0 // Interrupt 116 Priority Mask
12306
#define NVIC_PRI29_INTD_S 29
12307
#define NVIC_PRI29_INTC_S 21
12308
#define NVIC_PRI29_INTB_S 13
12309
#define NVIC_PRI29_INTA_S 5
12310
12311
//*****************************************************************************
12312
//
12313
// The following are defines for the bit fields in the NVIC_PRI30 register.
12314
//
12315
//*****************************************************************************
12316
#define NVIC_PRI30_INTD_M 0xE0000000 // Interrupt 123 Priority Mask
12317
#define NVIC_PRI30_INTC_M 0x00E00000 // Interrupt 122 Priority Mask
12318
#define NVIC_PRI30_INTB_M 0x0000E000 // Interrupt 121 Priority Mask
12319
#define NVIC_PRI30_INTA_M 0x000000E0 // Interrupt 120 Priority Mask
12320
#define NVIC_PRI30_INTD_S 29
12321
#define NVIC_PRI30_INTC_S 21
12322
#define NVIC_PRI30_INTB_S 13
12323
#define NVIC_PRI30_INTA_S 5
12324
12325
//*****************************************************************************
12326
//
12327
// The following are defines for the bit fields in the NVIC_PRI31 register.
12328
//
12329
//*****************************************************************************
12330
#define NVIC_PRI31_INTD_M 0xE0000000 // Interrupt 127 Priority Mask
12331
#define NVIC_PRI31_INTC_M 0x00E00000 // Interrupt 126 Priority Mask
12332
#define NVIC_PRI31_INTB_M 0x0000E000 // Interrupt 125 Priority Mask
12333
#define NVIC_PRI31_INTA_M 0x000000E0 // Interrupt 124 Priority Mask
12334
#define NVIC_PRI31_INTD_S 29
12335
#define NVIC_PRI31_INTC_S 21
12336
#define NVIC_PRI31_INTB_S 13
12337
#define NVIC_PRI31_INTA_S 5
12338
12339
//*****************************************************************************
12340
//
12341
// The following are defines for the bit fields in the NVIC_PRI32 register.
12342
//
12343
//*****************************************************************************
12344
#define NVIC_PRI32_INTD_M 0xE0000000 // Interrupt 131 Priority Mask
12345
#define NVIC_PRI32_INTC_M 0x00E00000 // Interrupt 130 Priority Mask
12346
#define NVIC_PRI32_INTB_M 0x0000E000 // Interrupt 129 Priority Mask
12347
#define NVIC_PRI32_INTA_M 0x000000E0 // Interrupt 128 Priority Mask
12348
#define NVIC_PRI32_INTD_S 29
12349
#define NVIC_PRI32_INTC_S 21
12350
#define NVIC_PRI32_INTB_S 13
12351
#define NVIC_PRI32_INTA_S 5
12352
12353
//*****************************************************************************
12354
//
12355
// The following are defines for the bit fields in the NVIC_PRI33 register.
12356
//
12357
//*****************************************************************************
12358
#define NVIC_PRI33_INTD_M 0xE0000000 // Interrupt Priority for Interrupt
12359
// [4n+3]
12360
#define NVIC_PRI33_INTC_M 0x00E00000 // Interrupt Priority for Interrupt
12361
// [4n+2]
12362
#define NVIC_PRI33_INTB_M 0x0000E000 // Interrupt Priority for Interrupt
12363
// [4n+1]
12364
#define NVIC_PRI33_INTA_M 0x000000E0 // Interrupt Priority for Interrupt
12365
// [4n]
12366
#define NVIC_PRI33_INTD_S 29
12367
#define NVIC_PRI33_INTC_S 21
12368
#define NVIC_PRI33_INTB_S 13
12369
#define NVIC_PRI33_INTA_S 5
12370
12371
//*****************************************************************************
12372
//
12373
// The following are defines for the bit fields in the NVIC_PRI34 register.
12374
//
12375
//*****************************************************************************
12376
#define NVIC_PRI34_INTD_M 0xE0000000 // Interrupt Priority for Interrupt
12377
// [4n+3]
12378
#define NVIC_PRI34_INTC_M 0x00E00000 // Interrupt Priority for Interrupt
12379
// [4n+2]
12380
#define NVIC_PRI34_INTB_M 0x0000E000 // Interrupt Priority for Interrupt
12381
// [4n+1]
12382
#define NVIC_PRI34_INTA_M 0x000000E0 // Interrupt Priority for Interrupt
12383
// [4n]
12384
#define NVIC_PRI34_INTD_S 29
12385
#define NVIC_PRI34_INTC_S 21
12386
#define NVIC_PRI34_INTB_S 13
12387
#define NVIC_PRI34_INTA_S 5
12388
12389
//*****************************************************************************
12390
//
12391
// The following are defines for the bit fields in the NVIC_CPUID register.
12392
//
12393
//*****************************************************************************
12394
#define NVIC_CPUID_IMP_M 0xFF000000 // Implementer Code
12395
#define NVIC_CPUID_IMP_ARM 0x41000000 // ARM
12396
#define NVIC_CPUID_VAR_M 0x00F00000 // Variant Number
12397
#define NVIC_CPUID_CON_M 0x000F0000 // Constant
12398
#define NVIC_CPUID_PARTNO_M 0x0000FFF0 // Part Number
12399
#define NVIC_CPUID_PARTNO_CM4 0x0000C240 // Cortex-M4 processor
12400
#define NVIC_CPUID_REV_M 0x0000000F // Revision Number
12401
12402
//*****************************************************************************
12403
//
12404
// The following are defines for the bit fields in the NVIC_INT_CTRL register.
12405
//
12406
//*****************************************************************************
12407
#define NVIC_INT_CTRL_NMI_SET 0x80000000 // NMI Set Pending
12408
#define NVIC_INT_CTRL_PEND_SV 0x10000000 // PendSV Set Pending
12409
#define NVIC_INT_CTRL_UNPEND_SV 0x08000000 // PendSV Clear Pending
12410
#define NVIC_INT_CTRL_PENDSTSET 0x04000000 // SysTick Set Pending
12411
#define NVIC_INT_CTRL_PENDSTCLR 0x02000000 // SysTick Clear Pending
12412
#define NVIC_INT_CTRL_ISR_PRE 0x00800000 // Debug Interrupt Handling
12413
#define NVIC_INT_CTRL_ISR_PEND 0x00400000 // Interrupt Pending
12414
#define NVIC_INT_CTRL_VEC_PEN_M 0x000FF000 // Interrupt Pending Vector Number
12415
#define NVIC_INT_CTRL_VEC_PEN_NMI \
12416
0x00002000 // NMI
12417
#define NVIC_INT_CTRL_VEC_PEN_HARD \
12418
0x00003000 // Hard fault
12419
#define NVIC_INT_CTRL_VEC_PEN_MEM \
12420
0x00004000 // Memory management fault
12421
#define NVIC_INT_CTRL_VEC_PEN_BUS \
12422
0x00005000 // Bus fault
12423
#define NVIC_INT_CTRL_VEC_PEN_USG \
12424
0x00006000 // Usage fault
12425
#define NVIC_INT_CTRL_VEC_PEN_SVC \
12426
0x0000B000 // SVCall
12427
#define NVIC_INT_CTRL_VEC_PEN_PNDSV \
12428
0x0000E000 // PendSV
12429
#define NVIC_INT_CTRL_VEC_PEN_TICK \
12430
0x0000F000 // SysTick
12431
#define NVIC_INT_CTRL_RET_BASE 0x00000800 // Return to Base
12432
#define NVIC_INT_CTRL_VEC_ACT_M 0x000000FF // Interrupt Pending Vector Number
12433
#define NVIC_INT_CTRL_VEC_ACT_S 0
12434
12435
//*****************************************************************************
12436
//
12437
// The following are defines for the bit fields in the NVIC_VTABLE register.
12438
//
12439
//*****************************************************************************
12440
#define NVIC_VTABLE_OFFSET_M 0xFFFFFC00 // Vector Table Offset
12441
#define NVIC_VTABLE_OFFSET_S 10
12442
12443
//*****************************************************************************
12444
//
12445
// The following are defines for the bit fields in the NVIC_APINT register.
12446
//
12447
//*****************************************************************************
12448
#define NVIC_APINT_VECTKEY_M 0xFFFF0000 // Register Key
12449
#define NVIC_APINT_VECTKEY 0x05FA0000 // Vector key
12450
#define NVIC_APINT_ENDIANESS 0x00008000 // Data Endianess
12451
#define NVIC_APINT_PRIGROUP_M 0x00000700 // Interrupt Priority Grouping
12452
#define NVIC_APINT_PRIGROUP_7_1 0x00000000 // Priority group 7.1 split
12453
#define NVIC_APINT_PRIGROUP_6_2 0x00000100 // Priority group 6.2 split
12454
#define NVIC_APINT_PRIGROUP_5_3 0x00000200 // Priority group 5.3 split
12455
#define NVIC_APINT_PRIGROUP_4_4 0x00000300 // Priority group 4.4 split
12456
#define NVIC_APINT_PRIGROUP_3_5 0x00000400 // Priority group 3.5 split
12457
#define NVIC_APINT_PRIGROUP_2_6 0x00000500 // Priority group 2.6 split
12458
#define NVIC_APINT_PRIGROUP_1_7 0x00000600 // Priority group 1.7 split
12459
#define NVIC_APINT_PRIGROUP_0_8 0x00000700 // Priority group 0.8 split
12460
#define NVIC_APINT_SYSRESETREQ 0x00000004 // System Reset Request
12461
#define NVIC_APINT_VECT_CLR_ACT 0x00000002 // Clear Active NMI / Fault
12462
#define NVIC_APINT_VECT_RESET 0x00000001 // System Reset
12463
12464
//*****************************************************************************
12465
//
12466
// The following are defines for the bit fields in the NVIC_SYS_CTRL register.
12467
//
12468
//*****************************************************************************
12469
#define NVIC_SYS_CTRL_SEVONPEND 0x00000010 // Wake Up on Pending
12470
#define NVIC_SYS_CTRL_SLEEPDEEP 0x00000004 // Deep Sleep Enable
12471
#define NVIC_SYS_CTRL_SLEEPEXIT 0x00000002 // Sleep on ISR Exit
12472
12473
//*****************************************************************************
12474
//
12475
// The following are defines for the bit fields in the NVIC_CFG_CTRL register.
12476
//
12477
//*****************************************************************************
12478
#define NVIC_CFG_CTRL_STKALIGN 0x00000200 // Stack Alignment on Exception
12479
// Entry
12480
#define NVIC_CFG_CTRL_BFHFNMIGN 0x00000100 // Ignore Bus Fault in NMI and
12481
// Fault
12482
#define NVIC_CFG_CTRL_DIV0 0x00000010 // Trap on Divide by 0
12483
#define NVIC_CFG_CTRL_UNALIGNED 0x00000008 // Trap on Unaligned Access
12484
#define NVIC_CFG_CTRL_MAIN_PEND 0x00000002 // Allow Main Interrupt Trigger
12485
#define NVIC_CFG_CTRL_BASE_THR 0x00000001 // Thread State Control
12486
12487
//*****************************************************************************
12488
//
12489
// The following are defines for the bit fields in the NVIC_SYS_PRI1 register.
12490
//
12491
//*****************************************************************************
12492
#define NVIC_SYS_PRI1_USAGE_M 0x00E00000 // Usage Fault Priority
12493
#define NVIC_SYS_PRI1_BUS_M 0x0000E000 // Bus Fault Priority
12494
#define NVIC_SYS_PRI1_MEM_M 0x000000E0 // Memory Management Fault Priority
12495
#define NVIC_SYS_PRI1_USAGE_S 21
12496
#define NVIC_SYS_PRI1_BUS_S 13
12497
#define NVIC_SYS_PRI1_MEM_S 5
12498
12499
//*****************************************************************************
12500
//
12501
// The following are defines for the bit fields in the NVIC_SYS_PRI2 register.
12502
//
12503
//*****************************************************************************
12504
#define NVIC_SYS_PRI2_SVC_M 0xE0000000 // SVCall Priority
12505
#define NVIC_SYS_PRI2_SVC_S 29
12506
12507
//*****************************************************************************
12508
//
12509
// The following are defines for the bit fields in the NVIC_SYS_PRI3 register.
12510
//
12511
//*****************************************************************************
12512
#define NVIC_SYS_PRI3_TICK_M 0xE0000000 // SysTick Exception Priority
12513
#define NVIC_SYS_PRI3_PENDSV_M 0x00E00000 // PendSV Priority
12514
#define NVIC_SYS_PRI3_DEBUG_M 0x000000E0 // Debug Priority
12515
#define NVIC_SYS_PRI3_TICK_S 29
12516
#define NVIC_SYS_PRI3_PENDSV_S 21
12517
#define NVIC_SYS_PRI3_DEBUG_S 5
12518
12519
//*****************************************************************************
12520
//
12521
// The following are defines for the bit fields in the NVIC_SYS_HND_CTRL
12522
// register.
12523
//
12524
//*****************************************************************************
12525
#define NVIC_SYS_HND_CTRL_USAGE 0x00040000 // Usage Fault Enable
12526
#define NVIC_SYS_HND_CTRL_BUS 0x00020000 // Bus Fault Enable
12527
#define NVIC_SYS_HND_CTRL_MEM 0x00010000 // Memory Management Fault Enable
12528
#define NVIC_SYS_HND_CTRL_SVC 0x00008000 // SVC Call Pending
12529
#define NVIC_SYS_HND_CTRL_BUSP 0x00004000 // Bus Fault Pending
12530
#define NVIC_SYS_HND_CTRL_MEMP 0x00002000 // Memory Management Fault Pending
12531
#define NVIC_SYS_HND_CTRL_USAGEP \
12532
0x00001000 // Usage Fault Pending
12533
#define NVIC_SYS_HND_CTRL_TICK 0x00000800 // SysTick Exception Active
12534
#define NVIC_SYS_HND_CTRL_PNDSV 0x00000400 // PendSV Exception Active
12535
#define NVIC_SYS_HND_CTRL_MON 0x00000100 // Debug Monitor Active
12536
#define NVIC_SYS_HND_CTRL_SVCA 0x00000080 // SVC Call Active
12537
#define NVIC_SYS_HND_CTRL_USGA 0x00000008 // Usage Fault Active
12538
#define NVIC_SYS_HND_CTRL_BUSA 0x00000002 // Bus Fault Active
12539
#define NVIC_SYS_HND_CTRL_MEMA 0x00000001 // Memory Management Fault Active
12540
12541
//*****************************************************************************
12542
//
12543
// The following are defines for the bit fields in the NVIC_FAULT_STAT
12544
// register.
12545
//
12546
//*****************************************************************************
12547
#define NVIC_FAULT_STAT_DIV0 0x02000000 // Divide-by-Zero Usage Fault
12548
#define NVIC_FAULT_STAT_UNALIGN 0x01000000 // Unaligned Access Usage Fault
12549
#define NVIC_FAULT_STAT_NOCP 0x00080000 // No Coprocessor Usage Fault
12550
#define NVIC_FAULT_STAT_INVPC 0x00040000 // Invalid PC Load Usage Fault
12551
#define NVIC_FAULT_STAT_INVSTAT 0x00020000 // Invalid State Usage Fault
12552
#define NVIC_FAULT_STAT_UNDEF 0x00010000 // Undefined Instruction Usage
12553
// Fault
12554
#define NVIC_FAULT_STAT_BFARV 0x00008000 // Bus Fault Address Register Valid
12555
#define NVIC_FAULT_STAT_BLSPERR 0x00002000 // Bus Fault on Floating-Point Lazy
12556
// State Preservation
12557
#define NVIC_FAULT_STAT_BSTKE 0x00001000 // Stack Bus Fault
12558
#define NVIC_FAULT_STAT_BUSTKE 0x00000800 // Unstack Bus Fault
12559
#define NVIC_FAULT_STAT_IMPRE 0x00000400 // Imprecise Data Bus Error
12560
#define NVIC_FAULT_STAT_PRECISE 0x00000200 // Precise Data Bus Error
12561
#define NVIC_FAULT_STAT_IBUS 0x00000100 // Instruction Bus Error
12562
#define NVIC_FAULT_STAT_MMARV 0x00000080 // Memory Management Fault Address
12563
// Register Valid
12564
#define NVIC_FAULT_STAT_MLSPERR 0x00000020 // Memory Management Fault on
12565
// Floating-Point Lazy State
12566
// Preservation
12567
#define NVIC_FAULT_STAT_MSTKE 0x00000010 // Stack Access Violation
12568
#define NVIC_FAULT_STAT_MUSTKE 0x00000008 // Unstack Access Violation
12569
#define NVIC_FAULT_STAT_DERR 0x00000002 // Data Access Violation
12570
#define NVIC_FAULT_STAT_IERR 0x00000001 // Instruction Access Violation
12571
12572
//*****************************************************************************
12573
//
12574
// The following are defines for the bit fields in the NVIC_HFAULT_STAT
12575
// register.
12576
//
12577
//*****************************************************************************
12578
#define NVIC_HFAULT_STAT_DBG 0x80000000 // Debug Event
12579
#define NVIC_HFAULT_STAT_FORCED 0x40000000 // Forced Hard Fault
12580
#define NVIC_HFAULT_STAT_VECT 0x00000002 // Vector Table Read Fault
12581
12582
//*****************************************************************************
12583
//
12584
// The following are defines for the bit fields in the NVIC_DEBUG_STAT
12585
// register.
12586
//
12587
//*****************************************************************************
12588
#define NVIC_DEBUG_STAT_EXTRNL 0x00000010 // EDBGRQ asserted
12589
#define NVIC_DEBUG_STAT_VCATCH 0x00000008 // Vector catch
12590
#define NVIC_DEBUG_STAT_DWTTRAP 0x00000004 // DWT match
12591
#define NVIC_DEBUG_STAT_BKPT 0x00000002 // Breakpoint instruction
12592
#define NVIC_DEBUG_STAT_HALTED 0x00000001 // Halt request
12593
12594
//*****************************************************************************
12595
//
12596
// The following are defines for the bit fields in the NVIC_MM_ADDR register.
12597
//
12598
//*****************************************************************************
12599
#define NVIC_MM_ADDR_M 0xFFFFFFFF // Fault Address
12600
#define NVIC_MM_ADDR_S 0
12601
12602
//*****************************************************************************
12603
//
12604
// The following are defines for the bit fields in the NVIC_FAULT_ADDR
12605
// register.
12606
//
12607
//*****************************************************************************
12608
#define NVIC_FAULT_ADDR_M 0xFFFFFFFF // Fault Address
12609
#define NVIC_FAULT_ADDR_S 0
12610
12611
//*****************************************************************************
12612
//
12613
// The following are defines for the bit fields in the NVIC_CPAC register.
12614
//
12615
//*****************************************************************************
12616
#define NVIC_CPAC_CP11_M 0x00C00000 // CP11 Coprocessor Access
12617
// Privilege
12618
#define NVIC_CPAC_CP11_DIS 0x00000000 // Access Denied
12619
#define NVIC_CPAC_CP11_PRIV 0x00400000 // Privileged Access Only
12620
#define NVIC_CPAC_CP11_FULL 0x00C00000 // Full Access
12621
#define NVIC_CPAC_CP10_M 0x00300000 // CP10 Coprocessor Access
12622
// Privilege
12623
#define NVIC_CPAC_CP10_DIS 0x00000000 // Access Denied
12624
#define NVIC_CPAC_CP10_PRIV 0x00100000 // Privileged Access Only
12625
#define NVIC_CPAC_CP10_FULL 0x00300000 // Full Access
12626
12627
//*****************************************************************************
12628
//
12629
// The following are defines for the bit fields in the NVIC_MPU_TYPE register.
12630
//
12631
//*****************************************************************************
12632
#define NVIC_MPU_TYPE_IREGION_M 0x00FF0000 // Number of I Regions
12633
#define NVIC_MPU_TYPE_DREGION_M 0x0000FF00 // Number of D Regions
12634
#define NVIC_MPU_TYPE_SEPARATE 0x00000001 // Separate or Unified MPU
12635
#define NVIC_MPU_TYPE_IREGION_S 16
12636
#define NVIC_MPU_TYPE_DREGION_S 8
12637
12638
//*****************************************************************************
12639
//
12640
// The following are defines for the bit fields in the NVIC_MPU_CTRL register.
12641
//
12642
//*****************************************************************************
12643
#define NVIC_MPU_CTRL_PRIVDEFEN 0x00000004 // MPU Default Region
12644
#define NVIC_MPU_CTRL_HFNMIENA 0x00000002 // MPU Enabled During Faults
12645
#define NVIC_MPU_CTRL_ENABLE 0x00000001 // MPU Enable
12646
12647
//*****************************************************************************
12648
//
12649
// The following are defines for the bit fields in the NVIC_MPU_NUMBER
12650
// register.
12651
//
12652
//*****************************************************************************
12653
#define NVIC_MPU_NUMBER_M 0x00000007 // MPU Region to Access
12654
#define NVIC_MPU_NUMBER_S 0
12655
12656
//*****************************************************************************
12657
//
12658
// The following are defines for the bit fields in the NVIC_MPU_BASE register.
12659
//
12660
//*****************************************************************************
12661
#define NVIC_MPU_BASE_ADDR_M 0xFFFFFFE0 // Base Address Mask
12662
#define NVIC_MPU_BASE_VALID 0x00000010 // Region Number Valid
12663
#define NVIC_MPU_BASE_REGION_M 0x00000007 // Region Number
12664
#define NVIC_MPU_BASE_ADDR_S 5
12665
#define NVIC_MPU_BASE_REGION_S 0
12666
12667
//*****************************************************************************
12668
//
12669
// The following are defines for the bit fields in the NVIC_MPU_ATTR register.
12670
//
12671
//*****************************************************************************
12672
#define NVIC_MPU_ATTR_XN 0x10000000 // Instruction Access Disable
12673
#define NVIC_MPU_ATTR_AP_M 0x07000000 // Access Privilege
12674
#define NVIC_MPU_ATTR_TEX_M 0x00380000 // Type Extension Mask
12675
#define NVIC_MPU_ATTR_SHAREABLE 0x00040000 // Shareable
12676
#define NVIC_MPU_ATTR_CACHEABLE 0x00020000 // Cacheable
12677
#define NVIC_MPU_ATTR_BUFFRABLE 0x00010000 // Bufferable
12678
#define NVIC_MPU_ATTR_SRD_M 0x0000FF00 // Subregion Disable Bits
12679
#define NVIC_MPU_ATTR_SIZE_M 0x0000003E // Region Size Mask
12680
#define NVIC_MPU_ATTR_ENABLE 0x00000001 // Region Enable
12681
12682
//*****************************************************************************
12683
//
12684
// The following are defines for the bit fields in the NVIC_MPU_BASE1 register.
12685
//
12686
//*****************************************************************************
12687
#define NVIC_MPU_BASE1_ADDR_M 0xFFFFFFE0 // Base Address Mask
12688
#define NVIC_MPU_BASE1_VALID 0x00000010 // Region Number Valid
12689
#define NVIC_MPU_BASE1_REGION_M 0x00000007 // Region Number
12690
#define NVIC_MPU_BASE1_ADDR_S 5
12691
#define NVIC_MPU_BASE1_REGION_S 0
12692
12693
//*****************************************************************************
12694
//
12695
// The following are defines for the bit fields in the NVIC_MPU_ATTR1 register.
12696
//
12697
//*****************************************************************************
12698
#define NVIC_MPU_ATTR1_XN 0x10000000 // Instruction Access Disable
12699
#define NVIC_MPU_ATTR1_AP_M 0x07000000 // Access Privilege
12700
#define NVIC_MPU_ATTR1_TEX_M 0x00380000 // Type Extension Mask
12701
#define NVIC_MPU_ATTR1_SHAREABLE \
12702
0x00040000 // Shareable
12703
#define NVIC_MPU_ATTR1_CACHEABLE \
12704
0x00020000 // Cacheable
12705
#define NVIC_MPU_ATTR1_BUFFRABLE \
12706
0x00010000 // Bufferable
12707
#define NVIC_MPU_ATTR1_SRD_M 0x0000FF00 // Subregion Disable Bits
12708
#define NVIC_MPU_ATTR1_SIZE_M 0x0000003E // Region Size Mask
12709
#define NVIC_MPU_ATTR1_ENABLE 0x00000001 // Region Enable
12710
12711
//*****************************************************************************
12712
//
12713
// The following are defines for the bit fields in the NVIC_MPU_BASE2 register.
12714
//
12715
//*****************************************************************************
12716
#define NVIC_MPU_BASE2_ADDR_M 0xFFFFFFE0 // Base Address Mask
12717
#define NVIC_MPU_BASE2_VALID 0x00000010 // Region Number Valid
12718
#define NVIC_MPU_BASE2_REGION_M 0x00000007 // Region Number
12719
#define NVIC_MPU_BASE2_ADDR_S 5
12720
#define NVIC_MPU_BASE2_REGION_S 0
12721
12722
//*****************************************************************************
12723
//
12724
// The following are defines for the bit fields in the NVIC_MPU_ATTR2 register.
12725
//
12726
//*****************************************************************************
12727
#define NVIC_MPU_ATTR2_XN 0x10000000 // Instruction Access Disable
12728
#define NVIC_MPU_ATTR2_AP_M 0x07000000 // Access Privilege
12729
#define NVIC_MPU_ATTR2_TEX_M 0x00380000 // Type Extension Mask
12730
#define NVIC_MPU_ATTR2_SHAREABLE \
12731
0x00040000 // Shareable
12732
#define NVIC_MPU_ATTR2_CACHEABLE \
12733
0x00020000 // Cacheable
12734
#define NVIC_MPU_ATTR2_BUFFRABLE \
12735
0x00010000 // Bufferable
12736
#define NVIC_MPU_ATTR2_SRD_M 0x0000FF00 // Subregion Disable Bits
12737
#define NVIC_MPU_ATTR2_SIZE_M 0x0000003E // Region Size Mask
12738
#define NVIC_MPU_ATTR2_ENABLE 0x00000001 // Region Enable
12739
12740
//*****************************************************************************
12741
//
12742
// The following are defines for the bit fields in the NVIC_MPU_BASE3 register.
12743
//
12744
//*****************************************************************************
12745
#define NVIC_MPU_BASE3_ADDR_M 0xFFFFFFE0 // Base Address Mask
12746
#define NVIC_MPU_BASE3_VALID 0x00000010 // Region Number Valid
12747
#define NVIC_MPU_BASE3_REGION_M 0x00000007 // Region Number
12748
#define NVIC_MPU_BASE3_ADDR_S 5
12749
#define NVIC_MPU_BASE3_REGION_S 0
12750
12751
//*****************************************************************************
12752
//
12753
// The following are defines for the bit fields in the NVIC_MPU_ATTR3 register.
12754
//
12755
//*****************************************************************************
12756
#define NVIC_MPU_ATTR3_XN 0x10000000 // Instruction Access Disable
12757
#define NVIC_MPU_ATTR3_AP_M 0x07000000 // Access Privilege
12758
#define NVIC_MPU_ATTR3_TEX_M 0x00380000 // Type Extension Mask
12759
#define NVIC_MPU_ATTR3_SHAREABLE \
12760
0x00040000 // Shareable
12761
#define NVIC_MPU_ATTR3_CACHEABLE \
12762
0x00020000 // Cacheable
12763
#define NVIC_MPU_ATTR3_BUFFRABLE \
12764
0x00010000 // Bufferable
12765
#define NVIC_MPU_ATTR3_SRD_M 0x0000FF00 // Subregion Disable Bits
12766
#define NVIC_MPU_ATTR3_SIZE_M 0x0000003E // Region Size Mask
12767
#define NVIC_MPU_ATTR3_ENABLE 0x00000001 // Region Enable
12768
12769
//*****************************************************************************
12770
//
12771
// The following are defines for the bit fields in the NVIC_DBG_CTRL register.
12772
//
12773
//*****************************************************************************
12774
#define NVIC_DBG_CTRL_DBGKEY_M 0xFFFF0000 // Debug key mask
12775
#define NVIC_DBG_CTRL_DBGKEY 0xA05F0000 // Debug key
12776
#define NVIC_DBG_CTRL_S_RESET_ST \
12777
0x02000000 // Core has reset since last read
12778
#define NVIC_DBG_CTRL_S_RETIRE_ST \
12779
0x01000000 // Core has executed insruction
12780
// since last read
12781
#define NVIC_DBG_CTRL_S_LOCKUP 0x00080000 // Core is locked up
12782
#define NVIC_DBG_CTRL_S_SLEEP 0x00040000 // Core is sleeping
12783
#define NVIC_DBG_CTRL_S_HALT 0x00020000 // Core status on halt
12784
#define NVIC_DBG_CTRL_S_REGRDY 0x00010000 // Register read/write available
12785
#define NVIC_DBG_CTRL_C_SNAPSTALL \
12786
0x00000020 // Breaks a stalled load/store
12787
#define NVIC_DBG_CTRL_C_MASKINT 0x00000008 // Mask interrupts when stepping
12788
#define NVIC_DBG_CTRL_C_STEP 0x00000004 // Step the core
12789
#define NVIC_DBG_CTRL_C_HALT 0x00000002 // Halt the core
12790
#define NVIC_DBG_CTRL_C_DEBUGEN 0x00000001 // Enable debug
12791
12792
//*****************************************************************************
12793
//
12794
// The following are defines for the bit fields in the NVIC_DBG_XFER register.
12795
//
12796
//*****************************************************************************
12797
#define NVIC_DBG_XFER_REG_WNR 0x00010000 // Write or not read
12798
#define NVIC_DBG_XFER_REG_SEL_M 0x0000001F // Register
12799
#define NVIC_DBG_XFER_REG_R0 0x00000000 // Register R0
12800
#define NVIC_DBG_XFER_REG_R1 0x00000001 // Register R1
12801
#define NVIC_DBG_XFER_REG_R2 0x00000002 // Register R2
12802
#define NVIC_DBG_XFER_REG_R3 0x00000003 // Register R3
12803
#define NVIC_DBG_XFER_REG_R4 0x00000004 // Register R4
12804
#define NVIC_DBG_XFER_REG_R5 0x00000005 // Register R5
12805
#define NVIC_DBG_XFER_REG_R6 0x00000006 // Register R6
12806
#define NVIC_DBG_XFER_REG_R7 0x00000007 // Register R7
12807
#define NVIC_DBG_XFER_REG_R8 0x00000008 // Register R8
12808
#define NVIC_DBG_XFER_REG_R9 0x00000009 // Register R9
12809
#define NVIC_DBG_XFER_REG_R10 0x0000000A // Register R10
12810
#define NVIC_DBG_XFER_REG_R11 0x0000000B // Register R11
12811
#define NVIC_DBG_XFER_REG_R12 0x0000000C // Register R12
12812
#define NVIC_DBG_XFER_REG_R13 0x0000000D // Register R13
12813
#define NVIC_DBG_XFER_REG_R14 0x0000000E // Register R14
12814
#define NVIC_DBG_XFER_REG_R15 0x0000000F // Register R15
12815
#define NVIC_DBG_XFER_REG_FLAGS 0x00000010 // xPSR/Flags register
12816
#define NVIC_DBG_XFER_REG_MSP 0x00000011 // Main SP
12817
#define NVIC_DBG_XFER_REG_PSP 0x00000012 // Process SP
12818
#define NVIC_DBG_XFER_REG_DSP 0x00000013 // Deep SP
12819
#define NVIC_DBG_XFER_REG_CFBP 0x00000014 // Control/Fault/BasePri/PriMask
12820
12821
//*****************************************************************************
12822
//
12823
// The following are defines for the bit fields in the NVIC_DBG_DATA register.
12824
//
12825
//*****************************************************************************
12826
#define NVIC_DBG_DATA_M 0xFFFFFFFF // Data temporary cache
12827
#define NVIC_DBG_DATA_S 0
12828
12829
//*****************************************************************************
12830
//
12831
// The following are defines for the bit fields in the NVIC_DBG_INT register.
12832
//
12833
//*****************************************************************************
12834
#define NVIC_DBG_INT_HARDERR 0x00000400 // Debug trap on hard fault
12835
#define NVIC_DBG_INT_INTERR 0x00000200 // Debug trap on interrupt errors
12836
#define NVIC_DBG_INT_BUSERR 0x00000100 // Debug trap on bus error
12837
#define NVIC_DBG_INT_STATERR 0x00000080 // Debug trap on usage fault state
12838
#define NVIC_DBG_INT_CHKERR 0x00000040 // Debug trap on usage fault check
12839
#define NVIC_DBG_INT_NOCPERR 0x00000020 // Debug trap on coprocessor error
12840
#define NVIC_DBG_INT_MMERR 0x00000010 // Debug trap on mem manage fault
12841
#define NVIC_DBG_INT_RESET 0x00000008 // Core reset status
12842
#define NVIC_DBG_INT_RSTPENDCLR 0x00000004 // Clear pending core reset
12843
#define NVIC_DBG_INT_RSTPENDING 0x00000002 // Core reset is pending
12844
#define NVIC_DBG_INT_RSTVCATCH 0x00000001 // Reset vector catch
12845
12846
//*****************************************************************************
12847
//
12848
// The following are defines for the bit fields in the NVIC_SW_TRIG register.
12849
//
12850
//*****************************************************************************
12851
#define NVIC_SW_TRIG_INTID_M 0x000000FF // Interrupt ID
12852
#define NVIC_SW_TRIG_INTID_S 0
12853
12854
//*****************************************************************************
12855
//
12856
// The following are defines for the bit fields in the NVIC_FPCC register.
12857
//
12858
//*****************************************************************************
12859
#define NVIC_FPCC_ASPEN 0x80000000 // Automatic State Preservation
12860
// Enable
12861
#define NVIC_FPCC_LSPEN 0x40000000 // Lazy State Preservation Enable
12862
#define NVIC_FPCC_MONRDY 0x00000100 // Monitor Ready
12863
#define NVIC_FPCC_BFRDY 0x00000040 // Bus Fault Ready
12864
#define NVIC_FPCC_MMRDY 0x00000020 // Memory Management Fault Ready
12865
#define NVIC_FPCC_HFRDY 0x00000010 // Hard Fault Ready
12866
#define NVIC_FPCC_THREAD 0x00000008 // Thread Mode
12867
#define NVIC_FPCC_USER 0x00000002 // User Privilege Level
12868
#define NVIC_FPCC_LSPACT 0x00000001 // Lazy State Preservation Active
12869
12870
//*****************************************************************************
12871
//
12872
// The following are defines for the bit fields in the NVIC_FPCA register.
12873
//
12874
//*****************************************************************************
12875
#define NVIC_FPCA_ADDRESS_M 0xFFFFFFF8 // Address
12876
#define NVIC_FPCA_ADDRESS_S 3
12877
12878
//*****************************************************************************
12879
//
12880
// The following are defines for the bit fields in the NVIC_FPDSC register.
12881
//
12882
//*****************************************************************************
12883
#define NVIC_FPDSC_AHP 0x04000000 // AHP Bit Default
12884
#define NVIC_FPDSC_DN 0x02000000 // DN Bit Default
12885
#define NVIC_FPDSC_FZ 0x01000000 // FZ Bit Default
12886
#define NVIC_FPDSC_RMODE_M 0x00C00000 // RMODE Bit Default
12887
#define NVIC_FPDSC_RMODE_RN 0x00000000 // Round to Nearest (RN) mode
12888
#define NVIC_FPDSC_RMODE_RP 0x00400000 // Round towards Plus Infinity (RP)
12889
// mode
12890
#define NVIC_FPDSC_RMODE_RM 0x00800000 // Round towards Minus Infinity
12891
// (RM) mode
12892
#define NVIC_FPDSC_RMODE_RZ 0x00C00000 // Round towards Zero (RZ) mode
12893
12894
//*****************************************************************************
12895
//
12896
// The following definitions are deprecated.
12897
//
12898
//*****************************************************************************
12899
#ifndef DEPRECATED
12900
#define SYSCTL_DID0_CLASS_BLIZZARD \
12901
0x00050000 // Tiva(TM) C Series TM4C123-class
12902
// microcontrollers
12903
12904
#endif
12905
12906
#endif // __TM4C123FE6PM_H__
inc
tm4c123fe6pm.h
Generated on Fri Mar 13 2015 21:18:37 for EE445M RTOS by
1.8.9.1