EE445M RTOS
Taken at the University of Texas Spring 2015
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
tm4c123gh6pm.h
Go to the documentation of this file.
1
//*****************************************************************************
2
//
3
// tm4c123gh6pm.h - TM4C123GH6PM 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 __TM4C123GH6PM_H__
41
#define __TM4C123GH6PM_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_UART2 49 // UART2
80
#define INT_SSI1 50 // SSI1
81
#define INT_TIMER3A 51 // 16/32-Bit Timer 3A
82
#define INT_TIMER3B 52 // Timer 3B
83
#define INT_I2C1 53 // I2C1
84
#define INT_QEI1 54 // QEI1
85
#define INT_CAN0 55 // CAN0
86
#define INT_CAN1 56 // CAN1
87
#define INT_HIBERNATE 59 // Hibernation Module
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_PWM1_0 150 // PWM1 Generator 0
123
#define INT_PWM1_1 151 // PWM1 Generator 1
124
#define INT_PWM1_2 152 // PWM1 Generator 2
125
#define INT_PWM1_3 153 // PWM1 Generator 3
126
#define INT_PWM1_FAULT 154 // PWM1 Fault
127
128
//*****************************************************************************
129
//
130
// Watchdog Timer registers (WATCHDOG0)
131
//
132
//*****************************************************************************
133
#define WATCHDOG0_LOAD_R (*((volatile uint32_t *)0x40000000))
134
#define WATCHDOG0_VALUE_R (*((volatile uint32_t *)0x40000004))
135
#define WATCHDOG0_CTL_R (*((volatile uint32_t *)0x40000008))
136
#define WATCHDOG0_ICR_R (*((volatile uint32_t *)0x4000000C))
137
#define WATCHDOG0_RIS_R (*((volatile uint32_t *)0x40000010))
138
#define WATCHDOG0_MIS_R (*((volatile uint32_t *)0x40000014))
139
#define WATCHDOG0_TEST_R (*((volatile uint32_t *)0x40000418))
140
#define WATCHDOG0_LOCK_R (*((volatile uint32_t *)0x40000C00))
141
142
//*****************************************************************************
143
//
144
// Watchdog Timer registers (WATCHDOG1)
145
//
146
//*****************************************************************************
147
#define WATCHDOG1_LOAD_R (*((volatile uint32_t *)0x40001000))
148
#define WATCHDOG1_VALUE_R (*((volatile uint32_t *)0x40001004))
149
#define WATCHDOG1_CTL_R (*((volatile uint32_t *)0x40001008))
150
#define WATCHDOG1_ICR_R (*((volatile uint32_t *)0x4000100C))
151
#define WATCHDOG1_RIS_R (*((volatile uint32_t *)0x40001010))
152
#define WATCHDOG1_MIS_R (*((volatile uint32_t *)0x40001014))
153
#define WATCHDOG1_TEST_R (*((volatile uint32_t *)0x40001418))
154
#define WATCHDOG1_LOCK_R (*((volatile uint32_t *)0x40001C00))
155
156
//*****************************************************************************
157
//
158
// GPIO registers (PORTA)
159
//
160
//*****************************************************************************
161
#define GPIO_PORTA_DATA_BITS_R ((volatile uint32_t *)0x40004000)
162
#define GPIO_PORTA_DATA_R (*((volatile uint32_t *)0x400043FC))
163
#define GPIO_PORTA_DIR_R (*((volatile uint32_t *)0x40004400))
164
#define GPIO_PORTA_IS_R (*((volatile uint32_t *)0x40004404))
165
#define GPIO_PORTA_IBE_R (*((volatile uint32_t *)0x40004408))
166
#define GPIO_PORTA_IEV_R (*((volatile uint32_t *)0x4000440C))
167
#define GPIO_PORTA_IM_R (*((volatile uint32_t *)0x40004410))
168
#define GPIO_PORTA_RIS_R (*((volatile uint32_t *)0x40004414))
169
#define GPIO_PORTA_MIS_R (*((volatile uint32_t *)0x40004418))
170
#define GPIO_PORTA_ICR_R (*((volatile uint32_t *)0x4000441C))
171
#define GPIO_PORTA_AFSEL_R (*((volatile uint32_t *)0x40004420))
172
#define GPIO_PORTA_DR2R_R (*((volatile uint32_t *)0x40004500))
173
#define GPIO_PORTA_DR4R_R (*((volatile uint32_t *)0x40004504))
174
#define GPIO_PORTA_DR8R_R (*((volatile uint32_t *)0x40004508))
175
#define GPIO_PORTA_ODR_R (*((volatile uint32_t *)0x4000450C))
176
#define GPIO_PORTA_PUR_R (*((volatile uint32_t *)0x40004510))
177
#define GPIO_PORTA_PDR_R (*((volatile uint32_t *)0x40004514))
178
#define GPIO_PORTA_SLR_R (*((volatile uint32_t *)0x40004518))
179
#define GPIO_PORTA_DEN_R (*((volatile uint32_t *)0x4000451C))
180
#define GPIO_PORTA_LOCK_R (*((volatile uint32_t *)0x40004520))
181
#define GPIO_PORTA_CR_R (*((volatile uint32_t *)0x40004524))
182
#define GPIO_PORTA_AMSEL_R (*((volatile uint32_t *)0x40004528))
183
#define GPIO_PORTA_PCTL_R (*((volatile uint32_t *)0x4000452C))
184
#define GPIO_PORTA_ADCCTL_R (*((volatile uint32_t *)0x40004530))
185
#define GPIO_PORTA_DMACTL_R (*((volatile uint32_t *)0x40004534))
186
187
//*****************************************************************************
188
//
189
// GPIO registers (PORTB)
190
//
191
//*****************************************************************************
192
#define GPIO_PORTB_DATA_BITS_R ((volatile uint32_t *)0x40005000)
193
#define GPIO_PORTB_DATA_R (*((volatile uint32_t *)0x400053FC))
194
#define GPIO_PORTB_DIR_R (*((volatile uint32_t *)0x40005400))
195
#define GPIO_PORTB_IS_R (*((volatile uint32_t *)0x40005404))
196
#define GPIO_PORTB_IBE_R (*((volatile uint32_t *)0x40005408))
197
#define GPIO_PORTB_IEV_R (*((volatile uint32_t *)0x4000540C))
198
#define GPIO_PORTB_IM_R (*((volatile uint32_t *)0x40005410))
199
#define GPIO_PORTB_RIS_R (*((volatile uint32_t *)0x40005414))
200
#define GPIO_PORTB_MIS_R (*((volatile uint32_t *)0x40005418))
201
#define GPIO_PORTB_ICR_R (*((volatile uint32_t *)0x4000541C))
202
#define GPIO_PORTB_AFSEL_R (*((volatile uint32_t *)0x40005420))
203
#define GPIO_PORTB_DR2R_R (*((volatile uint32_t *)0x40005500))
204
#define GPIO_PORTB_DR4R_R (*((volatile uint32_t *)0x40005504))
205
#define GPIO_PORTB_DR8R_R (*((volatile uint32_t *)0x40005508))
206
#define GPIO_PORTB_ODR_R (*((volatile uint32_t *)0x4000550C))
207
#define GPIO_PORTB_PUR_R (*((volatile uint32_t *)0x40005510))
208
#define GPIO_PORTB_PDR_R (*((volatile uint32_t *)0x40005514))
209
#define GPIO_PORTB_SLR_R (*((volatile uint32_t *)0x40005518))
210
#define GPIO_PORTB_DEN_R (*((volatile uint32_t *)0x4000551C))
211
#define GPIO_PORTB_LOCK_R (*((volatile uint32_t *)0x40005520))
212
#define GPIO_PORTB_CR_R (*((volatile uint32_t *)0x40005524))
213
#define GPIO_PORTB_AMSEL_R (*((volatile uint32_t *)0x40005528))
214
#define GPIO_PORTB_PCTL_R (*((volatile uint32_t *)0x4000552C))
215
#define GPIO_PORTB_ADCCTL_R (*((volatile uint32_t *)0x40005530))
216
#define GPIO_PORTB_DMACTL_R (*((volatile uint32_t *)0x40005534))
217
218
//*****************************************************************************
219
//
220
// GPIO registers (PORTC)
221
//
222
//*****************************************************************************
223
#define GPIO_PORTC_DATA_BITS_R ((volatile uint32_t *)0x40006000)
224
#define GPIO_PORTC_DATA_R (*((volatile uint32_t *)0x400063FC))
225
#define GPIO_PORTC_DIR_R (*((volatile uint32_t *)0x40006400))
226
#define GPIO_PORTC_IS_R (*((volatile uint32_t *)0x40006404))
227
#define GPIO_PORTC_IBE_R (*((volatile uint32_t *)0x40006408))
228
#define GPIO_PORTC_IEV_R (*((volatile uint32_t *)0x4000640C))
229
#define GPIO_PORTC_IM_R (*((volatile uint32_t *)0x40006410))
230
#define GPIO_PORTC_RIS_R (*((volatile uint32_t *)0x40006414))
231
#define GPIO_PORTC_MIS_R (*((volatile uint32_t *)0x40006418))
232
#define GPIO_PORTC_ICR_R (*((volatile uint32_t *)0x4000641C))
233
#define GPIO_PORTC_AFSEL_R (*((volatile uint32_t *)0x40006420))
234
#define GPIO_PORTC_DR2R_R (*((volatile uint32_t *)0x40006500))
235
#define GPIO_PORTC_DR4R_R (*((volatile uint32_t *)0x40006504))
236
#define GPIO_PORTC_DR8R_R (*((volatile uint32_t *)0x40006508))
237
#define GPIO_PORTC_ODR_R (*((volatile uint32_t *)0x4000650C))
238
#define GPIO_PORTC_PUR_R (*((volatile uint32_t *)0x40006510))
239
#define GPIO_PORTC_PDR_R (*((volatile uint32_t *)0x40006514))
240
#define GPIO_PORTC_SLR_R (*((volatile uint32_t *)0x40006518))
241
#define GPIO_PORTC_DEN_R (*((volatile uint32_t *)0x4000651C))
242
#define GPIO_PORTC_LOCK_R (*((volatile uint32_t *)0x40006520))
243
#define GPIO_PORTC_CR_R (*((volatile uint32_t *)0x40006524))
244
#define GPIO_PORTC_AMSEL_R (*((volatile uint32_t *)0x40006528))
245
#define GPIO_PORTC_PCTL_R (*((volatile uint32_t *)0x4000652C))
246
#define GPIO_PORTC_ADCCTL_R (*((volatile uint32_t *)0x40006530))
247
#define GPIO_PORTC_DMACTL_R (*((volatile uint32_t *)0x40006534))
248
249
//*****************************************************************************
250
//
251
// GPIO registers (PORTD)
252
//
253
//*****************************************************************************
254
#define GPIO_PORTD_DATA_BITS_R ((volatile uint32_t *)0x40007000)
255
#define GPIO_PORTD_DATA_R (*((volatile uint32_t *)0x400073FC))
256
#define GPIO_PORTD_DIR_R (*((volatile uint32_t *)0x40007400))
257
#define GPIO_PORTD_IS_R (*((volatile uint32_t *)0x40007404))
258
#define GPIO_PORTD_IBE_R (*((volatile uint32_t *)0x40007408))
259
#define GPIO_PORTD_IEV_R (*((volatile uint32_t *)0x4000740C))
260
#define GPIO_PORTD_IM_R (*((volatile uint32_t *)0x40007410))
261
#define GPIO_PORTD_RIS_R (*((volatile uint32_t *)0x40007414))
262
#define GPIO_PORTD_MIS_R (*((volatile uint32_t *)0x40007418))
263
#define GPIO_PORTD_ICR_R (*((volatile uint32_t *)0x4000741C))
264
#define GPIO_PORTD_AFSEL_R (*((volatile uint32_t *)0x40007420))
265
#define GPIO_PORTD_DR2R_R (*((volatile uint32_t *)0x40007500))
266
#define GPIO_PORTD_DR4R_R (*((volatile uint32_t *)0x40007504))
267
#define GPIO_PORTD_DR8R_R (*((volatile uint32_t *)0x40007508))
268
#define GPIO_PORTD_ODR_R (*((volatile uint32_t *)0x4000750C))
269
#define GPIO_PORTD_PUR_R (*((volatile uint32_t *)0x40007510))
270
#define GPIO_PORTD_PDR_R (*((volatile uint32_t *)0x40007514))
271
#define GPIO_PORTD_SLR_R (*((volatile uint32_t *)0x40007518))
272
#define GPIO_PORTD_DEN_R (*((volatile uint32_t *)0x4000751C))
273
#define GPIO_PORTD_LOCK_R (*((volatile uint32_t *)0x40007520))
274
#define GPIO_PORTD_CR_R (*((volatile uint32_t *)0x40007524))
275
#define GPIO_PORTD_AMSEL_R (*((volatile uint32_t *)0x40007528))
276
#define GPIO_PORTD_PCTL_R (*((volatile uint32_t *)0x4000752C))
277
#define GPIO_PORTD_ADCCTL_R (*((volatile uint32_t *)0x40007530))
278
#define GPIO_PORTD_DMACTL_R (*((volatile uint32_t *)0x40007534))
279
280
//*****************************************************************************
281
//
282
// SSI registers (SSI0)
283
//
284
//*****************************************************************************
285
#define SSI0_CR0_R (*((volatile uint32_t *)0x40008000))
286
#define SSI0_CR1_R (*((volatile uint32_t *)0x40008004))
287
#define SSI0_DR_R (*((volatile uint32_t *)0x40008008))
288
#define SSI0_SR_R (*((volatile uint32_t *)0x4000800C))
289
#define SSI0_CPSR_R (*((volatile uint32_t *)0x40008010))
290
#define SSI0_IM_R (*((volatile uint32_t *)0x40008014))
291
#define SSI0_RIS_R (*((volatile uint32_t *)0x40008018))
292
#define SSI0_MIS_R (*((volatile uint32_t *)0x4000801C))
293
#define SSI0_ICR_R (*((volatile uint32_t *)0x40008020))
294
#define SSI0_DMACTL_R (*((volatile uint32_t *)0x40008024))
295
#define SSI0_CC_R (*((volatile uint32_t *)0x40008FC8))
296
297
//*****************************************************************************
298
//
299
// SSI registers (SSI1)
300
//
301
//*****************************************************************************
302
#define SSI1_CR0_R (*((volatile uint32_t *)0x40009000))
303
#define SSI1_CR1_R (*((volatile uint32_t *)0x40009004))
304
#define SSI1_DR_R (*((volatile uint32_t *)0x40009008))
305
#define SSI1_SR_R (*((volatile uint32_t *)0x4000900C))
306
#define SSI1_CPSR_R (*((volatile uint32_t *)0x40009010))
307
#define SSI1_IM_R (*((volatile uint32_t *)0x40009014))
308
#define SSI1_RIS_R (*((volatile uint32_t *)0x40009018))
309
#define SSI1_MIS_R (*((volatile uint32_t *)0x4000901C))
310
#define SSI1_ICR_R (*((volatile uint32_t *)0x40009020))
311
#define SSI1_DMACTL_R (*((volatile uint32_t *)0x40009024))
312
#define SSI1_CC_R (*((volatile uint32_t *)0x40009FC8))
313
314
//*****************************************************************************
315
//
316
// SSI registers (SSI2)
317
//
318
//*****************************************************************************
319
#define SSI2_CR0_R (*((volatile uint32_t *)0x4000A000))
320
#define SSI2_CR1_R (*((volatile uint32_t *)0x4000A004))
321
#define SSI2_DR_R (*((volatile uint32_t *)0x4000A008))
322
#define SSI2_SR_R (*((volatile uint32_t *)0x4000A00C))
323
#define SSI2_CPSR_R (*((volatile uint32_t *)0x4000A010))
324
#define SSI2_IM_R (*((volatile uint32_t *)0x4000A014))
325
#define SSI2_RIS_R (*((volatile uint32_t *)0x4000A018))
326
#define SSI2_MIS_R (*((volatile uint32_t *)0x4000A01C))
327
#define SSI2_ICR_R (*((volatile uint32_t *)0x4000A020))
328
#define SSI2_DMACTL_R (*((volatile uint32_t *)0x4000A024))
329
#define SSI2_CC_R (*((volatile uint32_t *)0x4000AFC8))
330
331
//*****************************************************************************
332
//
333
// SSI registers (SSI3)
334
//
335
//*****************************************************************************
336
#define SSI3_CR0_R (*((volatile uint32_t *)0x4000B000))
337
#define SSI3_CR1_R (*((volatile uint32_t *)0x4000B004))
338
#define SSI3_DR_R (*((volatile uint32_t *)0x4000B008))
339
#define SSI3_SR_R (*((volatile uint32_t *)0x4000B00C))
340
#define SSI3_CPSR_R (*((volatile uint32_t *)0x4000B010))
341
#define SSI3_IM_R (*((volatile uint32_t *)0x4000B014))
342
#define SSI3_RIS_R (*((volatile uint32_t *)0x4000B018))
343
#define SSI3_MIS_R (*((volatile uint32_t *)0x4000B01C))
344
#define SSI3_ICR_R (*((volatile uint32_t *)0x4000B020))
345
#define SSI3_DMACTL_R (*((volatile uint32_t *)0x4000B024))
346
#define SSI3_CC_R (*((volatile uint32_t *)0x4000BFC8))
347
348
//*****************************************************************************
349
//
350
// UART registers (UART0)
351
//
352
//*****************************************************************************
353
#define UART0_DR_R (*((volatile uint32_t *)0x4000C000))
354
#define UART0_RSR_R (*((volatile uint32_t *)0x4000C004))
355
#define UART0_ECR_R (*((volatile uint32_t *)0x4000C004))
356
#define UART0_FR_R (*((volatile uint32_t *)0x4000C018))
357
#define UART0_ILPR_R (*((volatile uint32_t *)0x4000C020))
358
#define UART0_IBRD_R (*((volatile uint32_t *)0x4000C024))
359
#define UART0_FBRD_R (*((volatile uint32_t *)0x4000C028))
360
#define UART0_LCRH_R (*((volatile uint32_t *)0x4000C02C))
361
#define UART0_CTL_R (*((volatile uint32_t *)0x4000C030))
362
#define UART0_IFLS_R (*((volatile uint32_t *)0x4000C034))
363
#define UART0_IM_R (*((volatile uint32_t *)0x4000C038))
364
#define UART0_RIS_R (*((volatile uint32_t *)0x4000C03C))
365
#define UART0_MIS_R (*((volatile uint32_t *)0x4000C040))
366
#define UART0_ICR_R (*((volatile uint32_t *)0x4000C044))
367
#define UART0_DMACTL_R (*((volatile uint32_t *)0x4000C048))
368
#define UART0_9BITADDR_R (*((volatile uint32_t *)0x4000C0A4))
369
#define UART0_9BITAMASK_R (*((volatile uint32_t *)0x4000C0A8))
370
#define UART0_PP_R (*((volatile uint32_t *)0x4000CFC0))
371
#define UART0_CC_R (*((volatile uint32_t *)0x4000CFC8))
372
373
//*****************************************************************************
374
//
375
// UART registers (UART1)
376
//
377
//*****************************************************************************
378
#define UART1_DR_R (*((volatile uint32_t *)0x4000D000))
379
#define UART1_RSR_R (*((volatile uint32_t *)0x4000D004))
380
#define UART1_ECR_R (*((volatile uint32_t *)0x4000D004))
381
#define UART1_FR_R (*((volatile uint32_t *)0x4000D018))
382
#define UART1_ILPR_R (*((volatile uint32_t *)0x4000D020))
383
#define UART1_IBRD_R (*((volatile uint32_t *)0x4000D024))
384
#define UART1_FBRD_R (*((volatile uint32_t *)0x4000D028))
385
#define UART1_LCRH_R (*((volatile uint32_t *)0x4000D02C))
386
#define UART1_CTL_R (*((volatile uint32_t *)0x4000D030))
387
#define UART1_IFLS_R (*((volatile uint32_t *)0x4000D034))
388
#define UART1_IM_R (*((volatile uint32_t *)0x4000D038))
389
#define UART1_RIS_R (*((volatile uint32_t *)0x4000D03C))
390
#define UART1_MIS_R (*((volatile uint32_t *)0x4000D040))
391
#define UART1_ICR_R (*((volatile uint32_t *)0x4000D044))
392
#define UART1_DMACTL_R (*((volatile uint32_t *)0x4000D048))
393
#define UART1_9BITADDR_R (*((volatile uint32_t *)0x4000D0A4))
394
#define UART1_9BITAMASK_R (*((volatile uint32_t *)0x4000D0A8))
395
#define UART1_PP_R (*((volatile uint32_t *)0x4000DFC0))
396
#define UART1_CC_R (*((volatile uint32_t *)0x4000DFC8))
397
398
//*****************************************************************************
399
//
400
// UART registers (UART2)
401
//
402
//*****************************************************************************
403
#define UART2_DR_R (*((volatile uint32_t *)0x4000E000))
404
#define UART2_RSR_R (*((volatile uint32_t *)0x4000E004))
405
#define UART2_ECR_R (*((volatile uint32_t *)0x4000E004))
406
#define UART2_FR_R (*((volatile uint32_t *)0x4000E018))
407
#define UART2_ILPR_R (*((volatile uint32_t *)0x4000E020))
408
#define UART2_IBRD_R (*((volatile uint32_t *)0x4000E024))
409
#define UART2_FBRD_R (*((volatile uint32_t *)0x4000E028))
410
#define UART2_LCRH_R (*((volatile uint32_t *)0x4000E02C))
411
#define UART2_CTL_R (*((volatile uint32_t *)0x4000E030))
412
#define UART2_IFLS_R (*((volatile uint32_t *)0x4000E034))
413
#define UART2_IM_R (*((volatile uint32_t *)0x4000E038))
414
#define UART2_RIS_R (*((volatile uint32_t *)0x4000E03C))
415
#define UART2_MIS_R (*((volatile uint32_t *)0x4000E040))
416
#define UART2_ICR_R (*((volatile uint32_t *)0x4000E044))
417
#define UART2_DMACTL_R (*((volatile uint32_t *)0x4000E048))
418
#define UART2_9BITADDR_R (*((volatile uint32_t *)0x4000E0A4))
419
#define UART2_9BITAMASK_R (*((volatile uint32_t *)0x4000E0A8))
420
#define UART2_PP_R (*((volatile uint32_t *)0x4000EFC0))
421
#define UART2_CC_R (*((volatile uint32_t *)0x4000EFC8))
422
423
//*****************************************************************************
424
//
425
// UART registers (UART3)
426
//
427
//*****************************************************************************
428
#define UART3_DR_R (*((volatile uint32_t *)0x4000F000))
429
#define UART3_RSR_R (*((volatile uint32_t *)0x4000F004))
430
#define UART3_ECR_R (*((volatile uint32_t *)0x4000F004))
431
#define UART3_FR_R (*((volatile uint32_t *)0x4000F018))
432
#define UART3_ILPR_R (*((volatile uint32_t *)0x4000F020))
433
#define UART3_IBRD_R (*((volatile uint32_t *)0x4000F024))
434
#define UART3_FBRD_R (*((volatile uint32_t *)0x4000F028))
435
#define UART3_LCRH_R (*((volatile uint32_t *)0x4000F02C))
436
#define UART3_CTL_R (*((volatile uint32_t *)0x4000F030))
437
#define UART3_IFLS_R (*((volatile uint32_t *)0x4000F034))
438
#define UART3_IM_R (*((volatile uint32_t *)0x4000F038))
439
#define UART3_RIS_R (*((volatile uint32_t *)0x4000F03C))
440
#define UART3_MIS_R (*((volatile uint32_t *)0x4000F040))
441
#define UART3_ICR_R (*((volatile uint32_t *)0x4000F044))
442
#define UART3_DMACTL_R (*((volatile uint32_t *)0x4000F048))
443
#define UART3_9BITADDR_R (*((volatile uint32_t *)0x4000F0A4))
444
#define UART3_9BITAMASK_R (*((volatile uint32_t *)0x4000F0A8))
445
#define UART3_PP_R (*((volatile uint32_t *)0x4000FFC0))
446
#define UART3_CC_R (*((volatile uint32_t *)0x4000FFC8))
447
448
//*****************************************************************************
449
//
450
// UART registers (UART4)
451
//
452
//*****************************************************************************
453
#define UART4_DR_R (*((volatile uint32_t *)0x40010000))
454
#define UART4_RSR_R (*((volatile uint32_t *)0x40010004))
455
#define UART4_ECR_R (*((volatile uint32_t *)0x40010004))
456
#define UART4_FR_R (*((volatile uint32_t *)0x40010018))
457
#define UART4_ILPR_R (*((volatile uint32_t *)0x40010020))
458
#define UART4_IBRD_R (*((volatile uint32_t *)0x40010024))
459
#define UART4_FBRD_R (*((volatile uint32_t *)0x40010028))
460
#define UART4_LCRH_R (*((volatile uint32_t *)0x4001002C))
461
#define UART4_CTL_R (*((volatile uint32_t *)0x40010030))
462
#define UART4_IFLS_R (*((volatile uint32_t *)0x40010034))
463
#define UART4_IM_R (*((volatile uint32_t *)0x40010038))
464
#define UART4_RIS_R (*((volatile uint32_t *)0x4001003C))
465
#define UART4_MIS_R (*((volatile uint32_t *)0x40010040))
466
#define UART4_ICR_R (*((volatile uint32_t *)0x40010044))
467
#define UART4_DMACTL_R (*((volatile uint32_t *)0x40010048))
468
#define UART4_9BITADDR_R (*((volatile uint32_t *)0x400100A4))
469
#define UART4_9BITAMASK_R (*((volatile uint32_t *)0x400100A8))
470
#define UART4_PP_R (*((volatile uint32_t *)0x40010FC0))
471
#define UART4_CC_R (*((volatile uint32_t *)0x40010FC8))
472
473
//*****************************************************************************
474
//
475
// UART registers (UART5)
476
//
477
//*****************************************************************************
478
#define UART5_DR_R (*((volatile uint32_t *)0x40011000))
479
#define UART5_RSR_R (*((volatile uint32_t *)0x40011004))
480
#define UART5_ECR_R (*((volatile uint32_t *)0x40011004))
481
#define UART5_FR_R (*((volatile uint32_t *)0x40011018))
482
#define UART5_ILPR_R (*((volatile uint32_t *)0x40011020))
483
#define UART5_IBRD_R (*((volatile uint32_t *)0x40011024))
484
#define UART5_FBRD_R (*((volatile uint32_t *)0x40011028))
485
#define UART5_LCRH_R (*((volatile uint32_t *)0x4001102C))
486
#define UART5_CTL_R (*((volatile uint32_t *)0x40011030))
487
#define UART5_IFLS_R (*((volatile uint32_t *)0x40011034))
488
#define UART5_IM_R (*((volatile uint32_t *)0x40011038))
489
#define UART5_RIS_R (*((volatile uint32_t *)0x4001103C))
490
#define UART5_MIS_R (*((volatile uint32_t *)0x40011040))
491
#define UART5_ICR_R (*((volatile uint32_t *)0x40011044))
492
#define UART5_DMACTL_R (*((volatile uint32_t *)0x40011048))
493
#define UART5_9BITADDR_R (*((volatile uint32_t *)0x400110A4))
494
#define UART5_9BITAMASK_R (*((volatile uint32_t *)0x400110A8))
495
#define UART5_PP_R (*((volatile uint32_t *)0x40011FC0))
496
#define UART5_CC_R (*((volatile uint32_t *)0x40011FC8))
497
498
//*****************************************************************************
499
//
500
// UART registers (UART6)
501
//
502
//*****************************************************************************
503
#define UART6_DR_R (*((volatile uint32_t *)0x40012000))
504
#define UART6_RSR_R (*((volatile uint32_t *)0x40012004))
505
#define UART6_ECR_R (*((volatile uint32_t *)0x40012004))
506
#define UART6_FR_R (*((volatile uint32_t *)0x40012018))
507
#define UART6_ILPR_R (*((volatile uint32_t *)0x40012020))
508
#define UART6_IBRD_R (*((volatile uint32_t *)0x40012024))
509
#define UART6_FBRD_R (*((volatile uint32_t *)0x40012028))
510
#define UART6_LCRH_R (*((volatile uint32_t *)0x4001202C))
511
#define UART6_CTL_R (*((volatile uint32_t *)0x40012030))
512
#define UART6_IFLS_R (*((volatile uint32_t *)0x40012034))
513
#define UART6_IM_R (*((volatile uint32_t *)0x40012038))
514
#define UART6_RIS_R (*((volatile uint32_t *)0x4001203C))
515
#define UART6_MIS_R (*((volatile uint32_t *)0x40012040))
516
#define UART6_ICR_R (*((volatile uint32_t *)0x40012044))
517
#define UART6_DMACTL_R (*((volatile uint32_t *)0x40012048))
518
#define UART6_9BITADDR_R (*((volatile uint32_t *)0x400120A4))
519
#define UART6_9BITAMASK_R (*((volatile uint32_t *)0x400120A8))
520
#define UART6_PP_R (*((volatile uint32_t *)0x40012FC0))
521
#define UART6_CC_R (*((volatile uint32_t *)0x40012FC8))
522
523
//*****************************************************************************
524
//
525
// UART registers (UART7)
526
//
527
//*****************************************************************************
528
#define UART7_DR_R (*((volatile uint32_t *)0x40013000))
529
#define UART7_RSR_R (*((volatile uint32_t *)0x40013004))
530
#define UART7_ECR_R (*((volatile uint32_t *)0x40013004))
531
#define UART7_FR_R (*((volatile uint32_t *)0x40013018))
532
#define UART7_ILPR_R (*((volatile uint32_t *)0x40013020))
533
#define UART7_IBRD_R (*((volatile uint32_t *)0x40013024))
534
#define UART7_FBRD_R (*((volatile uint32_t *)0x40013028))
535
#define UART7_LCRH_R (*((volatile uint32_t *)0x4001302C))
536
#define UART7_CTL_R (*((volatile uint32_t *)0x40013030))
537
#define UART7_IFLS_R (*((volatile uint32_t *)0x40013034))
538
#define UART7_IM_R (*((volatile uint32_t *)0x40013038))
539
#define UART7_RIS_R (*((volatile uint32_t *)0x4001303C))
540
#define UART7_MIS_R (*((volatile uint32_t *)0x40013040))
541
#define UART7_ICR_R (*((volatile uint32_t *)0x40013044))
542
#define UART7_DMACTL_R (*((volatile uint32_t *)0x40013048))
543
#define UART7_9BITADDR_R (*((volatile uint32_t *)0x400130A4))
544
#define UART7_9BITAMASK_R (*((volatile uint32_t *)0x400130A8))
545
#define UART7_PP_R (*((volatile uint32_t *)0x40013FC0))
546
#define UART7_CC_R (*((volatile uint32_t *)0x40013FC8))
547
548
//*****************************************************************************
549
//
550
// I2C registers (I2C0)
551
//
552
//*****************************************************************************
553
#define I2C0_MSA_R (*((volatile uint32_t *)0x40020000))
554
#define I2C0_MCS_R (*((volatile uint32_t *)0x40020004))
555
#define I2C0_MDR_R (*((volatile uint32_t *)0x40020008))
556
#define I2C0_MTPR_R (*((volatile uint32_t *)0x4002000C))
557
#define I2C0_MIMR_R (*((volatile uint32_t *)0x40020010))
558
#define I2C0_MRIS_R (*((volatile uint32_t *)0x40020014))
559
#define I2C0_MMIS_R (*((volatile uint32_t *)0x40020018))
560
#define I2C0_MICR_R (*((volatile uint32_t *)0x4002001C))
561
#define I2C0_MCR_R (*((volatile uint32_t *)0x40020020))
562
#define I2C0_MCLKOCNT_R (*((volatile uint32_t *)0x40020024))
563
#define I2C0_MBMON_R (*((volatile uint32_t *)0x4002002C))
564
#define I2C0_MCR2_R (*((volatile uint32_t *)0x40020038))
565
#define I2C0_SOAR_R (*((volatile uint32_t *)0x40020800))
566
#define I2C0_SCSR_R (*((volatile uint32_t *)0x40020804))
567
#define I2C0_SDR_R (*((volatile uint32_t *)0x40020808))
568
#define I2C0_SIMR_R (*((volatile uint32_t *)0x4002080C))
569
#define I2C0_SRIS_R (*((volatile uint32_t *)0x40020810))
570
#define I2C0_SMIS_R (*((volatile uint32_t *)0x40020814))
571
#define I2C0_SICR_R (*((volatile uint32_t *)0x40020818))
572
#define I2C0_SOAR2_R (*((volatile uint32_t *)0x4002081C))
573
#define I2C0_SACKCTL_R (*((volatile uint32_t *)0x40020820))
574
#define I2C0_PP_R (*((volatile uint32_t *)0x40020FC0))
575
#define I2C0_PC_R (*((volatile uint32_t *)0x40020FC4))
576
577
//*****************************************************************************
578
//
579
// I2C registers (I2C1)
580
//
581
//*****************************************************************************
582
#define I2C1_MSA_R (*((volatile uint32_t *)0x40021000))
583
#define I2C1_MCS_R (*((volatile uint32_t *)0x40021004))
584
#define I2C1_MDR_R (*((volatile uint32_t *)0x40021008))
585
#define I2C1_MTPR_R (*((volatile uint32_t *)0x4002100C))
586
#define I2C1_MIMR_R (*((volatile uint32_t *)0x40021010))
587
#define I2C1_MRIS_R (*((volatile uint32_t *)0x40021014))
588
#define I2C1_MMIS_R (*((volatile uint32_t *)0x40021018))
589
#define I2C1_MICR_R (*((volatile uint32_t *)0x4002101C))
590
#define I2C1_MCR_R (*((volatile uint32_t *)0x40021020))
591
#define I2C1_MCLKOCNT_R (*((volatile uint32_t *)0x40021024))
592
#define I2C1_MBMON_R (*((volatile uint32_t *)0x4002102C))
593
#define I2C1_MCR2_R (*((volatile uint32_t *)0x40021038))
594
#define I2C1_SOAR_R (*((volatile uint32_t *)0x40021800))
595
#define I2C1_SCSR_R (*((volatile uint32_t *)0x40021804))
596
#define I2C1_SDR_R (*((volatile uint32_t *)0x40021808))
597
#define I2C1_SIMR_R (*((volatile uint32_t *)0x4002180C))
598
#define I2C1_SRIS_R (*((volatile uint32_t *)0x40021810))
599
#define I2C1_SMIS_R (*((volatile uint32_t *)0x40021814))
600
#define I2C1_SICR_R (*((volatile uint32_t *)0x40021818))
601
#define I2C1_SOAR2_R (*((volatile uint32_t *)0x4002181C))
602
#define I2C1_SACKCTL_R (*((volatile uint32_t *)0x40021820))
603
#define I2C1_PP_R (*((volatile uint32_t *)0x40021FC0))
604
#define I2C1_PC_R (*((volatile uint32_t *)0x40021FC4))
605
606
//*****************************************************************************
607
//
608
// I2C registers (I2C2)
609
//
610
//*****************************************************************************
611
#define I2C2_MSA_R (*((volatile uint32_t *)0x40022000))
612
#define I2C2_MCS_R (*((volatile uint32_t *)0x40022004))
613
#define I2C2_MDR_R (*((volatile uint32_t *)0x40022008))
614
#define I2C2_MTPR_R (*((volatile uint32_t *)0x4002200C))
615
#define I2C2_MIMR_R (*((volatile uint32_t *)0x40022010))
616
#define I2C2_MRIS_R (*((volatile uint32_t *)0x40022014))
617
#define I2C2_MMIS_R (*((volatile uint32_t *)0x40022018))
618
#define I2C2_MICR_R (*((volatile uint32_t *)0x4002201C))
619
#define I2C2_MCR_R (*((volatile uint32_t *)0x40022020))
620
#define I2C2_MCLKOCNT_R (*((volatile uint32_t *)0x40022024))
621
#define I2C2_MBMON_R (*((volatile uint32_t *)0x4002202C))
622
#define I2C2_MCR2_R (*((volatile uint32_t *)0x40022038))
623
#define I2C2_SOAR_R (*((volatile uint32_t *)0x40022800))
624
#define I2C2_SCSR_R (*((volatile uint32_t *)0x40022804))
625
#define I2C2_SDR_R (*((volatile uint32_t *)0x40022808))
626
#define I2C2_SIMR_R (*((volatile uint32_t *)0x4002280C))
627
#define I2C2_SRIS_R (*((volatile uint32_t *)0x40022810))
628
#define I2C2_SMIS_R (*((volatile uint32_t *)0x40022814))
629
#define I2C2_SICR_R (*((volatile uint32_t *)0x40022818))
630
#define I2C2_SOAR2_R (*((volatile uint32_t *)0x4002281C))
631
#define I2C2_SACKCTL_R (*((volatile uint32_t *)0x40022820))
632
#define I2C2_PP_R (*((volatile uint32_t *)0x40022FC0))
633
#define I2C2_PC_R (*((volatile uint32_t *)0x40022FC4))
634
635
//*****************************************************************************
636
//
637
// I2C registers (I2C3)
638
//
639
//*****************************************************************************
640
#define I2C3_MSA_R (*((volatile uint32_t *)0x40023000))
641
#define I2C3_MCS_R (*((volatile uint32_t *)0x40023004))
642
#define I2C3_MDR_R (*((volatile uint32_t *)0x40023008))
643
#define I2C3_MTPR_R (*((volatile uint32_t *)0x4002300C))
644
#define I2C3_MIMR_R (*((volatile uint32_t *)0x40023010))
645
#define I2C3_MRIS_R (*((volatile uint32_t *)0x40023014))
646
#define I2C3_MMIS_R (*((volatile uint32_t *)0x40023018))
647
#define I2C3_MICR_R (*((volatile uint32_t *)0x4002301C))
648
#define I2C3_MCR_R (*((volatile uint32_t *)0x40023020))
649
#define I2C3_MCLKOCNT_R (*((volatile uint32_t *)0x40023024))
650
#define I2C3_MBMON_R (*((volatile uint32_t *)0x4002302C))
651
#define I2C3_MCR2_R (*((volatile uint32_t *)0x40023038))
652
#define I2C3_SOAR_R (*((volatile uint32_t *)0x40023800))
653
#define I2C3_SCSR_R (*((volatile uint32_t *)0x40023804))
654
#define I2C3_SDR_R (*((volatile uint32_t *)0x40023808))
655
#define I2C3_SIMR_R (*((volatile uint32_t *)0x4002380C))
656
#define I2C3_SRIS_R (*((volatile uint32_t *)0x40023810))
657
#define I2C3_SMIS_R (*((volatile uint32_t *)0x40023814))
658
#define I2C3_SICR_R (*((volatile uint32_t *)0x40023818))
659
#define I2C3_SOAR2_R (*((volatile uint32_t *)0x4002381C))
660
#define I2C3_SACKCTL_R (*((volatile uint32_t *)0x40023820))
661
#define I2C3_PP_R (*((volatile uint32_t *)0x40023FC0))
662
#define I2C3_PC_R (*((volatile uint32_t *)0x40023FC4))
663
664
//*****************************************************************************
665
//
666
// GPIO registers (PORTE)
667
//
668
//*****************************************************************************
669
#define GPIO_PORTE_DATA_BITS_R ((volatile uint32_t *)0x40024000)
670
#define GPIO_PORTE_DATA_R (*((volatile uint32_t *)0x400243FC))
671
#define GPIO_PORTE_DIR_R (*((volatile uint32_t *)0x40024400))
672
#define GPIO_PORTE_IS_R (*((volatile uint32_t *)0x40024404))
673
#define GPIO_PORTE_IBE_R (*((volatile uint32_t *)0x40024408))
674
#define GPIO_PORTE_IEV_R (*((volatile uint32_t *)0x4002440C))
675
#define GPIO_PORTE_IM_R (*((volatile uint32_t *)0x40024410))
676
#define GPIO_PORTE_RIS_R (*((volatile uint32_t *)0x40024414))
677
#define GPIO_PORTE_MIS_R (*((volatile uint32_t *)0x40024418))
678
#define GPIO_PORTE_ICR_R (*((volatile uint32_t *)0x4002441C))
679
#define GPIO_PORTE_AFSEL_R (*((volatile uint32_t *)0x40024420))
680
#define GPIO_PORTE_DR2R_R (*((volatile uint32_t *)0x40024500))
681
#define GPIO_PORTE_DR4R_R (*((volatile uint32_t *)0x40024504))
682
#define GPIO_PORTE_DR8R_R (*((volatile uint32_t *)0x40024508))
683
#define GPIO_PORTE_ODR_R (*((volatile uint32_t *)0x4002450C))
684
#define GPIO_PORTE_PUR_R (*((volatile uint32_t *)0x40024510))
685
#define GPIO_PORTE_PDR_R (*((volatile uint32_t *)0x40024514))
686
#define GPIO_PORTE_SLR_R (*((volatile uint32_t *)0x40024518))
687
#define GPIO_PORTE_DEN_R (*((volatile uint32_t *)0x4002451C))
688
#define GPIO_PORTE_LOCK_R (*((volatile uint32_t *)0x40024520))
689
#define GPIO_PORTE_CR_R (*((volatile uint32_t *)0x40024524))
690
#define GPIO_PORTE_AMSEL_R (*((volatile uint32_t *)0x40024528))
691
#define GPIO_PORTE_PCTL_R (*((volatile uint32_t *)0x4002452C))
692
#define GPIO_PORTE_ADCCTL_R (*((volatile uint32_t *)0x40024530))
693
#define GPIO_PORTE_DMACTL_R (*((volatile uint32_t *)0x40024534))
694
695
//*****************************************************************************
696
//
697
// GPIO registers (PORTF)
698
//
699
//*****************************************************************************
700
#define GPIO_PORTF_DATA_BITS_R ((volatile uint32_t *)0x40025000)
701
#define GPIO_PORTF_DATA_R (*((volatile uint32_t *)0x400253FC))
702
#define GPIO_PORTF_DIR_R (*((volatile uint32_t *)0x40025400))
703
#define GPIO_PORTF_IS_R (*((volatile uint32_t *)0x40025404))
704
#define GPIO_PORTF_IBE_R (*((volatile uint32_t *)0x40025408))
705
#define GPIO_PORTF_IEV_R (*((volatile uint32_t *)0x4002540C))
706
#define GPIO_PORTF_IM_R (*((volatile uint32_t *)0x40025410))
707
#define GPIO_PORTF_RIS_R (*((volatile uint32_t *)0x40025414))
708
#define GPIO_PORTF_MIS_R (*((volatile uint32_t *)0x40025418))
709
#define GPIO_PORTF_ICR_R (*((volatile uint32_t *)0x4002541C))
710
#define GPIO_PORTF_AFSEL_R (*((volatile uint32_t *)0x40025420))
711
#define GPIO_PORTF_DR2R_R (*((volatile uint32_t *)0x40025500))
712
#define GPIO_PORTF_DR4R_R (*((volatile uint32_t *)0x40025504))
713
#define GPIO_PORTF_DR8R_R (*((volatile uint32_t *)0x40025508))
714
#define GPIO_PORTF_ODR_R (*((volatile uint32_t *)0x4002550C))
715
#define GPIO_PORTF_PUR_R (*((volatile uint32_t *)0x40025510))
716
#define GPIO_PORTF_PDR_R (*((volatile uint32_t *)0x40025514))
717
#define GPIO_PORTF_SLR_R (*((volatile uint32_t *)0x40025518))
718
#define GPIO_PORTF_DEN_R (*((volatile uint32_t *)0x4002551C))
719
#define GPIO_PORTF_LOCK_R (*((volatile uint32_t *)0x40025520))
720
#define GPIO_PORTF_CR_R (*((volatile uint32_t *)0x40025524))
721
#define GPIO_PORTF_AMSEL_R (*((volatile uint32_t *)0x40025528))
722
#define GPIO_PORTF_PCTL_R (*((volatile uint32_t *)0x4002552C))
723
#define GPIO_PORTF_ADCCTL_R (*((volatile uint32_t *)0x40025530))
724
#define GPIO_PORTF_DMACTL_R (*((volatile uint32_t *)0x40025534))
725
726
//*****************************************************************************
727
//
728
// PWM registers (PWM0)
729
//
730
//*****************************************************************************
731
#define PWM0_CTL_R (*((volatile uint32_t *)0x40028000))
732
#define PWM0_SYNC_R (*((volatile uint32_t *)0x40028004))
733
#define PWM0_ENABLE_R (*((volatile uint32_t *)0x40028008))
734
#define PWM0_INVERT_R (*((volatile uint32_t *)0x4002800C))
735
#define PWM0_FAULT_R (*((volatile uint32_t *)0x40028010))
736
#define PWM0_INTEN_R (*((volatile uint32_t *)0x40028014))
737
#define PWM0_RIS_R (*((volatile uint32_t *)0x40028018))
738
#define PWM0_ISC_R (*((volatile uint32_t *)0x4002801C))
739
#define PWM0_STATUS_R (*((volatile uint32_t *)0x40028020))
740
#define PWM0_FAULTVAL_R (*((volatile uint32_t *)0x40028024))
741
#define PWM0_ENUPD_R (*((volatile uint32_t *)0x40028028))
742
#define PWM0_0_CTL_R (*((volatile uint32_t *)0x40028040))
743
#define PWM0_0_INTEN_R (*((volatile uint32_t *)0x40028044))
744
#define PWM0_0_RIS_R (*((volatile uint32_t *)0x40028048))
745
#define PWM0_0_ISC_R (*((volatile uint32_t *)0x4002804C))
746
#define PWM0_0_LOAD_R (*((volatile uint32_t *)0x40028050))
747
#define PWM0_0_COUNT_R (*((volatile uint32_t *)0x40028054))
748
#define PWM0_0_CMPA_R (*((volatile uint32_t *)0x40028058))
749
#define PWM0_0_CMPB_R (*((volatile uint32_t *)0x4002805C))
750
#define PWM0_0_GENA_R (*((volatile uint32_t *)0x40028060))
751
#define PWM0_0_GENB_R (*((volatile uint32_t *)0x40028064))
752
#define PWM0_0_DBCTL_R (*((volatile uint32_t *)0x40028068))
753
#define PWM0_0_DBRISE_R (*((volatile uint32_t *)0x4002806C))
754
#define PWM0_0_DBFALL_R (*((volatile uint32_t *)0x40028070))
755
#define PWM0_0_FLTSRC0_R (*((volatile uint32_t *)0x40028074))
756
#define PWM0_0_FLTSRC1_R (*((volatile uint32_t *)0x40028078))
757
#define PWM0_0_MINFLTPER_R (*((volatile uint32_t *)0x4002807C))
758
#define PWM0_1_CTL_R (*((volatile uint32_t *)0x40028080))
759
#define PWM0_1_INTEN_R (*((volatile uint32_t *)0x40028084))
760
#define PWM0_1_RIS_R (*((volatile uint32_t *)0x40028088))
761
#define PWM0_1_ISC_R (*((volatile uint32_t *)0x4002808C))
762
#define PWM0_1_LOAD_R (*((volatile uint32_t *)0x40028090))
763
#define PWM0_1_COUNT_R (*((volatile uint32_t *)0x40028094))
764
#define PWM0_1_CMPA_R (*((volatile uint32_t *)0x40028098))
765
#define PWM0_1_CMPB_R (*((volatile uint32_t *)0x4002809C))
766
#define PWM0_1_GENA_R (*((volatile uint32_t *)0x400280A0))
767
#define PWM0_1_GENB_R (*((volatile uint32_t *)0x400280A4))
768
#define PWM0_1_DBCTL_R (*((volatile uint32_t *)0x400280A8))
769
#define PWM0_1_DBRISE_R (*((volatile uint32_t *)0x400280AC))
770
#define PWM0_1_DBFALL_R (*((volatile uint32_t *)0x400280B0))
771
#define PWM0_1_FLTSRC0_R (*((volatile uint32_t *)0x400280B4))
772
#define PWM0_1_FLTSRC1_R (*((volatile uint32_t *)0x400280B8))
773
#define PWM0_1_MINFLTPER_R (*((volatile uint32_t *)0x400280BC))
774
#define PWM0_2_CTL_R (*((volatile uint32_t *)0x400280C0))
775
#define PWM0_2_INTEN_R (*((volatile uint32_t *)0x400280C4))
776
#define PWM0_2_RIS_R (*((volatile uint32_t *)0x400280C8))
777
#define PWM0_2_ISC_R (*((volatile uint32_t *)0x400280CC))
778
#define PWM0_2_LOAD_R (*((volatile uint32_t *)0x400280D0))
779
#define PWM0_2_COUNT_R (*((volatile uint32_t *)0x400280D4))
780
#define PWM0_2_CMPA_R (*((volatile uint32_t *)0x400280D8))
781
#define PWM0_2_CMPB_R (*((volatile uint32_t *)0x400280DC))
782
#define PWM0_2_GENA_R (*((volatile uint32_t *)0x400280E0))
783
#define PWM0_2_GENB_R (*((volatile uint32_t *)0x400280E4))
784
#define PWM0_2_DBCTL_R (*((volatile uint32_t *)0x400280E8))
785
#define PWM0_2_DBRISE_R (*((volatile uint32_t *)0x400280EC))
786
#define PWM0_2_DBFALL_R (*((volatile uint32_t *)0x400280F0))
787
#define PWM0_2_FLTSRC0_R (*((volatile uint32_t *)0x400280F4))
788
#define PWM0_2_FLTSRC1_R (*((volatile uint32_t *)0x400280F8))
789
#define PWM0_2_MINFLTPER_R (*((volatile uint32_t *)0x400280FC))
790
#define PWM0_3_CTL_R (*((volatile uint32_t *)0x40028100))
791
#define PWM0_3_INTEN_R (*((volatile uint32_t *)0x40028104))
792
#define PWM0_3_RIS_R (*((volatile uint32_t *)0x40028108))
793
#define PWM0_3_ISC_R (*((volatile uint32_t *)0x4002810C))
794
#define PWM0_3_LOAD_R (*((volatile uint32_t *)0x40028110))
795
#define PWM0_3_COUNT_R (*((volatile uint32_t *)0x40028114))
796
#define PWM0_3_CMPA_R (*((volatile uint32_t *)0x40028118))
797
#define PWM0_3_CMPB_R (*((volatile uint32_t *)0x4002811C))
798
#define PWM0_3_GENA_R (*((volatile uint32_t *)0x40028120))
799
#define PWM0_3_GENB_R (*((volatile uint32_t *)0x40028124))
800
#define PWM0_3_DBCTL_R (*((volatile uint32_t *)0x40028128))
801
#define PWM0_3_DBRISE_R (*((volatile uint32_t *)0x4002812C))
802
#define PWM0_3_DBFALL_R (*((volatile uint32_t *)0x40028130))
803
#define PWM0_3_FLTSRC0_R (*((volatile uint32_t *)0x40028134))
804
#define PWM0_3_FLTSRC1_R (*((volatile uint32_t *)0x40028138))
805
#define PWM0_3_MINFLTPER_R (*((volatile uint32_t *)0x4002813C))
806
#define PWM0_0_FLTSEN_R (*((volatile uint32_t *)0x40028800))
807
#define PWM0_0_FLTSTAT0_R (*((volatile uint32_t *)0x40028804))
808
#define PWM0_0_FLTSTAT1_R (*((volatile uint32_t *)0x40028808))
809
#define PWM0_1_FLTSEN_R (*((volatile uint32_t *)0x40028880))
810
#define PWM0_1_FLTSTAT0_R (*((volatile uint32_t *)0x40028884))
811
#define PWM0_1_FLTSTAT1_R (*((volatile uint32_t *)0x40028888))
812
#define PWM0_2_FLTSTAT0_R (*((volatile uint32_t *)0x40028904))
813
#define PWM0_2_FLTSTAT1_R (*((volatile uint32_t *)0x40028908))
814
#define PWM0_3_FLTSTAT0_R (*((volatile uint32_t *)0x40028984))
815
#define PWM0_3_FLTSTAT1_R (*((volatile uint32_t *)0x40028988))
816
#define PWM0_PP_R (*((volatile uint32_t *)0x40028FC0))
817
818
//*****************************************************************************
819
//
820
// PWM registers (PWM1)
821
//
822
//*****************************************************************************
823
#define PWM1_CTL_R (*((volatile uint32_t *)0x40029000))
824
#define PWM1_SYNC_R (*((volatile uint32_t *)0x40029004))
825
#define PWM1_ENABLE_R (*((volatile uint32_t *)0x40029008))
826
#define PWM1_INVERT_R (*((volatile uint32_t *)0x4002900C))
827
#define PWM1_FAULT_R (*((volatile uint32_t *)0x40029010))
828
#define PWM1_INTEN_R (*((volatile uint32_t *)0x40029014))
829
#define PWM1_RIS_R (*((volatile uint32_t *)0x40029018))
830
#define PWM1_ISC_R (*((volatile uint32_t *)0x4002901C))
831
#define PWM1_STATUS_R (*((volatile uint32_t *)0x40029020))
832
#define PWM1_FAULTVAL_R (*((volatile uint32_t *)0x40029024))
833
#define PWM1_ENUPD_R (*((volatile uint32_t *)0x40029028))
834
#define PWM1_0_CTL_R (*((volatile uint32_t *)0x40029040))
835
#define PWM1_0_INTEN_R (*((volatile uint32_t *)0x40029044))
836
#define PWM1_0_RIS_R (*((volatile uint32_t *)0x40029048))
837
#define PWM1_0_ISC_R (*((volatile uint32_t *)0x4002904C))
838
#define PWM1_0_LOAD_R (*((volatile uint32_t *)0x40029050))
839
#define PWM1_0_COUNT_R (*((volatile uint32_t *)0x40029054))
840
#define PWM1_0_CMPA_R (*((volatile uint32_t *)0x40029058))
841
#define PWM1_0_CMPB_R (*((volatile uint32_t *)0x4002905C))
842
#define PWM1_0_GENA_R (*((volatile uint32_t *)0x40029060))
843
#define PWM1_0_GENB_R (*((volatile uint32_t *)0x40029064))
844
#define PWM1_0_DBCTL_R (*((volatile uint32_t *)0x40029068))
845
#define PWM1_0_DBRISE_R (*((volatile uint32_t *)0x4002906C))
846
#define PWM1_0_DBFALL_R (*((volatile uint32_t *)0x40029070))
847
#define PWM1_0_FLTSRC0_R (*((volatile uint32_t *)0x40029074))
848
#define PWM1_0_FLTSRC1_R (*((volatile uint32_t *)0x40029078))
849
#define PWM1_0_MINFLTPER_R (*((volatile uint32_t *)0x4002907C))
850
#define PWM1_1_CTL_R (*((volatile uint32_t *)0x40029080))
851
#define PWM1_1_INTEN_R (*((volatile uint32_t *)0x40029084))
852
#define PWM1_1_RIS_R (*((volatile uint32_t *)0x40029088))
853
#define PWM1_1_ISC_R (*((volatile uint32_t *)0x4002908C))
854
#define PWM1_1_LOAD_R (*((volatile uint32_t *)0x40029090))
855
#define PWM1_1_COUNT_R (*((volatile uint32_t *)0x40029094))
856
#define PWM1_1_CMPA_R (*((volatile uint32_t *)0x40029098))
857
#define PWM1_1_CMPB_R (*((volatile uint32_t *)0x4002909C))
858
#define PWM1_1_GENA_R (*((volatile uint32_t *)0x400290A0))
859
#define PWM1_1_GENB_R (*((volatile uint32_t *)0x400290A4))
860
#define PWM1_1_DBCTL_R (*((volatile uint32_t *)0x400290A8))
861
#define PWM1_1_DBRISE_R (*((volatile uint32_t *)0x400290AC))
862
#define PWM1_1_DBFALL_R (*((volatile uint32_t *)0x400290B0))
863
#define PWM1_1_FLTSRC0_R (*((volatile uint32_t *)0x400290B4))
864
#define PWM1_1_FLTSRC1_R (*((volatile uint32_t *)0x400290B8))
865
#define PWM1_1_MINFLTPER_R (*((volatile uint32_t *)0x400290BC))
866
#define PWM1_2_CTL_R (*((volatile uint32_t *)0x400290C0))
867
#define PWM1_2_INTEN_R (*((volatile uint32_t *)0x400290C4))
868
#define PWM1_2_RIS_R (*((volatile uint32_t *)0x400290C8))
869
#define PWM1_2_ISC_R (*((volatile uint32_t *)0x400290CC))
870
#define PWM1_2_LOAD_R (*((volatile uint32_t *)0x400290D0))
871
#define PWM1_2_COUNT_R (*((volatile uint32_t *)0x400290D4))
872
#define PWM1_2_CMPA_R (*((volatile uint32_t *)0x400290D8))
873
#define PWM1_2_CMPB_R (*((volatile uint32_t *)0x400290DC))
874
#define PWM1_2_GENA_R (*((volatile uint32_t *)0x400290E0))
875
#define PWM1_2_GENB_R (*((volatile uint32_t *)0x400290E4))
876
#define PWM1_2_DBCTL_R (*((volatile uint32_t *)0x400290E8))
877
#define PWM1_2_DBRISE_R (*((volatile uint32_t *)0x400290EC))
878
#define PWM1_2_DBFALL_R (*((volatile uint32_t *)0x400290F0))
879
#define PWM1_2_FLTSRC0_R (*((volatile uint32_t *)0x400290F4))
880
#define PWM1_2_FLTSRC1_R (*((volatile uint32_t *)0x400290F8))
881
#define PWM1_2_MINFLTPER_R (*((volatile uint32_t *)0x400290FC))
882
#define PWM1_3_CTL_R (*((volatile uint32_t *)0x40029100))
883
#define PWM1_3_INTEN_R (*((volatile uint32_t *)0x40029104))
884
#define PWM1_3_RIS_R (*((volatile uint32_t *)0x40029108))
885
#define PWM1_3_ISC_R (*((volatile uint32_t *)0x4002910C))
886
#define PWM1_3_LOAD_R (*((volatile uint32_t *)0x40029110))
887
#define PWM1_3_COUNT_R (*((volatile uint32_t *)0x40029114))
888
#define PWM1_3_CMPA_R (*((volatile uint32_t *)0x40029118))
889
#define PWM1_3_CMPB_R (*((volatile uint32_t *)0x4002911C))
890
#define PWM1_3_GENA_R (*((volatile uint32_t *)0x40029120))
891
#define PWM1_3_GENB_R (*((volatile uint32_t *)0x40029124))
892
#define PWM1_3_DBCTL_R (*((volatile uint32_t *)0x40029128))
893
#define PWM1_3_DBRISE_R (*((volatile uint32_t *)0x4002912C))
894
#define PWM1_3_DBFALL_R (*((volatile uint32_t *)0x40029130))
895
#define PWM1_3_FLTSRC0_R (*((volatile uint32_t *)0x40029134))
896
#define PWM1_3_FLTSRC1_R (*((volatile uint32_t *)0x40029138))
897
#define PWM1_3_MINFLTPER_R (*((volatile uint32_t *)0x4002913C))
898
#define PWM1_0_FLTSEN_R (*((volatile uint32_t *)0x40029800))
899
#define PWM1_0_FLTSTAT0_R (*((volatile uint32_t *)0x40029804))
900
#define PWM1_0_FLTSTAT1_R (*((volatile uint32_t *)0x40029808))
901
#define PWM1_1_FLTSEN_R (*((volatile uint32_t *)0x40029880))
902
#define PWM1_1_FLTSTAT0_R (*((volatile uint32_t *)0x40029884))
903
#define PWM1_1_FLTSTAT1_R (*((volatile uint32_t *)0x40029888))
904
#define PWM1_2_FLTSTAT0_R (*((volatile uint32_t *)0x40029904))
905
#define PWM1_2_FLTSTAT1_R (*((volatile uint32_t *)0x40029908))
906
#define PWM1_3_FLTSTAT0_R (*((volatile uint32_t *)0x40029984))
907
#define PWM1_3_FLTSTAT1_R (*((volatile uint32_t *)0x40029988))
908
#define PWM1_PP_R (*((volatile uint32_t *)0x40029FC0))
909
910
//*****************************************************************************
911
//
912
// QEI registers (QEI0)
913
//
914
//*****************************************************************************
915
#define QEI0_CTL_R (*((volatile uint32_t *)0x4002C000))
916
#define QEI0_STAT_R (*((volatile uint32_t *)0x4002C004))
917
#define QEI0_POS_R (*((volatile uint32_t *)0x4002C008))
918
#define QEI0_MAXPOS_R (*((volatile uint32_t *)0x4002C00C))
919
#define QEI0_LOAD_R (*((volatile uint32_t *)0x4002C010))
920
#define QEI0_TIME_R (*((volatile uint32_t *)0x4002C014))
921
#define QEI0_COUNT_R (*((volatile uint32_t *)0x4002C018))
922
#define QEI0_SPEED_R (*((volatile uint32_t *)0x4002C01C))
923
#define QEI0_INTEN_R (*((volatile uint32_t *)0x4002C020))
924
#define QEI0_RIS_R (*((volatile uint32_t *)0x4002C024))
925
#define QEI0_ISC_R (*((volatile uint32_t *)0x4002C028))
926
927
//*****************************************************************************
928
//
929
// QEI registers (QEI1)
930
//
931
//*****************************************************************************
932
#define QEI1_CTL_R (*((volatile uint32_t *)0x4002D000))
933
#define QEI1_STAT_R (*((volatile uint32_t *)0x4002D004))
934
#define QEI1_POS_R (*((volatile uint32_t *)0x4002D008))
935
#define QEI1_MAXPOS_R (*((volatile uint32_t *)0x4002D00C))
936
#define QEI1_LOAD_R (*((volatile uint32_t *)0x4002D010))
937
#define QEI1_TIME_R (*((volatile uint32_t *)0x4002D014))
938
#define QEI1_COUNT_R (*((volatile uint32_t *)0x4002D018))
939
#define QEI1_SPEED_R (*((volatile uint32_t *)0x4002D01C))
940
#define QEI1_INTEN_R (*((volatile uint32_t *)0x4002D020))
941
#define QEI1_RIS_R (*((volatile uint32_t *)0x4002D024))
942
#define QEI1_ISC_R (*((volatile uint32_t *)0x4002D028))
943
944
//*****************************************************************************
945
//
946
// Timer registers (TIMER0)
947
//
948
//*****************************************************************************
949
#define TIMER0_CFG_R (*((volatile uint32_t *)0x40030000))
950
#define TIMER0_TAMR_R (*((volatile uint32_t *)0x40030004))
951
#define TIMER0_TBMR_R (*((volatile uint32_t *)0x40030008))
952
#define TIMER0_CTL_R (*((volatile uint32_t *)0x4003000C))
953
#define TIMER0_SYNC_R (*((volatile uint32_t *)0x40030010))
954
#define TIMER0_IMR_R (*((volatile uint32_t *)0x40030018))
955
#define TIMER0_RIS_R (*((volatile uint32_t *)0x4003001C))
956
#define TIMER0_MIS_R (*((volatile uint32_t *)0x40030020))
957
#define TIMER0_ICR_R (*((volatile uint32_t *)0x40030024))
958
#define TIMER0_TAILR_R (*((volatile uint32_t *)0x40030028))
959
#define TIMER0_TBILR_R (*((volatile uint32_t *)0x4003002C))
960
#define TIMER0_TAMATCHR_R (*((volatile uint32_t *)0x40030030))
961
#define TIMER0_TBMATCHR_R (*((volatile uint32_t *)0x40030034))
962
#define TIMER0_TAPR_R (*((volatile uint32_t *)0x40030038))
963
#define TIMER0_TBPR_R (*((volatile uint32_t *)0x4003003C))
964
#define TIMER0_TAPMR_R (*((volatile uint32_t *)0x40030040))
965
#define TIMER0_TBPMR_R (*((volatile uint32_t *)0x40030044))
966
#define TIMER0_TAR_R (*((volatile uint32_t *)0x40030048))
967
#define TIMER0_TBR_R (*((volatile uint32_t *)0x4003004C))
968
#define TIMER0_TAV_R (*((volatile uint32_t *)0x40030050))
969
#define TIMER0_TBV_R (*((volatile uint32_t *)0x40030054))
970
#define TIMER0_RTCPD_R (*((volatile uint32_t *)0x40030058))
971
#define TIMER0_TAPS_R (*((volatile uint32_t *)0x4003005C))
972
#define TIMER0_TBPS_R (*((volatile uint32_t *)0x40030060))
973
#define TIMER0_TAPV_R (*((volatile uint32_t *)0x40030064))
974
#define TIMER0_TBPV_R (*((volatile uint32_t *)0x40030068))
975
#define TIMER0_PP_R (*((volatile uint32_t *)0x40030FC0))
976
977
//*****************************************************************************
978
//
979
// Timer registers (TIMER1)
980
//
981
//*****************************************************************************
982
#define TIMER1_CFG_R (*((volatile uint32_t *)0x40031000))
983
#define TIMER1_TAMR_R (*((volatile uint32_t *)0x40031004))
984
#define TIMER1_TBMR_R (*((volatile uint32_t *)0x40031008))
985
#define TIMER1_CTL_R (*((volatile uint32_t *)0x4003100C))
986
#define TIMER1_SYNC_R (*((volatile uint32_t *)0x40031010))
987
#define TIMER1_IMR_R (*((volatile uint32_t *)0x40031018))
988
#define TIMER1_RIS_R (*((volatile uint32_t *)0x4003101C))
989
#define TIMER1_MIS_R (*((volatile uint32_t *)0x40031020))
990
#define TIMER1_ICR_R (*((volatile uint32_t *)0x40031024))
991
#define TIMER1_TAILR_R (*((volatile uint32_t *)0x40031028))
992
#define TIMER1_TBILR_R (*((volatile uint32_t *)0x4003102C))
993
#define TIMER1_TAMATCHR_R (*((volatile uint32_t *)0x40031030))
994
#define TIMER1_TBMATCHR_R (*((volatile uint32_t *)0x40031034))
995
#define TIMER1_TAPR_R (*((volatile uint32_t *)0x40031038))
996
#define TIMER1_TBPR_R (*((volatile uint32_t *)0x4003103C))
997
#define TIMER1_TAPMR_R (*((volatile uint32_t *)0x40031040))
998
#define TIMER1_TBPMR_R (*((volatile uint32_t *)0x40031044))
999
#define TIMER1_TAR_R (*((volatile uint32_t *)0x40031048))
1000
#define TIMER1_TBR_R (*((volatile uint32_t *)0x4003104C))
1001
#define TIMER1_TAV_R (*((volatile uint32_t *)0x40031050))
1002
#define TIMER1_TBV_R (*((volatile uint32_t *)0x40031054))
1003
#define TIMER1_RTCPD_R (*((volatile uint32_t *)0x40031058))
1004
#define TIMER1_TAPS_R (*((volatile uint32_t *)0x4003105C))
1005
#define TIMER1_TBPS_R (*((volatile uint32_t *)0x40031060))
1006
#define TIMER1_TAPV_R (*((volatile uint32_t *)0x40031064))
1007
#define TIMER1_TBPV_R (*((volatile uint32_t *)0x40031068))
1008
#define TIMER1_PP_R (*((volatile uint32_t *)0x40031FC0))
1009
1010
//*****************************************************************************
1011
//
1012
// Timer registers (TIMER2)
1013
//
1014
//*****************************************************************************
1015
#define TIMER2_CFG_R (*((volatile uint32_t *)0x40032000))
1016
#define TIMER2_TAMR_R (*((volatile uint32_t *)0x40032004))
1017
#define TIMER2_TBMR_R (*((volatile uint32_t *)0x40032008))
1018
#define TIMER2_CTL_R (*((volatile uint32_t *)0x4003200C))
1019
#define TIMER2_SYNC_R (*((volatile uint32_t *)0x40032010))
1020
#define TIMER2_IMR_R (*((volatile uint32_t *)0x40032018))
1021
#define TIMER2_RIS_R (*((volatile uint32_t *)0x4003201C))
1022
#define TIMER2_MIS_R (*((volatile uint32_t *)0x40032020))
1023
#define TIMER2_ICR_R (*((volatile uint32_t *)0x40032024))
1024
#define TIMER2_TAILR_R (*((volatile uint32_t *)0x40032028))
1025
#define TIMER2_TBILR_R (*((volatile uint32_t *)0x4003202C))
1026
#define TIMER2_TAMATCHR_R (*((volatile uint32_t *)0x40032030))
1027
#define TIMER2_TBMATCHR_R (*((volatile uint32_t *)0x40032034))
1028
#define TIMER2_TAPR_R (*((volatile uint32_t *)0x40032038))
1029
#define TIMER2_TBPR_R (*((volatile uint32_t *)0x4003203C))
1030
#define TIMER2_TAPMR_R (*((volatile uint32_t *)0x40032040))
1031
#define TIMER2_TBPMR_R (*((volatile uint32_t *)0x40032044))
1032
#define TIMER2_TAR_R (*((volatile uint32_t *)0x40032048))
1033
#define TIMER2_TBR_R (*((volatile uint32_t *)0x4003204C))
1034
#define TIMER2_TAV_R (*((volatile uint32_t *)0x40032050))
1035
#define TIMER2_TBV_R (*((volatile uint32_t *)0x40032054))
1036
#define TIMER2_RTCPD_R (*((volatile uint32_t *)0x40032058))
1037
#define TIMER2_TAPS_R (*((volatile uint32_t *)0x4003205C))
1038
#define TIMER2_TBPS_R (*((volatile uint32_t *)0x40032060))
1039
#define TIMER2_TAPV_R (*((volatile uint32_t *)0x40032064))
1040
#define TIMER2_TBPV_R (*((volatile uint32_t *)0x40032068))
1041
#define TIMER2_PP_R (*((volatile uint32_t *)0x40032FC0))
1042
1043
//*****************************************************************************
1044
//
1045
// Timer registers (TIMER3)
1046
//
1047
//*****************************************************************************
1048
#define TIMER3_CFG_R (*((volatile uint32_t *)0x40033000))
1049
#define TIMER3_TAMR_R (*((volatile uint32_t *)0x40033004))
1050
#define TIMER3_TBMR_R (*((volatile uint32_t *)0x40033008))
1051
#define TIMER3_CTL_R (*((volatile uint32_t *)0x4003300C))
1052
#define TIMER3_SYNC_R (*((volatile uint32_t *)0x40033010))
1053
#define TIMER3_IMR_R (*((volatile uint32_t *)0x40033018))
1054
#define TIMER3_RIS_R (*((volatile uint32_t *)0x4003301C))
1055
#define TIMER3_MIS_R (*((volatile uint32_t *)0x40033020))
1056
#define TIMER3_ICR_R (*((volatile uint32_t *)0x40033024))
1057
#define TIMER3_TAILR_R (*((volatile uint32_t *)0x40033028))
1058
#define TIMER3_TBILR_R (*((volatile uint32_t *)0x4003302C))
1059
#define TIMER3_TAMATCHR_R (*((volatile uint32_t *)0x40033030))
1060
#define TIMER3_TBMATCHR_R (*((volatile uint32_t *)0x40033034))
1061
#define TIMER3_TAPR_R (*((volatile uint32_t *)0x40033038))
1062
#define TIMER3_TBPR_R (*((volatile uint32_t *)0x4003303C))
1063
#define TIMER3_TAPMR_R (*((volatile uint32_t *)0x40033040))
1064
#define TIMER3_TBPMR_R (*((volatile uint32_t *)0x40033044))
1065
#define TIMER3_TAR_R (*((volatile uint32_t *)0x40033048))
1066
#define TIMER3_TBR_R (*((volatile uint32_t *)0x4003304C))
1067
#define TIMER3_TAV_R (*((volatile uint32_t *)0x40033050))
1068
#define TIMER3_TBV_R (*((volatile uint32_t *)0x40033054))
1069
#define TIMER3_RTCPD_R (*((volatile uint32_t *)0x40033058))
1070
#define TIMER3_TAPS_R (*((volatile uint32_t *)0x4003305C))
1071
#define TIMER3_TBPS_R (*((volatile uint32_t *)0x40033060))
1072
#define TIMER3_TAPV_R (*((volatile uint32_t *)0x40033064))
1073
#define TIMER3_TBPV_R (*((volatile uint32_t *)0x40033068))
1074
#define TIMER3_PP_R (*((volatile uint32_t *)0x40033FC0))
1075
1076
//*****************************************************************************
1077
//
1078
// Timer registers (TIMER4)
1079
//
1080
//*****************************************************************************
1081
#define TIMER4_CFG_R (*((volatile uint32_t *)0x40034000))
1082
#define TIMER4_TAMR_R (*((volatile uint32_t *)0x40034004))
1083
#define TIMER4_TBMR_R (*((volatile uint32_t *)0x40034008))
1084
#define TIMER4_CTL_R (*((volatile uint32_t *)0x4003400C))
1085
#define TIMER4_SYNC_R (*((volatile uint32_t *)0x40034010))
1086
#define TIMER4_IMR_R (*((volatile uint32_t *)0x40034018))
1087
#define TIMER4_RIS_R (*((volatile uint32_t *)0x4003401C))
1088
#define TIMER4_MIS_R (*((volatile uint32_t *)0x40034020))
1089
#define TIMER4_ICR_R (*((volatile uint32_t *)0x40034024))
1090
#define TIMER4_TAILR_R (*((volatile uint32_t *)0x40034028))
1091
#define TIMER4_TBILR_R (*((volatile uint32_t *)0x4003402C))
1092
#define TIMER4_TAMATCHR_R (*((volatile uint32_t *)0x40034030))
1093
#define TIMER4_TBMATCHR_R (*((volatile uint32_t *)0x40034034))
1094
#define TIMER4_TAPR_R (*((volatile uint32_t *)0x40034038))
1095
#define TIMER4_TBPR_R (*((volatile uint32_t *)0x4003403C))
1096
#define TIMER4_TAPMR_R (*((volatile uint32_t *)0x40034040))
1097
#define TIMER4_TBPMR_R (*((volatile uint32_t *)0x40034044))
1098
#define TIMER4_TAR_R (*((volatile uint32_t *)0x40034048))
1099
#define TIMER4_TBR_R (*((volatile uint32_t *)0x4003404C))
1100
#define TIMER4_TAV_R (*((volatile uint32_t *)0x40034050))
1101
#define TIMER4_TBV_R (*((volatile uint32_t *)0x40034054))
1102
#define TIMER4_RTCPD_R (*((volatile uint32_t *)0x40034058))
1103
#define TIMER4_TAPS_R (*((volatile uint32_t *)0x4003405C))
1104
#define TIMER4_TBPS_R (*((volatile uint32_t *)0x40034060))
1105
#define TIMER4_TAPV_R (*((volatile uint32_t *)0x40034064))
1106
#define TIMER4_TBPV_R (*((volatile uint32_t *)0x40034068))
1107
#define TIMER4_PP_R (*((volatile uint32_t *)0x40034FC0))
1108
1109
//*****************************************************************************
1110
//
1111
// Timer registers (TIMER5)
1112
//
1113
//*****************************************************************************
1114
#define TIMER5_CFG_R (*((volatile uint32_t *)0x40035000))
1115
#define TIMER5_TAMR_R (*((volatile uint32_t *)0x40035004))
1116
#define TIMER5_TBMR_R (*((volatile uint32_t *)0x40035008))
1117
#define TIMER5_CTL_R (*((volatile uint32_t *)0x4003500C))
1118
#define TIMER5_SYNC_R (*((volatile uint32_t *)0x40035010))
1119
#define TIMER5_IMR_R (*((volatile uint32_t *)0x40035018))
1120
#define TIMER5_RIS_R (*((volatile uint32_t *)0x4003501C))
1121
#define TIMER5_MIS_R (*((volatile uint32_t *)0x40035020))
1122
#define TIMER5_ICR_R (*((volatile uint32_t *)0x40035024))
1123
#define TIMER5_TAILR_R (*((volatile uint32_t *)0x40035028))
1124
#define TIMER5_TBILR_R (*((volatile uint32_t *)0x4003502C))
1125
#define TIMER5_TAMATCHR_R (*((volatile uint32_t *)0x40035030))
1126
#define TIMER5_TBMATCHR_R (*((volatile uint32_t *)0x40035034))
1127
#define TIMER5_TAPR_R (*((volatile uint32_t *)0x40035038))
1128
#define TIMER5_TBPR_R (*((volatile uint32_t *)0x4003503C))
1129
#define TIMER5_TAPMR_R (*((volatile uint32_t *)0x40035040))
1130
#define TIMER5_TBPMR_R (*((volatile uint32_t *)0x40035044))
1131
#define TIMER5_TAR_R (*((volatile uint32_t *)0x40035048))
1132
#define TIMER5_TBR_R (*((volatile uint32_t *)0x4003504C))
1133
#define TIMER5_TAV_R (*((volatile uint32_t *)0x40035050))
1134
#define TIMER5_TBV_R (*((volatile uint32_t *)0x40035054))
1135
#define TIMER5_RTCPD_R (*((volatile uint32_t *)0x40035058))
1136
#define TIMER5_TAPS_R (*((volatile uint32_t *)0x4003505C))
1137
#define TIMER5_TBPS_R (*((volatile uint32_t *)0x40035060))
1138
#define TIMER5_TAPV_R (*((volatile uint32_t *)0x40035064))
1139
#define TIMER5_TBPV_R (*((volatile uint32_t *)0x40035068))
1140
#define TIMER5_PP_R (*((volatile uint32_t *)0x40035FC0))
1141
1142
//*****************************************************************************
1143
//
1144
// Timer registers (WTIMER0)
1145
//
1146
//*****************************************************************************
1147
#define WTIMER0_CFG_R (*((volatile uint32_t *)0x40036000))
1148
#define WTIMER0_TAMR_R (*((volatile uint32_t *)0x40036004))
1149
#define WTIMER0_TBMR_R (*((volatile uint32_t *)0x40036008))
1150
#define WTIMER0_CTL_R (*((volatile uint32_t *)0x4003600C))
1151
#define WTIMER0_SYNC_R (*((volatile uint32_t *)0x40036010))
1152
#define WTIMER0_IMR_R (*((volatile uint32_t *)0x40036018))
1153
#define WTIMER0_RIS_R (*((volatile uint32_t *)0x4003601C))
1154
#define WTIMER0_MIS_R (*((volatile uint32_t *)0x40036020))
1155
#define WTIMER0_ICR_R (*((volatile uint32_t *)0x40036024))
1156
#define WTIMER0_TAILR_R (*((volatile uint32_t *)0x40036028))
1157
#define WTIMER0_TBILR_R (*((volatile uint32_t *)0x4003602C))
1158
#define WTIMER0_TAMATCHR_R (*((volatile uint32_t *)0x40036030))
1159
#define WTIMER0_TBMATCHR_R (*((volatile uint32_t *)0x40036034))
1160
#define WTIMER0_TAPR_R (*((volatile uint32_t *)0x40036038))
1161
#define WTIMER0_TBPR_R (*((volatile uint32_t *)0x4003603C))
1162
#define WTIMER0_TAPMR_R (*((volatile uint32_t *)0x40036040))
1163
#define WTIMER0_TBPMR_R (*((volatile uint32_t *)0x40036044))
1164
#define WTIMER0_TAR_R (*((volatile uint32_t *)0x40036048))
1165
#define WTIMER0_TBR_R (*((volatile uint32_t *)0x4003604C))
1166
#define WTIMER0_TAV_R (*((volatile uint32_t *)0x40036050))
1167
#define WTIMER0_TBV_R (*((volatile uint32_t *)0x40036054))
1168
#define WTIMER0_RTCPD_R (*((volatile uint32_t *)0x40036058))
1169
#define WTIMER0_TAPS_R (*((volatile uint32_t *)0x4003605C))
1170
#define WTIMER0_TBPS_R (*((volatile uint32_t *)0x40036060))
1171
#define WTIMER0_TAPV_R (*((volatile uint32_t *)0x40036064))
1172
#define WTIMER0_TBPV_R (*((volatile uint32_t *)0x40036068))
1173
#define WTIMER0_PP_R (*((volatile uint32_t *)0x40036FC0))
1174
1175
//*****************************************************************************
1176
//
1177
// Timer registers (WTIMER1)
1178
//
1179
//*****************************************************************************
1180
#define WTIMER1_CFG_R (*((volatile uint32_t *)0x40037000))
1181
#define WTIMER1_TAMR_R (*((volatile uint32_t *)0x40037004))
1182
#define WTIMER1_TBMR_R (*((volatile uint32_t *)0x40037008))
1183
#define WTIMER1_CTL_R (*((volatile uint32_t *)0x4003700C))
1184
#define WTIMER1_SYNC_R (*((volatile uint32_t *)0x40037010))
1185
#define WTIMER1_IMR_R (*((volatile uint32_t *)0x40037018))
1186
#define WTIMER1_RIS_R (*((volatile uint32_t *)0x4003701C))
1187
#define WTIMER1_MIS_R (*((volatile uint32_t *)0x40037020))
1188
#define WTIMER1_ICR_R (*((volatile uint32_t *)0x40037024))
1189
#define WTIMER1_TAILR_R (*((volatile uint32_t *)0x40037028))
1190
#define WTIMER1_TBILR_R (*((volatile uint32_t *)0x4003702C))
1191
#define WTIMER1_TAMATCHR_R (*((volatile uint32_t *)0x40037030))
1192
#define WTIMER1_TBMATCHR_R (*((volatile uint32_t *)0x40037034))
1193
#define WTIMER1_TAPR_R (*((volatile uint32_t *)0x40037038))
1194
#define WTIMER1_TBPR_R (*((volatile uint32_t *)0x4003703C))
1195
#define WTIMER1_TAPMR_R (*((volatile uint32_t *)0x40037040))
1196
#define WTIMER1_TBPMR_R (*((volatile uint32_t *)0x40037044))
1197
#define WTIMER1_TAR_R (*((volatile uint32_t *)0x40037048))
1198
#define WTIMER1_TBR_R (*((volatile uint32_t *)0x4003704C))
1199
#define WTIMER1_TAV_R (*((volatile uint32_t *)0x40037050))
1200
#define WTIMER1_TBV_R (*((volatile uint32_t *)0x40037054))
1201
#define WTIMER1_RTCPD_R (*((volatile uint32_t *)0x40037058))
1202
#define WTIMER1_TAPS_R (*((volatile uint32_t *)0x4003705C))
1203
#define WTIMER1_TBPS_R (*((volatile uint32_t *)0x40037060))
1204
#define WTIMER1_TAPV_R (*((volatile uint32_t *)0x40037064))
1205
#define WTIMER1_TBPV_R (*((volatile uint32_t *)0x40037068))
1206
#define WTIMER1_PP_R (*((volatile uint32_t *)0x40037FC0))
1207
1208
//*****************************************************************************
1209
//
1210
// ADC registers (ADC0)
1211
//
1212
//*****************************************************************************
1213
#define ADC0_ACTSS_R (*((volatile uint32_t *)0x40038000))
1214
#define ADC0_RIS_R (*((volatile uint32_t *)0x40038004))
1215
#define ADC0_IM_R (*((volatile uint32_t *)0x40038008))
1216
#define ADC0_ISC_R (*((volatile uint32_t *)0x4003800C))
1217
#define ADC0_OSTAT_R (*((volatile uint32_t *)0x40038010))
1218
#define ADC0_EMUX_R (*((volatile uint32_t *)0x40038014))
1219
#define ADC0_USTAT_R (*((volatile uint32_t *)0x40038018))
1220
#define ADC0_TSSEL_R (*((volatile uint32_t *)0x4003801C))
1221
#define ADC0_SSPRI_R (*((volatile uint32_t *)0x40038020))
1222
#define ADC0_SPC_R (*((volatile uint32_t *)0x40038024))
1223
#define ADC0_PSSI_R (*((volatile uint32_t *)0x40038028))
1224
#define ADC0_SAC_R (*((volatile uint32_t *)0x40038030))
1225
#define ADC0_DCISC_R (*((volatile uint32_t *)0x40038034))
1226
#define ADC0_CTL_R (*((volatile uint32_t *)0x40038038))
1227
#define ADC0_SSMUX0_R (*((volatile uint32_t *)0x40038040))
1228
#define ADC0_SSCTL0_R (*((volatile uint32_t *)0x40038044))
1229
#define ADC0_SSFIFO0_R (*((volatile uint32_t *)0x40038048))
1230
#define ADC0_SSFSTAT0_R (*((volatile uint32_t *)0x4003804C))
1231
#define ADC0_SSOP0_R (*((volatile uint32_t *)0x40038050))
1232
#define ADC0_SSDC0_R (*((volatile uint32_t *)0x40038054))
1233
#define ADC0_SSMUX1_R (*((volatile uint32_t *)0x40038060))
1234
#define ADC0_SSCTL1_R (*((volatile uint32_t *)0x40038064))
1235
#define ADC0_SSFIFO1_R (*((volatile uint32_t *)0x40038068))
1236
#define ADC0_SSFSTAT1_R (*((volatile uint32_t *)0x4003806C))
1237
#define ADC0_SSOP1_R (*((volatile uint32_t *)0x40038070))
1238
#define ADC0_SSDC1_R (*((volatile uint32_t *)0x40038074))
1239
#define ADC0_SSMUX2_R (*((volatile uint32_t *)0x40038080))
1240
#define ADC0_SSCTL2_R (*((volatile uint32_t *)0x40038084))
1241
#define ADC0_SSFIFO2_R (*((volatile uint32_t *)0x40038088))
1242
#define ADC0_SSFSTAT2_R (*((volatile uint32_t *)0x4003808C))
1243
#define ADC0_SSOP2_R (*((volatile uint32_t *)0x40038090))
1244
#define ADC0_SSDC2_R (*((volatile uint32_t *)0x40038094))
1245
#define ADC0_SSMUX3_R (*((volatile uint32_t *)0x400380A0))
1246
#define ADC0_SSCTL3_R (*((volatile uint32_t *)0x400380A4))
1247
#define ADC0_SSFIFO3_R (*((volatile uint32_t *)0x400380A8))
1248
#define ADC0_SSFSTAT3_R (*((volatile uint32_t *)0x400380AC))
1249
#define ADC0_SSOP3_R (*((volatile uint32_t *)0x400380B0))
1250
#define ADC0_SSDC3_R (*((volatile uint32_t *)0x400380B4))
1251
#define ADC0_DCRIC_R (*((volatile uint32_t *)0x40038D00))
1252
#define ADC0_DCCTL0_R (*((volatile uint32_t *)0x40038E00))
1253
#define ADC0_DCCTL1_R (*((volatile uint32_t *)0x40038E04))
1254
#define ADC0_DCCTL2_R (*((volatile uint32_t *)0x40038E08))
1255
#define ADC0_DCCTL3_R (*((volatile uint32_t *)0x40038E0C))
1256
#define ADC0_DCCTL4_R (*((volatile uint32_t *)0x40038E10))
1257
#define ADC0_DCCTL5_R (*((volatile uint32_t *)0x40038E14))
1258
#define ADC0_DCCTL6_R (*((volatile uint32_t *)0x40038E18))
1259
#define ADC0_DCCTL7_R (*((volatile uint32_t *)0x40038E1C))
1260
#define ADC0_DCCMP0_R (*((volatile uint32_t *)0x40038E40))
1261
#define ADC0_DCCMP1_R (*((volatile uint32_t *)0x40038E44))
1262
#define ADC0_DCCMP2_R (*((volatile uint32_t *)0x40038E48))
1263
#define ADC0_DCCMP3_R (*((volatile uint32_t *)0x40038E4C))
1264
#define ADC0_DCCMP4_R (*((volatile uint32_t *)0x40038E50))
1265
#define ADC0_DCCMP5_R (*((volatile uint32_t *)0x40038E54))
1266
#define ADC0_DCCMP6_R (*((volatile uint32_t *)0x40038E58))
1267
#define ADC0_DCCMP7_R (*((volatile uint32_t *)0x40038E5C))
1268
#define ADC0_PP_R (*((volatile uint32_t *)0x40038FC0))
1269
#define ADC0_PC_R (*((volatile uint32_t *)0x40038FC4))
1270
#define ADC0_CC_R (*((volatile uint32_t *)0x40038FC8))
1271
1272
//*****************************************************************************
1273
//
1274
// ADC registers (ADC1)
1275
//
1276
//*****************************************************************************
1277
#define ADC1_ACTSS_R (*((volatile uint32_t *)0x40039000))
1278
#define ADC1_RIS_R (*((volatile uint32_t *)0x40039004))
1279
#define ADC1_IM_R (*((volatile uint32_t *)0x40039008))
1280
#define ADC1_ISC_R (*((volatile uint32_t *)0x4003900C))
1281
#define ADC1_OSTAT_R (*((volatile uint32_t *)0x40039010))
1282
#define ADC1_EMUX_R (*((volatile uint32_t *)0x40039014))
1283
#define ADC1_USTAT_R (*((volatile uint32_t *)0x40039018))
1284
#define ADC1_TSSEL_R (*((volatile uint32_t *)0x4003901C))
1285
#define ADC1_SSPRI_R (*((volatile uint32_t *)0x40039020))
1286
#define ADC1_SPC_R (*((volatile uint32_t *)0x40039024))
1287
#define ADC1_PSSI_R (*((volatile uint32_t *)0x40039028))
1288
#define ADC1_SAC_R (*((volatile uint32_t *)0x40039030))
1289
#define ADC1_DCISC_R (*((volatile uint32_t *)0x40039034))
1290
#define ADC1_CTL_R (*((volatile uint32_t *)0x40039038))
1291
#define ADC1_SSMUX0_R (*((volatile uint32_t *)0x40039040))
1292
#define ADC1_SSCTL0_R (*((volatile uint32_t *)0x40039044))
1293
#define ADC1_SSFIFO0_R (*((volatile uint32_t *)0x40039048))
1294
#define ADC1_SSFSTAT0_R (*((volatile uint32_t *)0x4003904C))
1295
#define ADC1_SSOP0_R (*((volatile uint32_t *)0x40039050))
1296
#define ADC1_SSDC0_R (*((volatile uint32_t *)0x40039054))
1297
#define ADC1_SSMUX1_R (*((volatile uint32_t *)0x40039060))
1298
#define ADC1_SSCTL1_R (*((volatile uint32_t *)0x40039064))
1299
#define ADC1_SSFIFO1_R (*((volatile uint32_t *)0x40039068))
1300
#define ADC1_SSFSTAT1_R (*((volatile uint32_t *)0x4003906C))
1301
#define ADC1_SSOP1_R (*((volatile uint32_t *)0x40039070))
1302
#define ADC1_SSDC1_R (*((volatile uint32_t *)0x40039074))
1303
#define ADC1_SSMUX2_R (*((volatile uint32_t *)0x40039080))
1304
#define ADC1_SSCTL2_R (*((volatile uint32_t *)0x40039084))
1305
#define ADC1_SSFIFO2_R (*((volatile uint32_t *)0x40039088))
1306
#define ADC1_SSFSTAT2_R (*((volatile uint32_t *)0x4003908C))
1307
#define ADC1_SSOP2_R (*((volatile uint32_t *)0x40039090))
1308
#define ADC1_SSDC2_R (*((volatile uint32_t *)0x40039094))
1309
#define ADC1_SSMUX3_R (*((volatile uint32_t *)0x400390A0))
1310
#define ADC1_SSCTL3_R (*((volatile uint32_t *)0x400390A4))
1311
#define ADC1_SSFIFO3_R (*((volatile uint32_t *)0x400390A8))
1312
#define ADC1_SSFSTAT3_R (*((volatile uint32_t *)0x400390AC))
1313
#define ADC1_SSOP3_R (*((volatile uint32_t *)0x400390B0))
1314
#define ADC1_SSDC3_R (*((volatile uint32_t *)0x400390B4))
1315
#define ADC1_DCRIC_R (*((volatile uint32_t *)0x40039D00))
1316
#define ADC1_DCCTL0_R (*((volatile uint32_t *)0x40039E00))
1317
#define ADC1_DCCTL1_R (*((volatile uint32_t *)0x40039E04))
1318
#define ADC1_DCCTL2_R (*((volatile uint32_t *)0x40039E08))
1319
#define ADC1_DCCTL3_R (*((volatile uint32_t *)0x40039E0C))
1320
#define ADC1_DCCTL4_R (*((volatile uint32_t *)0x40039E10))
1321
#define ADC1_DCCTL5_R (*((volatile uint32_t *)0x40039E14))
1322
#define ADC1_DCCTL6_R (*((volatile uint32_t *)0x40039E18))
1323
#define ADC1_DCCTL7_R (*((volatile uint32_t *)0x40039E1C))
1324
#define ADC1_DCCMP0_R (*((volatile uint32_t *)0x40039E40))
1325
#define ADC1_DCCMP1_R (*((volatile uint32_t *)0x40039E44))
1326
#define ADC1_DCCMP2_R (*((volatile uint32_t *)0x40039E48))
1327
#define ADC1_DCCMP3_R (*((volatile uint32_t *)0x40039E4C))
1328
#define ADC1_DCCMP4_R (*((volatile uint32_t *)0x40039E50))
1329
#define ADC1_DCCMP5_R (*((volatile uint32_t *)0x40039E54))
1330
#define ADC1_DCCMP6_R (*((volatile uint32_t *)0x40039E58))
1331
#define ADC1_DCCMP7_R (*((volatile uint32_t *)0x40039E5C))
1332
#define ADC1_PP_R (*((volatile uint32_t *)0x40039FC0))
1333
#define ADC1_PC_R (*((volatile uint32_t *)0x40039FC4))
1334
#define ADC1_CC_R (*((volatile uint32_t *)0x40039FC8))
1335
1336
//*****************************************************************************
1337
//
1338
// Comparator registers (COMP)
1339
//
1340
//*****************************************************************************
1341
#define COMP_ACMIS_R (*((volatile uint32_t *)0x4003C000))
1342
#define COMP_ACRIS_R (*((volatile uint32_t *)0x4003C004))
1343
#define COMP_ACINTEN_R (*((volatile uint32_t *)0x4003C008))
1344
#define COMP_ACREFCTL_R (*((volatile uint32_t *)0x4003C010))
1345
#define COMP_ACSTAT0_R (*((volatile uint32_t *)0x4003C020))
1346
#define COMP_ACCTL0_R (*((volatile uint32_t *)0x4003C024))
1347
#define COMP_ACSTAT1_R (*((volatile uint32_t *)0x4003C040))
1348
#define COMP_ACCTL1_R (*((volatile uint32_t *)0x4003C044))
1349
#define COMP_PP_R (*((volatile uint32_t *)0x4003CFC0))
1350
1351
//*****************************************************************************
1352
//
1353
// CAN registers (CAN0)
1354
//
1355
//*****************************************************************************
1356
#define CAN0_CTL_R (*((volatile uint32_t *)0x40040000))
1357
#define CAN0_STS_R (*((volatile uint32_t *)0x40040004))
1358
#define CAN0_ERR_R (*((volatile uint32_t *)0x40040008))
1359
#define CAN0_BIT_R (*((volatile uint32_t *)0x4004000C))
1360
#define CAN0_INT_R (*((volatile uint32_t *)0x40040010))
1361
#define CAN0_TST_R (*((volatile uint32_t *)0x40040014))
1362
#define CAN0_BRPE_R (*((volatile uint32_t *)0x40040018))
1363
#define CAN0_IF1CRQ_R (*((volatile uint32_t *)0x40040020))
1364
#define CAN0_IF1CMSK_R (*((volatile uint32_t *)0x40040024))
1365
#define CAN0_IF1MSK1_R (*((volatile uint32_t *)0x40040028))
1366
#define CAN0_IF1MSK2_R (*((volatile uint32_t *)0x4004002C))
1367
#define CAN0_IF1ARB1_R (*((volatile uint32_t *)0x40040030))
1368
#define CAN0_IF1ARB2_R (*((volatile uint32_t *)0x40040034))
1369
#define CAN0_IF1MCTL_R (*((volatile uint32_t *)0x40040038))
1370
#define CAN0_IF1DA1_R (*((volatile uint32_t *)0x4004003C))
1371
#define CAN0_IF1DA2_R (*((volatile uint32_t *)0x40040040))
1372
#define CAN0_IF1DB1_R (*((volatile uint32_t *)0x40040044))
1373
#define CAN0_IF1DB2_R (*((volatile uint32_t *)0x40040048))
1374
#define CAN0_IF2CRQ_R (*((volatile uint32_t *)0x40040080))
1375
#define CAN0_IF2CMSK_R (*((volatile uint32_t *)0x40040084))
1376
#define CAN0_IF2MSK1_R (*((volatile uint32_t *)0x40040088))
1377
#define CAN0_IF2MSK2_R (*((volatile uint32_t *)0x4004008C))
1378
#define CAN0_IF2ARB1_R (*((volatile uint32_t *)0x40040090))
1379
#define CAN0_IF2ARB2_R (*((volatile uint32_t *)0x40040094))
1380
#define CAN0_IF2MCTL_R (*((volatile uint32_t *)0x40040098))
1381
#define CAN0_IF2DA1_R (*((volatile uint32_t *)0x4004009C))
1382
#define CAN0_IF2DA2_R (*((volatile uint32_t *)0x400400A0))
1383
#define CAN0_IF2DB1_R (*((volatile uint32_t *)0x400400A4))
1384
#define CAN0_IF2DB2_R (*((volatile uint32_t *)0x400400A8))
1385
#define CAN0_TXRQ1_R (*((volatile uint32_t *)0x40040100))
1386
#define CAN0_TXRQ2_R (*((volatile uint32_t *)0x40040104))
1387
#define CAN0_NWDA1_R (*((volatile uint32_t *)0x40040120))
1388
#define CAN0_NWDA2_R (*((volatile uint32_t *)0x40040124))
1389
#define CAN0_MSG1INT_R (*((volatile uint32_t *)0x40040140))
1390
#define CAN0_MSG2INT_R (*((volatile uint32_t *)0x40040144))
1391
#define CAN0_MSG1VAL_R (*((volatile uint32_t *)0x40040160))
1392
#define CAN0_MSG2VAL_R (*((volatile uint32_t *)0x40040164))
1393
1394
//*****************************************************************************
1395
//
1396
// CAN registers (CAN1)
1397
//
1398
//*****************************************************************************
1399
#define CAN1_CTL_R (*((volatile uint32_t *)0x40041000))
1400
#define CAN1_STS_R (*((volatile uint32_t *)0x40041004))
1401
#define CAN1_ERR_R (*((volatile uint32_t *)0x40041008))
1402
#define CAN1_BIT_R (*((volatile uint32_t *)0x4004100C))
1403
#define CAN1_INT_R (*((volatile uint32_t *)0x40041010))
1404
#define CAN1_TST_R (*((volatile uint32_t *)0x40041014))
1405
#define CAN1_BRPE_R (*((volatile uint32_t *)0x40041018))
1406
#define CAN1_IF1CRQ_R (*((volatile uint32_t *)0x40041020))
1407
#define CAN1_IF1CMSK_R (*((volatile uint32_t *)0x40041024))
1408
#define CAN1_IF1MSK1_R (*((volatile uint32_t *)0x40041028))
1409
#define CAN1_IF1MSK2_R (*((volatile uint32_t *)0x4004102C))
1410
#define CAN1_IF1ARB1_R (*((volatile uint32_t *)0x40041030))
1411
#define CAN1_IF1ARB2_R (*((volatile uint32_t *)0x40041034))
1412
#define CAN1_IF1MCTL_R (*((volatile uint32_t *)0x40041038))
1413
#define CAN1_IF1DA1_R (*((volatile uint32_t *)0x4004103C))
1414
#define CAN1_IF1DA2_R (*((volatile uint32_t *)0x40041040))
1415
#define CAN1_IF1DB1_R (*((volatile uint32_t *)0x40041044))
1416
#define CAN1_IF1DB2_R (*((volatile uint32_t *)0x40041048))
1417
#define CAN1_IF2CRQ_R (*((volatile uint32_t *)0x40041080))
1418
#define CAN1_IF2CMSK_R (*((volatile uint32_t *)0x40041084))
1419
#define CAN1_IF2MSK1_R (*((volatile uint32_t *)0x40041088))
1420
#define CAN1_IF2MSK2_R (*((volatile uint32_t *)0x4004108C))
1421
#define CAN1_IF2ARB1_R (*((volatile uint32_t *)0x40041090))
1422
#define CAN1_IF2ARB2_R (*((volatile uint32_t *)0x40041094))
1423
#define CAN1_IF2MCTL_R (*((volatile uint32_t *)0x40041098))
1424
#define CAN1_IF2DA1_R (*((volatile uint32_t *)0x4004109C))
1425
#define CAN1_IF2DA2_R (*((volatile uint32_t *)0x400410A0))
1426
#define CAN1_IF2DB1_R (*((volatile uint32_t *)0x400410A4))
1427
#define CAN1_IF2DB2_R (*((volatile uint32_t *)0x400410A8))
1428
#define CAN1_TXRQ1_R (*((volatile uint32_t *)0x40041100))
1429
#define CAN1_TXRQ2_R (*((volatile uint32_t *)0x40041104))
1430
#define CAN1_NWDA1_R (*((volatile uint32_t *)0x40041120))
1431
#define CAN1_NWDA2_R (*((volatile uint32_t *)0x40041124))
1432
#define CAN1_MSG1INT_R (*((volatile uint32_t *)0x40041140))
1433
#define CAN1_MSG2INT_R (*((volatile uint32_t *)0x40041144))
1434
#define CAN1_MSG1VAL_R (*((volatile uint32_t *)0x40041160))
1435
#define CAN1_MSG2VAL_R (*((volatile uint32_t *)0x40041164))
1436
1437
//*****************************************************************************
1438
//
1439
// Timer registers (WTIMER2)
1440
//
1441
//*****************************************************************************
1442
#define WTIMER2_CFG_R (*((volatile uint32_t *)0x4004C000))
1443
#define WTIMER2_TAMR_R (*((volatile uint32_t *)0x4004C004))
1444
#define WTIMER2_TBMR_R (*((volatile uint32_t *)0x4004C008))
1445
#define WTIMER2_CTL_R (*((volatile uint32_t *)0x4004C00C))
1446
#define WTIMER2_SYNC_R (*((volatile uint32_t *)0x4004C010))
1447
#define WTIMER2_IMR_R (*((volatile uint32_t *)0x4004C018))
1448
#define WTIMER2_RIS_R (*((volatile uint32_t *)0x4004C01C))
1449
#define WTIMER2_MIS_R (*((volatile uint32_t *)0x4004C020))
1450
#define WTIMER2_ICR_R (*((volatile uint32_t *)0x4004C024))
1451
#define WTIMER2_TAILR_R (*((volatile uint32_t *)0x4004C028))
1452
#define WTIMER2_TBILR_R (*((volatile uint32_t *)0x4004C02C))
1453
#define WTIMER2_TAMATCHR_R (*((volatile uint32_t *)0x4004C030))
1454
#define WTIMER2_TBMATCHR_R (*((volatile uint32_t *)0x4004C034))
1455
#define WTIMER2_TAPR_R (*((volatile uint32_t *)0x4004C038))
1456
#define WTIMER2_TBPR_R (*((volatile uint32_t *)0x4004C03C))
1457
#define WTIMER2_TAPMR_R (*((volatile uint32_t *)0x4004C040))
1458
#define WTIMER2_TBPMR_R (*((volatile uint32_t *)0x4004C044))
1459
#define WTIMER2_TAR_R (*((volatile uint32_t *)0x4004C048))
1460
#define WTIMER2_TBR_R (*((volatile uint32_t *)0x4004C04C))
1461
#define WTIMER2_TAV_R (*((volatile uint32_t *)0x4004C050))
1462
#define WTIMER2_TBV_R (*((volatile uint32_t *)0x4004C054))
1463
#define WTIMER2_RTCPD_R (*((volatile uint32_t *)0x4004C058))
1464
#define WTIMER2_TAPS_R (*((volatile uint32_t *)0x4004C05C))
1465
#define WTIMER2_TBPS_R (*((volatile uint32_t *)0x4004C060))
1466
#define WTIMER2_TAPV_R (*((volatile uint32_t *)0x4004C064))
1467
#define WTIMER2_TBPV_R (*((volatile uint32_t *)0x4004C068))
1468
#define WTIMER2_PP_R (*((volatile uint32_t *)0x4004CFC0))
1469
1470
//*****************************************************************************
1471
//
1472
// Timer registers (WTIMER3)
1473
//
1474
//*****************************************************************************
1475
#define WTIMER3_CFG_R (*((volatile uint32_t *)0x4004D000))
1476
#define WTIMER3_TAMR_R (*((volatile uint32_t *)0x4004D004))
1477
#define WTIMER3_TBMR_R (*((volatile uint32_t *)0x4004D008))
1478
#define WTIMER3_CTL_R (*((volatile uint32_t *)0x4004D00C))
1479
#define WTIMER3_SYNC_R (*((volatile uint32_t *)0x4004D010))
1480
#define WTIMER3_IMR_R (*((volatile uint32_t *)0x4004D018))
1481
#define WTIMER3_RIS_R (*((volatile uint32_t *)0x4004D01C))
1482
#define WTIMER3_MIS_R (*((volatile uint32_t *)0x4004D020))
1483
#define WTIMER3_ICR_R (*((volatile uint32_t *)0x4004D024))
1484
#define WTIMER3_TAILR_R (*((volatile uint32_t *)0x4004D028))
1485
#define WTIMER3_TBILR_R (*((volatile uint32_t *)0x4004D02C))
1486
#define WTIMER3_TAMATCHR_R (*((volatile uint32_t *)0x4004D030))
1487
#define WTIMER3_TBMATCHR_R (*((volatile uint32_t *)0x4004D034))
1488
#define WTIMER3_TAPR_R (*((volatile uint32_t *)0x4004D038))
1489
#define WTIMER3_TBPR_R (*((volatile uint32_t *)0x4004D03C))
1490
#define WTIMER3_TAPMR_R (*((volatile uint32_t *)0x4004D040))
1491
#define WTIMER3_TBPMR_R (*((volatile uint32_t *)0x4004D044))
1492
#define WTIMER3_TAR_R (*((volatile uint32_t *)0x4004D048))
1493
#define WTIMER3_TBR_R (*((volatile uint32_t *)0x4004D04C))
1494
#define WTIMER3_TAV_R (*((volatile uint32_t *)0x4004D050))
1495
#define WTIMER3_TBV_R (*((volatile uint32_t *)0x4004D054))
1496
#define WTIMER3_RTCPD_R (*((volatile uint32_t *)0x4004D058))
1497
#define WTIMER3_TAPS_R (*((volatile uint32_t *)0x4004D05C))
1498
#define WTIMER3_TBPS_R (*((volatile uint32_t *)0x4004D060))
1499
#define WTIMER3_TAPV_R (*((volatile uint32_t *)0x4004D064))
1500
#define WTIMER3_TBPV_R (*((volatile uint32_t *)0x4004D068))
1501
#define WTIMER3_PP_R (*((volatile uint32_t *)0x4004DFC0))
1502
1503
//*****************************************************************************
1504
//
1505
// Timer registers (WTIMER4)
1506
//
1507
//*****************************************************************************
1508
#define WTIMER4_CFG_R (*((volatile uint32_t *)0x4004E000))
1509
#define WTIMER4_TAMR_R (*((volatile uint32_t *)0x4004E004))
1510
#define WTIMER4_TBMR_R (*((volatile uint32_t *)0x4004E008))
1511
#define WTIMER4_CTL_R (*((volatile uint32_t *)0x4004E00C))
1512
#define WTIMER4_SYNC_R (*((volatile uint32_t *)0x4004E010))
1513
#define WTIMER4_IMR_R (*((volatile uint32_t *)0x4004E018))
1514
#define WTIMER4_RIS_R (*((volatile uint32_t *)0x4004E01C))
1515
#define WTIMER4_MIS_R (*((volatile uint32_t *)0x4004E020))
1516
#define WTIMER4_ICR_R (*((volatile uint32_t *)0x4004E024))
1517
#define WTIMER4_TAILR_R (*((volatile uint32_t *)0x4004E028))
1518
#define WTIMER4_TBILR_R (*((volatile uint32_t *)0x4004E02C))
1519
#define WTIMER4_TAMATCHR_R (*((volatile uint32_t *)0x4004E030))
1520
#define WTIMER4_TBMATCHR_R (*((volatile uint32_t *)0x4004E034))
1521
#define WTIMER4_TAPR_R (*((volatile uint32_t *)0x4004E038))
1522
#define WTIMER4_TBPR_R (*((volatile uint32_t *)0x4004E03C))
1523
#define WTIMER4_TAPMR_R (*((volatile uint32_t *)0x4004E040))
1524
#define WTIMER4_TBPMR_R (*((volatile uint32_t *)0x4004E044))
1525
#define WTIMER4_TAR_R (*((volatile uint32_t *)0x4004E048))
1526
#define WTIMER4_TBR_R (*((volatile uint32_t *)0x4004E04C))
1527
#define WTIMER4_TAV_R (*((volatile uint32_t *)0x4004E050))
1528
#define WTIMER4_TBV_R (*((volatile uint32_t *)0x4004E054))
1529
#define WTIMER4_RTCPD_R (*((volatile uint32_t *)0x4004E058))
1530
#define WTIMER4_TAPS_R (*((volatile uint32_t *)0x4004E05C))
1531
#define WTIMER4_TBPS_R (*((volatile uint32_t *)0x4004E060))
1532
#define WTIMER4_TAPV_R (*((volatile uint32_t *)0x4004E064))
1533
#define WTIMER4_TBPV_R (*((volatile uint32_t *)0x4004E068))
1534
#define WTIMER4_PP_R (*((volatile uint32_t *)0x4004EFC0))
1535
1536
//*****************************************************************************
1537
//
1538
// Timer registers (WTIMER5)
1539
//
1540
//*****************************************************************************
1541
#define WTIMER5_CFG_R (*((volatile uint32_t *)0x4004F000))
1542
#define WTIMER5_TAMR_R (*((volatile uint32_t *)0x4004F004))
1543
#define WTIMER5_TBMR_R (*((volatile uint32_t *)0x4004F008))
1544
#define WTIMER5_CTL_R (*((volatile uint32_t *)0x4004F00C))
1545
#define WTIMER5_SYNC_R (*((volatile uint32_t *)0x4004F010))
1546
#define WTIMER5_IMR_R (*((volatile uint32_t *)0x4004F018))
1547
#define WTIMER5_RIS_R (*((volatile uint32_t *)0x4004F01C))
1548
#define WTIMER5_MIS_R (*((volatile uint32_t *)0x4004F020))
1549
#define WTIMER5_ICR_R (*((volatile uint32_t *)0x4004F024))
1550
#define WTIMER5_TAILR_R (*((volatile uint32_t *)0x4004F028))
1551
#define WTIMER5_TBILR_R (*((volatile uint32_t *)0x4004F02C))
1552
#define WTIMER5_TAMATCHR_R (*((volatile uint32_t *)0x4004F030))
1553
#define WTIMER5_TBMATCHR_R (*((volatile uint32_t *)0x4004F034))
1554
#define WTIMER5_TAPR_R (*((volatile uint32_t *)0x4004F038))
1555
#define WTIMER5_TBPR_R (*((volatile uint32_t *)0x4004F03C))
1556
#define WTIMER5_TAPMR_R (*((volatile uint32_t *)0x4004F040))
1557
#define WTIMER5_TBPMR_R (*((volatile uint32_t *)0x4004F044))
1558
#define WTIMER5_TAR_R (*((volatile uint32_t *)0x4004F048))
1559
#define WTIMER5_TBR_R (*((volatile uint32_t *)0x4004F04C))
1560
#define WTIMER5_TAV_R (*((volatile uint32_t *)0x4004F050))
1561
#define WTIMER5_TBV_R (*((volatile uint32_t *)0x4004F054))
1562
#define WTIMER5_RTCPD_R (*((volatile uint32_t *)0x4004F058))
1563
#define WTIMER5_TAPS_R (*((volatile uint32_t *)0x4004F05C))
1564
#define WTIMER5_TBPS_R (*((volatile uint32_t *)0x4004F060))
1565
#define WTIMER5_TAPV_R (*((volatile uint32_t *)0x4004F064))
1566
#define WTIMER5_TBPV_R (*((volatile uint32_t *)0x4004F068))
1567
#define WTIMER5_PP_R (*((volatile uint32_t *)0x4004FFC0))
1568
1569
//*****************************************************************************
1570
//
1571
// Univeral Serial Bus registers (USB0)
1572
//
1573
//*****************************************************************************
1574
#define USB0_FADDR_R (*((volatile uint8_t *)0x40050000))
1575
#define USB0_POWER_R (*((volatile uint8_t *)0x40050001))
1576
#define USB0_TXIS_R (*((volatile uint16_t *)0x40050002))
1577
#define USB0_RXIS_R (*((volatile uint16_t *)0x40050004))
1578
#define USB0_TXIE_R (*((volatile uint16_t *)0x40050006))
1579
#define USB0_RXIE_R (*((volatile uint16_t *)0x40050008))
1580
#define USB0_IS_R (*((volatile uint8_t *)0x4005000A))
1581
#define USB0_IE_R (*((volatile uint8_t *)0x4005000B))
1582
#define USB0_FRAME_R (*((volatile uint16_t *)0x4005000C))
1583
#define USB0_EPIDX_R (*((volatile uint8_t *)0x4005000E))
1584
#define USB0_TEST_R (*((volatile uint8_t *)0x4005000F))
1585
#define USB0_FIFO0_R (*((volatile uint32_t *)0x40050020))
1586
#define USB0_FIFO1_R (*((volatile uint32_t *)0x40050024))
1587
#define USB0_FIFO2_R (*((volatile uint32_t *)0x40050028))
1588
#define USB0_FIFO3_R (*((volatile uint32_t *)0x4005002C))
1589
#define USB0_FIFO4_R (*((volatile uint32_t *)0x40050030))
1590
#define USB0_FIFO5_R (*((volatile uint32_t *)0x40050034))
1591
#define USB0_FIFO6_R (*((volatile uint32_t *)0x40050038))
1592
#define USB0_FIFO7_R (*((volatile uint32_t *)0x4005003C))
1593
#define USB0_DEVCTL_R (*((volatile uint8_t *)0x40050060))
1594
#define USB0_TXFIFOSZ_R (*((volatile uint8_t *)0x40050062))
1595
#define USB0_RXFIFOSZ_R (*((volatile uint8_t *)0x40050063))
1596
#define USB0_TXFIFOADD_R (*((volatile uint16_t *)0x40050064))
1597
#define USB0_RXFIFOADD_R (*((volatile uint16_t *)0x40050066))
1598
#define USB0_CONTIM_R (*((volatile uint8_t *)0x4005007A))
1599
#define USB0_VPLEN_R (*((volatile uint8_t *)0x4005007B))
1600
#define USB0_FSEOF_R (*((volatile uint8_t *)0x4005007D))
1601
#define USB0_LSEOF_R (*((volatile uint8_t *)0x4005007E))
1602
#define USB0_TXFUNCADDR0_R (*((volatile uint8_t *)0x40050080))
1603
#define USB0_TXHUBADDR0_R (*((volatile uint8_t *)0x40050082))
1604
#define USB0_TXHUBPORT0_R (*((volatile uint8_t *)0x40050083))
1605
#define USB0_TXFUNCADDR1_R (*((volatile uint8_t *)0x40050088))
1606
#define USB0_TXHUBADDR1_R (*((volatile uint8_t *)0x4005008A))
1607
#define USB0_TXHUBPORT1_R (*((volatile uint8_t *)0x4005008B))
1608
#define USB0_RXFUNCADDR1_R (*((volatile uint8_t *)0x4005008C))
1609
#define USB0_RXHUBADDR1_R (*((volatile uint8_t *)0x4005008E))
1610
#define USB0_RXHUBPORT1_R (*((volatile uint8_t *)0x4005008F))
1611
#define USB0_TXFUNCADDR2_R (*((volatile uint8_t *)0x40050090))
1612
#define USB0_TXHUBADDR2_R (*((volatile uint8_t *)0x40050092))
1613
#define USB0_TXHUBPORT2_R (*((volatile uint8_t *)0x40050093))
1614
#define USB0_RXFUNCADDR2_R (*((volatile uint8_t *)0x40050094))
1615
#define USB0_RXHUBADDR2_R (*((volatile uint8_t *)0x40050096))
1616
#define USB0_RXHUBPORT2_R (*((volatile uint8_t *)0x40050097))
1617
#define USB0_TXFUNCADDR3_R (*((volatile uint8_t *)0x40050098))
1618
#define USB0_TXHUBADDR3_R (*((volatile uint8_t *)0x4005009A))
1619
#define USB0_TXHUBPORT3_R (*((volatile uint8_t *)0x4005009B))
1620
#define USB0_RXFUNCADDR3_R (*((volatile uint8_t *)0x4005009C))
1621
#define USB0_RXHUBADDR3_R (*((volatile uint8_t *)0x4005009E))
1622
#define USB0_RXHUBPORT3_R (*((volatile uint8_t *)0x4005009F))
1623
#define USB0_TXFUNCADDR4_R (*((volatile uint8_t *)0x400500A0))
1624
#define USB0_TXHUBADDR4_R (*((volatile uint8_t *)0x400500A2))
1625
#define USB0_TXHUBPORT4_R (*((volatile uint8_t *)0x400500A3))
1626
#define USB0_RXFUNCADDR4_R (*((volatile uint8_t *)0x400500A4))
1627
#define USB0_RXHUBADDR4_R (*((volatile uint8_t *)0x400500A6))
1628
#define USB0_RXHUBPORT4_R (*((volatile uint8_t *)0x400500A7))
1629
#define USB0_TXFUNCADDR5_R (*((volatile uint8_t *)0x400500A8))
1630
#define USB0_TXHUBADDR5_R (*((volatile uint8_t *)0x400500AA))
1631
#define USB0_TXHUBPORT5_R (*((volatile uint8_t *)0x400500AB))
1632
#define USB0_RXFUNCADDR5_R (*((volatile uint8_t *)0x400500AC))
1633
#define USB0_RXHUBADDR5_R (*((volatile uint8_t *)0x400500AE))
1634
#define USB0_RXHUBPORT5_R (*((volatile uint8_t *)0x400500AF))
1635
#define USB0_TXFUNCADDR6_R (*((volatile uint8_t *)0x400500B0))
1636
#define USB0_TXHUBADDR6_R (*((volatile uint8_t *)0x400500B2))
1637
#define USB0_TXHUBPORT6_R (*((volatile uint8_t *)0x400500B3))
1638
#define USB0_RXFUNCADDR6_R (*((volatile uint8_t *)0x400500B4))
1639
#define USB0_RXHUBADDR6_R (*((volatile uint8_t *)0x400500B6))
1640
#define USB0_RXHUBPORT6_R (*((volatile uint8_t *)0x400500B7))
1641
#define USB0_TXFUNCADDR7_R (*((volatile uint8_t *)0x400500B8))
1642
#define USB0_TXHUBADDR7_R (*((volatile uint8_t *)0x400500BA))
1643
#define USB0_TXHUBPORT7_R (*((volatile uint8_t *)0x400500BB))
1644
#define USB0_RXFUNCADDR7_R (*((volatile uint8_t *)0x400500BC))
1645
#define USB0_RXHUBADDR7_R (*((volatile uint8_t *)0x400500BE))
1646
#define USB0_RXHUBPORT7_R (*((volatile uint8_t *)0x400500BF))
1647
#define USB0_CSRL0_R (*((volatile uint8_t *)0x40050102))
1648
#define USB0_CSRH0_R (*((volatile uint8_t *)0x40050103))
1649
#define USB0_COUNT0_R (*((volatile uint8_t *)0x40050108))
1650
#define USB0_TYPE0_R (*((volatile uint8_t *)0x4005010A))
1651
#define USB0_NAKLMT_R (*((volatile uint8_t *)0x4005010B))
1652
#define USB0_TXMAXP1_R (*((volatile uint16_t *)0x40050110))
1653
#define USB0_TXCSRL1_R (*((volatile uint8_t *)0x40050112))
1654
#define USB0_TXCSRH1_R (*((volatile uint8_t *)0x40050113))
1655
#define USB0_RXMAXP1_R (*((volatile uint16_t *)0x40050114))
1656
#define USB0_RXCSRL1_R (*((volatile uint8_t *)0x40050116))
1657
#define USB0_RXCSRH1_R (*((volatile uint8_t *)0x40050117))
1658
#define USB0_RXCOUNT1_R (*((volatile uint16_t *)0x40050118))
1659
#define USB0_TXTYPE1_R (*((volatile uint8_t *)0x4005011A))
1660
#define USB0_TXINTERVAL1_R (*((volatile uint8_t *)0x4005011B))
1661
#define USB0_RXTYPE1_R (*((volatile uint8_t *)0x4005011C))
1662
#define USB0_RXINTERVAL1_R (*((volatile uint8_t *)0x4005011D))
1663
#define USB0_TXMAXP2_R (*((volatile uint16_t *)0x40050120))
1664
#define USB0_TXCSRL2_R (*((volatile uint8_t *)0x40050122))
1665
#define USB0_TXCSRH2_R (*((volatile uint8_t *)0x40050123))
1666
#define USB0_RXMAXP2_R (*((volatile uint16_t *)0x40050124))
1667
#define USB0_RXCSRL2_R (*((volatile uint8_t *)0x40050126))
1668
#define USB0_RXCSRH2_R (*((volatile uint8_t *)0x40050127))
1669
#define USB0_RXCOUNT2_R (*((volatile uint16_t *)0x40050128))
1670
#define USB0_TXTYPE2_R (*((volatile uint8_t *)0x4005012A))
1671
#define USB0_TXINTERVAL2_R (*((volatile uint8_t *)0x4005012B))
1672
#define USB0_RXTYPE2_R (*((volatile uint8_t *)0x4005012C))
1673
#define USB0_RXINTERVAL2_R (*((volatile uint8_t *)0x4005012D))
1674
#define USB0_TXMAXP3_R (*((volatile uint16_t *)0x40050130))
1675
#define USB0_TXCSRL3_R (*((volatile uint8_t *)0x40050132))
1676
#define USB0_TXCSRH3_R (*((volatile uint8_t *)0x40050133))
1677
#define USB0_RXMAXP3_R (*((volatile uint16_t *)0x40050134))
1678
#define USB0_RXCSRL3_R (*((volatile uint8_t *)0x40050136))
1679
#define USB0_RXCSRH3_R (*((volatile uint8_t *)0x40050137))
1680
#define USB0_RXCOUNT3_R (*((volatile uint16_t *)0x40050138))
1681
#define USB0_TXTYPE3_R (*((volatile uint8_t *)0x4005013A))
1682
#define USB0_TXINTERVAL3_R (*((volatile uint8_t *)0x4005013B))
1683
#define USB0_RXTYPE3_R (*((volatile uint8_t *)0x4005013C))
1684
#define USB0_RXINTERVAL3_R (*((volatile uint8_t *)0x4005013D))
1685
#define USB0_TXMAXP4_R (*((volatile uint16_t *)0x40050140))
1686
#define USB0_TXCSRL4_R (*((volatile uint8_t *)0x40050142))
1687
#define USB0_TXCSRH4_R (*((volatile uint8_t *)0x40050143))
1688
#define USB0_RXMAXP4_R (*((volatile uint16_t *)0x40050144))
1689
#define USB0_RXCSRL4_R (*((volatile uint8_t *)0x40050146))
1690
#define USB0_RXCSRH4_R (*((volatile uint8_t *)0x40050147))
1691
#define USB0_RXCOUNT4_R (*((volatile uint16_t *)0x40050148))
1692
#define USB0_TXTYPE4_R (*((volatile uint8_t *)0x4005014A))
1693
#define USB0_TXINTERVAL4_R (*((volatile uint8_t *)0x4005014B))
1694
#define USB0_RXTYPE4_R (*((volatile uint8_t *)0x4005014C))
1695
#define USB0_RXINTERVAL4_R (*((volatile uint8_t *)0x4005014D))
1696
#define USB0_TXMAXP5_R (*((volatile uint16_t *)0x40050150))
1697
#define USB0_TXCSRL5_R (*((volatile uint8_t *)0x40050152))
1698
#define USB0_TXCSRH5_R (*((volatile uint8_t *)0x40050153))
1699
#define USB0_RXMAXP5_R (*((volatile uint16_t *)0x40050154))
1700
#define USB0_RXCSRL5_R (*((volatile uint8_t *)0x40050156))
1701
#define USB0_RXCSRH5_R (*((volatile uint8_t *)0x40050157))
1702
#define USB0_RXCOUNT5_R (*((volatile uint16_t *)0x40050158))
1703
#define USB0_TXTYPE5_R (*((volatile uint8_t *)0x4005015A))
1704
#define USB0_TXINTERVAL5_R (*((volatile uint8_t *)0x4005015B))
1705
#define USB0_RXTYPE5_R (*((volatile uint8_t *)0x4005015C))
1706
#define USB0_RXINTERVAL5_R (*((volatile uint8_t *)0x4005015D))
1707
#define USB0_TXMAXP6_R (*((volatile uint16_t *)0x40050160))
1708
#define USB0_TXCSRL6_R (*((volatile uint8_t *)0x40050162))
1709
#define USB0_TXCSRH6_R (*((volatile uint8_t *)0x40050163))
1710
#define USB0_RXMAXP6_R (*((volatile uint16_t *)0x40050164))
1711
#define USB0_RXCSRL6_R (*((volatile uint8_t *)0x40050166))
1712
#define USB0_RXCSRH6_R (*((volatile uint8_t *)0x40050167))
1713
#define USB0_RXCOUNT6_R (*((volatile uint16_t *)0x40050168))
1714
#define USB0_TXTYPE6_R (*((volatile uint8_t *)0x4005016A))
1715
#define USB0_TXINTERVAL6_R (*((volatile uint8_t *)0x4005016B))
1716
#define USB0_RXTYPE6_R (*((volatile uint8_t *)0x4005016C))
1717
#define USB0_RXINTERVAL6_R (*((volatile uint8_t *)0x4005016D))
1718
#define USB0_TXMAXP7_R (*((volatile uint16_t *)0x40050170))
1719
#define USB0_TXCSRL7_R (*((volatile uint8_t *)0x40050172))
1720
#define USB0_TXCSRH7_R (*((volatile uint8_t *)0x40050173))
1721
#define USB0_RXMAXP7_R (*((volatile uint16_t *)0x40050174))
1722
#define USB0_RXCSRL7_R (*((volatile uint8_t *)0x40050176))
1723
#define USB0_RXCSRH7_R (*((volatile uint8_t *)0x40050177))
1724
#define USB0_RXCOUNT7_R (*((volatile uint16_t *)0x40050178))
1725
#define USB0_TXTYPE7_R (*((volatile uint8_t *)0x4005017A))
1726
#define USB0_TXINTERVAL7_R (*((volatile uint8_t *)0x4005017B))
1727
#define USB0_RXTYPE7_R (*((volatile uint8_t *)0x4005017C))
1728
#define USB0_RXINTERVAL7_R (*((volatile uint8_t *)0x4005017D))
1729
#define USB0_RQPKTCOUNT1_R (*((volatile uint16_t *)0x40050304))
1730
#define USB0_RQPKTCOUNT2_R (*((volatile uint16_t *)0x40050308))
1731
#define USB0_RQPKTCOUNT3_R (*((volatile uint16_t *)0x4005030C))
1732
#define USB0_RQPKTCOUNT4_R (*((volatile uint16_t *)0x40050310))
1733
#define USB0_RQPKTCOUNT5_R (*((volatile uint16_t *)0x40050314))
1734
#define USB0_RQPKTCOUNT6_R (*((volatile uint16_t *)0x40050318))
1735
#define USB0_RQPKTCOUNT7_R (*((volatile uint16_t *)0x4005031C))
1736
#define USB0_RXDPKTBUFDIS_R (*((volatile uint16_t *)0x40050340))
1737
#define USB0_TXDPKTBUFDIS_R (*((volatile uint16_t *)0x40050342))
1738
#define USB0_EPC_R (*((volatile uint32_t *)0x40050400))
1739
#define USB0_EPCRIS_R (*((volatile uint32_t *)0x40050404))
1740
#define USB0_EPCIM_R (*((volatile uint32_t *)0x40050408))
1741
#define USB0_EPCISC_R (*((volatile uint32_t *)0x4005040C))
1742
#define USB0_DRRIS_R (*((volatile uint32_t *)0x40050410))
1743
#define USB0_DRIM_R (*((volatile uint32_t *)0x40050414))
1744
#define USB0_DRISC_R (*((volatile uint32_t *)0x40050418))
1745
#define USB0_GPCS_R (*((volatile uint32_t *)0x4005041C))
1746
#define USB0_VDC_R (*((volatile uint32_t *)0x40050430))
1747
#define USB0_VDCRIS_R (*((volatile uint32_t *)0x40050434))
1748
#define USB0_VDCIM_R (*((volatile uint32_t *)0x40050438))
1749
#define USB0_VDCISC_R (*((volatile uint32_t *)0x4005043C))
1750
#define USB0_IDVRIS_R (*((volatile uint32_t *)0x40050444))
1751
#define USB0_IDVIM_R (*((volatile uint32_t *)0x40050448))
1752
#define USB0_IDVISC_R (*((volatile uint32_t *)0x4005044C))
1753
#define USB0_DMASEL_R (*((volatile uint32_t *)0x40050450))
1754
#define USB0_PP_R (*((volatile uint32_t *)0x40050FC0))
1755
1756
//*****************************************************************************
1757
//
1758
// GPIO registers (PORTA AHB)
1759
//
1760
//*****************************************************************************
1761
#define GPIO_PORTA_AHB_DATA_BITS_R \
1762
((volatile uint32_t *)0x40058000)
1763
#define GPIO_PORTA_AHB_DATA_R (*((volatile uint32_t *)0x400583FC))
1764
#define GPIO_PORTA_AHB_DIR_R (*((volatile uint32_t *)0x40058400))
1765
#define GPIO_PORTA_AHB_IS_R (*((volatile uint32_t *)0x40058404))
1766
#define GPIO_PORTA_AHB_IBE_R (*((volatile uint32_t *)0x40058408))
1767
#define GPIO_PORTA_AHB_IEV_R (*((volatile uint32_t *)0x4005840C))
1768
#define GPIO_PORTA_AHB_IM_R (*((volatile uint32_t *)0x40058410))
1769
#define GPIO_PORTA_AHB_RIS_R (*((volatile uint32_t *)0x40058414))
1770
#define GPIO_PORTA_AHB_MIS_R (*((volatile uint32_t *)0x40058418))
1771
#define GPIO_PORTA_AHB_ICR_R (*((volatile uint32_t *)0x4005841C))
1772
#define GPIO_PORTA_AHB_AFSEL_R (*((volatile uint32_t *)0x40058420))
1773
#define GPIO_PORTA_AHB_DR2R_R (*((volatile uint32_t *)0x40058500))
1774
#define GPIO_PORTA_AHB_DR4R_R (*((volatile uint32_t *)0x40058504))
1775
#define GPIO_PORTA_AHB_DR8R_R (*((volatile uint32_t *)0x40058508))
1776
#define GPIO_PORTA_AHB_ODR_R (*((volatile uint32_t *)0x4005850C))
1777
#define GPIO_PORTA_AHB_PUR_R (*((volatile uint32_t *)0x40058510))
1778
#define GPIO_PORTA_AHB_PDR_R (*((volatile uint32_t *)0x40058514))
1779
#define GPIO_PORTA_AHB_SLR_R (*((volatile uint32_t *)0x40058518))
1780
#define GPIO_PORTA_AHB_DEN_R (*((volatile uint32_t *)0x4005851C))
1781
#define GPIO_PORTA_AHB_LOCK_R (*((volatile uint32_t *)0x40058520))
1782
#define GPIO_PORTA_AHB_CR_R (*((volatile uint32_t *)0x40058524))
1783
#define GPIO_PORTA_AHB_AMSEL_R (*((volatile uint32_t *)0x40058528))
1784
#define GPIO_PORTA_AHB_PCTL_R (*((volatile uint32_t *)0x4005852C))
1785
#define GPIO_PORTA_AHB_ADCCTL_R (*((volatile uint32_t *)0x40058530))
1786
#define GPIO_PORTA_AHB_DMACTL_R (*((volatile uint32_t *)0x40058534))
1787
1788
//*****************************************************************************
1789
//
1790
// GPIO registers (PORTB AHB)
1791
//
1792
//*****************************************************************************
1793
#define GPIO_PORTB_AHB_DATA_BITS_R \
1794
((volatile uint32_t *)0x40059000)
1795
#define GPIO_PORTB_AHB_DATA_R (*((volatile uint32_t *)0x400593FC))
1796
#define GPIO_PORTB_AHB_DIR_R (*((volatile uint32_t *)0x40059400))
1797
#define GPIO_PORTB_AHB_IS_R (*((volatile uint32_t *)0x40059404))
1798
#define GPIO_PORTB_AHB_IBE_R (*((volatile uint32_t *)0x40059408))
1799
#define GPIO_PORTB_AHB_IEV_R (*((volatile uint32_t *)0x4005940C))
1800
#define GPIO_PORTB_AHB_IM_R (*((volatile uint32_t *)0x40059410))
1801
#define GPIO_PORTB_AHB_RIS_R (*((volatile uint32_t *)0x40059414))
1802
#define GPIO_PORTB_AHB_MIS_R (*((volatile uint32_t *)0x40059418))
1803
#define GPIO_PORTB_AHB_ICR_R (*((volatile uint32_t *)0x4005941C))
1804
#define GPIO_PORTB_AHB_AFSEL_R (*((volatile uint32_t *)0x40059420))
1805
#define GPIO_PORTB_AHB_DR2R_R (*((volatile uint32_t *)0x40059500))
1806
#define GPIO_PORTB_AHB_DR4R_R (*((volatile uint32_t *)0x40059504))
1807
#define GPIO_PORTB_AHB_DR8R_R (*((volatile uint32_t *)0x40059508))
1808
#define GPIO_PORTB_AHB_ODR_R (*((volatile uint32_t *)0x4005950C))
1809
#define GPIO_PORTB_AHB_PUR_R (*((volatile uint32_t *)0x40059510))
1810
#define GPIO_PORTB_AHB_PDR_R (*((volatile uint32_t *)0x40059514))
1811
#define GPIO_PORTB_AHB_SLR_R (*((volatile uint32_t *)0x40059518))
1812
#define GPIO_PORTB_AHB_DEN_R (*((volatile uint32_t *)0x4005951C))
1813
#define GPIO_PORTB_AHB_LOCK_R (*((volatile uint32_t *)0x40059520))
1814
#define GPIO_PORTB_AHB_CR_R (*((volatile uint32_t *)0x40059524))
1815
#define GPIO_PORTB_AHB_AMSEL_R (*((volatile uint32_t *)0x40059528))
1816
#define GPIO_PORTB_AHB_PCTL_R (*((volatile uint32_t *)0x4005952C))
1817
#define GPIO_PORTB_AHB_ADCCTL_R (*((volatile uint32_t *)0x40059530))
1818
#define GPIO_PORTB_AHB_DMACTL_R (*((volatile uint32_t *)0x40059534))
1819
1820
//*****************************************************************************
1821
//
1822
// GPIO registers (PORTC AHB)
1823
//
1824
//*****************************************************************************
1825
#define GPIO_PORTC_AHB_DATA_BITS_R \
1826
((volatile uint32_t *)0x4005A000)
1827
#define GPIO_PORTC_AHB_DATA_R (*((volatile uint32_t *)0x4005A3FC))
1828
#define GPIO_PORTC_AHB_DIR_R (*((volatile uint32_t *)0x4005A400))
1829
#define GPIO_PORTC_AHB_IS_R (*((volatile uint32_t *)0x4005A404))
1830
#define GPIO_PORTC_AHB_IBE_R (*((volatile uint32_t *)0x4005A408))
1831
#define GPIO_PORTC_AHB_IEV_R (*((volatile uint32_t *)0x4005A40C))
1832
#define GPIO_PORTC_AHB_IM_R (*((volatile uint32_t *)0x4005A410))
1833
#define GPIO_PORTC_AHB_RIS_R (*((volatile uint32_t *)0x4005A414))
1834
#define GPIO_PORTC_AHB_MIS_R (*((volatile uint32_t *)0x4005A418))
1835
#define GPIO_PORTC_AHB_ICR_R (*((volatile uint32_t *)0x4005A41C))
1836
#define GPIO_PORTC_AHB_AFSEL_R (*((volatile uint32_t *)0x4005A420))
1837
#define GPIO_PORTC_AHB_DR2R_R (*((volatile uint32_t *)0x4005A500))
1838
#define GPIO_PORTC_AHB_DR4R_R (*((volatile uint32_t *)0x4005A504))
1839
#define GPIO_PORTC_AHB_DR8R_R (*((volatile uint32_t *)0x4005A508))
1840
#define GPIO_PORTC_AHB_ODR_R (*((volatile uint32_t *)0x4005A50C))
1841
#define GPIO_PORTC_AHB_PUR_R (*((volatile uint32_t *)0x4005A510))
1842
#define GPIO_PORTC_AHB_PDR_R (*((volatile uint32_t *)0x4005A514))
1843
#define GPIO_PORTC_AHB_SLR_R (*((volatile uint32_t *)0x4005A518))
1844
#define GPIO_PORTC_AHB_DEN_R (*((volatile uint32_t *)0x4005A51C))
1845
#define GPIO_PORTC_AHB_LOCK_R (*((volatile uint32_t *)0x4005A520))
1846
#define GPIO_PORTC_AHB_CR_R (*((volatile uint32_t *)0x4005A524))
1847
#define GPIO_PORTC_AHB_AMSEL_R (*((volatile uint32_t *)0x4005A528))
1848
#define GPIO_PORTC_AHB_PCTL_R (*((volatile uint32_t *)0x4005A52C))
1849
#define GPIO_PORTC_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005A530))
1850
#define GPIO_PORTC_AHB_DMACTL_R (*((volatile uint32_t *)0x4005A534))
1851
1852
//*****************************************************************************
1853
//
1854
// GPIO registers (PORTD AHB)
1855
//
1856
//*****************************************************************************
1857
#define GPIO_PORTD_AHB_DATA_BITS_R \
1858
((volatile uint32_t *)0x4005B000)
1859
#define GPIO_PORTD_AHB_DATA_R (*((volatile uint32_t *)0x4005B3FC))
1860
#define GPIO_PORTD_AHB_DIR_R (*((volatile uint32_t *)0x4005B400))
1861
#define GPIO_PORTD_AHB_IS_R (*((volatile uint32_t *)0x4005B404))
1862
#define GPIO_PORTD_AHB_IBE_R (*((volatile uint32_t *)0x4005B408))
1863
#define GPIO_PORTD_AHB_IEV_R (*((volatile uint32_t *)0x4005B40C))
1864
#define GPIO_PORTD_AHB_IM_R (*((volatile uint32_t *)0x4005B410))
1865
#define GPIO_PORTD_AHB_RIS_R (*((volatile uint32_t *)0x4005B414))
1866
#define GPIO_PORTD_AHB_MIS_R (*((volatile uint32_t *)0x4005B418))
1867
#define GPIO_PORTD_AHB_ICR_R (*((volatile uint32_t *)0x4005B41C))
1868
#define GPIO_PORTD_AHB_AFSEL_R (*((volatile uint32_t *)0x4005B420))
1869
#define GPIO_PORTD_AHB_DR2R_R (*((volatile uint32_t *)0x4005B500))
1870
#define GPIO_PORTD_AHB_DR4R_R (*((volatile uint32_t *)0x4005B504))
1871
#define GPIO_PORTD_AHB_DR8R_R (*((volatile uint32_t *)0x4005B508))
1872
#define GPIO_PORTD_AHB_ODR_R (*((volatile uint32_t *)0x4005B50C))
1873
#define GPIO_PORTD_AHB_PUR_R (*((volatile uint32_t *)0x4005B510))
1874
#define GPIO_PORTD_AHB_PDR_R (*((volatile uint32_t *)0x4005B514))
1875
#define GPIO_PORTD_AHB_SLR_R (*((volatile uint32_t *)0x4005B518))
1876
#define GPIO_PORTD_AHB_DEN_R (*((volatile uint32_t *)0x4005B51C))
1877
#define GPIO_PORTD_AHB_LOCK_R (*((volatile uint32_t *)0x4005B520))
1878
#define GPIO_PORTD_AHB_CR_R (*((volatile uint32_t *)0x4005B524))
1879
#define GPIO_PORTD_AHB_AMSEL_R (*((volatile uint32_t *)0x4005B528))
1880
#define GPIO_PORTD_AHB_PCTL_R (*((volatile uint32_t *)0x4005B52C))
1881
#define GPIO_PORTD_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005B530))
1882
#define GPIO_PORTD_AHB_DMACTL_R (*((volatile uint32_t *)0x4005B534))
1883
1884
//*****************************************************************************
1885
//
1886
// GPIO registers (PORTE AHB)
1887
//
1888
//*****************************************************************************
1889
#define GPIO_PORTE_AHB_DATA_BITS_R \
1890
((volatile uint32_t *)0x4005C000)
1891
#define GPIO_PORTE_AHB_DATA_R (*((volatile uint32_t *)0x4005C3FC))
1892
#define GPIO_PORTE_AHB_DIR_R (*((volatile uint32_t *)0x4005C400))
1893
#define GPIO_PORTE_AHB_IS_R (*((volatile uint32_t *)0x4005C404))
1894
#define GPIO_PORTE_AHB_IBE_R (*((volatile uint32_t *)0x4005C408))
1895
#define GPIO_PORTE_AHB_IEV_R (*((volatile uint32_t *)0x4005C40C))
1896
#define GPIO_PORTE_AHB_IM_R (*((volatile uint32_t *)0x4005C410))
1897
#define GPIO_PORTE_AHB_RIS_R (*((volatile uint32_t *)0x4005C414))
1898
#define GPIO_PORTE_AHB_MIS_R (*((volatile uint32_t *)0x4005C418))
1899
#define GPIO_PORTE_AHB_ICR_R (*((volatile uint32_t *)0x4005C41C))
1900
#define GPIO_PORTE_AHB_AFSEL_R (*((volatile uint32_t *)0x4005C420))
1901
#define GPIO_PORTE_AHB_DR2R_R (*((volatile uint32_t *)0x4005C500))
1902
#define GPIO_PORTE_AHB_DR4R_R (*((volatile uint32_t *)0x4005C504))
1903
#define GPIO_PORTE_AHB_DR8R_R (*((volatile uint32_t *)0x4005C508))
1904
#define GPIO_PORTE_AHB_ODR_R (*((volatile uint32_t *)0x4005C50C))
1905
#define GPIO_PORTE_AHB_PUR_R (*((volatile uint32_t *)0x4005C510))
1906
#define GPIO_PORTE_AHB_PDR_R (*((volatile uint32_t *)0x4005C514))
1907
#define GPIO_PORTE_AHB_SLR_R (*((volatile uint32_t *)0x4005C518))
1908
#define GPIO_PORTE_AHB_DEN_R (*((volatile uint32_t *)0x4005C51C))
1909
#define GPIO_PORTE_AHB_LOCK_R (*((volatile uint32_t *)0x4005C520))
1910
#define GPIO_PORTE_AHB_CR_R (*((volatile uint32_t *)0x4005C524))
1911
#define GPIO_PORTE_AHB_AMSEL_R (*((volatile uint32_t *)0x4005C528))
1912
#define GPIO_PORTE_AHB_PCTL_R (*((volatile uint32_t *)0x4005C52C))
1913
#define GPIO_PORTE_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005C530))
1914
#define GPIO_PORTE_AHB_DMACTL_R (*((volatile uint32_t *)0x4005C534))
1915
1916
//*****************************************************************************
1917
//
1918
// GPIO registers (PORTF AHB)
1919
//
1920
//*****************************************************************************
1921
#define GPIO_PORTF_AHB_DATA_BITS_R \
1922
((volatile uint32_t *)0x4005D000)
1923
#define GPIO_PORTF_AHB_DATA_R (*((volatile uint32_t *)0x4005D3FC))
1924
#define GPIO_PORTF_AHB_DIR_R (*((volatile uint32_t *)0x4005D400))
1925
#define GPIO_PORTF_AHB_IS_R (*((volatile uint32_t *)0x4005D404))
1926
#define GPIO_PORTF_AHB_IBE_R (*((volatile uint32_t *)0x4005D408))
1927
#define GPIO_PORTF_AHB_IEV_R (*((volatile uint32_t *)0x4005D40C))
1928
#define GPIO_PORTF_AHB_IM_R (*((volatile uint32_t *)0x4005D410))
1929
#define GPIO_PORTF_AHB_RIS_R (*((volatile uint32_t *)0x4005D414))
1930
#define GPIO_PORTF_AHB_MIS_R (*((volatile uint32_t *)0x4005D418))
1931
#define GPIO_PORTF_AHB_ICR_R (*((volatile uint32_t *)0x4005D41C))
1932
#define GPIO_PORTF_AHB_AFSEL_R (*((volatile uint32_t *)0x4005D420))
1933
#define GPIO_PORTF_AHB_DR2R_R (*((volatile uint32_t *)0x4005D500))
1934
#define GPIO_PORTF_AHB_DR4R_R (*((volatile uint32_t *)0x4005D504))
1935
#define GPIO_PORTF_AHB_DR8R_R (*((volatile uint32_t *)0x4005D508))
1936
#define GPIO_PORTF_AHB_ODR_R (*((volatile uint32_t *)0x4005D50C))
1937
#define GPIO_PORTF_AHB_PUR_R (*((volatile uint32_t *)0x4005D510))
1938
#define GPIO_PORTF_AHB_PDR_R (*((volatile uint32_t *)0x4005D514))
1939
#define GPIO_PORTF_AHB_SLR_R (*((volatile uint32_t *)0x4005D518))
1940
#define GPIO_PORTF_AHB_DEN_R (*((volatile uint32_t *)0x4005D51C))
1941
#define GPIO_PORTF_AHB_LOCK_R (*((volatile uint32_t *)0x4005D520))
1942
#define GPIO_PORTF_AHB_CR_R (*((volatile uint32_t *)0x4005D524))
1943
#define GPIO_PORTF_AHB_AMSEL_R (*((volatile uint32_t *)0x4005D528))
1944
#define GPIO_PORTF_AHB_PCTL_R (*((volatile uint32_t *)0x4005D52C))
1945
#define GPIO_PORTF_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005D530))
1946
#define GPIO_PORTF_AHB_DMACTL_R (*((volatile uint32_t *)0x4005D534))
1947
1948
//*****************************************************************************
1949
//
1950
// EEPROM registers (EEPROM)
1951
//
1952
//*****************************************************************************
1953
#define EEPROM_EESIZE_R (*((volatile uint32_t *)0x400AF000))
1954
#define EEPROM_EEBLOCK_R (*((volatile uint32_t *)0x400AF004))
1955
#define EEPROM_EEOFFSET_R (*((volatile uint32_t *)0x400AF008))
1956
#define EEPROM_EERDWR_R (*((volatile uint32_t *)0x400AF010))
1957
#define EEPROM_EERDWRINC_R (*((volatile uint32_t *)0x400AF014))
1958
#define EEPROM_EEDONE_R (*((volatile uint32_t *)0x400AF018))
1959
#define EEPROM_EESUPP_R (*((volatile uint32_t *)0x400AF01C))
1960
#define EEPROM_EEUNLOCK_R (*((volatile uint32_t *)0x400AF020))
1961
#define EEPROM_EEPROT_R (*((volatile uint32_t *)0x400AF030))
1962
#define EEPROM_EEPASS0_R (*((volatile uint32_t *)0x400AF034))
1963
#define EEPROM_EEPASS1_R (*((volatile uint32_t *)0x400AF038))
1964
#define EEPROM_EEPASS2_R (*((volatile uint32_t *)0x400AF03C))
1965
#define EEPROM_EEINT_R (*((volatile uint32_t *)0x400AF040))
1966
#define EEPROM_EEHIDE_R (*((volatile uint32_t *)0x400AF050))
1967
#define EEPROM_EEDBGME_R (*((volatile uint32_t *)0x400AF080))
1968
#define EEPROM_PP_R (*((volatile uint32_t *)0x400AFFC0))
1969
1970
//*****************************************************************************
1971
//
1972
// System Exception Module registers (SYSEXC)
1973
//
1974
//*****************************************************************************
1975
#define SYSEXC_RIS_R (*((volatile uint32_t *)0x400F9000))
1976
#define SYSEXC_IM_R (*((volatile uint32_t *)0x400F9004))
1977
#define SYSEXC_MIS_R (*((volatile uint32_t *)0x400F9008))
1978
#define SYSEXC_IC_R (*((volatile uint32_t *)0x400F900C))
1979
1980
//*****************************************************************************
1981
//
1982
// Hibernation module registers (HIB)
1983
//
1984
//*****************************************************************************
1985
#define HIB_RTCC_R (*((volatile uint32_t *)0x400FC000))
1986
#define HIB_RTCM0_R (*((volatile uint32_t *)0x400FC004))
1987
#define HIB_RTCLD_R (*((volatile uint32_t *)0x400FC00C))
1988
#define HIB_CTL_R (*((volatile uint32_t *)0x400FC010))
1989
#define HIB_IM_R (*((volatile uint32_t *)0x400FC014))
1990
#define HIB_RIS_R (*((volatile uint32_t *)0x400FC018))
1991
#define HIB_MIS_R (*((volatile uint32_t *)0x400FC01C))
1992
#define HIB_IC_R (*((volatile uint32_t *)0x400FC020))
1993
#define HIB_RTCT_R (*((volatile uint32_t *)0x400FC024))
1994
#define HIB_RTCSS_R (*((volatile uint32_t *)0x400FC028))
1995
#define HIB_DATA_R (*((volatile uint32_t *)0x400FC030))
1996
1997
//*****************************************************************************
1998
//
1999
// FLASH registers (FLASH CTRL)
2000
//
2001
//*****************************************************************************
2002
#define FLASH_FMA_R (*((volatile uint32_t *)0x400FD000))
2003
#define FLASH_FMD_R (*((volatile uint32_t *)0x400FD004))
2004
#define FLASH_FMC_R (*((volatile uint32_t *)0x400FD008))
2005
#define FLASH_FCRIS_R (*((volatile uint32_t *)0x400FD00C))
2006
#define FLASH_FCIM_R (*((volatile uint32_t *)0x400FD010))
2007
#define FLASH_FCMISC_R (*((volatile uint32_t *)0x400FD014))
2008
#define FLASH_FMC2_R (*((volatile uint32_t *)0x400FD020))
2009
#define FLASH_FWBVAL_R (*((volatile uint32_t *)0x400FD030))
2010
#define FLASH_FWBN_R (*((volatile uint32_t *)0x400FD100))
2011
#define FLASH_FSIZE_R (*((volatile uint32_t *)0x400FDFC0))
2012
#define FLASH_SSIZE_R (*((volatile uint32_t *)0x400FDFC4))
2013
#define FLASH_ROMSWMAP_R (*((volatile uint32_t *)0x400FDFCC))
2014
#define FLASH_RMCTL_R (*((volatile uint32_t *)0x400FE0F0))
2015
#define FLASH_BOOTCFG_R (*((volatile uint32_t *)0x400FE1D0))
2016
#define FLASH_USERREG0_R (*((volatile uint32_t *)0x400FE1E0))
2017
#define FLASH_USERREG1_R (*((volatile uint32_t *)0x400FE1E4))
2018
#define FLASH_USERREG2_R (*((volatile uint32_t *)0x400FE1E8))
2019
#define FLASH_USERREG3_R (*((volatile uint32_t *)0x400FE1EC))
2020
#define FLASH_FMPRE0_R (*((volatile uint32_t *)0x400FE200))
2021
#define FLASH_FMPRE1_R (*((volatile uint32_t *)0x400FE204))
2022
#define FLASH_FMPRE2_R (*((volatile uint32_t *)0x400FE208))
2023
#define FLASH_FMPRE3_R (*((volatile uint32_t *)0x400FE20C))
2024
#define FLASH_FMPPE0_R (*((volatile uint32_t *)0x400FE400))
2025
#define FLASH_FMPPE1_R (*((volatile uint32_t *)0x400FE404))
2026
#define FLASH_FMPPE2_R (*((volatile uint32_t *)0x400FE408))
2027
#define FLASH_FMPPE3_R (*((volatile uint32_t *)0x400FE40C))
2028
2029
//*****************************************************************************
2030
//
2031
// System Control registers (SYSCTL)
2032
//
2033
//*****************************************************************************
2034
#define SYSCTL_DID0_R (*((volatile uint32_t *)0x400FE000))
2035
#define SYSCTL_DID1_R (*((volatile uint32_t *)0x400FE004))
2036
#define SYSCTL_DC0_R (*((volatile uint32_t *)0x400FE008))
2037
#define SYSCTL_DC1_R (*((volatile uint32_t *)0x400FE010))
2038
#define SYSCTL_DC2_R (*((volatile uint32_t *)0x400FE014))
2039
#define SYSCTL_DC3_R (*((volatile uint32_t *)0x400FE018))
2040
#define SYSCTL_DC4_R (*((volatile uint32_t *)0x400FE01C))
2041
#define SYSCTL_DC5_R (*((volatile uint32_t *)0x400FE020))
2042
#define SYSCTL_DC6_R (*((volatile uint32_t *)0x400FE024))
2043
#define SYSCTL_DC7_R (*((volatile uint32_t *)0x400FE028))
2044
#define SYSCTL_DC8_R (*((volatile uint32_t *)0x400FE02C))
2045
#define SYSCTL_PBORCTL_R (*((volatile uint32_t *)0x400FE030))
2046
#define SYSCTL_SRCR0_R (*((volatile uint32_t *)0x400FE040))
2047
#define SYSCTL_SRCR1_R (*((volatile uint32_t *)0x400FE044))
2048
#define SYSCTL_SRCR2_R (*((volatile uint32_t *)0x400FE048))
2049
#define SYSCTL_RIS_R (*((volatile uint32_t *)0x400FE050))
2050
#define SYSCTL_IMC_R (*((volatile uint32_t *)0x400FE054))
2051
#define SYSCTL_MISC_R (*((volatile uint32_t *)0x400FE058))
2052
#define SYSCTL_RESC_R (*((volatile uint32_t *)0x400FE05C))
2053
#define SYSCTL_RCC_R (*((volatile uint32_t *)0x400FE060))
2054
#define SYSCTL_GPIOHBCTL_R (*((volatile uint32_t *)0x400FE06C))
2055
#define SYSCTL_RCC2_R (*((volatile uint32_t *)0x400FE070))
2056
#define SYSCTL_MOSCCTL_R (*((volatile uint32_t *)0x400FE07C))
2057
#define SYSCTL_RCGC0_R (*((volatile uint32_t *)0x400FE100))
2058
#define SYSCTL_RCGC1_R (*((volatile uint32_t *)0x400FE104))
2059
#define SYSCTL_RCGC2_R (*((volatile uint32_t *)0x400FE108))
2060
#define SYSCTL_SCGC0_R (*((volatile uint32_t *)0x400FE110))
2061
#define SYSCTL_SCGC1_R (*((volatile uint32_t *)0x400FE114))
2062
#define SYSCTL_SCGC2_R (*((volatile uint32_t *)0x400FE118))
2063
#define SYSCTL_DCGC0_R (*((volatile uint32_t *)0x400FE120))
2064
#define SYSCTL_DCGC1_R (*((volatile uint32_t *)0x400FE124))
2065
#define SYSCTL_DCGC2_R (*((volatile uint32_t *)0x400FE128))
2066
#define SYSCTL_DSLPCLKCFG_R (*((volatile uint32_t *)0x400FE144))
2067
#define SYSCTL_SYSPROP_R (*((volatile uint32_t *)0x400FE14C))
2068
#define SYSCTL_PIOSCCAL_R (*((volatile uint32_t *)0x400FE150))
2069
#define SYSCTL_PIOSCSTAT_R (*((volatile uint32_t *)0x400FE154))
2070
#define SYSCTL_PLLFREQ0_R (*((volatile uint32_t *)0x400FE160))
2071
#define SYSCTL_PLLFREQ1_R (*((volatile uint32_t *)0x400FE164))
2072
#define SYSCTL_PLLSTAT_R (*((volatile uint32_t *)0x400FE168))
2073
#define SYSCTL_SLPPWRCFG_R (*((volatile uint32_t *)0x400FE188))
2074
#define SYSCTL_DSLPPWRCFG_R (*((volatile uint32_t *)0x400FE18C))
2075
#define SYSCTL_DC9_R (*((volatile uint32_t *)0x400FE190))
2076
#define SYSCTL_NVMSTAT_R (*((volatile uint32_t *)0x400FE1A0))
2077
#define SYSCTL_LDOSPCTL_R (*((volatile uint32_t *)0x400FE1B4))
2078
#define SYSCTL_LDODPCTL_R (*((volatile uint32_t *)0x400FE1BC))
2079
#define SYSCTL_PPWD_R (*((volatile uint32_t *)0x400FE300))
2080
#define SYSCTL_PPTIMER_R (*((volatile uint32_t *)0x400FE304))
2081
#define SYSCTL_PPGPIO_R (*((volatile uint32_t *)0x400FE308))
2082
#define SYSCTL_PPDMA_R (*((volatile uint32_t *)0x400FE30C))
2083
#define SYSCTL_PPHIB_R (*((volatile uint32_t *)0x400FE314))
2084
#define SYSCTL_PPUART_R (*((volatile uint32_t *)0x400FE318))
2085
#define SYSCTL_PPSSI_R (*((volatile uint32_t *)0x400FE31C))
2086
#define SYSCTL_PPI2C_R (*((volatile uint32_t *)0x400FE320))
2087
#define SYSCTL_PPUSB_R (*((volatile uint32_t *)0x400FE328))
2088
#define SYSCTL_PPCAN_R (*((volatile uint32_t *)0x400FE334))
2089
#define SYSCTL_PPADC_R (*((volatile uint32_t *)0x400FE338))
2090
#define SYSCTL_PPACMP_R (*((volatile uint32_t *)0x400FE33C))
2091
#define SYSCTL_PPPWM_R (*((volatile uint32_t *)0x400FE340))
2092
#define SYSCTL_PPQEI_R (*((volatile uint32_t *)0x400FE344))
2093
#define SYSCTL_PPEEPROM_R (*((volatile uint32_t *)0x400FE358))
2094
#define SYSCTL_PPWTIMER_R (*((volatile uint32_t *)0x400FE35C))
2095
#define SYSCTL_SRWD_R (*((volatile uint32_t *)0x400FE500))
2096
#define SYSCTL_SRTIMER_R (*((volatile uint32_t *)0x400FE504))
2097
#define SYSCTL_SRGPIO_R (*((volatile uint32_t *)0x400FE508))
2098
#define SYSCTL_SRDMA_R (*((volatile uint32_t *)0x400FE50C))
2099
#define SYSCTL_SRHIB_R (*((volatile uint32_t *)0x400FE514))
2100
#define SYSCTL_SRUART_R (*((volatile uint32_t *)0x400FE518))
2101
#define SYSCTL_SRSSI_R (*((volatile uint32_t *)0x400FE51C))
2102
#define SYSCTL_SRI2C_R (*((volatile uint32_t *)0x400FE520))
2103
#define SYSCTL_SRUSB_R (*((volatile uint32_t *)0x400FE528))
2104
#define SYSCTL_SRCAN_R (*((volatile uint32_t *)0x400FE534))
2105
#define SYSCTL_SRADC_R (*((volatile uint32_t *)0x400FE538))
2106
#define SYSCTL_SRACMP_R (*((volatile uint32_t *)0x400FE53C))
2107
#define SYSCTL_SRPWM_R (*((volatile uint32_t *)0x400FE540))
2108
#define SYSCTL_SRQEI_R (*((volatile uint32_t *)0x400FE544))
2109
#define SYSCTL_SREEPROM_R (*((volatile uint32_t *)0x400FE558))
2110
#define SYSCTL_SRWTIMER_R (*((volatile uint32_t *)0x400FE55C))
2111
#define SYSCTL_RCGCWD_R (*((volatile uint32_t *)0x400FE600))
2112
#define SYSCTL_RCGCTIMER_R (*((volatile uint32_t *)0x400FE604))
2113
#define SYSCTL_RCGCGPIO_R (*((volatile uint32_t *)0x400FE608))
2114
#define SYSCTL_RCGCDMA_R (*((volatile uint32_t *)0x400FE60C))
2115
#define SYSCTL_RCGCHIB_R (*((volatile uint32_t *)0x400FE614))
2116
#define SYSCTL_RCGCUART_R (*((volatile uint32_t *)0x400FE618))
2117
#define SYSCTL_RCGCSSI_R (*((volatile uint32_t *)0x400FE61C))
2118
#define SYSCTL_RCGCI2C_R (*((volatile uint32_t *)0x400FE620))
2119
#define SYSCTL_RCGCUSB_R (*((volatile uint32_t *)0x400FE628))
2120
#define SYSCTL_RCGCCAN_R (*((volatile uint32_t *)0x400FE634))
2121
#define SYSCTL_RCGCADC_R (*((volatile uint32_t *)0x400FE638))
2122
#define SYSCTL_RCGCACMP_R (*((volatile uint32_t *)0x400FE63C))
2123
#define SYSCTL_RCGCPWM_R (*((volatile uint32_t *)0x400FE640))
2124
#define SYSCTL_RCGCQEI_R (*((volatile uint32_t *)0x400FE644))
2125
#define SYSCTL_RCGCEEPROM_R (*((volatile uint32_t *)0x400FE658))
2126
#define SYSCTL_RCGCWTIMER_R (*((volatile uint32_t *)0x400FE65C))
2127
#define SYSCTL_SCGCWD_R (*((volatile uint32_t *)0x400FE700))
2128
#define SYSCTL_SCGCTIMER_R (*((volatile uint32_t *)0x400FE704))
2129
#define SYSCTL_SCGCGPIO_R (*((volatile uint32_t *)0x400FE708))
2130
#define SYSCTL_SCGCDMA_R (*((volatile uint32_t *)0x400FE70C))
2131
#define SYSCTL_SCGCHIB_R (*((volatile uint32_t *)0x400FE714))
2132
#define SYSCTL_SCGCUART_R (*((volatile uint32_t *)0x400FE718))
2133
#define SYSCTL_SCGCSSI_R (*((volatile uint32_t *)0x400FE71C))
2134
#define SYSCTL_SCGCI2C_R (*((volatile uint32_t *)0x400FE720))
2135
#define SYSCTL_SCGCUSB_R (*((volatile uint32_t *)0x400FE728))
2136
#define SYSCTL_SCGCCAN_R (*((volatile uint32_t *)0x400FE734))
2137
#define SYSCTL_SCGCADC_R (*((volatile uint32_t *)0x400FE738))
2138
#define SYSCTL_SCGCACMP_R (*((volatile uint32_t *)0x400FE73C))
2139
#define SYSCTL_SCGCPWM_R (*((volatile uint32_t *)0x400FE740))
2140
#define SYSCTL_SCGCQEI_R (*((volatile uint32_t *)0x400FE744))
2141
#define SYSCTL_SCGCEEPROM_R (*((volatile uint32_t *)0x400FE758))
2142
#define SYSCTL_SCGCWTIMER_R (*((volatile uint32_t *)0x400FE75C))
2143
#define SYSCTL_DCGCWD_R (*((volatile uint32_t *)0x400FE800))
2144
#define SYSCTL_DCGCTIMER_R (*((volatile uint32_t *)0x400FE804))
2145
#define SYSCTL_DCGCGPIO_R (*((volatile uint32_t *)0x400FE808))
2146
#define SYSCTL_DCGCDMA_R (*((volatile uint32_t *)0x400FE80C))
2147
#define SYSCTL_DCGCHIB_R (*((volatile uint32_t *)0x400FE814))
2148
#define SYSCTL_DCGCUART_R (*((volatile uint32_t *)0x400FE818))
2149
#define SYSCTL_DCGCSSI_R (*((volatile uint32_t *)0x400FE81C))
2150
#define SYSCTL_DCGCI2C_R (*((volatile uint32_t *)0x400FE820))
2151
#define SYSCTL_DCGCUSB_R (*((volatile uint32_t *)0x400FE828))
2152
#define SYSCTL_DCGCCAN_R (*((volatile uint32_t *)0x400FE834))
2153
#define SYSCTL_DCGCADC_R (*((volatile uint32_t *)0x400FE838))
2154
#define SYSCTL_DCGCACMP_R (*((volatile uint32_t *)0x400FE83C))
2155
#define SYSCTL_DCGCPWM_R (*((volatile uint32_t *)0x400FE840))
2156
#define SYSCTL_DCGCQEI_R (*((volatile uint32_t *)0x400FE844))
2157
#define SYSCTL_DCGCEEPROM_R (*((volatile uint32_t *)0x400FE858))
2158
#define SYSCTL_DCGCWTIMER_R (*((volatile uint32_t *)0x400FE85C))
2159
#define SYSCTL_PRWD_R (*((volatile uint32_t *)0x400FEA00))
2160
#define SYSCTL_PRTIMER_R (*((volatile uint32_t *)0x400FEA04))
2161
#define SYSCTL_PRGPIO_R (*((volatile uint32_t *)0x400FEA08))
2162
#define SYSCTL_PRDMA_R (*((volatile uint32_t *)0x400FEA0C))
2163
#define SYSCTL_PRHIB_R (*((volatile uint32_t *)0x400FEA14))
2164
#define SYSCTL_PRUART_R (*((volatile uint32_t *)0x400FEA18))
2165
#define SYSCTL_PRSSI_R (*((volatile uint32_t *)0x400FEA1C))
2166
#define SYSCTL_PRI2C_R (*((volatile uint32_t *)0x400FEA20))
2167
#define SYSCTL_PRUSB_R (*((volatile uint32_t *)0x400FEA28))
2168
#define SYSCTL_PRCAN_R (*((volatile uint32_t *)0x400FEA34))
2169
#define SYSCTL_PRADC_R (*((volatile uint32_t *)0x400FEA38))
2170
#define SYSCTL_PRACMP_R (*((volatile uint32_t *)0x400FEA3C))
2171
#define SYSCTL_PRPWM_R (*((volatile uint32_t *)0x400FEA40))
2172
#define SYSCTL_PRQEI_R (*((volatile uint32_t *)0x400FEA44))
2173
#define SYSCTL_PREEPROM_R (*((volatile uint32_t *)0x400FEA58))
2174
#define SYSCTL_PRWTIMER_R (*((volatile uint32_t *)0x400FEA5C))
2175
2176
//*****************************************************************************
2177
//
2178
// Micro Direct Memory Access registers (UDMA)
2179
//
2180
//*****************************************************************************
2181
#define UDMA_STAT_R (*((volatile uint32_t *)0x400FF000))
2182
#define UDMA_CFG_R (*((volatile uint32_t *)0x400FF004))
2183
#define UDMA_CTLBASE_R (*((volatile uint32_t *)0x400FF008))
2184
#define UDMA_ALTBASE_R (*((volatile uint32_t *)0x400FF00C))
2185
#define UDMA_WAITSTAT_R (*((volatile uint32_t *)0x400FF010))
2186
#define UDMA_SWREQ_R (*((volatile uint32_t *)0x400FF014))
2187
#define UDMA_USEBURSTSET_R (*((volatile uint32_t *)0x400FF018))
2188
#define UDMA_USEBURSTCLR_R (*((volatile uint32_t *)0x400FF01C))
2189
#define UDMA_REQMASKSET_R (*((volatile uint32_t *)0x400FF020))
2190
#define UDMA_REQMASKCLR_R (*((volatile uint32_t *)0x400FF024))
2191
#define UDMA_ENASET_R (*((volatile uint32_t *)0x400FF028))
2192
#define UDMA_ENACLR_R (*((volatile uint32_t *)0x400FF02C))
2193
#define UDMA_ALTSET_R (*((volatile uint32_t *)0x400FF030))
2194
#define UDMA_ALTCLR_R (*((volatile uint32_t *)0x400FF034))
2195
#define UDMA_PRIOSET_R (*((volatile uint32_t *)0x400FF038))
2196
#define UDMA_PRIOCLR_R (*((volatile uint32_t *)0x400FF03C))
2197
#define UDMA_ERRCLR_R (*((volatile uint32_t *)0x400FF04C))
2198
#define UDMA_CHASGN_R (*((volatile uint32_t *)0x400FF500))
2199
#define UDMA_CHIS_R (*((volatile uint32_t *)0x400FF504))
2200
#define UDMA_CHMAP0_R (*((volatile uint32_t *)0x400FF510))
2201
#define UDMA_CHMAP1_R (*((volatile uint32_t *)0x400FF514))
2202
#define UDMA_CHMAP2_R (*((volatile uint32_t *)0x400FF518))
2203
#define UDMA_CHMAP3_R (*((volatile uint32_t *)0x400FF51C))
2204
2205
//*****************************************************************************
2206
//
2207
// Micro Direct Memory Access (uDMA) offsets (UDMA)
2208
//
2209
//*****************************************************************************
2210
#define UDMA_SRCENDP 0x00000000 // DMA Channel Source Address End
2211
// Pointer
2212
#define UDMA_DSTENDP 0x00000004 // DMA Channel Destination Address
2213
// End Pointer
2214
#define UDMA_CHCTL 0x00000008 // DMA Channel Control Word
2215
2216
//*****************************************************************************
2217
//
2218
// NVIC registers (NVIC)
2219
//
2220
//*****************************************************************************
2221
#define NVIC_ACTLR_R (*((volatile uint32_t *)0xE000E008))
2222
#define NVIC_ST_CTRL_R (*((volatile uint32_t *)0xE000E010))
2223
#define NVIC_ST_RELOAD_R (*((volatile uint32_t *)0xE000E014))
2224
#define NVIC_ST_CURRENT_R (*((volatile uint32_t *)0xE000E018))
2225
#define NVIC_EN0_R (*((volatile uint32_t *)0xE000E100))
2226
#define NVIC_EN1_R (*((volatile uint32_t *)0xE000E104))
2227
#define NVIC_EN2_R (*((volatile uint32_t *)0xE000E108))
2228
#define NVIC_EN3_R (*((volatile uint32_t *)0xE000E10C))
2229
#define NVIC_EN4_R (*((volatile uint32_t *)0xE000E110))
2230
#define NVIC_DIS0_R (*((volatile uint32_t *)0xE000E180))
2231
#define NVIC_DIS1_R (*((volatile uint32_t *)0xE000E184))
2232
#define NVIC_DIS2_R (*((volatile uint32_t *)0xE000E188))
2233
#define NVIC_DIS3_R (*((volatile uint32_t *)0xE000E18C))
2234
#define NVIC_DIS4_R (*((volatile uint32_t *)0xE000E190))
2235
#define NVIC_PEND0_R (*((volatile uint32_t *)0xE000E200))
2236
#define NVIC_PEND1_R (*((volatile uint32_t *)0xE000E204))
2237
#define NVIC_PEND2_R (*((volatile uint32_t *)0xE000E208))
2238
#define NVIC_PEND3_R (*((volatile uint32_t *)0xE000E20C))
2239
#define NVIC_PEND4_R (*((volatile uint32_t *)0xE000E210))
2240
#define NVIC_UNPEND0_R (*((volatile uint32_t *)0xE000E280))
2241
#define NVIC_UNPEND1_R (*((volatile uint32_t *)0xE000E284))
2242
#define NVIC_UNPEND2_R (*((volatile uint32_t *)0xE000E288))
2243
#define NVIC_UNPEND3_R (*((volatile uint32_t *)0xE000E28C))
2244
#define NVIC_UNPEND4_R (*((volatile uint32_t *)0xE000E290))
2245
#define NVIC_ACTIVE0_R (*((volatile uint32_t *)0xE000E300))
2246
#define NVIC_ACTIVE1_R (*((volatile uint32_t *)0xE000E304))
2247
#define NVIC_ACTIVE2_R (*((volatile uint32_t *)0xE000E308))
2248
#define NVIC_ACTIVE3_R (*((volatile uint32_t *)0xE000E30C))
2249
#define NVIC_ACTIVE4_R (*((volatile uint32_t *)0xE000E310))
2250
#define NVIC_PRI0_R (*((volatile uint32_t *)0xE000E400))
2251
#define NVIC_PRI1_R (*((volatile uint32_t *)0xE000E404))
2252
#define NVIC_PRI2_R (*((volatile uint32_t *)0xE000E408))
2253
#define NVIC_PRI3_R (*((volatile uint32_t *)0xE000E40C))
2254
#define NVIC_PRI4_R (*((volatile uint32_t *)0xE000E410))
2255
#define NVIC_PRI5_R (*((volatile uint32_t *)0xE000E414))
2256
#define NVIC_PRI6_R (*((volatile uint32_t *)0xE000E418))
2257
#define NVIC_PRI7_R (*((volatile uint32_t *)0xE000E41C))
2258
#define NVIC_PRI8_R (*((volatile uint32_t *)0xE000E420))
2259
#define NVIC_PRI9_R (*((volatile uint32_t *)0xE000E424))
2260
#define NVIC_PRI10_R (*((volatile uint32_t *)0xE000E428))
2261
#define NVIC_PRI11_R (*((volatile uint32_t *)0xE000E42C))
2262
#define NVIC_PRI12_R (*((volatile uint32_t *)0xE000E430))
2263
#define NVIC_PRI13_R (*((volatile uint32_t *)0xE000E434))
2264
#define NVIC_PRI14_R (*((volatile uint32_t *)0xE000E438))
2265
#define NVIC_PRI15_R (*((volatile uint32_t *)0xE000E43C))
2266
#define NVIC_PRI16_R (*((volatile uint32_t *)0xE000E440))
2267
#define NVIC_PRI17_R (*((volatile uint32_t *)0xE000E444))
2268
#define NVIC_PRI18_R (*((volatile uint32_t *)0xE000E448))
2269
#define NVIC_PRI19_R (*((volatile uint32_t *)0xE000E44C))
2270
#define NVIC_PRI20_R (*((volatile uint32_t *)0xE000E450))
2271
#define NVIC_PRI21_R (*((volatile uint32_t *)0xE000E454))
2272
#define NVIC_PRI22_R (*((volatile uint32_t *)0xE000E458))
2273
#define NVIC_PRI23_R (*((volatile uint32_t *)0xE000E45C))
2274
#define NVIC_PRI24_R (*((volatile uint32_t *)0xE000E460))
2275
#define NVIC_PRI25_R (*((volatile uint32_t *)0xE000E464))
2276
#define NVIC_PRI26_R (*((volatile uint32_t *)0xE000E468))
2277
#define NVIC_PRI27_R (*((volatile uint32_t *)0xE000E46C))
2278
#define NVIC_PRI28_R (*((volatile uint32_t *)0xE000E470))
2279
#define NVIC_PRI29_R (*((volatile uint32_t *)0xE000E474))
2280
#define NVIC_PRI30_R (*((volatile uint32_t *)0xE000E478))
2281
#define NVIC_PRI31_R (*((volatile uint32_t *)0xE000E47C))
2282
#define NVIC_PRI32_R (*((volatile uint32_t *)0xE000E480))
2283
#define NVIC_PRI33_R (*((volatile uint32_t *)0xE000E484))
2284
#define NVIC_PRI34_R (*((volatile uint32_t *)0xE000E488))
2285
#define NVIC_CPUID_R (*((volatile uint32_t *)0xE000ED00))
2286
#define NVIC_INT_CTRL_R (*((volatile uint32_t *)0xE000ED04))
2287
#define NVIC_VTABLE_R (*((volatile uint32_t *)0xE000ED08))
2288
#define NVIC_APINT_R (*((volatile uint32_t *)0xE000ED0C))
2289
#define NVIC_SYS_CTRL_R (*((volatile uint32_t *)0xE000ED10))
2290
#define NVIC_CFG_CTRL_R (*((volatile uint32_t *)0xE000ED14))
2291
#define NVIC_SYS_PRI1_R (*((volatile uint32_t *)0xE000ED18))
2292
#define NVIC_SYS_PRI2_R (*((volatile uint32_t *)0xE000ED1C))
2293
#define NVIC_SYS_PRI3_R (*((volatile uint32_t *)0xE000ED20))
2294
#define NVIC_SYS_HND_CTRL_R (*((volatile uint32_t *)0xE000ED24))
2295
#define NVIC_FAULT_STAT_R (*((volatile uint32_t *)0xE000ED28))
2296
#define NVIC_HFAULT_STAT_R (*((volatile uint32_t *)0xE000ED2C))
2297
#define NVIC_DEBUG_STAT_R (*((volatile uint32_t *)0xE000ED30))
2298
#define NVIC_MM_ADDR_R (*((volatile uint32_t *)0xE000ED34))
2299
#define NVIC_FAULT_ADDR_R (*((volatile uint32_t *)0xE000ED38))
2300
#define NVIC_CPAC_R (*((volatile uint32_t *)0xE000ED88))
2301
#define NVIC_MPU_TYPE_R (*((volatile uint32_t *)0xE000ED90))
2302
#define NVIC_MPU_CTRL_R (*((volatile uint32_t *)0xE000ED94))
2303
#define NVIC_MPU_NUMBER_R (*((volatile uint32_t *)0xE000ED98))
2304
#define NVIC_MPU_BASE_R (*((volatile uint32_t *)0xE000ED9C))
2305
#define NVIC_MPU_ATTR_R (*((volatile uint32_t *)0xE000EDA0))
2306
#define NVIC_MPU_BASE1_R (*((volatile uint32_t *)0xE000EDA4))
2307
#define NVIC_MPU_ATTR1_R (*((volatile uint32_t *)0xE000EDA8))
2308
#define NVIC_MPU_BASE2_R (*((volatile uint32_t *)0xE000EDAC))
2309
#define NVIC_MPU_ATTR2_R (*((volatile uint32_t *)0xE000EDB0))
2310
#define NVIC_MPU_BASE3_R (*((volatile uint32_t *)0xE000EDB4))
2311
#define NVIC_MPU_ATTR3_R (*((volatile uint32_t *)0xE000EDB8))
2312
#define NVIC_DBG_CTRL_R (*((volatile uint32_t *)0xE000EDF0))
2313
#define NVIC_DBG_XFER_R (*((volatile uint32_t *)0xE000EDF4))
2314
#define NVIC_DBG_DATA_R (*((volatile uint32_t *)0xE000EDF8))
2315
#define NVIC_DBG_INT_R (*((volatile uint32_t *)0xE000EDFC))
2316
#define NVIC_SW_TRIG_R (*((volatile uint32_t *)0xE000EF00))
2317
#define NVIC_FPCC_R (*((volatile uint32_t *)0xE000EF34))
2318
#define NVIC_FPCA_R (*((volatile uint32_t *)0xE000EF38))
2319
#define NVIC_FPDSC_R (*((volatile uint32_t *)0xE000EF3C))
2320
2321
//*****************************************************************************
2322
//
2323
// The following are defines for the bit fields in the WDT_O_LOAD register.
2324
//
2325
//*****************************************************************************
2326
#define WDT_LOAD_M 0xFFFFFFFF // Watchdog Load Value
2327
#define WDT_LOAD_S 0
2328
2329
//*****************************************************************************
2330
//
2331
// The following are defines for the bit fields in the WDT_O_VALUE register.
2332
//
2333
//*****************************************************************************
2334
#define WDT_VALUE_M 0xFFFFFFFF // Watchdog Value
2335
#define WDT_VALUE_S 0
2336
2337
//*****************************************************************************
2338
//
2339
// The following are defines for the bit fields in the WDT_O_CTL register.
2340
//
2341
//*****************************************************************************
2342
#define WDT_CTL_WRC 0x80000000 // Write Complete
2343
#define WDT_CTL_INTTYPE 0x00000004 // Watchdog Interrupt Type
2344
#define WDT_CTL_RESEN 0x00000002 // Watchdog Reset Enable
2345
#define WDT_CTL_INTEN 0x00000001 // Watchdog Interrupt Enable
2346
2347
//*****************************************************************************
2348
//
2349
// The following are defines for the bit fields in the WDT_O_ICR register.
2350
//
2351
//*****************************************************************************
2352
#define WDT_ICR_M 0xFFFFFFFF // Watchdog Interrupt Clear
2353
#define WDT_ICR_S 0
2354
2355
//*****************************************************************************
2356
//
2357
// The following are defines for the bit fields in the WDT_O_RIS register.
2358
//
2359
//*****************************************************************************
2360
#define WDT_RIS_WDTRIS 0x00000001 // Watchdog Raw Interrupt Status
2361
2362
//*****************************************************************************
2363
//
2364
// The following are defines for the bit fields in the WDT_O_MIS register.
2365
//
2366
//*****************************************************************************
2367
#define WDT_MIS_WDTMIS 0x00000001 // Watchdog Masked Interrupt Status
2368
2369
//*****************************************************************************
2370
//
2371
// The following are defines for the bit fields in the WDT_O_TEST register.
2372
//
2373
//*****************************************************************************
2374
#define WDT_TEST_STALL 0x00000100 // Watchdog Stall Enable
2375
2376
//*****************************************************************************
2377
//
2378
// The following are defines for the bit fields in the WDT_O_LOCK register.
2379
//
2380
//*****************************************************************************
2381
#define WDT_LOCK_M 0xFFFFFFFF // Watchdog Lock
2382
#define WDT_LOCK_UNLOCKED 0x00000000 // Unlocked
2383
#define WDT_LOCK_LOCKED 0x00000001 // Locked
2384
#define WDT_LOCK_UNLOCK 0x1ACCE551 // Unlocks the watchdog timer
2385
2386
//*****************************************************************************
2387
//
2388
// The following are defines for the bit fields in the GPIO_O_IM register.
2389
//
2390
//*****************************************************************************
2391
#define GPIO_IM_GPIO_M 0x000000FF // GPIO Interrupt Mask Enable
2392
#define GPIO_IM_GPIO_S 0
2393
2394
//*****************************************************************************
2395
//
2396
// The following are defines for the bit fields in the GPIO_O_RIS register.
2397
//
2398
//*****************************************************************************
2399
#define GPIO_RIS_GPIO_M 0x000000FF // GPIO Interrupt Raw Status
2400
#define GPIO_RIS_GPIO_S 0
2401
2402
//*****************************************************************************
2403
//
2404
// The following are defines for the bit fields in the GPIO_O_MIS register.
2405
//
2406
//*****************************************************************************
2407
#define GPIO_MIS_GPIO_M 0x000000FF // GPIO Masked Interrupt Status
2408
#define GPIO_MIS_GPIO_S 0
2409
2410
//*****************************************************************************
2411
//
2412
// The following are defines for the bit fields in the GPIO_O_ICR register.
2413
//
2414
//*****************************************************************************
2415
#define GPIO_ICR_GPIO_M 0x000000FF // GPIO Interrupt Clear
2416
#define GPIO_ICR_GPIO_S 0
2417
2418
//*****************************************************************************
2419
//
2420
// The following are defines for the bit fields in the GPIO_O_LOCK register.
2421
//
2422
//*****************************************************************************
2423
#define GPIO_LOCK_M 0xFFFFFFFF // GPIO Lock
2424
#define GPIO_LOCK_UNLOCKED 0x00000000 // The GPIOCR register is unlocked
2425
// and may be modified
2426
#define GPIO_LOCK_LOCKED 0x00000001 // The GPIOCR register is locked
2427
// and may not be modified
2428
#define GPIO_LOCK_KEY 0x4C4F434B // Unlocks the GPIO_CR register
2429
2430
//*****************************************************************************
2431
//
2432
// The following are defines for the bit fields in the GPIO_PCTL register for
2433
// port A.
2434
//
2435
//*****************************************************************************
2436
#define GPIO_PCTL_PA7_M 0xF0000000 // PA7 Mask
2437
#define GPIO_PCTL_PA7_I2C1SDA 0x30000000 // I2C1SDA on PA7
2438
#define GPIO_PCTL_PA7_M1PWM3 0x50000000 // M1PWM3 on PA7
2439
#define GPIO_PCTL_PA6_M 0x0F000000 // PA6 Mask
2440
#define GPIO_PCTL_PA6_I2C1SCL 0x03000000 // I2C1SCL on PA6
2441
#define GPIO_PCTL_PA6_M1PWM2 0x05000000 // M1PWM2 on PA6
2442
#define GPIO_PCTL_PA5_M 0x00F00000 // PA5 Mask
2443
#define GPIO_PCTL_PA5_SSI0TX 0x00200000 // SSI0TX on PA5
2444
#define GPIO_PCTL_PA4_M 0x000F0000 // PA4 Mask
2445
#define GPIO_PCTL_PA4_SSI0RX 0x00020000 // SSI0RX on PA4
2446
#define GPIO_PCTL_PA3_M 0x0000F000 // PA3 Mask
2447
#define GPIO_PCTL_PA3_SSI0FSS 0x00002000 // SSI0FSS on PA3
2448
#define GPIO_PCTL_PA2_M 0x00000F00 // PA2 Mask
2449
#define GPIO_PCTL_PA2_SSI0CLK 0x00000200 // SSI0CLK on PA2
2450
#define GPIO_PCTL_PA1_M 0x000000F0 // PA1 Mask
2451
#define GPIO_PCTL_PA1_U0TX 0x00000010 // U0TX on PA1
2452
#define GPIO_PCTL_PA1_CAN1TX 0x00000080 // CAN1TX on PA1
2453
#define GPIO_PCTL_PA0_M 0x0000000F // PA0 Mask
2454
#define GPIO_PCTL_PA0_U0RX 0x00000001 // U0RX on PA0
2455
#define GPIO_PCTL_PA0_CAN1RX 0x00000008 // CAN1RX on PA0
2456
2457
//*****************************************************************************
2458
//
2459
// The following are defines for the bit fields in the GPIO_PCTL register for
2460
// port B.
2461
//
2462
//*****************************************************************************
2463
#define GPIO_PCTL_PB7_M 0xF0000000 // PB7 Mask
2464
#define GPIO_PCTL_PB7_SSI2TX 0x20000000 // SSI2TX on PB7
2465
#define GPIO_PCTL_PB7_M0PWM1 0x40000000 // M0PWM1 on PB7
2466
#define GPIO_PCTL_PB7_T0CCP1 0x70000000 // T0CCP1 on PB7
2467
#define GPIO_PCTL_PB6_M 0x0F000000 // PB6 Mask
2468
#define GPIO_PCTL_PB6_SSI2RX 0x02000000 // SSI2RX on PB6
2469
#define GPIO_PCTL_PB6_M0PWM0 0x04000000 // M0PWM0 on PB6
2470
#define GPIO_PCTL_PB6_T0CCP0 0x07000000 // T0CCP0 on PB6
2471
#define GPIO_PCTL_PB5_M 0x00F00000 // PB5 Mask
2472
#define GPIO_PCTL_PB5_SSI2FSS 0x00200000 // SSI2FSS on PB5
2473
#define GPIO_PCTL_PB5_M0PWM3 0x00400000 // M0PWM3 on PB5
2474
#define GPIO_PCTL_PB5_T1CCP1 0x00700000 // T1CCP1 on PB5
2475
#define GPIO_PCTL_PB5_CAN0TX 0x00800000 // CAN0TX on PB5
2476
#define GPIO_PCTL_PB4_M 0x000F0000 // PB4 Mask
2477
#define GPIO_PCTL_PB4_SSI2CLK 0x00020000 // SSI2CLK on PB4
2478
#define GPIO_PCTL_PB4_M0PWM2 0x00040000 // M0PWM2 on PB4
2479
#define GPIO_PCTL_PB4_T1CCP0 0x00070000 // T1CCP0 on PB4
2480
#define GPIO_PCTL_PB4_CAN0RX 0x00080000 // CAN0RX on PB4
2481
#define GPIO_PCTL_PB3_M 0x0000F000 // PB3 Mask
2482
#define GPIO_PCTL_PB3_I2C0SDA 0x00003000 // I2C0SDA on PB3
2483
#define GPIO_PCTL_PB3_T3CCP1 0x00007000 // T3CCP1 on PB3
2484
#define GPIO_PCTL_PB2_M 0x00000F00 // PB2 Mask
2485
#define GPIO_PCTL_PB2_I2C0SCL 0x00000300 // I2C0SCL on PB2
2486
#define GPIO_PCTL_PB2_T3CCP0 0x00000700 // T3CCP0 on PB2
2487
#define GPIO_PCTL_PB1_M 0x000000F0 // PB1 Mask
2488
#define GPIO_PCTL_PB1_USB0VBUS 0x00000000 // USB0VBUS on PB1
2489
#define GPIO_PCTL_PB1_U1TX 0x00000010 // U1TX on PB1
2490
#define GPIO_PCTL_PB1_T2CCP1 0x00000070 // T2CCP1 on PB1
2491
#define GPIO_PCTL_PB0_M 0x0000000F // PB0 Mask
2492
#define GPIO_PCTL_PB0_USB0ID 0x00000000 // USB0ID on PB0
2493
#define GPIO_PCTL_PB0_U1RX 0x00000001 // U1RX on PB0
2494
#define GPIO_PCTL_PB0_T2CCP0 0x00000007 // T2CCP0 on PB0
2495
2496
//*****************************************************************************
2497
//
2498
// The following are defines for the bit fields in the GPIO_PCTL register for
2499
// port C.
2500
//
2501
//*****************************************************************************
2502
#define GPIO_PCTL_PC7_M 0xF0000000 // PC7 Mask
2503
#define GPIO_PCTL_PC7_U3TX 0x10000000 // U3TX on PC7
2504
#define GPIO_PCTL_PC7_WT1CCP1 0x70000000 // WT1CCP1 on PC7
2505
#define GPIO_PCTL_PC7_USB0PFLT 0x80000000 // USB0PFLT on PC7
2506
#define GPIO_PCTL_PC6_M 0x0F000000 // PC6 Mask
2507
#define GPIO_PCTL_PC6_U3RX 0x01000000 // U3RX on PC6
2508
#define GPIO_PCTL_PC6_PHB1 0x06000000 // PHB1 on PC6
2509
#define GPIO_PCTL_PC6_WT1CCP0 0x07000000 // WT1CCP0 on PC6
2510
#define GPIO_PCTL_PC6_USB0EPEN 0x08000000 // USB0EPEN on PC6
2511
#define GPIO_PCTL_PC5_M 0x00F00000 // PC5 Mask
2512
#define GPIO_PCTL_PC5_U4TX 0x00100000 // U4TX on PC5
2513
#define GPIO_PCTL_PC5_U1TX 0x00200000 // U1TX on PC5
2514
#define GPIO_PCTL_PC5_M0PWM7 0x00400000 // M0PWM7 on PC5
2515
#define GPIO_PCTL_PC5_PHA1 0x00600000 // PHA1 on PC5
2516
#define GPIO_PCTL_PC5_WT0CCP1 0x00700000 // WT0CCP1 on PC5
2517
#define GPIO_PCTL_PC5_U1CTS 0x00800000 // U1CTS on PC5
2518
#define GPIO_PCTL_PC4_M 0x000F0000 // PC4 Mask
2519
#define GPIO_PCTL_PC4_U4RX 0x00010000 // U4RX on PC4
2520
#define GPIO_PCTL_PC4_U1RX 0x00020000 // U1RX on PC4
2521
#define GPIO_PCTL_PC4_M0PWM6 0x00040000 // M0PWM6 on PC4
2522
#define GPIO_PCTL_PC4_IDX1 0x00060000 // IDX1 on PC4
2523
#define GPIO_PCTL_PC4_WT0CCP0 0x00070000 // WT0CCP0 on PC4
2524
#define GPIO_PCTL_PC4_U1RTS 0x00080000 // U1RTS on PC4
2525
#define GPIO_PCTL_PC3_M 0x0000F000 // PC3 Mask
2526
#define GPIO_PCTL_PC3_TDO 0x00001000 // TDO on PC3
2527
#define GPIO_PCTL_PC3_T5CCP1 0x00007000 // T5CCP1 on PC3
2528
#define GPIO_PCTL_PC2_M 0x00000F00 // PC2 Mask
2529
#define GPIO_PCTL_PC2_TDI 0x00000100 // TDI on PC2
2530
#define GPIO_PCTL_PC2_T5CCP0 0x00000700 // T5CCP0 on PC2
2531
#define GPIO_PCTL_PC1_M 0x000000F0 // PC1 Mask
2532
#define GPIO_PCTL_PC1_TMS 0x00000010 // TMS on PC1
2533
#define GPIO_PCTL_PC1_T4CCP1 0x00000070 // T4CCP1 on PC1
2534
#define GPIO_PCTL_PC0_M 0x0000000F // PC0 Mask
2535
#define GPIO_PCTL_PC0_TCK 0x00000001 // TCK on PC0
2536
#define GPIO_PCTL_PC0_T4CCP0 0x00000007 // T4CCP0 on PC0
2537
2538
//*****************************************************************************
2539
//
2540
// The following are defines for the bit fields in the GPIO_PCTL register for
2541
// port D.
2542
//
2543
//*****************************************************************************
2544
#define GPIO_PCTL_PD7_M 0xF0000000 // PD7 Mask
2545
#define GPIO_PCTL_PD7_U2TX 0x10000000 // U2TX on PD7
2546
#define GPIO_PCTL_PD7_PHB0 0x60000000 // PHB0 on PD7
2547
#define GPIO_PCTL_PD7_WT5CCP1 0x70000000 // WT5CCP1 on PD7
2548
#define GPIO_PCTL_PD7_NMI 0x80000000 // NMI on PD7
2549
#define GPIO_PCTL_PD6_M 0x0F000000 // PD6 Mask
2550
#define GPIO_PCTL_PD6_U2RX 0x01000000 // U2RX on PD6
2551
#define GPIO_PCTL_PD6_M0FAULT0 0x04000000 // M0FAULT0 on PD6
2552
#define GPIO_PCTL_PD6_PHA0 0x06000000 // PHA0 on PD6
2553
#define GPIO_PCTL_PD6_WT5CCP0 0x07000000 // WT5CCP0 on PD6
2554
#define GPIO_PCTL_PD5_M 0x00F00000 // PD5 Mask
2555
#define GPIO_PCTL_PD5_USB0DP 0x00000000 // USB0DP on PD5
2556
#define GPIO_PCTL_PD5_U6TX 0x00100000 // U6TX on PD5
2557
#define GPIO_PCTL_PD5_WT4CCP1 0x00700000 // WT4CCP1 on PD5
2558
#define GPIO_PCTL_PD4_M 0x000F0000 // PD4 Mask
2559
#define GPIO_PCTL_PD4_USB0DM 0x00000000 // USB0DM on PD4
2560
#define GPIO_PCTL_PD4_U6RX 0x00010000 // U6RX on PD4
2561
#define GPIO_PCTL_PD4_WT4CCP0 0x00070000 // WT4CCP0 on PD4
2562
#define GPIO_PCTL_PD3_M 0x0000F000 // PD3 Mask
2563
#define GPIO_PCTL_PD3_AIN4 0x00000000 // AIN4 on PD3
2564
#define GPIO_PCTL_PD3_SSI3TX 0x00001000 // SSI3TX on PD3
2565
#define GPIO_PCTL_PD3_SSI1TX 0x00002000 // SSI1TX on PD3
2566
#define GPIO_PCTL_PD3_IDX0 0x00006000 // IDX0 on PD3
2567
#define GPIO_PCTL_PD3_WT3CCP1 0x00007000 // WT3CCP1 on PD3
2568
#define GPIO_PCTL_PD3_USB0PFLT 0x00008000 // USB0PFLT on PD3
2569
#define GPIO_PCTL_PD2_M 0x00000F00 // PD2 Mask
2570
#define GPIO_PCTL_PD2_AIN5 0x00000000 // AIN5 on PD2
2571
#define GPIO_PCTL_PD2_SSI3RX 0x00000100 // SSI3RX on PD2
2572
#define GPIO_PCTL_PD2_SSI1RX 0x00000200 // SSI1RX on PD2
2573
#define GPIO_PCTL_PD2_M0FAULT0 0x00000400 // M0FAULT0 on PD2
2574
#define GPIO_PCTL_PD2_WT3CCP0 0x00000700 // WT3CCP0 on PD2
2575
#define GPIO_PCTL_PD2_USB0EPEN 0x00000800 // USB0EPEN on PD2
2576
#define GPIO_PCTL_PD1_M 0x000000F0 // PD1 Mask
2577
#define GPIO_PCTL_PD1_AIN6 0x00000000 // AIN6 on PD1
2578
#define GPIO_PCTL_PD1_SSI3FSS 0x00000010 // SSI3FSS on PD1
2579
#define GPIO_PCTL_PD1_SSI1FSS 0x00000020 // SSI1FSS on PD1
2580
#define GPIO_PCTL_PD1_I2C3SDA 0x00000030 // I2C3SDA on PD1
2581
#define GPIO_PCTL_PD1_M0PWM7 0x00000040 // M0PWM7 on PD1
2582
#define GPIO_PCTL_PD1_M1PWM1 0x00000050 // M1PWM1 on PD1
2583
#define GPIO_PCTL_PD1_WT2CCP1 0x00000070 // WT2CCP1 on PD1
2584
#define GPIO_PCTL_PD0_M 0x0000000F // PD0 Mask
2585
#define GPIO_PCTL_PD0_AIN7 0x00000000 // AIN7 on PD0
2586
#define GPIO_PCTL_PD0_SSI3CLK 0x00000001 // SSI3CLK on PD0
2587
#define GPIO_PCTL_PD0_SSI1CLK 0x00000002 // SSI1CLK on PD0
2588
#define GPIO_PCTL_PD0_I2C3SCL 0x00000003 // I2C3SCL on PD0
2589
#define GPIO_PCTL_PD0_M0PWM6 0x00000004 // M0PWM6 on PD0
2590
#define GPIO_PCTL_PD0_M1PWM0 0x00000005 // M1PWM0 on PD0
2591
#define GPIO_PCTL_PD0_WT2CCP0 0x00000007 // WT2CCP0 on PD0
2592
2593
//*****************************************************************************
2594
//
2595
// The following are defines for the bit fields in the GPIO_PCTL register for
2596
// port E.
2597
//
2598
//*****************************************************************************
2599
#define GPIO_PCTL_PE5_M 0x00F00000 // PE5 Mask
2600
#define GPIO_PCTL_PE5_AIN8 0x00000000 // AIN8 on PE5
2601
#define GPIO_PCTL_PE5_U5TX 0x00100000 // U5TX on PE5
2602
#define GPIO_PCTL_PE5_I2C2SDA 0x00300000 // I2C2SDA on PE5
2603
#define GPIO_PCTL_PE5_M0PWM5 0x00400000 // M0PWM5 on PE5
2604
#define GPIO_PCTL_PE5_M1PWM3 0x00500000 // M1PWM3 on PE5
2605
#define GPIO_PCTL_PE5_CAN0TX 0x00800000 // CAN0TX on PE5
2606
#define GPIO_PCTL_PE4_M 0x000F0000 // PE4 Mask
2607
#define GPIO_PCTL_PE4_AIN9 0x00000000 // AIN9 on PE4
2608
#define GPIO_PCTL_PE4_U5RX 0x00010000 // U5RX on PE4
2609
#define GPIO_PCTL_PE4_I2C2SCL 0x00030000 // I2C2SCL on PE4
2610
#define GPIO_PCTL_PE4_M0PWM4 0x00040000 // M0PWM4 on PE4
2611
#define GPIO_PCTL_PE4_M1PWM2 0x00050000 // M1PWM2 on PE4
2612
#define GPIO_PCTL_PE4_CAN0RX 0x00080000 // CAN0RX on PE4
2613
#define GPIO_PCTL_PE3_M 0x0000F000 // PE3 Mask
2614
#define GPIO_PCTL_PE3_AIN0 0x00000000 // AIN0 on PE3
2615
#define GPIO_PCTL_PE2_M 0x00000F00 // PE2 Mask
2616
#define GPIO_PCTL_PE2_AIN1 0x00000000 // AIN1 on PE2
2617
#define GPIO_PCTL_PE1_M 0x000000F0 // PE1 Mask
2618
#define GPIO_PCTL_PE1_AIN2 0x00000000 // AIN2 on PE1
2619
#define GPIO_PCTL_PE1_U7TX 0x00000010 // U7TX on PE1
2620
#define GPIO_PCTL_PE0_M 0x0000000F // PE0 Mask
2621
#define GPIO_PCTL_PE0_AIN3 0x00000000 // AIN3 on PE0
2622
#define GPIO_PCTL_PE0_U7RX 0x00000001 // U7RX on PE0
2623
2624
//*****************************************************************************
2625
//
2626
// The following are defines for the bit fields in the GPIO_PCTL register for
2627
// port F.
2628
//
2629
//*****************************************************************************
2630
#define GPIO_PCTL_PF4_M 0x000F0000 // PF4 Mask
2631
#define GPIO_PCTL_PF4_M1FAULT0 0x00050000 // M1FAULT0 on PF4
2632
#define GPIO_PCTL_PF4_IDX0 0x00060000 // IDX0 on PF4
2633
#define GPIO_PCTL_PF4_T2CCP0 0x00070000 // T2CCP0 on PF4
2634
#define GPIO_PCTL_PF4_USB0EPEN 0x00080000 // USB0EPEN on PF4
2635
#define GPIO_PCTL_PF3_M 0x0000F000 // PF3 Mask
2636
#define GPIO_PCTL_PF3_SSI1FSS 0x00002000 // SSI1FSS on PF3
2637
#define GPIO_PCTL_PF3_CAN0TX 0x00003000 // CAN0TX on PF3
2638
#define GPIO_PCTL_PF3_M1PWM7 0x00005000 // M1PWM7 on PF3
2639
#define GPIO_PCTL_PF3_T1CCP1 0x00007000 // T1CCP1 on PF3
2640
#define GPIO_PCTL_PF3_TRCLK 0x0000E000 // TRCLK on PF3
2641
#define GPIO_PCTL_PF2_M 0x00000F00 // PF2 Mask
2642
#define GPIO_PCTL_PF2_SSI1CLK 0x00000200 // SSI1CLK on PF2
2643
#define GPIO_PCTL_PF2_M0FAULT0 0x00000400 // M0FAULT0 on PF2
2644
#define GPIO_PCTL_PF2_M1PWM6 0x00000500 // M1PWM6 on PF2
2645
#define GPIO_PCTL_PF2_T1CCP0 0x00000700 // T1CCP0 on PF2
2646
#define GPIO_PCTL_PF2_TRD0 0x00000E00 // TRD0 on PF2
2647
#define GPIO_PCTL_PF1_M 0x000000F0 // PF1 Mask
2648
#define GPIO_PCTL_PF1_U1CTS 0x00000010 // U1CTS on PF1
2649
#define GPIO_PCTL_PF1_SSI1TX 0x00000020 // SSI1TX on PF1
2650
#define GPIO_PCTL_PF1_M1PWM5 0x00000050 // M1PWM5 on PF1
2651
#define GPIO_PCTL_PF1_PHB0 0x00000060 // PHB0 on PF1
2652
#define GPIO_PCTL_PF1_T0CCP1 0x00000070 // T0CCP1 on PF1
2653
#define GPIO_PCTL_PF1_C1O 0x00000090 // C1O on PF1
2654
#define GPIO_PCTL_PF1_TRD1 0x000000E0 // TRD1 on PF1
2655
#define GPIO_PCTL_PF0_M 0x0000000F // PF0 Mask
2656
#define GPIO_PCTL_PF0_U1RTS 0x00000001 // U1RTS on PF0
2657
#define GPIO_PCTL_PF0_SSI1RX 0x00000002 // SSI1RX on PF0
2658
#define GPIO_PCTL_PF0_CAN0RX 0x00000003 // CAN0RX on PF0
2659
#define GPIO_PCTL_PF0_M1PWM4 0x00000005 // M1PWM4 on PF0
2660
#define GPIO_PCTL_PF0_PHA0 0x00000006 // PHA0 on PF0
2661
#define GPIO_PCTL_PF0_T0CCP0 0x00000007 // T0CCP0 on PF0
2662
#define GPIO_PCTL_PF0_NMI 0x00000008 // NMI on PF0
2663
#define GPIO_PCTL_PF0_C0O 0x00000009 // C0O on PF0
2664
2665
//*****************************************************************************
2666
//
2667
// The following are defines for the bit fields in the SSI_O_CR0 register.
2668
//
2669
//*****************************************************************************
2670
#define SSI_CR0_SCR_M 0x0000FF00 // SSI Serial Clock Rate
2671
#define SSI_CR0_SPH 0x00000080 // SSI Serial Clock Phase
2672
#define SSI_CR0_SPO 0x00000040 // SSI Serial Clock Polarity
2673
#define SSI_CR0_FRF_M 0x00000030 // SSI Frame Format Select
2674
#define SSI_CR0_FRF_MOTO 0x00000000 // Freescale SPI Frame Format
2675
#define SSI_CR0_FRF_TI 0x00000010 // Synchronous Serial Frame Format
2676
#define SSI_CR0_FRF_NMW 0x00000020 // MICROWIRE Frame Format
2677
#define SSI_CR0_DSS_M 0x0000000F // SSI Data Size Select
2678
#define SSI_CR0_DSS_4 0x00000003 // 4-bit data
2679
#define SSI_CR0_DSS_5 0x00000004 // 5-bit data
2680
#define SSI_CR0_DSS_6 0x00000005 // 6-bit data
2681
#define SSI_CR0_DSS_7 0x00000006 // 7-bit data
2682
#define SSI_CR0_DSS_8 0x00000007 // 8-bit data
2683
#define SSI_CR0_DSS_9 0x00000008 // 9-bit data
2684
#define SSI_CR0_DSS_10 0x00000009 // 10-bit data
2685
#define SSI_CR0_DSS_11 0x0000000A // 11-bit data
2686
#define SSI_CR0_DSS_12 0x0000000B // 12-bit data
2687
#define SSI_CR0_DSS_13 0x0000000C // 13-bit data
2688
#define SSI_CR0_DSS_14 0x0000000D // 14-bit data
2689
#define SSI_CR0_DSS_15 0x0000000E // 15-bit data
2690
#define SSI_CR0_DSS_16 0x0000000F // 16-bit data
2691
#define SSI_CR0_SCR_S 8
2692
2693
//*****************************************************************************
2694
//
2695
// The following are defines for the bit fields in the SSI_O_CR1 register.
2696
//
2697
//*****************************************************************************
2698
#define SSI_CR1_EOT 0x00000010 // End of Transmission
2699
#define SSI_CR1_MS 0x00000004 // SSI Master/Slave Select
2700
#define SSI_CR1_SSE 0x00000002 // SSI Synchronous Serial Port
2701
// Enable
2702
#define SSI_CR1_LBM 0x00000001 // SSI Loopback Mode
2703
2704
//*****************************************************************************
2705
//
2706
// The following are defines for the bit fields in the SSI_O_DR register.
2707
//
2708
//*****************************************************************************
2709
#define SSI_DR_DATA_M 0x0000FFFF // SSI Receive/Transmit Data
2710
#define SSI_DR_DATA_S 0
2711
2712
//*****************************************************************************
2713
//
2714
// The following are defines for the bit fields in the SSI_O_SR register.
2715
//
2716
//*****************************************************************************
2717
#define SSI_SR_BSY 0x00000010 // SSI Busy Bit
2718
#define SSI_SR_RFF 0x00000008 // SSI Receive FIFO Full
2719
#define SSI_SR_RNE 0x00000004 // SSI Receive FIFO Not Empty
2720
#define SSI_SR_TNF 0x00000002 // SSI Transmit FIFO Not Full
2721
#define SSI_SR_TFE 0x00000001 // SSI Transmit FIFO Empty
2722
2723
//*****************************************************************************
2724
//
2725
// The following are defines for the bit fields in the SSI_O_CPSR register.
2726
//
2727
//*****************************************************************************
2728
#define SSI_CPSR_CPSDVSR_M 0x000000FF // SSI Clock Prescale Divisor
2729
#define SSI_CPSR_CPSDVSR_S 0
2730
2731
//*****************************************************************************
2732
//
2733
// The following are defines for the bit fields in the SSI_O_IM register.
2734
//
2735
//*****************************************************************************
2736
#define SSI_IM_TXIM 0x00000008 // SSI Transmit FIFO Interrupt Mask
2737
#define SSI_IM_RXIM 0x00000004 // SSI Receive FIFO Interrupt Mask
2738
#define SSI_IM_RTIM 0x00000002 // SSI Receive Time-Out Interrupt
2739
// Mask
2740
#define SSI_IM_RORIM 0x00000001 // SSI Receive Overrun Interrupt
2741
// Mask
2742
2743
//*****************************************************************************
2744
//
2745
// The following are defines for the bit fields in the SSI_O_RIS register.
2746
//
2747
//*****************************************************************************
2748
#define SSI_RIS_TXRIS 0x00000008 // SSI Transmit FIFO Raw Interrupt
2749
// Status
2750
#define SSI_RIS_RXRIS 0x00000004 // SSI Receive FIFO Raw Interrupt
2751
// Status
2752
#define SSI_RIS_RTRIS 0x00000002 // SSI Receive Time-Out Raw
2753
// Interrupt Status
2754
#define SSI_RIS_RORRIS 0x00000001 // SSI Receive Overrun Raw
2755
// Interrupt Status
2756
2757
//*****************************************************************************
2758
//
2759
// The following are defines for the bit fields in the SSI_O_MIS register.
2760
//
2761
//*****************************************************************************
2762
#define SSI_MIS_TXMIS 0x00000008 // SSI Transmit FIFO Masked
2763
// Interrupt Status
2764
#define SSI_MIS_RXMIS 0x00000004 // SSI Receive FIFO Masked
2765
// Interrupt Status
2766
#define SSI_MIS_RTMIS 0x00000002 // SSI Receive Time-Out Masked
2767
// Interrupt Status
2768
#define SSI_MIS_RORMIS 0x00000001 // SSI Receive Overrun Masked
2769
// Interrupt Status
2770
2771
//*****************************************************************************
2772
//
2773
// The following are defines for the bit fields in the SSI_O_ICR register.
2774
//
2775
//*****************************************************************************
2776
#define SSI_ICR_RTIC 0x00000002 // SSI Receive Time-Out Interrupt
2777
// Clear
2778
#define SSI_ICR_RORIC 0x00000001 // SSI Receive Overrun Interrupt
2779
// Clear
2780
2781
//*****************************************************************************
2782
//
2783
// The following are defines for the bit fields in the SSI_O_DMACTL register.
2784
//
2785
//*****************************************************************************
2786
#define SSI_DMACTL_TXDMAE 0x00000002 // Transmit DMA Enable
2787
#define SSI_DMACTL_RXDMAE 0x00000001 // Receive DMA Enable
2788
2789
//*****************************************************************************
2790
//
2791
// The following are defines for the bit fields in the SSI_O_CC register.
2792
//
2793
//*****************************************************************************
2794
#define SSI_CC_CS_M 0x0000000F // SSI Baud Clock Source
2795
#define SSI_CC_CS_SYSPLL 0x00000000 // System clock (based on clock
2796
// source and divisor factor)
2797
#define SSI_CC_CS_PIOSC 0x00000005 // PIOSC
2798
2799
//*****************************************************************************
2800
//
2801
// The following are defines for the bit fields in the UART_O_DR register.
2802
//
2803
//*****************************************************************************
2804
#define UART_DR_OE 0x00000800 // UART Overrun Error
2805
#define UART_DR_BE 0x00000400 // UART Break Error
2806
#define UART_DR_PE 0x00000200 // UART Parity Error
2807
#define UART_DR_FE 0x00000100 // UART Framing Error
2808
#define UART_DR_DATA_M 0x000000FF // Data Transmitted or Received
2809
#define UART_DR_DATA_S 0
2810
2811
//*****************************************************************************
2812
//
2813
// The following are defines for the bit fields in the UART_O_RSR register.
2814
//
2815
//*****************************************************************************
2816
#define UART_RSR_OE 0x00000008 // UART Overrun Error
2817
#define UART_RSR_BE 0x00000004 // UART Break Error
2818
#define UART_RSR_PE 0x00000002 // UART Parity Error
2819
#define UART_RSR_FE 0x00000001 // UART Framing Error
2820
2821
//*****************************************************************************
2822
//
2823
// The following are defines for the bit fields in the UART_O_ECR register.
2824
//
2825
//*****************************************************************************
2826
#define UART_ECR_DATA_M 0x000000FF // Error Clear
2827
#define UART_ECR_DATA_S 0
2828
2829
//*****************************************************************************
2830
//
2831
// The following are defines for the bit fields in the UART_O_FR register.
2832
//
2833
//*****************************************************************************
2834
#define UART_FR_TXFE 0x00000080 // UART Transmit FIFO Empty
2835
#define UART_FR_RXFF 0x00000040 // UART Receive FIFO Full
2836
#define UART_FR_TXFF 0x00000020 // UART Transmit FIFO Full
2837
#define UART_FR_RXFE 0x00000010 // UART Receive FIFO Empty
2838
#define UART_FR_BUSY 0x00000008 // UART Busy
2839
#define UART_FR_CTS 0x00000001 // Clear To Send
2840
2841
//*****************************************************************************
2842
//
2843
// The following are defines for the bit fields in the UART_O_ILPR register.
2844
//
2845
//*****************************************************************************
2846
#define UART_ILPR_ILPDVSR_M 0x000000FF // IrDA Low-Power Divisor
2847
#define UART_ILPR_ILPDVSR_S 0
2848
2849
//*****************************************************************************
2850
//
2851
// The following are defines for the bit fields in the UART_O_IBRD register.
2852
//
2853
//*****************************************************************************
2854
#define UART_IBRD_DIVINT_M 0x0000FFFF // Integer Baud-Rate Divisor
2855
#define UART_IBRD_DIVINT_S 0
2856
2857
//*****************************************************************************
2858
//
2859
// The following are defines for the bit fields in the UART_O_FBRD register.
2860
//
2861
//*****************************************************************************
2862
#define UART_FBRD_DIVFRAC_M 0x0000003F // Fractional Baud-Rate Divisor
2863
#define UART_FBRD_DIVFRAC_S 0
2864
2865
//*****************************************************************************
2866
//
2867
// The following are defines for the bit fields in the UART_O_LCRH register.
2868
//
2869
//*****************************************************************************
2870
#define UART_LCRH_SPS 0x00000080 // UART Stick Parity Select
2871
#define UART_LCRH_WLEN_M 0x00000060 // UART Word Length
2872
#define UART_LCRH_WLEN_5 0x00000000 // 5 bits (default)
2873
#define UART_LCRH_WLEN_6 0x00000020 // 6 bits
2874
#define UART_LCRH_WLEN_7 0x00000040 // 7 bits
2875
#define UART_LCRH_WLEN_8 0x00000060 // 8 bits
2876
#define UART_LCRH_FEN 0x00000010 // UART Enable FIFOs
2877
#define UART_LCRH_STP2 0x00000008 // UART Two Stop Bits Select
2878
#define UART_LCRH_EPS 0x00000004 // UART Even Parity Select
2879
#define UART_LCRH_PEN 0x00000002 // UART Parity Enable
2880
#define UART_LCRH_BRK 0x00000001 // UART Send Break
2881
2882
//*****************************************************************************
2883
//
2884
// The following are defines for the bit fields in the UART_O_CTL register.
2885
//
2886
//*****************************************************************************
2887
#define UART_CTL_CTSEN 0x00008000 // Enable Clear To Send
2888
#define UART_CTL_RTSEN 0x00004000 // Enable Request to Send
2889
#define UART_CTL_RTS 0x00000800 // Request to Send
2890
#define UART_CTL_RXE 0x00000200 // UART Receive Enable
2891
#define UART_CTL_TXE 0x00000100 // UART Transmit Enable
2892
#define UART_CTL_LBE 0x00000080 // UART Loop Back Enable
2893
#define UART_CTL_HSE 0x00000020 // High-Speed Enable
2894
#define UART_CTL_EOT 0x00000010 // End of Transmission
2895
#define UART_CTL_SMART 0x00000008 // ISO 7816 Smart Card Support
2896
#define UART_CTL_SIRLP 0x00000004 // UART SIR Low-Power Mode
2897
#define UART_CTL_SIREN 0x00000002 // UART SIR Enable
2898
#define UART_CTL_UARTEN 0x00000001 // UART Enable
2899
2900
//*****************************************************************************
2901
//
2902
// The following are defines for the bit fields in the UART_O_IFLS register.
2903
//
2904
//*****************************************************************************
2905
#define UART_IFLS_RX_M 0x00000038 // UART Receive Interrupt FIFO
2906
// Level Select
2907
#define UART_IFLS_RX1_8 0x00000000 // RX FIFO >= 1/8 full
2908
#define UART_IFLS_RX2_8 0x00000008 // RX FIFO >= 1/4 full
2909
#define UART_IFLS_RX4_8 0x00000010 // RX FIFO >= 1/2 full (default)
2910
#define UART_IFLS_RX6_8 0x00000018 // RX FIFO >= 3/4 full
2911
#define UART_IFLS_RX7_8 0x00000020 // RX FIFO >= 7/8 full
2912
#define UART_IFLS_TX_M 0x00000007 // UART Transmit Interrupt FIFO
2913
// Level Select
2914
#define UART_IFLS_TX1_8 0x00000000 // TX FIFO <= 1/8 full
2915
#define UART_IFLS_TX2_8 0x00000001 // TX FIFO <= 1/4 full
2916
#define UART_IFLS_TX4_8 0x00000002 // TX FIFO <= 1/2 full (default)
2917
#define UART_IFLS_TX6_8 0x00000003 // TX FIFO <= 3/4 full
2918
#define UART_IFLS_TX7_8 0x00000004 // TX FIFO <= 7/8 full
2919
2920
//*****************************************************************************
2921
//
2922
// The following are defines for the bit fields in the UART_O_IM register.
2923
//
2924
//*****************************************************************************
2925
#define UART_IM_9BITIM 0x00001000 // 9-Bit Mode Interrupt Mask
2926
#define UART_IM_OEIM 0x00000400 // UART Overrun Error Interrupt
2927
// Mask
2928
#define UART_IM_BEIM 0x00000200 // UART Break Error Interrupt Mask
2929
#define UART_IM_PEIM 0x00000100 // UART Parity Error Interrupt Mask
2930
#define UART_IM_FEIM 0x00000080 // UART Framing Error Interrupt
2931
// Mask
2932
#define UART_IM_RTIM 0x00000040 // UART Receive Time-Out Interrupt
2933
// Mask
2934
#define UART_IM_TXIM 0x00000020 // UART Transmit Interrupt Mask
2935
#define UART_IM_RXIM 0x00000010 // UART Receive Interrupt Mask
2936
#define UART_IM_CTSMIM 0x00000002 // UART Clear to Send Modem
2937
// Interrupt Mask
2938
2939
//*****************************************************************************
2940
//
2941
// The following are defines for the bit fields in the UART_O_RIS register.
2942
//
2943
//*****************************************************************************
2944
#define UART_RIS_9BITRIS 0x00001000 // 9-Bit Mode Raw Interrupt Status
2945
#define UART_RIS_OERIS 0x00000400 // UART Overrun Error Raw Interrupt
2946
// Status
2947
#define UART_RIS_BERIS 0x00000200 // UART Break Error Raw Interrupt
2948
// Status
2949
#define UART_RIS_PERIS 0x00000100 // UART Parity Error Raw Interrupt
2950
// Status
2951
#define UART_RIS_FERIS 0x00000080 // UART Framing Error Raw Interrupt
2952
// Status
2953
#define UART_RIS_RTRIS 0x00000040 // UART Receive Time-Out Raw
2954
// Interrupt Status
2955
#define UART_RIS_TXRIS 0x00000020 // UART Transmit Raw Interrupt
2956
// Status
2957
#define UART_RIS_RXRIS 0x00000010 // UART Receive Raw Interrupt
2958
// Status
2959
#define UART_RIS_CTSRIS 0x00000002 // UART Clear to Send Modem Raw
2960
// Interrupt Status
2961
2962
//*****************************************************************************
2963
//
2964
// The following are defines for the bit fields in the UART_O_MIS register.
2965
//
2966
//*****************************************************************************
2967
#define UART_MIS_9BITMIS 0x00001000 // 9-Bit Mode Masked Interrupt
2968
// Status
2969
#define UART_MIS_OEMIS 0x00000400 // UART Overrun Error Masked
2970
// Interrupt Status
2971
#define UART_MIS_BEMIS 0x00000200 // UART Break Error Masked
2972
// Interrupt Status
2973
#define UART_MIS_PEMIS 0x00000100 // UART Parity Error Masked
2974
// Interrupt Status
2975
#define UART_MIS_FEMIS 0x00000080 // UART Framing Error Masked
2976
// Interrupt Status
2977
#define UART_MIS_RTMIS 0x00000040 // UART Receive Time-Out Masked
2978
// Interrupt Status
2979
#define UART_MIS_TXMIS 0x00000020 // UART Transmit Masked Interrupt
2980
// Status
2981
#define UART_MIS_RXMIS 0x00000010 // UART Receive Masked Interrupt
2982
// Status
2983
#define UART_MIS_CTSMIS 0x00000002 // UART Clear to Send Modem Masked
2984
// Interrupt Status
2985
2986
//*****************************************************************************
2987
//
2988
// The following are defines for the bit fields in the UART_O_ICR register.
2989
//
2990
//*****************************************************************************
2991
#define UART_ICR_9BITIC 0x00001000 // 9-Bit Mode Interrupt Clear
2992
#define UART_ICR_OEIC 0x00000400 // Overrun Error Interrupt Clear
2993
#define UART_ICR_BEIC 0x00000200 // Break Error Interrupt Clear
2994
#define UART_ICR_PEIC 0x00000100 // Parity Error Interrupt Clear
2995
#define UART_ICR_FEIC 0x00000080 // Framing Error Interrupt Clear
2996
#define UART_ICR_RTIC 0x00000040 // Receive Time-Out Interrupt Clear
2997
#define UART_ICR_TXIC 0x00000020 // Transmit Interrupt Clear
2998
#define UART_ICR_RXIC 0x00000010 // Receive Interrupt Clear
2999
#define UART_ICR_CTSMIC 0x00000002 // UART Clear to Send Modem
3000
// Interrupt Clear
3001
3002
//*****************************************************************************
3003
//
3004
// The following are defines for the bit fields in the UART_O_DMACTL register.
3005
//
3006
//*****************************************************************************
3007
#define UART_DMACTL_DMAERR 0x00000004 // DMA on Error
3008
#define UART_DMACTL_TXDMAE 0x00000002 // Transmit DMA Enable
3009
#define UART_DMACTL_RXDMAE 0x00000001 // Receive DMA Enable
3010
3011
//*****************************************************************************
3012
//
3013
// The following are defines for the bit fields in the UART_O_9BITADDR
3014
// register.
3015
//
3016
//*****************************************************************************
3017
#define UART_9BITADDR_9BITEN 0x00008000 // Enable 9-Bit Mode
3018
#define UART_9BITADDR_ADDR_M 0x000000FF // Self Address for 9-Bit Mode
3019
#define UART_9BITADDR_ADDR_S 0
3020
3021
//*****************************************************************************
3022
//
3023
// The following are defines for the bit fields in the UART_O_9BITAMASK
3024
// register.
3025
//
3026
//*****************************************************************************
3027
#define UART_9BITAMASK_MASK_M 0x000000FF // Self Address Mask for 9-Bit Mode
3028
#define UART_9BITAMASK_MASK_S 0
3029
3030
//*****************************************************************************
3031
//
3032
// The following are defines for the bit fields in the UART_O_PP register.
3033
//
3034
//*****************************************************************************
3035
#define UART_PP_NB 0x00000002 // 9-Bit Support
3036
#define UART_PP_SC 0x00000001 // Smart Card Support
3037
3038
//*****************************************************************************
3039
//
3040
// The following are defines for the bit fields in the UART_O_CC register.
3041
//
3042
//*****************************************************************************
3043
#define UART_CC_CS_M 0x0000000F // UART Baud Clock Source
3044
#define UART_CC_CS_SYSCLK 0x00000000 // System clock (based on clock
3045
// source and divisor factor)
3046
#define UART_CC_CS_PIOSC 0x00000005 // PIOSC
3047
3048
//*****************************************************************************
3049
//
3050
// The following are defines for the bit fields in the I2C_O_MSA register.
3051
//
3052
//*****************************************************************************
3053
#define I2C_MSA_SA_M 0x000000FE // I2C Slave Address
3054
#define I2C_MSA_RS 0x00000001 // Receive not send
3055
#define I2C_MSA_SA_S 1
3056
3057
//*****************************************************************************
3058
//
3059
// The following are defines for the bit fields in the I2C_O_MCS register.
3060
//
3061
//*****************************************************************************
3062
#define I2C_MCS_CLKTO 0x00000080 // Clock Timeout Error
3063
#define I2C_MCS_BUSBSY 0x00000040 // Bus Busy
3064
#define I2C_MCS_IDLE 0x00000020 // I2C Idle
3065
#define I2C_MCS_ARBLST 0x00000010 // Arbitration Lost
3066
#define I2C_MCS_HS 0x00000010 // High-Speed Enable
3067
#define I2C_MCS_ACK 0x00000008 // Data Acknowledge Enable
3068
#define I2C_MCS_DATACK 0x00000008 // Acknowledge Data
3069
#define I2C_MCS_ADRACK 0x00000004 // Acknowledge Address
3070
#define I2C_MCS_STOP 0x00000004 // Generate STOP
3071
#define I2C_MCS_ERROR 0x00000002 // Error
3072
#define I2C_MCS_START 0x00000002 // Generate START
3073
#define I2C_MCS_RUN 0x00000001 // I2C Master Enable
3074
#define I2C_MCS_BUSY 0x00000001 // I2C Busy
3075
3076
//*****************************************************************************
3077
//
3078
// The following are defines for the bit fields in the I2C_O_MDR register.
3079
//
3080
//*****************************************************************************
3081
#define I2C_MDR_DATA_M 0x000000FF // This byte contains the data
3082
// transferred during a transaction
3083
#define I2C_MDR_DATA_S 0
3084
3085
//*****************************************************************************
3086
//
3087
// The following are defines for the bit fields in the I2C_O_MTPR register.
3088
//
3089
//*****************************************************************************
3090
#define I2C_MTPR_HS 0x00000080 // High-Speed Enable
3091
#define I2C_MTPR_TPR_M 0x0000007F // Timer Period
3092
#define I2C_MTPR_TPR_S 0
3093
3094
//*****************************************************************************
3095
//
3096
// The following are defines for the bit fields in the I2C_O_MIMR register.
3097
//
3098
//*****************************************************************************
3099
#define I2C_MIMR_CLKIM 0x00000002 // Clock Timeout Interrupt Mask
3100
#define I2C_MIMR_IM 0x00000001 // Master Interrupt Mask
3101
3102
//*****************************************************************************
3103
//
3104
// The following are defines for the bit fields in the I2C_O_MRIS register.
3105
//
3106
//*****************************************************************************
3107
#define I2C_MRIS_CLKRIS 0x00000002 // Clock Timeout Raw Interrupt
3108
// Status
3109
#define I2C_MRIS_RIS 0x00000001 // Master Raw Interrupt Status
3110
3111
//*****************************************************************************
3112
//
3113
// The following are defines for the bit fields in the I2C_O_MMIS register.
3114
//
3115
//*****************************************************************************
3116
#define I2C_MMIS_CLKMIS 0x00000002 // Clock Timeout Masked Interrupt
3117
// Status
3118
#define I2C_MMIS_MIS 0x00000001 // Masked Interrupt Status
3119
3120
//*****************************************************************************
3121
//
3122
// The following are defines for the bit fields in the I2C_O_MICR register.
3123
//
3124
//*****************************************************************************
3125
#define I2C_MICR_CLKIC 0x00000002 // Clock Timeout Interrupt Clear
3126
#define I2C_MICR_IC 0x00000001 // Master Interrupt Clear
3127
3128
//*****************************************************************************
3129
//
3130
// The following are defines for the bit fields in the I2C_O_MCR register.
3131
//
3132
//*****************************************************************************
3133
#define I2C_MCR_GFE 0x00000040 // I2C Glitch Filter Enable
3134
#define I2C_MCR_SFE 0x00000020 // I2C Slave Function Enable
3135
#define I2C_MCR_MFE 0x00000010 // I2C Master Function Enable
3136
#define I2C_MCR_LPBK 0x00000001 // I2C Loopback
3137
3138
//*****************************************************************************
3139
//
3140
// The following are defines for the bit fields in the I2C_O_MCLKOCNT register.
3141
//
3142
//*****************************************************************************
3143
#define I2C_MCLKOCNT_CNTL_M 0x000000FF // I2C Master Count
3144
#define I2C_MCLKOCNT_CNTL_S 0
3145
3146
//*****************************************************************************
3147
//
3148
// The following are defines for the bit fields in the I2C_O_MBMON register.
3149
//
3150
//*****************************************************************************
3151
#define I2C_MBMON_SDA 0x00000002 // I2C SDA Status
3152
#define I2C_MBMON_SCL 0x00000001 // I2C SCL Status
3153
3154
//*****************************************************************************
3155
//
3156
// The following are defines for the bit fields in the I2C_O_MCR2 register.
3157
//
3158
//*****************************************************************************
3159
#define I2C_MCR2_GFPW_M 0x00000070 // I2C Glitch Filter Pulse Width
3160
#define I2C_MCR2_GFPW_BYPASS 0x00000000 // Bypass
3161
#define I2C_MCR2_GFPW_1 0x00000010 // 1 clock
3162
#define I2C_MCR2_GFPW_2 0x00000020 // 2 clocks
3163
#define I2C_MCR2_GFPW_3 0x00000030 // 3 clocks
3164
#define I2C_MCR2_GFPW_4 0x00000040 // 4 clocks
3165
#define I2C_MCR2_GFPW_8 0x00000050 // 8 clocks
3166
#define I2C_MCR2_GFPW_16 0x00000060 // 16 clocks
3167
#define I2C_MCR2_GFPW_31 0x00000070 // 31 clocks
3168
3169
//*****************************************************************************
3170
//
3171
// The following are defines for the bit fields in the I2C_O_SOAR register.
3172
//
3173
//*****************************************************************************
3174
#define I2C_SOAR_OAR_M 0x0000007F // I2C Slave Own Address
3175
#define I2C_SOAR_OAR_S 0
3176
3177
//*****************************************************************************
3178
//
3179
// The following are defines for the bit fields in the I2C_O_SCSR register.
3180
//
3181
//*****************************************************************************
3182
#define I2C_SCSR_OAR2SEL 0x00000008 // OAR2 Address Matched
3183
#define I2C_SCSR_FBR 0x00000004 // First Byte Received
3184
#define I2C_SCSR_TREQ 0x00000002 // Transmit Request
3185
#define I2C_SCSR_DA 0x00000001 // Device Active
3186
#define I2C_SCSR_RREQ 0x00000001 // Receive Request
3187
3188
//*****************************************************************************
3189
//
3190
// The following are defines for the bit fields in the I2C_O_SDR register.
3191
//
3192
//*****************************************************************************
3193
#define I2C_SDR_DATA_M 0x000000FF // Data for Transfer
3194
#define I2C_SDR_DATA_S 0
3195
3196
//*****************************************************************************
3197
//
3198
// The following are defines for the bit fields in the I2C_O_SIMR register.
3199
//
3200
//*****************************************************************************
3201
#define I2C_SIMR_STOPIM 0x00000004 // Stop Condition Interrupt Mask
3202
#define I2C_SIMR_STARTIM 0x00000002 // Start Condition Interrupt Mask
3203
#define I2C_SIMR_DATAIM 0x00000001 // Data Interrupt Mask
3204
3205
//*****************************************************************************
3206
//
3207
// The following are defines for the bit fields in the I2C_O_SRIS register.
3208
//
3209
//*****************************************************************************
3210
#define I2C_SRIS_STOPRIS 0x00000004 // Stop Condition Raw Interrupt
3211
// Status
3212
#define I2C_SRIS_STARTRIS 0x00000002 // Start Condition Raw Interrupt
3213
// Status
3214
#define I2C_SRIS_DATARIS 0x00000001 // Data Raw Interrupt Status
3215
3216
//*****************************************************************************
3217
//
3218
// The following are defines for the bit fields in the I2C_O_SMIS register.
3219
//
3220
//*****************************************************************************
3221
#define I2C_SMIS_STOPMIS 0x00000004 // Stop Condition Masked Interrupt
3222
// Status
3223
#define I2C_SMIS_STARTMIS 0x00000002 // Start Condition Masked Interrupt
3224
// Status
3225
#define I2C_SMIS_DATAMIS 0x00000001 // Data Masked Interrupt Status
3226
3227
//*****************************************************************************
3228
//
3229
// The following are defines for the bit fields in the I2C_O_SICR register.
3230
//
3231
//*****************************************************************************
3232
#define I2C_SICR_STOPIC 0x00000004 // Stop Condition Interrupt Clear
3233
#define I2C_SICR_STARTIC 0x00000002 // Start Condition Interrupt Clear
3234
#define I2C_SICR_DATAIC 0x00000001 // Data Interrupt Clear
3235
3236
//*****************************************************************************
3237
//
3238
// The following are defines for the bit fields in the I2C_O_SOAR2 register.
3239
//
3240
//*****************************************************************************
3241
#define I2C_SOAR2_OAR2EN 0x00000080 // I2C Slave Own Address 2 Enable
3242
#define I2C_SOAR2_OAR2_M 0x0000007F // I2C Slave Own Address 2
3243
#define I2C_SOAR2_OAR2_S 0
3244
3245
//*****************************************************************************
3246
//
3247
// The following are defines for the bit fields in the I2C_O_SACKCTL register.
3248
//
3249
//*****************************************************************************
3250
#define I2C_SACKCTL_ACKOVAL 0x00000002 // I2C Slave ACK Override Value
3251
#define I2C_SACKCTL_ACKOEN 0x00000001 // I2C Slave ACK Override Enable
3252
3253
//*****************************************************************************
3254
//
3255
// The following are defines for the bit fields in the I2C_O_PP register.
3256
//
3257
//*****************************************************************************
3258
#define I2C_PP_HS 0x00000001 // High-Speed Capable
3259
3260
//*****************************************************************************
3261
//
3262
// The following are defines for the bit fields in the I2C_O_PC register.
3263
//
3264
//*****************************************************************************
3265
#define I2C_PC_HS 0x00000001 // High-Speed Capable
3266
3267
//*****************************************************************************
3268
//
3269
// The following are defines for the bit fields in the PWM_O_CTL register.
3270
//
3271
//*****************************************************************************
3272
#define PWM_CTL_GLOBALSYNC3 0x00000008 // Update PWM Generator 3
3273
#define PWM_CTL_GLOBALSYNC2 0x00000004 // Update PWM Generator 2
3274
#define PWM_CTL_GLOBALSYNC1 0x00000002 // Update PWM Generator 1
3275
#define PWM_CTL_GLOBALSYNC0 0x00000001 // Update PWM Generator 0
3276
3277
//*****************************************************************************
3278
//
3279
// The following are defines for the bit fields in the PWM_O_SYNC register.
3280
//
3281
//*****************************************************************************
3282
#define PWM_SYNC_SYNC3 0x00000008 // Reset Generator 3 Counter
3283
#define PWM_SYNC_SYNC2 0x00000004 // Reset Generator 2 Counter
3284
#define PWM_SYNC_SYNC1 0x00000002 // Reset Generator 1 Counter
3285
#define PWM_SYNC_SYNC0 0x00000001 // Reset Generator 0 Counter
3286
3287
//*****************************************************************************
3288
//
3289
// The following are defines for the bit fields in the PWM_O_ENABLE register.
3290
//
3291
//*****************************************************************************
3292
#define PWM_ENABLE_PWM7EN 0x00000080 // MnPWM7 Output Enable
3293
#define PWM_ENABLE_PWM6EN 0x00000040 // MnPWM6 Output Enable
3294
#define PWM_ENABLE_PWM5EN 0x00000020 // MnPWM5 Output Enable
3295
#define PWM_ENABLE_PWM4EN 0x00000010 // MnPWM4 Output Enable
3296
#define PWM_ENABLE_PWM3EN 0x00000008 // MnPWM3 Output Enable
3297
#define PWM_ENABLE_PWM2EN 0x00000004 // MnPWM2 Output Enable
3298
#define PWM_ENABLE_PWM1EN 0x00000002 // MnPWM1 Output Enable
3299
#define PWM_ENABLE_PWM0EN 0x00000001 // MnPWM0 Output Enable
3300
3301
//*****************************************************************************
3302
//
3303
// The following are defines for the bit fields in the PWM_O_INVERT register.
3304
//
3305
//*****************************************************************************
3306
#define PWM_INVERT_PWM7INV 0x00000080 // Invert MnPWM7 Signal
3307
#define PWM_INVERT_PWM6INV 0x00000040 // Invert MnPWM6 Signal
3308
#define PWM_INVERT_PWM5INV 0x00000020 // Invert MnPWM5 Signal
3309
#define PWM_INVERT_PWM4INV 0x00000010 // Invert MnPWM4 Signal
3310
#define PWM_INVERT_PWM3INV 0x00000008 // Invert MnPWM3 Signal
3311
#define PWM_INVERT_PWM2INV 0x00000004 // Invert MnPWM2 Signal
3312
#define PWM_INVERT_PWM1INV 0x00000002 // Invert MnPWM1 Signal
3313
#define PWM_INVERT_PWM0INV 0x00000001 // Invert MnPWM0 Signal
3314
3315
//*****************************************************************************
3316
//
3317
// The following are defines for the bit fields in the PWM_O_FAULT register.
3318
//
3319
//*****************************************************************************
3320
#define PWM_FAULT_FAULT7 0x00000080 // MnPWM7 Fault
3321
#define PWM_FAULT_FAULT6 0x00000040 // MnPWM6 Fault
3322
#define PWM_FAULT_FAULT5 0x00000020 // MnPWM5 Fault
3323
#define PWM_FAULT_FAULT4 0x00000010 // MnPWM4 Fault
3324
#define PWM_FAULT_FAULT3 0x00000008 // MnPWM3 Fault
3325
#define PWM_FAULT_FAULT2 0x00000004 // MnPWM2 Fault
3326
#define PWM_FAULT_FAULT1 0x00000002 // MnPWM1 Fault
3327
#define PWM_FAULT_FAULT0 0x00000001 // MnPWM0 Fault
3328
3329
//*****************************************************************************
3330
//
3331
// The following are defines for the bit fields in the PWM_O_INTEN register.
3332
//
3333
//*****************************************************************************
3334
#define PWM_INTEN_INTFAULT1 0x00020000 // Interrupt Fault 1
3335
#define PWM_INTEN_INTFAULT0 0x00010000 // Interrupt Fault 0
3336
#define PWM_INTEN_INTPWM3 0x00000008 // PWM3 Interrupt Enable
3337
#define PWM_INTEN_INTPWM2 0x00000004 // PWM2 Interrupt Enable
3338
#define PWM_INTEN_INTPWM1 0x00000002 // PWM1 Interrupt Enable
3339
#define PWM_INTEN_INTPWM0 0x00000001 // PWM0 Interrupt Enable
3340
3341
//*****************************************************************************
3342
//
3343
// The following are defines for the bit fields in the PWM_O_RIS register.
3344
//
3345
//*****************************************************************************
3346
#define PWM_RIS_INTFAULT1 0x00020000 // Interrupt Fault PWM 1
3347
#define PWM_RIS_INTFAULT0 0x00010000 // Interrupt Fault PWM 0
3348
#define PWM_RIS_INTPWM3 0x00000008 // PWM3 Interrupt Asserted
3349
#define PWM_RIS_INTPWM2 0x00000004 // PWM2 Interrupt Asserted
3350
#define PWM_RIS_INTPWM1 0x00000002 // PWM1 Interrupt Asserted
3351
#define PWM_RIS_INTPWM0 0x00000001 // PWM0 Interrupt Asserted
3352
3353
//*****************************************************************************
3354
//
3355
// The following are defines for the bit fields in the PWM_O_ISC register.
3356
//
3357
//*****************************************************************************
3358
#define PWM_ISC_INTFAULT1 0x00020000 // FAULT1 Interrupt Asserted
3359
#define PWM_ISC_INTFAULT0 0x00010000 // FAULT0 Interrupt Asserted
3360
#define PWM_ISC_INTPWM3 0x00000008 // PWM3 Interrupt Status
3361
#define PWM_ISC_INTPWM2 0x00000004 // PWM2 Interrupt Status
3362
#define PWM_ISC_INTPWM1 0x00000002 // PWM1 Interrupt Status
3363
#define PWM_ISC_INTPWM0 0x00000001 // PWM0 Interrupt Status
3364
3365
//*****************************************************************************
3366
//
3367
// The following are defines for the bit fields in the PWM_O_STATUS register.
3368
//
3369
//*****************************************************************************
3370
#define PWM_STATUS_FAULT1 0x00000002 // Generator 1 Fault Status
3371
#define PWM_STATUS_FAULT0 0x00000001 // Generator 0 Fault Status
3372
3373
//*****************************************************************************
3374
//
3375
// The following are defines for the bit fields in the PWM_O_FAULTVAL register.
3376
//
3377
//*****************************************************************************
3378
#define PWM_FAULTVAL_PWM7 0x00000080 // MnPWM7 Fault Value
3379
#define PWM_FAULTVAL_PWM6 0x00000040 // MnPWM6 Fault Value
3380
#define PWM_FAULTVAL_PWM5 0x00000020 // MnPWM5 Fault Value
3381
#define PWM_FAULTVAL_PWM4 0x00000010 // MnPWM4 Fault Value
3382
#define PWM_FAULTVAL_PWM3 0x00000008 // MnPWM3 Fault Value
3383
#define PWM_FAULTVAL_PWM2 0x00000004 // MnPWM2 Fault Value
3384
#define PWM_FAULTVAL_PWM1 0x00000002 // MnPWM1 Fault Value
3385
#define PWM_FAULTVAL_PWM0 0x00000001 // MnPWM0 Fault Value
3386
3387
//*****************************************************************************
3388
//
3389
// The following are defines for the bit fields in the PWM_O_ENUPD register.
3390
//
3391
//*****************************************************************************
3392
#define PWM_ENUPD_ENUPD7_M 0x0000C000 // MnPWM7 Enable Update Mode
3393
#define PWM_ENUPD_ENUPD7_IMM 0x00000000 // Immediate
3394
#define PWM_ENUPD_ENUPD7_LSYNC 0x00008000 // Locally Synchronized
3395
#define PWM_ENUPD_ENUPD7_GSYNC 0x0000C000 // Globally Synchronized
3396
#define PWM_ENUPD_ENUPD6_M 0x00003000 // MnPWM6 Enable Update Mode
3397
#define PWM_ENUPD_ENUPD6_IMM 0x00000000 // Immediate
3398
#define PWM_ENUPD_ENUPD6_LSYNC 0x00002000 // Locally Synchronized
3399
#define PWM_ENUPD_ENUPD6_GSYNC 0x00003000 // Globally Synchronized
3400
#define PWM_ENUPD_ENUPD5_M 0x00000C00 // MnPWM5 Enable Update Mode
3401
#define PWM_ENUPD_ENUPD5_IMM 0x00000000 // Immediate
3402
#define PWM_ENUPD_ENUPD5_LSYNC 0x00000800 // Locally Synchronized
3403
#define PWM_ENUPD_ENUPD5_GSYNC 0x00000C00 // Globally Synchronized
3404
#define PWM_ENUPD_ENUPD4_M 0x00000300 // MnPWM4 Enable Update Mode
3405
#define PWM_ENUPD_ENUPD4_IMM 0x00000000 // Immediate
3406
#define PWM_ENUPD_ENUPD4_LSYNC 0x00000200 // Locally Synchronized
3407
#define PWM_ENUPD_ENUPD4_GSYNC 0x00000300 // Globally Synchronized
3408
#define PWM_ENUPD_ENUPD3_M 0x000000C0 // MnPWM3 Enable Update Mode
3409
#define PWM_ENUPD_ENUPD3_IMM 0x00000000 // Immediate
3410
#define PWM_ENUPD_ENUPD3_LSYNC 0x00000080 // Locally Synchronized
3411
#define PWM_ENUPD_ENUPD3_GSYNC 0x000000C0 // Globally Synchronized
3412
#define PWM_ENUPD_ENUPD2_M 0x00000030 // MnPWM2 Enable Update Mode
3413
#define PWM_ENUPD_ENUPD2_IMM 0x00000000 // Immediate
3414
#define PWM_ENUPD_ENUPD2_LSYNC 0x00000020 // Locally Synchronized
3415
#define PWM_ENUPD_ENUPD2_GSYNC 0x00000030 // Globally Synchronized
3416
#define PWM_ENUPD_ENUPD1_M 0x0000000C // MnPWM1 Enable Update Mode
3417
#define PWM_ENUPD_ENUPD1_IMM 0x00000000 // Immediate
3418
#define PWM_ENUPD_ENUPD1_LSYNC 0x00000008 // Locally Synchronized
3419
#define PWM_ENUPD_ENUPD1_GSYNC 0x0000000C // Globally Synchronized
3420
#define PWM_ENUPD_ENUPD0_M 0x00000003 // MnPWM0 Enable Update Mode
3421
#define PWM_ENUPD_ENUPD0_IMM 0x00000000 // Immediate
3422
#define PWM_ENUPD_ENUPD0_LSYNC 0x00000002 // Locally Synchronized
3423
#define PWM_ENUPD_ENUPD0_GSYNC 0x00000003 // Globally Synchronized
3424
3425
//*****************************************************************************
3426
//
3427
// The following are defines for the bit fields in the PWM_O_0_CTL register.
3428
//
3429
//*****************************************************************************
3430
#define PWM_0_CTL_LATCH 0x00040000 // Latch Fault Input
3431
#define PWM_0_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
3432
#define PWM_0_CTL_FLTSRC 0x00010000 // Fault Condition Source
3433
#define PWM_0_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
3434
#define PWM_0_CTL_DBFALLUPD_I 0x00000000 // Immediate
3435
#define PWM_0_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
3436
#define PWM_0_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
3437
#define PWM_0_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
3438
#define PWM_0_CTL_DBRISEUPD_I 0x00000000 // Immediate
3439
#define PWM_0_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
3440
#define PWM_0_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
3441
#define PWM_0_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
3442
#define PWM_0_CTL_DBCTLUPD_I 0x00000000 // Immediate
3443
#define PWM_0_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
3444
#define PWM_0_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
3445
#define PWM_0_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
3446
#define PWM_0_CTL_GENBUPD_I 0x00000000 // Immediate
3447
#define PWM_0_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
3448
#define PWM_0_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
3449
#define PWM_0_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
3450
#define PWM_0_CTL_GENAUPD_I 0x00000000 // Immediate
3451
#define PWM_0_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
3452
#define PWM_0_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
3453
#define PWM_0_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
3454
#define PWM_0_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
3455
#define PWM_0_CTL_LOADUPD 0x00000008 // Load Register Update Mode
3456
#define PWM_0_CTL_DEBUG 0x00000004 // Debug Mode
3457
#define PWM_0_CTL_MODE 0x00000002 // Counter Mode
3458
#define PWM_0_CTL_ENABLE 0x00000001 // PWM Block Enable
3459
3460
//*****************************************************************************
3461
//
3462
// The following are defines for the bit fields in the PWM_O_0_INTEN register.
3463
//
3464
//*****************************************************************************
3465
#define PWM_0_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
3466
// Down
3467
#define PWM_0_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
3468
#define PWM_0_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
3469
// Down
3470
#define PWM_0_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
3471
#define PWM_0_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
3472
#define PWM_0_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
3473
#define PWM_0_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
3474
// Down
3475
#define PWM_0_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
3476
// Up
3477
#define PWM_0_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
3478
// Down
3479
#define PWM_0_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
3480
// Up
3481
#define PWM_0_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
3482
#define PWM_0_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
3483
3484
//*****************************************************************************
3485
//
3486
// The following are defines for the bit fields in the PWM_O_0_RIS register.
3487
//
3488
//*****************************************************************************
3489
#define PWM_0_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
3490
// Status
3491
#define PWM_0_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
3492
#define PWM_0_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
3493
// Status
3494
#define PWM_0_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
3495
#define PWM_0_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
3496
#define PWM_0_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
3497
3498
//*****************************************************************************
3499
//
3500
// The following are defines for the bit fields in the PWM_O_0_ISC register.
3501
//
3502
//*****************************************************************************
3503
#define PWM_0_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
3504
#define PWM_0_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
3505
#define PWM_0_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
3506
#define PWM_0_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
3507
#define PWM_0_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
3508
#define PWM_0_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
3509
3510
//*****************************************************************************
3511
//
3512
// The following are defines for the bit fields in the PWM_O_0_LOAD register.
3513
//
3514
//*****************************************************************************
3515
#define PWM_0_LOAD_M 0x0000FFFF // Counter Load Value
3516
#define PWM_0_LOAD_S 0
3517
3518
//*****************************************************************************
3519
//
3520
// The following are defines for the bit fields in the PWM_O_0_COUNT register.
3521
//
3522
//*****************************************************************************
3523
#define PWM_0_COUNT_M 0x0000FFFF // Counter Value
3524
#define PWM_0_COUNT_S 0
3525
3526
//*****************************************************************************
3527
//
3528
// The following are defines for the bit fields in the PWM_O_0_CMPA register.
3529
//
3530
//*****************************************************************************
3531
#define PWM_0_CMPA_M 0x0000FFFF // Comparator A Value
3532
#define PWM_0_CMPA_S 0
3533
3534
//*****************************************************************************
3535
//
3536
// The following are defines for the bit fields in the PWM_O_0_CMPB register.
3537
//
3538
//*****************************************************************************
3539
#define PWM_0_CMPB_M 0x0000FFFF // Comparator B Value
3540
#define PWM_0_CMPB_S 0
3541
3542
//*****************************************************************************
3543
//
3544
// The following are defines for the bit fields in the PWM_O_0_GENA register.
3545
//
3546
//*****************************************************************************
3547
#define PWM_0_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
3548
#define PWM_0_GENA_ACTCMPBD_NONE \
3549
0x00000000 // Do nothing
3550
#define PWM_0_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
3551
#define PWM_0_GENA_ACTCMPBD_ZERO \
3552
0x00000800 // Drive pwmA Low
3553
#define PWM_0_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
3554
#define PWM_0_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
3555
#define PWM_0_GENA_ACTCMPBU_NONE \
3556
0x00000000 // Do nothing
3557
#define PWM_0_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
3558
#define PWM_0_GENA_ACTCMPBU_ZERO \
3559
0x00000200 // Drive pwmA Low
3560
#define PWM_0_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
3561
#define PWM_0_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
3562
#define PWM_0_GENA_ACTCMPAD_NONE \
3563
0x00000000 // Do nothing
3564
#define PWM_0_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
3565
#define PWM_0_GENA_ACTCMPAD_ZERO \
3566
0x00000080 // Drive pwmA Low
3567
#define PWM_0_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
3568
#define PWM_0_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
3569
#define PWM_0_GENA_ACTCMPAU_NONE \
3570
0x00000000 // Do nothing
3571
#define PWM_0_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
3572
#define PWM_0_GENA_ACTCMPAU_ZERO \
3573
0x00000020 // Drive pwmA Low
3574
#define PWM_0_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
3575
#define PWM_0_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
3576
#define PWM_0_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
3577
#define PWM_0_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
3578
#define PWM_0_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
3579
#define PWM_0_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
3580
#define PWM_0_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
3581
#define PWM_0_GENA_ACTZERO_NONE 0x00000000 // Do nothing
3582
#define PWM_0_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
3583
#define PWM_0_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
3584
#define PWM_0_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
3585
3586
//*****************************************************************************
3587
//
3588
// The following are defines for the bit fields in the PWM_O_0_GENB register.
3589
//
3590
//*****************************************************************************
3591
#define PWM_0_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
3592
#define PWM_0_GENB_ACTCMPBD_NONE \
3593
0x00000000 // Do nothing
3594
#define PWM_0_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
3595
#define PWM_0_GENB_ACTCMPBD_ZERO \
3596
0x00000800 // Drive pwmB Low
3597
#define PWM_0_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
3598
#define PWM_0_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
3599
#define PWM_0_GENB_ACTCMPBU_NONE \
3600
0x00000000 // Do nothing
3601
#define PWM_0_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
3602
#define PWM_0_GENB_ACTCMPBU_ZERO \
3603
0x00000200 // Drive pwmB Low
3604
#define PWM_0_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
3605
#define PWM_0_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
3606
#define PWM_0_GENB_ACTCMPAD_NONE \
3607
0x00000000 // Do nothing
3608
#define PWM_0_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
3609
#define PWM_0_GENB_ACTCMPAD_ZERO \
3610
0x00000080 // Drive pwmB Low
3611
#define PWM_0_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
3612
#define PWM_0_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
3613
#define PWM_0_GENB_ACTCMPAU_NONE \
3614
0x00000000 // Do nothing
3615
#define PWM_0_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
3616
#define PWM_0_GENB_ACTCMPAU_ZERO \
3617
0x00000020 // Drive pwmB Low
3618
#define PWM_0_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
3619
#define PWM_0_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
3620
#define PWM_0_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
3621
#define PWM_0_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
3622
#define PWM_0_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
3623
#define PWM_0_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
3624
#define PWM_0_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
3625
#define PWM_0_GENB_ACTZERO_NONE 0x00000000 // Do nothing
3626
#define PWM_0_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
3627
#define PWM_0_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
3628
#define PWM_0_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
3629
3630
//*****************************************************************************
3631
//
3632
// The following are defines for the bit fields in the PWM_O_0_DBCTL register.
3633
//
3634
//*****************************************************************************
3635
#define PWM_0_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
3636
3637
//*****************************************************************************
3638
//
3639
// The following are defines for the bit fields in the PWM_O_0_DBRISE register.
3640
//
3641
//*****************************************************************************
3642
#define PWM_0_DBRISE_DELAY_M 0x00000FFF // Dead-Band Rise Delay
3643
#define PWM_0_DBRISE_DELAY_S 0
3644
3645
//*****************************************************************************
3646
//
3647
// The following are defines for the bit fields in the PWM_O_0_DBFALL register.
3648
//
3649
//*****************************************************************************
3650
#define PWM_0_DBFALL_DELAY_M 0x00000FFF // Dead-Band Fall Delay
3651
#define PWM_0_DBFALL_DELAY_S 0
3652
3653
//*****************************************************************************
3654
//
3655
// The following are defines for the bit fields in the PWM_O_0_FLTSRC0
3656
// register.
3657
//
3658
//*****************************************************************************
3659
#define PWM_0_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
3660
#define PWM_0_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
3661
3662
//*****************************************************************************
3663
//
3664
// The following are defines for the bit fields in the PWM_O_0_FLTSRC1
3665
// register.
3666
//
3667
//*****************************************************************************
3668
#define PWM_0_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
3669
#define PWM_0_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
3670
#define PWM_0_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
3671
#define PWM_0_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
3672
#define PWM_0_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
3673
#define PWM_0_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
3674
#define PWM_0_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
3675
#define PWM_0_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
3676
3677
//*****************************************************************************
3678
//
3679
// The following are defines for the bit fields in the PWM_O_0_MINFLTPER
3680
// register.
3681
//
3682
//*****************************************************************************
3683
#define PWM_0_MINFLTPER_M 0x0000FFFF // Minimum Fault Period
3684
#define PWM_0_MINFLTPER_S 0
3685
3686
//*****************************************************************************
3687
//
3688
// The following are defines for the bit fields in the PWM_O_1_CTL register.
3689
//
3690
//*****************************************************************************
3691
#define PWM_1_CTL_LATCH 0x00040000 // Latch Fault Input
3692
#define PWM_1_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
3693
#define PWM_1_CTL_FLTSRC 0x00010000 // Fault Condition Source
3694
#define PWM_1_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
3695
#define PWM_1_CTL_DBFALLUPD_I 0x00000000 // Immediate
3696
#define PWM_1_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
3697
#define PWM_1_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
3698
#define PWM_1_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
3699
#define PWM_1_CTL_DBRISEUPD_I 0x00000000 // Immediate
3700
#define PWM_1_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
3701
#define PWM_1_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
3702
#define PWM_1_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
3703
#define PWM_1_CTL_DBCTLUPD_I 0x00000000 // Immediate
3704
#define PWM_1_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
3705
#define PWM_1_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
3706
#define PWM_1_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
3707
#define PWM_1_CTL_GENBUPD_I 0x00000000 // Immediate
3708
#define PWM_1_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
3709
#define PWM_1_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
3710
#define PWM_1_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
3711
#define PWM_1_CTL_GENAUPD_I 0x00000000 // Immediate
3712
#define PWM_1_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
3713
#define PWM_1_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
3714
#define PWM_1_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
3715
#define PWM_1_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
3716
#define PWM_1_CTL_LOADUPD 0x00000008 // Load Register Update Mode
3717
#define PWM_1_CTL_DEBUG 0x00000004 // Debug Mode
3718
#define PWM_1_CTL_MODE 0x00000002 // Counter Mode
3719
#define PWM_1_CTL_ENABLE 0x00000001 // PWM Block Enable
3720
3721
//*****************************************************************************
3722
//
3723
// The following are defines for the bit fields in the PWM_O_1_INTEN register.
3724
//
3725
//*****************************************************************************
3726
#define PWM_1_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
3727
// Down
3728
#define PWM_1_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
3729
#define PWM_1_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
3730
// Down
3731
#define PWM_1_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
3732
#define PWM_1_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
3733
#define PWM_1_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
3734
#define PWM_1_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
3735
// Down
3736
#define PWM_1_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
3737
// Up
3738
#define PWM_1_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
3739
// Down
3740
#define PWM_1_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
3741
// Up
3742
#define PWM_1_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
3743
#define PWM_1_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
3744
3745
//*****************************************************************************
3746
//
3747
// The following are defines for the bit fields in the PWM_O_1_RIS register.
3748
//
3749
//*****************************************************************************
3750
#define PWM_1_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
3751
// Status
3752
#define PWM_1_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
3753
#define PWM_1_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
3754
// Status
3755
#define PWM_1_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
3756
#define PWM_1_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
3757
#define PWM_1_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
3758
3759
//*****************************************************************************
3760
//
3761
// The following are defines for the bit fields in the PWM_O_1_ISC register.
3762
//
3763
//*****************************************************************************
3764
#define PWM_1_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
3765
#define PWM_1_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
3766
#define PWM_1_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
3767
#define PWM_1_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
3768
#define PWM_1_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
3769
#define PWM_1_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
3770
3771
//*****************************************************************************
3772
//
3773
// The following are defines for the bit fields in the PWM_O_1_LOAD register.
3774
//
3775
//*****************************************************************************
3776
#define PWM_1_LOAD_LOAD_M 0x0000FFFF // Counter Load Value
3777
#define PWM_1_LOAD_LOAD_S 0
3778
3779
//*****************************************************************************
3780
//
3781
// The following are defines for the bit fields in the PWM_O_1_COUNT register.
3782
//
3783
//*****************************************************************************
3784
#define PWM_1_COUNT_COUNT_M 0x0000FFFF // Counter Value
3785
#define PWM_1_COUNT_COUNT_S 0
3786
3787
//*****************************************************************************
3788
//
3789
// The following are defines for the bit fields in the PWM_O_1_CMPA register.
3790
//
3791
//*****************************************************************************
3792
#define PWM_1_CMPA_COMPA_M 0x0000FFFF // Comparator A Value
3793
#define PWM_1_CMPA_COMPA_S 0
3794
3795
//*****************************************************************************
3796
//
3797
// The following are defines for the bit fields in the PWM_O_1_CMPB register.
3798
//
3799
//*****************************************************************************
3800
#define PWM_1_CMPB_COMPB_M 0x0000FFFF // Comparator B Value
3801
#define PWM_1_CMPB_COMPB_S 0
3802
3803
//*****************************************************************************
3804
//
3805
// The following are defines for the bit fields in the PWM_O_1_GENA register.
3806
//
3807
//*****************************************************************************
3808
#define PWM_1_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
3809
#define PWM_1_GENA_ACTCMPBD_NONE \
3810
0x00000000 // Do nothing
3811
#define PWM_1_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
3812
#define PWM_1_GENA_ACTCMPBD_ZERO \
3813
0x00000800 // Drive pwmA Low
3814
#define PWM_1_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
3815
#define PWM_1_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
3816
#define PWM_1_GENA_ACTCMPBU_NONE \
3817
0x00000000 // Do nothing
3818
#define PWM_1_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
3819
#define PWM_1_GENA_ACTCMPBU_ZERO \
3820
0x00000200 // Drive pwmA Low
3821
#define PWM_1_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
3822
#define PWM_1_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
3823
#define PWM_1_GENA_ACTCMPAD_NONE \
3824
0x00000000 // Do nothing
3825
#define PWM_1_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
3826
#define PWM_1_GENA_ACTCMPAD_ZERO \
3827
0x00000080 // Drive pwmA Low
3828
#define PWM_1_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
3829
#define PWM_1_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
3830
#define PWM_1_GENA_ACTCMPAU_NONE \
3831
0x00000000 // Do nothing
3832
#define PWM_1_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
3833
#define PWM_1_GENA_ACTCMPAU_ZERO \
3834
0x00000020 // Drive pwmA Low
3835
#define PWM_1_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
3836
#define PWM_1_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
3837
#define PWM_1_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
3838
#define PWM_1_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
3839
#define PWM_1_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
3840
#define PWM_1_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
3841
#define PWM_1_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
3842
#define PWM_1_GENA_ACTZERO_NONE 0x00000000 // Do nothing
3843
#define PWM_1_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
3844
#define PWM_1_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
3845
#define PWM_1_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
3846
3847
//*****************************************************************************
3848
//
3849
// The following are defines for the bit fields in the PWM_O_1_GENB register.
3850
//
3851
//*****************************************************************************
3852
#define PWM_1_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
3853
#define PWM_1_GENB_ACTCMPBD_NONE \
3854
0x00000000 // Do nothing
3855
#define PWM_1_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
3856
#define PWM_1_GENB_ACTCMPBD_ZERO \
3857
0x00000800 // Drive pwmB Low
3858
#define PWM_1_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
3859
#define PWM_1_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
3860
#define PWM_1_GENB_ACTCMPBU_NONE \
3861
0x00000000 // Do nothing
3862
#define PWM_1_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
3863
#define PWM_1_GENB_ACTCMPBU_ZERO \
3864
0x00000200 // Drive pwmB Low
3865
#define PWM_1_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
3866
#define PWM_1_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
3867
#define PWM_1_GENB_ACTCMPAD_NONE \
3868
0x00000000 // Do nothing
3869
#define PWM_1_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
3870
#define PWM_1_GENB_ACTCMPAD_ZERO \
3871
0x00000080 // Drive pwmB Low
3872
#define PWM_1_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
3873
#define PWM_1_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
3874
#define PWM_1_GENB_ACTCMPAU_NONE \
3875
0x00000000 // Do nothing
3876
#define PWM_1_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
3877
#define PWM_1_GENB_ACTCMPAU_ZERO \
3878
0x00000020 // Drive pwmB Low
3879
#define PWM_1_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
3880
#define PWM_1_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
3881
#define PWM_1_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
3882
#define PWM_1_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
3883
#define PWM_1_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
3884
#define PWM_1_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
3885
#define PWM_1_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
3886
#define PWM_1_GENB_ACTZERO_NONE 0x00000000 // Do nothing
3887
#define PWM_1_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
3888
#define PWM_1_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
3889
#define PWM_1_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
3890
3891
//*****************************************************************************
3892
//
3893
// The following are defines for the bit fields in the PWM_O_1_DBCTL register.
3894
//
3895
//*****************************************************************************
3896
#define PWM_1_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
3897
3898
//*****************************************************************************
3899
//
3900
// The following are defines for the bit fields in the PWM_O_1_DBRISE register.
3901
//
3902
//*****************************************************************************
3903
#define PWM_1_DBRISE_RISEDELAY_M \
3904
0x00000FFF // Dead-Band Rise Delay
3905
#define PWM_1_DBRISE_RISEDELAY_S \
3906
0
3907
3908
//*****************************************************************************
3909
//
3910
// The following are defines for the bit fields in the PWM_O_1_DBFALL register.
3911
//
3912
//*****************************************************************************
3913
#define PWM_1_DBFALL_FALLDELAY_M \
3914
0x00000FFF // Dead-Band Fall Delay
3915
#define PWM_1_DBFALL_FALLDELAY_S \
3916
0
3917
3918
//*****************************************************************************
3919
//
3920
// The following are defines for the bit fields in the PWM_O_1_FLTSRC0
3921
// register.
3922
//
3923
//*****************************************************************************
3924
#define PWM_1_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
3925
#define PWM_1_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
3926
3927
//*****************************************************************************
3928
//
3929
// The following are defines for the bit fields in the PWM_O_1_FLTSRC1
3930
// register.
3931
//
3932
//*****************************************************************************
3933
#define PWM_1_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
3934
#define PWM_1_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
3935
#define PWM_1_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
3936
#define PWM_1_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
3937
#define PWM_1_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
3938
#define PWM_1_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
3939
#define PWM_1_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
3940
#define PWM_1_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
3941
3942
//*****************************************************************************
3943
//
3944
// The following are defines for the bit fields in the PWM_O_1_MINFLTPER
3945
// register.
3946
//
3947
//*****************************************************************************
3948
#define PWM_1_MINFLTPER_MFP_M 0x0000FFFF // Minimum Fault Period
3949
#define PWM_1_MINFLTPER_MFP_S 0
3950
3951
//*****************************************************************************
3952
//
3953
// The following are defines for the bit fields in the PWM_O_2_CTL register.
3954
//
3955
//*****************************************************************************
3956
#define PWM_2_CTL_LATCH 0x00040000 // Latch Fault Input
3957
#define PWM_2_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
3958
#define PWM_2_CTL_FLTSRC 0x00010000 // Fault Condition Source
3959
#define PWM_2_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
3960
#define PWM_2_CTL_DBFALLUPD_I 0x00000000 // Immediate
3961
#define PWM_2_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
3962
#define PWM_2_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
3963
#define PWM_2_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
3964
#define PWM_2_CTL_DBRISEUPD_I 0x00000000 // Immediate
3965
#define PWM_2_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
3966
#define PWM_2_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
3967
#define PWM_2_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
3968
#define PWM_2_CTL_DBCTLUPD_I 0x00000000 // Immediate
3969
#define PWM_2_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
3970
#define PWM_2_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
3971
#define PWM_2_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
3972
#define PWM_2_CTL_GENBUPD_I 0x00000000 // Immediate
3973
#define PWM_2_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
3974
#define PWM_2_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
3975
#define PWM_2_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
3976
#define PWM_2_CTL_GENAUPD_I 0x00000000 // Immediate
3977
#define PWM_2_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
3978
#define PWM_2_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
3979
#define PWM_2_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
3980
#define PWM_2_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
3981
#define PWM_2_CTL_LOADUPD 0x00000008 // Load Register Update Mode
3982
#define PWM_2_CTL_DEBUG 0x00000004 // Debug Mode
3983
#define PWM_2_CTL_MODE 0x00000002 // Counter Mode
3984
#define PWM_2_CTL_ENABLE 0x00000001 // PWM Block Enable
3985
3986
//*****************************************************************************
3987
//
3988
// The following are defines for the bit fields in the PWM_O_2_INTEN register.
3989
//
3990
//*****************************************************************************
3991
#define PWM_2_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
3992
// Down
3993
#define PWM_2_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
3994
#define PWM_2_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
3995
// Down
3996
#define PWM_2_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
3997
#define PWM_2_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
3998
#define PWM_2_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
3999
#define PWM_2_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
4000
// Down
4001
#define PWM_2_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
4002
// Up
4003
#define PWM_2_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
4004
// Down
4005
#define PWM_2_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
4006
// Up
4007
#define PWM_2_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
4008
#define PWM_2_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
4009
4010
//*****************************************************************************
4011
//
4012
// The following are defines for the bit fields in the PWM_O_2_RIS register.
4013
//
4014
//*****************************************************************************
4015
#define PWM_2_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
4016
// Status
4017
#define PWM_2_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
4018
#define PWM_2_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
4019
// Status
4020
#define PWM_2_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
4021
#define PWM_2_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
4022
#define PWM_2_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
4023
4024
//*****************************************************************************
4025
//
4026
// The following are defines for the bit fields in the PWM_O_2_ISC register.
4027
//
4028
//*****************************************************************************
4029
#define PWM_2_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
4030
#define PWM_2_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
4031
#define PWM_2_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
4032
#define PWM_2_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
4033
#define PWM_2_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
4034
#define PWM_2_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
4035
4036
//*****************************************************************************
4037
//
4038
// The following are defines for the bit fields in the PWM_O_2_LOAD register.
4039
//
4040
//*****************************************************************************
4041
#define PWM_2_LOAD_LOAD_M 0x0000FFFF // Counter Load Value
4042
#define PWM_2_LOAD_LOAD_S 0
4043
4044
//*****************************************************************************
4045
//
4046
// The following are defines for the bit fields in the PWM_O_2_COUNT register.
4047
//
4048
//*****************************************************************************
4049
#define PWM_2_COUNT_COUNT_M 0x0000FFFF // Counter Value
4050
#define PWM_2_COUNT_COUNT_S 0
4051
4052
//*****************************************************************************
4053
//
4054
// The following are defines for the bit fields in the PWM_O_2_CMPA register.
4055
//
4056
//*****************************************************************************
4057
#define PWM_2_CMPA_COMPA_M 0x0000FFFF // Comparator A Value
4058
#define PWM_2_CMPA_COMPA_S 0
4059
4060
//*****************************************************************************
4061
//
4062
// The following are defines for the bit fields in the PWM_O_2_CMPB register.
4063
//
4064
//*****************************************************************************
4065
#define PWM_2_CMPB_COMPB_M 0x0000FFFF // Comparator B Value
4066
#define PWM_2_CMPB_COMPB_S 0
4067
4068
//*****************************************************************************
4069
//
4070
// The following are defines for the bit fields in the PWM_O_2_GENA register.
4071
//
4072
//*****************************************************************************
4073
#define PWM_2_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
4074
#define PWM_2_GENA_ACTCMPBD_NONE \
4075
0x00000000 // Do nothing
4076
#define PWM_2_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
4077
#define PWM_2_GENA_ACTCMPBD_ZERO \
4078
0x00000800 // Drive pwmA Low
4079
#define PWM_2_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
4080
#define PWM_2_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
4081
#define PWM_2_GENA_ACTCMPBU_NONE \
4082
0x00000000 // Do nothing
4083
#define PWM_2_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
4084
#define PWM_2_GENA_ACTCMPBU_ZERO \
4085
0x00000200 // Drive pwmA Low
4086
#define PWM_2_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
4087
#define PWM_2_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
4088
#define PWM_2_GENA_ACTCMPAD_NONE \
4089
0x00000000 // Do nothing
4090
#define PWM_2_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
4091
#define PWM_2_GENA_ACTCMPAD_ZERO \
4092
0x00000080 // Drive pwmA Low
4093
#define PWM_2_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
4094
#define PWM_2_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
4095
#define PWM_2_GENA_ACTCMPAU_NONE \
4096
0x00000000 // Do nothing
4097
#define PWM_2_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
4098
#define PWM_2_GENA_ACTCMPAU_ZERO \
4099
0x00000020 // Drive pwmA Low
4100
#define PWM_2_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
4101
#define PWM_2_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
4102
#define PWM_2_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
4103
#define PWM_2_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
4104
#define PWM_2_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
4105
#define PWM_2_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
4106
#define PWM_2_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
4107
#define PWM_2_GENA_ACTZERO_NONE 0x00000000 // Do nothing
4108
#define PWM_2_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
4109
#define PWM_2_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
4110
#define PWM_2_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
4111
4112
//*****************************************************************************
4113
//
4114
// The following are defines for the bit fields in the PWM_O_2_GENB register.
4115
//
4116
//*****************************************************************************
4117
#define PWM_2_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
4118
#define PWM_2_GENB_ACTCMPBD_NONE \
4119
0x00000000 // Do nothing
4120
#define PWM_2_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
4121
#define PWM_2_GENB_ACTCMPBD_ZERO \
4122
0x00000800 // Drive pwmB Low
4123
#define PWM_2_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
4124
#define PWM_2_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
4125
#define PWM_2_GENB_ACTCMPBU_NONE \
4126
0x00000000 // Do nothing
4127
#define PWM_2_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
4128
#define PWM_2_GENB_ACTCMPBU_ZERO \
4129
0x00000200 // Drive pwmB Low
4130
#define PWM_2_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
4131
#define PWM_2_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
4132
#define PWM_2_GENB_ACTCMPAD_NONE \
4133
0x00000000 // Do nothing
4134
#define PWM_2_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
4135
#define PWM_2_GENB_ACTCMPAD_ZERO \
4136
0x00000080 // Drive pwmB Low
4137
#define PWM_2_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
4138
#define PWM_2_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
4139
#define PWM_2_GENB_ACTCMPAU_NONE \
4140
0x00000000 // Do nothing
4141
#define PWM_2_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
4142
#define PWM_2_GENB_ACTCMPAU_ZERO \
4143
0x00000020 // Drive pwmB Low
4144
#define PWM_2_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
4145
#define PWM_2_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
4146
#define PWM_2_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
4147
#define PWM_2_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
4148
#define PWM_2_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
4149
#define PWM_2_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
4150
#define PWM_2_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
4151
#define PWM_2_GENB_ACTZERO_NONE 0x00000000 // Do nothing
4152
#define PWM_2_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
4153
#define PWM_2_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
4154
#define PWM_2_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
4155
4156
//*****************************************************************************
4157
//
4158
// The following are defines for the bit fields in the PWM_O_2_DBCTL register.
4159
//
4160
//*****************************************************************************
4161
#define PWM_2_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
4162
4163
//*****************************************************************************
4164
//
4165
// The following are defines for the bit fields in the PWM_O_2_DBRISE register.
4166
//
4167
//*****************************************************************************
4168
#define PWM_2_DBRISE_RISEDELAY_M \
4169
0x00000FFF // Dead-Band Rise Delay
4170
#define PWM_2_DBRISE_RISEDELAY_S \
4171
0
4172
4173
//*****************************************************************************
4174
//
4175
// The following are defines for the bit fields in the PWM_O_2_DBFALL register.
4176
//
4177
//*****************************************************************************
4178
#define PWM_2_DBFALL_FALLDELAY_M \
4179
0x00000FFF // Dead-Band Fall Delay
4180
#define PWM_2_DBFALL_FALLDELAY_S \
4181
0
4182
4183
//*****************************************************************************
4184
//
4185
// The following are defines for the bit fields in the PWM_O_2_FLTSRC0
4186
// register.
4187
//
4188
//*****************************************************************************
4189
#define PWM_2_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
4190
#define PWM_2_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
4191
4192
//*****************************************************************************
4193
//
4194
// The following are defines for the bit fields in the PWM_O_2_FLTSRC1
4195
// register.
4196
//
4197
//*****************************************************************************
4198
#define PWM_2_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
4199
#define PWM_2_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
4200
#define PWM_2_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
4201
#define PWM_2_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
4202
#define PWM_2_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
4203
#define PWM_2_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
4204
#define PWM_2_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
4205
#define PWM_2_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
4206
4207
//*****************************************************************************
4208
//
4209
// The following are defines for the bit fields in the PWM_O_2_MINFLTPER
4210
// register.
4211
//
4212
//*****************************************************************************
4213
#define PWM_2_MINFLTPER_MFP_M 0x0000FFFF // Minimum Fault Period
4214
#define PWM_2_MINFLTPER_MFP_S 0
4215
4216
//*****************************************************************************
4217
//
4218
// The following are defines for the bit fields in the PWM_O_3_CTL register.
4219
//
4220
//*****************************************************************************
4221
#define PWM_3_CTL_LATCH 0x00040000 // Latch Fault Input
4222
#define PWM_3_CTL_MINFLTPER 0x00020000 // Minimum Fault Period
4223
#define PWM_3_CTL_FLTSRC 0x00010000 // Fault Condition Source
4224
#define PWM_3_CTL_DBFALLUPD_M 0x0000C000 // PWMnDBFALL Update Mode
4225
#define PWM_3_CTL_DBFALLUPD_I 0x00000000 // Immediate
4226
#define PWM_3_CTL_DBFALLUPD_LS 0x00008000 // Locally Synchronized
4227
#define PWM_3_CTL_DBFALLUPD_GS 0x0000C000 // Globally Synchronized
4228
#define PWM_3_CTL_DBRISEUPD_M 0x00003000 // PWMnDBRISE Update Mode
4229
#define PWM_3_CTL_DBRISEUPD_I 0x00000000 // Immediate
4230
#define PWM_3_CTL_DBRISEUPD_LS 0x00002000 // Locally Synchronized
4231
#define PWM_3_CTL_DBRISEUPD_GS 0x00003000 // Globally Synchronized
4232
#define PWM_3_CTL_DBCTLUPD_M 0x00000C00 // PWMnDBCTL Update Mode
4233
#define PWM_3_CTL_DBCTLUPD_I 0x00000000 // Immediate
4234
#define PWM_3_CTL_DBCTLUPD_LS 0x00000800 // Locally Synchronized
4235
#define PWM_3_CTL_DBCTLUPD_GS 0x00000C00 // Globally Synchronized
4236
#define PWM_3_CTL_GENBUPD_M 0x00000300 // PWMnGENB Update Mode
4237
#define PWM_3_CTL_GENBUPD_I 0x00000000 // Immediate
4238
#define PWM_3_CTL_GENBUPD_LS 0x00000200 // Locally Synchronized
4239
#define PWM_3_CTL_GENBUPD_GS 0x00000300 // Globally Synchronized
4240
#define PWM_3_CTL_GENAUPD_M 0x000000C0 // PWMnGENA Update Mode
4241
#define PWM_3_CTL_GENAUPD_I 0x00000000 // Immediate
4242
#define PWM_3_CTL_GENAUPD_LS 0x00000080 // Locally Synchronized
4243
#define PWM_3_CTL_GENAUPD_GS 0x000000C0 // Globally Synchronized
4244
#define PWM_3_CTL_CMPBUPD 0x00000020 // Comparator B Update Mode
4245
#define PWM_3_CTL_CMPAUPD 0x00000010 // Comparator A Update Mode
4246
#define PWM_3_CTL_LOADUPD 0x00000008 // Load Register Update Mode
4247
#define PWM_3_CTL_DEBUG 0x00000004 // Debug Mode
4248
#define PWM_3_CTL_MODE 0x00000002 // Counter Mode
4249
#define PWM_3_CTL_ENABLE 0x00000001 // PWM Block Enable
4250
4251
//*****************************************************************************
4252
//
4253
// The following are defines for the bit fields in the PWM_O_3_INTEN register.
4254
//
4255
//*****************************************************************************
4256
#define PWM_3_INTEN_TRCMPBD 0x00002000 // Trigger for Counter=PWMnCMPB
4257
// Down
4258
#define PWM_3_INTEN_TRCMPBU 0x00001000 // Trigger for Counter=PWMnCMPB Up
4259
#define PWM_3_INTEN_TRCMPAD 0x00000800 // Trigger for Counter=PWMnCMPA
4260
// Down
4261
#define PWM_3_INTEN_TRCMPAU 0x00000400 // Trigger for Counter=PWMnCMPA Up
4262
#define PWM_3_INTEN_TRCNTLOAD 0x00000200 // Trigger for Counter=PWMnLOAD
4263
#define PWM_3_INTEN_TRCNTZERO 0x00000100 // Trigger for Counter=0
4264
#define PWM_3_INTEN_INTCMPBD 0x00000020 // Interrupt for Counter=PWMnCMPB
4265
// Down
4266
#define PWM_3_INTEN_INTCMPBU 0x00000010 // Interrupt for Counter=PWMnCMPB
4267
// Up
4268
#define PWM_3_INTEN_INTCMPAD 0x00000008 // Interrupt for Counter=PWMnCMPA
4269
// Down
4270
#define PWM_3_INTEN_INTCMPAU 0x00000004 // Interrupt for Counter=PWMnCMPA
4271
// Up
4272
#define PWM_3_INTEN_INTCNTLOAD 0x00000002 // Interrupt for Counter=PWMnLOAD
4273
#define PWM_3_INTEN_INTCNTZERO 0x00000001 // Interrupt for Counter=0
4274
4275
//*****************************************************************************
4276
//
4277
// The following are defines for the bit fields in the PWM_O_3_RIS register.
4278
//
4279
//*****************************************************************************
4280
#define PWM_3_RIS_INTCMPBD 0x00000020 // Comparator B Down Interrupt
4281
// Status
4282
#define PWM_3_RIS_INTCMPBU 0x00000010 // Comparator B Up Interrupt Status
4283
#define PWM_3_RIS_INTCMPAD 0x00000008 // Comparator A Down Interrupt
4284
// Status
4285
#define PWM_3_RIS_INTCMPAU 0x00000004 // Comparator A Up Interrupt Status
4286
#define PWM_3_RIS_INTCNTLOAD 0x00000002 // Counter=Load Interrupt Status
4287
#define PWM_3_RIS_INTCNTZERO 0x00000001 // Counter=0 Interrupt Status
4288
4289
//*****************************************************************************
4290
//
4291
// The following are defines for the bit fields in the PWM_O_3_ISC register.
4292
//
4293
//*****************************************************************************
4294
#define PWM_3_ISC_INTCMPBD 0x00000020 // Comparator B Down Interrupt
4295
#define PWM_3_ISC_INTCMPBU 0x00000010 // Comparator B Up Interrupt
4296
#define PWM_3_ISC_INTCMPAD 0x00000008 // Comparator A Down Interrupt
4297
#define PWM_3_ISC_INTCMPAU 0x00000004 // Comparator A Up Interrupt
4298
#define PWM_3_ISC_INTCNTLOAD 0x00000002 // Counter=Load Interrupt
4299
#define PWM_3_ISC_INTCNTZERO 0x00000001 // Counter=0 Interrupt
4300
4301
//*****************************************************************************
4302
//
4303
// The following are defines for the bit fields in the PWM_O_3_LOAD register.
4304
//
4305
//*****************************************************************************
4306
#define PWM_3_LOAD_LOAD_M 0x0000FFFF // Counter Load Value
4307
#define PWM_3_LOAD_LOAD_S 0
4308
4309
//*****************************************************************************
4310
//
4311
// The following are defines for the bit fields in the PWM_O_3_COUNT register.
4312
//
4313
//*****************************************************************************
4314
#define PWM_3_COUNT_COUNT_M 0x0000FFFF // Counter Value
4315
#define PWM_3_COUNT_COUNT_S 0
4316
4317
//*****************************************************************************
4318
//
4319
// The following are defines for the bit fields in the PWM_O_3_CMPA register.
4320
//
4321
//*****************************************************************************
4322
#define PWM_3_CMPA_COMPA_M 0x0000FFFF // Comparator A Value
4323
#define PWM_3_CMPA_COMPA_S 0
4324
4325
//*****************************************************************************
4326
//
4327
// The following are defines for the bit fields in the PWM_O_3_CMPB register.
4328
//
4329
//*****************************************************************************
4330
#define PWM_3_CMPB_COMPB_M 0x0000FFFF // Comparator B Value
4331
#define PWM_3_CMPB_COMPB_S 0
4332
4333
//*****************************************************************************
4334
//
4335
// The following are defines for the bit fields in the PWM_O_3_GENA register.
4336
//
4337
//*****************************************************************************
4338
#define PWM_3_GENA_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
4339
#define PWM_3_GENA_ACTCMPBD_NONE \
4340
0x00000000 // Do nothing
4341
#define PWM_3_GENA_ACTCMPBD_INV 0x00000400 // Invert pwmA
4342
#define PWM_3_GENA_ACTCMPBD_ZERO \
4343
0x00000800 // Drive pwmA Low
4344
#define PWM_3_GENA_ACTCMPBD_ONE 0x00000C00 // Drive pwmA High
4345
#define PWM_3_GENA_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
4346
#define PWM_3_GENA_ACTCMPBU_NONE \
4347
0x00000000 // Do nothing
4348
#define PWM_3_GENA_ACTCMPBU_INV 0x00000100 // Invert pwmA
4349
#define PWM_3_GENA_ACTCMPBU_ZERO \
4350
0x00000200 // Drive pwmA Low
4351
#define PWM_3_GENA_ACTCMPBU_ONE 0x00000300 // Drive pwmA High
4352
#define PWM_3_GENA_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
4353
#define PWM_3_GENA_ACTCMPAD_NONE \
4354
0x00000000 // Do nothing
4355
#define PWM_3_GENA_ACTCMPAD_INV 0x00000040 // Invert pwmA
4356
#define PWM_3_GENA_ACTCMPAD_ZERO \
4357
0x00000080 // Drive pwmA Low
4358
#define PWM_3_GENA_ACTCMPAD_ONE 0x000000C0 // Drive pwmA High
4359
#define PWM_3_GENA_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
4360
#define PWM_3_GENA_ACTCMPAU_NONE \
4361
0x00000000 // Do nothing
4362
#define PWM_3_GENA_ACTCMPAU_INV 0x00000010 // Invert pwmA
4363
#define PWM_3_GENA_ACTCMPAU_ZERO \
4364
0x00000020 // Drive pwmA Low
4365
#define PWM_3_GENA_ACTCMPAU_ONE 0x00000030 // Drive pwmA High
4366
#define PWM_3_GENA_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
4367
#define PWM_3_GENA_ACTLOAD_NONE 0x00000000 // Do nothing
4368
#define PWM_3_GENA_ACTLOAD_INV 0x00000004 // Invert pwmA
4369
#define PWM_3_GENA_ACTLOAD_ZERO 0x00000008 // Drive pwmA Low
4370
#define PWM_3_GENA_ACTLOAD_ONE 0x0000000C // Drive pwmA High
4371
#define PWM_3_GENA_ACTZERO_M 0x00000003 // Action for Counter=0
4372
#define PWM_3_GENA_ACTZERO_NONE 0x00000000 // Do nothing
4373
#define PWM_3_GENA_ACTZERO_INV 0x00000001 // Invert pwmA
4374
#define PWM_3_GENA_ACTZERO_ZERO 0x00000002 // Drive pwmA Low
4375
#define PWM_3_GENA_ACTZERO_ONE 0x00000003 // Drive pwmA High
4376
4377
//*****************************************************************************
4378
//
4379
// The following are defines for the bit fields in the PWM_O_3_GENB register.
4380
//
4381
//*****************************************************************************
4382
#define PWM_3_GENB_ACTCMPBD_M 0x00000C00 // Action for Comparator B Down
4383
#define PWM_3_GENB_ACTCMPBD_NONE \
4384
0x00000000 // Do nothing
4385
#define PWM_3_GENB_ACTCMPBD_INV 0x00000400 // Invert pwmB
4386
#define PWM_3_GENB_ACTCMPBD_ZERO \
4387
0x00000800 // Drive pwmB Low
4388
#define PWM_3_GENB_ACTCMPBD_ONE 0x00000C00 // Drive pwmB High
4389
#define PWM_3_GENB_ACTCMPBU_M 0x00000300 // Action for Comparator B Up
4390
#define PWM_3_GENB_ACTCMPBU_NONE \
4391
0x00000000 // Do nothing
4392
#define PWM_3_GENB_ACTCMPBU_INV 0x00000100 // Invert pwmB
4393
#define PWM_3_GENB_ACTCMPBU_ZERO \
4394
0x00000200 // Drive pwmB Low
4395
#define PWM_3_GENB_ACTCMPBU_ONE 0x00000300 // Drive pwmB High
4396
#define PWM_3_GENB_ACTCMPAD_M 0x000000C0 // Action for Comparator A Down
4397
#define PWM_3_GENB_ACTCMPAD_NONE \
4398
0x00000000 // Do nothing
4399
#define PWM_3_GENB_ACTCMPAD_INV 0x00000040 // Invert pwmB
4400
#define PWM_3_GENB_ACTCMPAD_ZERO \
4401
0x00000080 // Drive pwmB Low
4402
#define PWM_3_GENB_ACTCMPAD_ONE 0x000000C0 // Drive pwmB High
4403
#define PWM_3_GENB_ACTCMPAU_M 0x00000030 // Action for Comparator A Up
4404
#define PWM_3_GENB_ACTCMPAU_NONE \
4405
0x00000000 // Do nothing
4406
#define PWM_3_GENB_ACTCMPAU_INV 0x00000010 // Invert pwmB
4407
#define PWM_3_GENB_ACTCMPAU_ZERO \
4408
0x00000020 // Drive pwmB Low
4409
#define PWM_3_GENB_ACTCMPAU_ONE 0x00000030 // Drive pwmB High
4410
#define PWM_3_GENB_ACTLOAD_M 0x0000000C // Action for Counter=LOAD
4411
#define PWM_3_GENB_ACTLOAD_NONE 0x00000000 // Do nothing
4412
#define PWM_3_GENB_ACTLOAD_INV 0x00000004 // Invert pwmB
4413
#define PWM_3_GENB_ACTLOAD_ZERO 0x00000008 // Drive pwmB Low
4414
#define PWM_3_GENB_ACTLOAD_ONE 0x0000000C // Drive pwmB High
4415
#define PWM_3_GENB_ACTZERO_M 0x00000003 // Action for Counter=0
4416
#define PWM_3_GENB_ACTZERO_NONE 0x00000000 // Do nothing
4417
#define PWM_3_GENB_ACTZERO_INV 0x00000001 // Invert pwmB
4418
#define PWM_3_GENB_ACTZERO_ZERO 0x00000002 // Drive pwmB Low
4419
#define PWM_3_GENB_ACTZERO_ONE 0x00000003 // Drive pwmB High
4420
4421
//*****************************************************************************
4422
//
4423
// The following are defines for the bit fields in the PWM_O_3_DBCTL register.
4424
//
4425
//*****************************************************************************
4426
#define PWM_3_DBCTL_ENABLE 0x00000001 // Dead-Band Generator Enable
4427
4428
//*****************************************************************************
4429
//
4430
// The following are defines for the bit fields in the PWM_O_3_DBRISE register.
4431
//
4432
//*****************************************************************************
4433
#define PWM_3_DBRISE_RISEDELAY_M \
4434
0x00000FFF // Dead-Band Rise Delay
4435
#define PWM_3_DBRISE_RISEDELAY_S \
4436
0
4437
4438
//*****************************************************************************
4439
//
4440
// The following are defines for the bit fields in the PWM_O_3_DBFALL register.
4441
//
4442
//*****************************************************************************
4443
#define PWM_3_DBFALL_FALLDELAY_M \
4444
0x00000FFF // Dead-Band Fall Delay
4445
#define PWM_3_DBFALL_FALLDELAY_S \
4446
0
4447
4448
//*****************************************************************************
4449
//
4450
// The following are defines for the bit fields in the PWM_O_3_FLTSRC0
4451
// register.
4452
//
4453
//*****************************************************************************
4454
#define PWM_3_FLTSRC0_FAULT1 0x00000002 // Fault1 Input
4455
#define PWM_3_FLTSRC0_FAULT0 0x00000001 // Fault0 Input
4456
4457
//*****************************************************************************
4458
//
4459
// The following are defines for the bit fields in the PWM_O_3_FLTSRC1
4460
// register.
4461
//
4462
//*****************************************************************************
4463
#define PWM_3_FLTSRC1_DCMP7 0x00000080 // Digital Comparator 7
4464
#define PWM_3_FLTSRC1_DCMP6 0x00000040 // Digital Comparator 6
4465
#define PWM_3_FLTSRC1_DCMP5 0x00000020 // Digital Comparator 5
4466
#define PWM_3_FLTSRC1_DCMP4 0x00000010 // Digital Comparator 4
4467
#define PWM_3_FLTSRC1_DCMP3 0x00000008 // Digital Comparator 3
4468
#define PWM_3_FLTSRC1_DCMP2 0x00000004 // Digital Comparator 2
4469
#define PWM_3_FLTSRC1_DCMP1 0x00000002 // Digital Comparator 1
4470
#define PWM_3_FLTSRC1_DCMP0 0x00000001 // Digital Comparator 0
4471
4472
//*****************************************************************************
4473
//
4474
// The following are defines for the bit fields in the PWM_O_3_MINFLTPER
4475
// register.
4476
//
4477
//*****************************************************************************
4478
#define PWM_3_MINFLTPER_MFP_M 0x0000FFFF // Minimum Fault Period
4479
#define PWM_3_MINFLTPER_MFP_S 0
4480
4481
//*****************************************************************************
4482
//
4483
// The following are defines for the bit fields in the PWM_O_0_FLTSEN register.
4484
//
4485
//*****************************************************************************
4486
#define PWM_0_FLTSEN_FAULT1 0x00000002 // Fault1 Sense
4487
#define PWM_0_FLTSEN_FAULT0 0x00000001 // Fault0 Sense
4488
4489
//*****************************************************************************
4490
//
4491
// The following are defines for the bit fields in the PWM_O_0_FLTSTAT0
4492
// register.
4493
//
4494
//*****************************************************************************
4495
#define PWM_0_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
4496
#define PWM_0_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
4497
4498
//*****************************************************************************
4499
//
4500
// The following are defines for the bit fields in the PWM_O_0_FLTSTAT1
4501
// register.
4502
//
4503
//*****************************************************************************
4504
#define PWM_0_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
4505
#define PWM_0_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
4506
#define PWM_0_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
4507
#define PWM_0_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
4508
#define PWM_0_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
4509
#define PWM_0_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
4510
#define PWM_0_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
4511
#define PWM_0_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
4512
4513
//*****************************************************************************
4514
//
4515
// The following are defines for the bit fields in the PWM_O_1_FLTSEN register.
4516
//
4517
//*****************************************************************************
4518
#define PWM_1_FLTSEN_FAULT1 0x00000002 // Fault1 Sense
4519
#define PWM_1_FLTSEN_FAULT0 0x00000001 // Fault0 Sense
4520
4521
//*****************************************************************************
4522
//
4523
// The following are defines for the bit fields in the PWM_O_1_FLTSTAT0
4524
// register.
4525
//
4526
//*****************************************************************************
4527
#define PWM_1_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
4528
#define PWM_1_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
4529
4530
//*****************************************************************************
4531
//
4532
// The following are defines for the bit fields in the PWM_O_1_FLTSTAT1
4533
// register.
4534
//
4535
//*****************************************************************************
4536
#define PWM_1_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
4537
#define PWM_1_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
4538
#define PWM_1_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
4539
#define PWM_1_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
4540
#define PWM_1_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
4541
#define PWM_1_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
4542
#define PWM_1_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
4543
#define PWM_1_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
4544
4545
//*****************************************************************************
4546
//
4547
// The following are defines for the bit fields in the PWM_O_2_FLTSTAT0
4548
// register.
4549
//
4550
//*****************************************************************************
4551
#define PWM_2_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
4552
#define PWM_2_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
4553
4554
//*****************************************************************************
4555
//
4556
// The following are defines for the bit fields in the PWM_O_2_FLTSTAT1
4557
// register.
4558
//
4559
//*****************************************************************************
4560
#define PWM_2_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
4561
#define PWM_2_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
4562
#define PWM_2_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
4563
#define PWM_2_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
4564
#define PWM_2_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
4565
#define PWM_2_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
4566
#define PWM_2_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
4567
#define PWM_2_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
4568
4569
//*****************************************************************************
4570
//
4571
// The following are defines for the bit fields in the PWM_O_3_FLTSTAT0
4572
// register.
4573
//
4574
//*****************************************************************************
4575
#define PWM_3_FLTSTAT0_FAULT1 0x00000002 // Fault Input 1
4576
#define PWM_3_FLTSTAT0_FAULT0 0x00000001 // Fault Input 0
4577
4578
//*****************************************************************************
4579
//
4580
// The following are defines for the bit fields in the PWM_O_3_FLTSTAT1
4581
// register.
4582
//
4583
//*****************************************************************************
4584
#define PWM_3_FLTSTAT1_DCMP7 0x00000080 // Digital Comparator 7 Trigger
4585
#define PWM_3_FLTSTAT1_DCMP6 0x00000040 // Digital Comparator 6 Trigger
4586
#define PWM_3_FLTSTAT1_DCMP5 0x00000020 // Digital Comparator 5 Trigger
4587
#define PWM_3_FLTSTAT1_DCMP4 0x00000010 // Digital Comparator 4 Trigger
4588
#define PWM_3_FLTSTAT1_DCMP3 0x00000008 // Digital Comparator 3 Trigger
4589
#define PWM_3_FLTSTAT1_DCMP2 0x00000004 // Digital Comparator 2 Trigger
4590
#define PWM_3_FLTSTAT1_DCMP1 0x00000002 // Digital Comparator 1 Trigger
4591
#define PWM_3_FLTSTAT1_DCMP0 0x00000001 // Digital Comparator 0 Trigger
4592
4593
//*****************************************************************************
4594
//
4595
// The following are defines for the bit fields in the PWM_O_PP register.
4596
//
4597
//*****************************************************************************
4598
#define PWM_PP_ONE 0x00000400 // One-Shot Mode
4599
#define PWM_PP_EFAULT 0x00000200 // Extended Fault
4600
#define PWM_PP_ESYNC 0x00000100 // Extended Synchronization
4601
#define PWM_PP_FCNT_M 0x000000F0 // Fault Inputs (per PWM unit)
4602
#define PWM_PP_GCNT_M 0x0000000F // Generators
4603
#define PWM_PP_FCNT_S 4
4604
#define PWM_PP_GCNT_S 0
4605
4606
//*****************************************************************************
4607
//
4608
// The following are defines for the bit fields in the QEI_O_CTL register.
4609
//
4610
//*****************************************************************************
4611
#define QEI_CTL_FILTCNT_M 0x000F0000 // Input Filter Prescale Count
4612
#define QEI_CTL_FILTEN 0x00002000 // Enable Input Filter
4613
#define QEI_CTL_STALLEN 0x00001000 // Stall QEI
4614
#define QEI_CTL_INVI 0x00000800 // Invert Index Pulse
4615
#define QEI_CTL_INVB 0x00000400 // Invert PhB
4616
#define QEI_CTL_INVA 0x00000200 // Invert PhA
4617
#define QEI_CTL_VELDIV_M 0x000001C0 // Predivide Velocity
4618
#define QEI_CTL_VELDIV_1 0x00000000 // QEI clock /1
4619
#define QEI_CTL_VELDIV_2 0x00000040 // QEI clock /2
4620
#define QEI_CTL_VELDIV_4 0x00000080 // QEI clock /4
4621
#define QEI_CTL_VELDIV_8 0x000000C0 // QEI clock /8
4622
#define QEI_CTL_VELDIV_16 0x00000100 // QEI clock /16
4623
#define QEI_CTL_VELDIV_32 0x00000140 // QEI clock /32
4624
#define QEI_CTL_VELDIV_64 0x00000180 // QEI clock /64
4625
#define QEI_CTL_VELDIV_128 0x000001C0 // QEI clock /128
4626
#define QEI_CTL_VELEN 0x00000020 // Capture Velocity
4627
#define QEI_CTL_RESMODE 0x00000010 // Reset Mode
4628
#define QEI_CTL_CAPMODE 0x00000008 // Capture Mode
4629
#define QEI_CTL_SIGMODE 0x00000004 // Signal Mode
4630
#define QEI_CTL_SWAP 0x00000002 // Swap Signals
4631
#define QEI_CTL_ENABLE 0x00000001 // Enable QEI
4632
#define QEI_CTL_FILTCNT_S 16
4633
4634
//*****************************************************************************
4635
//
4636
// The following are defines for the bit fields in the QEI_O_STAT register.
4637
//
4638
//*****************************************************************************
4639
#define QEI_STAT_DIRECTION 0x00000002 // Direction of Rotation
4640
#define QEI_STAT_ERROR 0x00000001 // Error Detected
4641
4642
//*****************************************************************************
4643
//
4644
// The following are defines for the bit fields in the QEI_O_POS register.
4645
//
4646
//*****************************************************************************
4647
#define QEI_POS_M 0xFFFFFFFF // Current Position Integrator
4648
// Value
4649
#define QEI_POS_S 0
4650
4651
//*****************************************************************************
4652
//
4653
// The following are defines for the bit fields in the QEI_O_MAXPOS register.
4654
//
4655
//*****************************************************************************
4656
#define QEI_MAXPOS_M 0xFFFFFFFF // Maximum Position Integrator
4657
// Value
4658
#define QEI_MAXPOS_S 0
4659
4660
//*****************************************************************************
4661
//
4662
// The following are defines for the bit fields in the QEI_O_LOAD register.
4663
//
4664
//*****************************************************************************
4665
#define QEI_LOAD_M 0xFFFFFFFF // Velocity Timer Load Value
4666
#define QEI_LOAD_S 0
4667
4668
//*****************************************************************************
4669
//
4670
// The following are defines for the bit fields in the QEI_O_TIME register.
4671
//
4672
//*****************************************************************************
4673
#define QEI_TIME_M 0xFFFFFFFF // Velocity Timer Current Value
4674
#define QEI_TIME_S 0
4675
4676
//*****************************************************************************
4677
//
4678
// The following are defines for the bit fields in the QEI_O_COUNT register.
4679
//
4680
//*****************************************************************************
4681
#define QEI_COUNT_M 0xFFFFFFFF // Velocity Pulse Count
4682
#define QEI_COUNT_S 0
4683
4684
//*****************************************************************************
4685
//
4686
// The following are defines for the bit fields in the QEI_O_SPEED register.
4687
//
4688
//*****************************************************************************
4689
#define QEI_SPEED_M 0xFFFFFFFF // Velocity
4690
#define QEI_SPEED_S 0
4691
4692
//*****************************************************************************
4693
//
4694
// The following are defines for the bit fields in the QEI_O_INTEN register.
4695
//
4696
//*****************************************************************************
4697
#define QEI_INTEN_ERROR 0x00000008 // Phase Error Interrupt Enable
4698
#define QEI_INTEN_DIR 0x00000004 // Direction Change Interrupt
4699
// Enable
4700
#define QEI_INTEN_TIMER 0x00000002 // Timer Expires Interrupt Enable
4701
#define QEI_INTEN_INDEX 0x00000001 // Index Pulse Detected Interrupt
4702
// Enable
4703
4704
//*****************************************************************************
4705
//
4706
// The following are defines for the bit fields in the QEI_O_RIS register.
4707
//
4708
//*****************************************************************************
4709
#define QEI_RIS_ERROR 0x00000008 // Phase Error Detected
4710
#define QEI_RIS_DIR 0x00000004 // Direction Change Detected
4711
#define QEI_RIS_TIMER 0x00000002 // Velocity Timer Expired
4712
#define QEI_RIS_INDEX 0x00000001 // Index Pulse Asserted
4713
4714
//*****************************************************************************
4715
//
4716
// The following are defines for the bit fields in the QEI_O_ISC register.
4717
//
4718
//*****************************************************************************
4719
#define QEI_ISC_ERROR 0x00000008 // Phase Error Interrupt
4720
#define QEI_ISC_DIR 0x00000004 // Direction Change Interrupt
4721
#define QEI_ISC_TIMER 0x00000002 // Velocity Timer Expired Interrupt
4722
#define QEI_ISC_INDEX 0x00000001 // Index Pulse Interrupt
4723
4724
//*****************************************************************************
4725
//
4726
// The following are defines for the bit fields in the TIMER_O_CFG register.
4727
//
4728
//*****************************************************************************
4729
#define TIMER_CFG_M 0x00000007 // GPTM Configuration
4730
#define TIMER_CFG_32_BIT_TIMER 0x00000000 // For a 16/32-bit timer, this
4731
// value selects the 32-bit timer
4732
// configuration
4733
#define TIMER_CFG_32_BIT_RTC 0x00000001 // For a 16/32-bit timer, this
4734
// value selects the 32-bit
4735
// real-time clock (RTC) counter
4736
// configuration
4737
#define TIMER_CFG_16_BIT 0x00000004 // For a 16/32-bit timer, this
4738
// value selects the 16-bit timer
4739
// configuration
4740
4741
//*****************************************************************************
4742
//
4743
// The following are defines for the bit fields in the TIMER_O_TAMR register.
4744
//
4745
//*****************************************************************************
4746
#define TIMER_TAMR_TAPLO 0x00000800 // GPTM Timer A PWM Legacy
4747
// Operation
4748
#define TIMER_TAMR_TAMRSU 0x00000400 // GPTM Timer A Match Register
4749
// Update
4750
#define TIMER_TAMR_TAPWMIE 0x00000200 // GPTM Timer A PWM Interrupt
4751
// Enable
4752
#define TIMER_TAMR_TAILD 0x00000100 // GPTM Timer A Interval Load Write
4753
#define TIMER_TAMR_TASNAPS 0x00000080 // GPTM Timer A Snap-Shot Mode
4754
#define TIMER_TAMR_TAWOT 0x00000040 // GPTM Timer A Wait-on-Trigger
4755
#define TIMER_TAMR_TAMIE 0x00000020 // GPTM Timer A Match Interrupt
4756
// Enable
4757
#define TIMER_TAMR_TACDIR 0x00000010 // GPTM Timer A Count Direction
4758
#define TIMER_TAMR_TAAMS 0x00000008 // GPTM Timer A Alternate Mode
4759
// Select
4760
#define TIMER_TAMR_TACMR 0x00000004 // GPTM Timer A Capture Mode
4761
#define TIMER_TAMR_TAMR_M 0x00000003 // GPTM Timer A Mode
4762
#define TIMER_TAMR_TAMR_1_SHOT 0x00000001 // One-Shot Timer mode
4763
#define TIMER_TAMR_TAMR_PERIOD 0x00000002 // Periodic Timer mode
4764
#define TIMER_TAMR_TAMR_CAP 0x00000003 // Capture mode
4765
4766
//*****************************************************************************
4767
//
4768
// The following are defines for the bit fields in the TIMER_O_TBMR register.
4769
//
4770
//*****************************************************************************
4771
#define TIMER_TBMR_TBPLO 0x00000800 // GPTM Timer B PWM Legacy
4772
// Operation
4773
#define TIMER_TBMR_TBMRSU 0x00000400 // GPTM Timer B Match Register
4774
// Update
4775
#define TIMER_TBMR_TBPWMIE 0x00000200 // GPTM Timer B PWM Interrupt
4776
// Enable
4777
#define TIMER_TBMR_TBILD 0x00000100 // GPTM Timer B Interval Load Write
4778
#define TIMER_TBMR_TBSNAPS 0x00000080 // GPTM Timer B Snap-Shot Mode
4779
#define TIMER_TBMR_TBWOT 0x00000040 // GPTM Timer B Wait-on-Trigger
4780
#define TIMER_TBMR_TBMIE 0x00000020 // GPTM Timer B Match Interrupt
4781
// Enable
4782
#define TIMER_TBMR_TBCDIR 0x00000010 // GPTM Timer B Count Direction
4783
#define TIMER_TBMR_TBAMS 0x00000008 // GPTM Timer B Alternate Mode
4784
// Select
4785
#define TIMER_TBMR_TBCMR 0x00000004 // GPTM Timer B Capture Mode
4786
#define TIMER_TBMR_TBMR_M 0x00000003 // GPTM Timer B Mode
4787
#define TIMER_TBMR_TBMR_1_SHOT 0x00000001 // One-Shot Timer mode
4788
#define TIMER_TBMR_TBMR_PERIOD 0x00000002 // Periodic Timer mode
4789
#define TIMER_TBMR_TBMR_CAP 0x00000003 // Capture mode
4790
4791
//*****************************************************************************
4792
//
4793
// The following are defines for the bit fields in the TIMER_O_CTL register.
4794
//
4795
//*****************************************************************************
4796
#define TIMER_CTL_TBPWML 0x00004000 // GPTM Timer B PWM Output Level
4797
#define TIMER_CTL_TBOTE 0x00002000 // GPTM Timer B Output Trigger
4798
// Enable
4799
#define TIMER_CTL_TBEVENT_M 0x00000C00 // GPTM Timer B Event Mode
4800
#define TIMER_CTL_TBEVENT_POS 0x00000000 // Positive edge
4801
#define TIMER_CTL_TBEVENT_NEG 0x00000400 // Negative edge
4802
#define TIMER_CTL_TBEVENT_BOTH 0x00000C00 // Both edges
4803
#define TIMER_CTL_TBSTALL 0x00000200 // GPTM Timer B Stall Enable
4804
#define TIMER_CTL_TBEN 0x00000100 // GPTM Timer B Enable
4805
#define TIMER_CTL_TAPWML 0x00000040 // GPTM Timer A PWM Output Level
4806
#define TIMER_CTL_TAOTE 0x00000020 // GPTM Timer A Output Trigger
4807
// Enable
4808
#define TIMER_CTL_RTCEN 0x00000010 // GPTM RTC Stall Enable
4809
#define TIMER_CTL_TAEVENT_M 0x0000000C // GPTM Timer A Event Mode
4810
#define TIMER_CTL_TAEVENT_POS 0x00000000 // Positive edge
4811
#define TIMER_CTL_TAEVENT_NEG 0x00000004 // Negative edge
4812
#define TIMER_CTL_TAEVENT_BOTH 0x0000000C // Both edges
4813
#define TIMER_CTL_TASTALL 0x00000002 // GPTM Timer A Stall Enable
4814
#define TIMER_CTL_TAEN 0x00000001 // GPTM Timer A Enable
4815
4816
//*****************************************************************************
4817
//
4818
// The following are defines for the bit fields in the TIMER_O_SYNC register.
4819
//
4820
//*****************************************************************************
4821
#define TIMER_SYNC_SYNCWT5_M 0x00C00000 // Synchronize GPTM 32/64-Bit Timer
4822
// 5
4823
#define TIMER_SYNC_SYNCWT5_NONE 0x00000000 // GPTM 32/64-Bit Timer 5 is not
4824
// affected
4825
#define TIMER_SYNC_SYNCWT5_TA 0x00400000 // A timeout event for Timer A of
4826
// GPTM 32/64-Bit Timer 5 is
4827
// triggered
4828
#define TIMER_SYNC_SYNCWT5_TB 0x00800000 // A timeout event for Timer B of
4829
// GPTM 32/64-Bit Timer 5 is
4830
// triggered
4831
#define TIMER_SYNC_SYNCWT5_TATB 0x00C00000 // A timeout event for both Timer A
4832
// and Timer B of GPTM 32/64-Bit
4833
// Timer 5 is triggered
4834
#define TIMER_SYNC_SYNCWT4_M 0x00300000 // Synchronize GPTM 32/64-Bit Timer
4835
// 4
4836
#define TIMER_SYNC_SYNCWT4_NONE 0x00000000 // GPTM 32/64-Bit Timer 4 is not
4837
// affected
4838
#define TIMER_SYNC_SYNCWT4_TA 0x00100000 // A timeout event for Timer A of
4839
// GPTM 32/64-Bit Timer 4 is
4840
// triggered
4841
#define TIMER_SYNC_SYNCWT4_TB 0x00200000 // A timeout event for Timer B of
4842
// GPTM 32/64-Bit Timer 4 is
4843
// triggered
4844
#define TIMER_SYNC_SYNCWT4_TATB 0x00300000 // A timeout event for both Timer A
4845
// and Timer B of GPTM 32/64-Bit
4846
// Timer 4 is triggered
4847
#define TIMER_SYNC_SYNCWT3_M 0x000C0000 // Synchronize GPTM 32/64-Bit Timer
4848
// 3
4849
#define TIMER_SYNC_SYNCWT3_NONE 0x00000000 // GPTM 32/64-Bit Timer 3 is not
4850
// affected
4851
#define TIMER_SYNC_SYNCWT3_TA 0x00040000 // A timeout event for Timer A of
4852
// GPTM 32/64-Bit Timer 3 is
4853
// triggered
4854
#define TIMER_SYNC_SYNCWT3_TB 0x00080000 // A timeout event for Timer B of
4855
// GPTM 32/64-Bit Timer 3 is
4856
// triggered
4857
#define TIMER_SYNC_SYNCWT3_TATB 0x000C0000 // A timeout event for both Timer A
4858
// and Timer B of GPTM 32/64-Bit
4859
// Timer 3 is triggered
4860
#define TIMER_SYNC_SYNCWT2_M 0x00030000 // Synchronize GPTM 32/64-Bit Timer
4861
// 2
4862
#define TIMER_SYNC_SYNCWT2_NONE 0x00000000 // GPTM 32/64-Bit Timer 2 is not
4863
// affected
4864
#define TIMER_SYNC_SYNCWT2_TA 0x00010000 // A timeout event for Timer A of
4865
// GPTM 32/64-Bit Timer 2 is
4866
// triggered
4867
#define TIMER_SYNC_SYNCWT2_TB 0x00020000 // A timeout event for Timer B of
4868
// GPTM 32/64-Bit Timer 2 is
4869
// triggered
4870
#define TIMER_SYNC_SYNCWT2_TATB 0x00030000 // A timeout event for both Timer A
4871
// and Timer B of GPTM 32/64-Bit
4872
// Timer 2 is triggered
4873
#define TIMER_SYNC_SYNCWT1_M 0x0000C000 // Synchronize GPTM 32/64-Bit Timer
4874
// 1
4875
#define TIMER_SYNC_SYNCWT1_NONE 0x00000000 // GPTM 32/64-Bit Timer 1 is not
4876
// affected
4877
#define TIMER_SYNC_SYNCWT1_TA 0x00004000 // A timeout event for Timer A of
4878
// GPTM 32/64-Bit Timer 1 is
4879
// triggered
4880
#define TIMER_SYNC_SYNCWT1_TB 0x00008000 // A timeout event for Timer B of
4881
// GPTM 32/64-Bit Timer 1 is
4882
// triggered
4883
#define TIMER_SYNC_SYNCWT1_TATB 0x0000C000 // A timeout event for both Timer A
4884
// and Timer B of GPTM 32/64-Bit
4885
// Timer 1 is triggered
4886
#define TIMER_SYNC_SYNCWT0_M 0x00003000 // Synchronize GPTM 32/64-Bit Timer
4887
// 0
4888
#define TIMER_SYNC_SYNCWT0_NONE 0x00000000 // GPTM 32/64-Bit Timer 0 is not
4889
// affected
4890
#define TIMER_SYNC_SYNCWT0_TA 0x00001000 // A timeout event for Timer A of
4891
// GPTM 32/64-Bit Timer 0 is
4892
// triggered
4893
#define TIMER_SYNC_SYNCWT0_TB 0x00002000 // A timeout event for Timer B of
4894
// GPTM 32/64-Bit Timer 0 is
4895
// triggered
4896
#define TIMER_SYNC_SYNCWT0_TATB 0x00003000 // A timeout event for both Timer A
4897
// and Timer B of GPTM 32/64-Bit
4898
// Timer 0 is triggered
4899
#define TIMER_SYNC_SYNCT5_M 0x00000C00 // Synchronize GPTM Timer 5
4900
#define TIMER_SYNC_SYNCT5_NONE 0x00000000 // GPTM5 is not affected
4901
#define TIMER_SYNC_SYNCT5_TA 0x00000400 // A timeout event for Timer A of
4902
// GPTM5 is triggered
4903
#define TIMER_SYNC_SYNCT5_TB 0x00000800 // A timeout event for Timer B of
4904
// GPTM5 is triggered
4905
#define TIMER_SYNC_SYNCT5_TATB 0x00000C00 // A timeout event for both Timer A
4906
// and Timer B of GPTM5 is
4907
// triggered
4908
#define TIMER_SYNC_SYNCT4_M 0x00000300 // Synchronize GPTM Timer 4
4909
#define TIMER_SYNC_SYNCT4_NONE 0x00000000 // GPTM4 is not affected
4910
#define TIMER_SYNC_SYNCT4_TA 0x00000100 // A timeout event for Timer A of
4911
// GPTM4 is triggered
4912
#define TIMER_SYNC_SYNCT4_TB 0x00000200 // A timeout event for Timer B of
4913
// GPTM4 is triggered
4914
#define TIMER_SYNC_SYNCT4_TATB 0x00000300 // A timeout event for both Timer A
4915
// and Timer B of GPTM4 is
4916
// triggered
4917
#define TIMER_SYNC_SYNCT3_M 0x000000C0 // Synchronize GPTM Timer 3
4918
#define TIMER_SYNC_SYNCT3_NONE 0x00000000 // GPTM3 is not affected
4919
#define TIMER_SYNC_SYNCT3_TA 0x00000040 // A timeout event for Timer A of
4920
// GPTM3 is triggered
4921
#define TIMER_SYNC_SYNCT3_TB 0x00000080 // A timeout event for Timer B of
4922
// GPTM3 is triggered
4923
#define TIMER_SYNC_SYNCT3_TATB 0x000000C0 // A timeout event for both Timer A
4924
// and Timer B of GPTM3 is
4925
// triggered
4926
#define TIMER_SYNC_SYNCT2_M 0x00000030 // Synchronize GPTM Timer 2
4927
#define TIMER_SYNC_SYNCT2_NONE 0x00000000 // GPTM2 is not affected
4928
#define TIMER_SYNC_SYNCT2_TA 0x00000010 // A timeout event for Timer A of
4929
// GPTM2 is triggered
4930
#define TIMER_SYNC_SYNCT2_TB 0x00000020 // A timeout event for Timer B of
4931
// GPTM2 is triggered
4932
#define TIMER_SYNC_SYNCT2_TATB 0x00000030 // A timeout event for both Timer A
4933
// and Timer B of GPTM2 is
4934
// triggered
4935
#define TIMER_SYNC_SYNCT1_M 0x0000000C // Synchronize GPTM Timer 1
4936
#define TIMER_SYNC_SYNCT1_NONE 0x00000000 // GPTM1 is not affected
4937
#define TIMER_SYNC_SYNCT1_TA 0x00000004 // A timeout event for Timer A of
4938
// GPTM1 is triggered
4939
#define TIMER_SYNC_SYNCT1_TB 0x00000008 // A timeout event for Timer B of
4940
// GPTM1 is triggered
4941
#define TIMER_SYNC_SYNCT1_TATB 0x0000000C // A timeout event for both Timer A
4942
// and Timer B of GPTM1 is
4943
// triggered
4944
#define TIMER_SYNC_SYNCT0_M 0x00000003 // Synchronize GPTM Timer 0
4945
#define TIMER_SYNC_SYNCT0_NONE 0x00000000 // GPTM0 is not affected
4946
#define TIMER_SYNC_SYNCT0_TA 0x00000001 // A timeout event for Timer A of
4947
// GPTM0 is triggered
4948
#define TIMER_SYNC_SYNCT0_TB 0x00000002 // A timeout event for Timer B of
4949
// GPTM0 is triggered
4950
#define TIMER_SYNC_SYNCT0_TATB 0x00000003 // A timeout event for both Timer A
4951
// and Timer B of GPTM0 is
4952
// triggered
4953
4954
//*****************************************************************************
4955
//
4956
// The following are defines for the bit fields in the TIMER_O_IMR register.
4957
//
4958
//*****************************************************************************
4959
#define TIMER_IMR_WUEIM 0x00010000 // 32/64-Bit Wide GPTM Write Update
4960
// Error Interrupt Mask
4961
#define TIMER_IMR_TBMIM 0x00000800 // GPTM Timer B Match Interrupt
4962
// Mask
4963
#define TIMER_IMR_CBEIM 0x00000400 // GPTM Timer B Capture Mode Event
4964
// Interrupt Mask
4965
#define TIMER_IMR_CBMIM 0x00000200 // GPTM Timer B Capture Mode Match
4966
// Interrupt Mask
4967
#define TIMER_IMR_TBTOIM 0x00000100 // GPTM Timer B Time-Out Interrupt
4968
// Mask
4969
#define TIMER_IMR_TAMIM 0x00000010 // GPTM Timer A Match Interrupt
4970
// Mask
4971
#define TIMER_IMR_RTCIM 0x00000008 // GPTM RTC Interrupt Mask
4972
#define TIMER_IMR_CAEIM 0x00000004 // GPTM Timer A Capture Mode Event
4973
// Interrupt Mask
4974
#define TIMER_IMR_CAMIM 0x00000002 // GPTM Timer A Capture Mode Match
4975
// Interrupt Mask
4976
#define TIMER_IMR_TATOIM 0x00000001 // GPTM Timer A Time-Out Interrupt
4977
// Mask
4978
4979
//*****************************************************************************
4980
//
4981
// The following are defines for the bit fields in the TIMER_O_RIS register.
4982
//
4983
//*****************************************************************************
4984
#define TIMER_RIS_WUERIS 0x00010000 // 32/64-Bit Wide GPTM Write Update
4985
// Error Raw Interrupt Status
4986
#define TIMER_RIS_TBMRIS 0x00000800 // GPTM Timer B Match Raw Interrupt
4987
#define TIMER_RIS_CBERIS 0x00000400 // GPTM Timer B Capture Mode Event
4988
// Raw Interrupt
4989
#define TIMER_RIS_CBMRIS 0x00000200 // GPTM Timer B Capture Mode Match
4990
// Raw Interrupt
4991
#define TIMER_RIS_TBTORIS 0x00000100 // GPTM Timer B Time-Out Raw
4992
// Interrupt
4993
#define TIMER_RIS_TAMRIS 0x00000010 // GPTM Timer A Match Raw Interrupt
4994
#define TIMER_RIS_RTCRIS 0x00000008 // GPTM RTC Raw Interrupt
4995
#define TIMER_RIS_CAERIS 0x00000004 // GPTM Timer A Capture Mode Event
4996
// Raw Interrupt
4997
#define TIMER_RIS_CAMRIS 0x00000002 // GPTM Timer A Capture Mode Match
4998
// Raw Interrupt
4999
#define TIMER_RIS_TATORIS 0x00000001 // GPTM Timer A Time-Out Raw
5000
// Interrupt
5001
5002
//*****************************************************************************
5003
//
5004
// The following are defines for the bit fields in the TIMER_O_MIS register.
5005
//
5006
//*****************************************************************************
5007
#define TIMER_MIS_WUEMIS 0x00010000 // 32/64-Bit Wide GPTM Write Update
5008
// Error Masked Interrupt Status
5009
#define TIMER_MIS_TBMMIS 0x00000800 // GPTM Timer B Match Masked
5010
// Interrupt
5011
#define TIMER_MIS_CBEMIS 0x00000400 // GPTM Timer B Capture Mode Event
5012
// Masked Interrupt
5013
#define TIMER_MIS_CBMMIS 0x00000200 // GPTM Timer B Capture Mode Match
5014
// Masked Interrupt
5015
#define TIMER_MIS_TBTOMIS 0x00000100 // GPTM Timer B Time-Out Masked
5016
// Interrupt
5017
#define TIMER_MIS_TAMMIS 0x00000010 // GPTM Timer A Match Masked
5018
// Interrupt
5019
#define TIMER_MIS_RTCMIS 0x00000008 // GPTM RTC Masked Interrupt
5020
#define TIMER_MIS_CAEMIS 0x00000004 // GPTM Timer A Capture Mode Event
5021
// Masked Interrupt
5022
#define TIMER_MIS_CAMMIS 0x00000002 // GPTM Timer A Capture Mode Match
5023
// Masked Interrupt
5024
#define TIMER_MIS_TATOMIS 0x00000001 // GPTM Timer A Time-Out Masked
5025
// Interrupt
5026
5027
//*****************************************************************************
5028
//
5029
// The following are defines for the bit fields in the TIMER_O_ICR register.
5030
//
5031
//*****************************************************************************
5032
#define TIMER_ICR_WUECINT 0x00010000 // 32/64-Bit Wide GPTM Write Update
5033
// Error Interrupt Clear
5034
#define TIMER_ICR_TBMCINT 0x00000800 // GPTM Timer B Match Interrupt
5035
// Clear
5036
#define TIMER_ICR_CBECINT 0x00000400 // GPTM Timer B Capture Mode Event
5037
// Interrupt Clear
5038
#define TIMER_ICR_CBMCINT 0x00000200 // GPTM Timer B Capture Mode Match
5039
// Interrupt Clear
5040
#define TIMER_ICR_TBTOCINT 0x00000100 // GPTM Timer B Time-Out Interrupt
5041
// Clear
5042
#define TIMER_ICR_TAMCINT 0x00000010 // GPTM Timer A Match Interrupt
5043
// Clear
5044
#define TIMER_ICR_RTCCINT 0x00000008 // GPTM RTC Interrupt Clear
5045
#define TIMER_ICR_CAECINT 0x00000004 // GPTM Timer A Capture Mode Event
5046
// Interrupt Clear
5047
#define TIMER_ICR_CAMCINT 0x00000002 // GPTM Timer A Capture Mode Match
5048
// Interrupt Clear
5049
#define TIMER_ICR_TATOCINT 0x00000001 // GPTM Timer A Time-Out Raw
5050
// Interrupt
5051
5052
//*****************************************************************************
5053
//
5054
// The following are defines for the bit fields in the TIMER_O_TAILR register.
5055
//
5056
//*****************************************************************************
5057
#define TIMER_TAILR_M 0xFFFFFFFF // GPTM Timer A Interval Load
5058
// Register
5059
#define TIMER_TAILR_S 0
5060
5061
//*****************************************************************************
5062
//
5063
// The following are defines for the bit fields in the TIMER_O_TBILR register.
5064
//
5065
//*****************************************************************************
5066
#define TIMER_TBILR_M 0xFFFFFFFF // GPTM Timer B Interval Load
5067
// Register
5068
#define TIMER_TBILR_S 0
5069
5070
//*****************************************************************************
5071
//
5072
// The following are defines for the bit fields in the TIMER_O_TAMATCHR
5073
// register.
5074
//
5075
//*****************************************************************************
5076
#define TIMER_TAMATCHR_TAMR_M 0xFFFFFFFF // GPTM Timer A Match Register
5077
#define TIMER_TAMATCHR_TAMR_S 0
5078
5079
//*****************************************************************************
5080
//
5081
// The following are defines for the bit fields in the TIMER_O_TBMATCHR
5082
// register.
5083
//
5084
//*****************************************************************************
5085
#define TIMER_TBMATCHR_TBMR_M 0xFFFFFFFF // GPTM Timer B Match Register
5086
#define TIMER_TBMATCHR_TBMR_S 0
5087
5088
//*****************************************************************************
5089
//
5090
// The following are defines for the bit fields in the TIMER_O_TAPR register.
5091
//
5092
//*****************************************************************************
5093
#define TIMER_TAPR_TAPSRH_M 0x0000FF00 // GPTM Timer A Prescale High Byte
5094
#define TIMER_TAPR_TAPSR_M 0x000000FF // GPTM Timer A Prescale
5095
#define TIMER_TAPR_TAPSRH_S 8
5096
#define TIMER_TAPR_TAPSR_S 0
5097
5098
//*****************************************************************************
5099
//
5100
// The following are defines for the bit fields in the TIMER_O_TBPR register.
5101
//
5102
//*****************************************************************************
5103
#define TIMER_TBPR_TBPSRH_M 0x0000FF00 // GPTM Timer B Prescale High Byte
5104
#define TIMER_TBPR_TBPSR_M 0x000000FF // GPTM Timer B Prescale
5105
#define TIMER_TBPR_TBPSRH_S 8
5106
#define TIMER_TBPR_TBPSR_S 0
5107
5108
//*****************************************************************************
5109
//
5110
// The following are defines for the bit fields in the TIMER_O_TAPMR register.
5111
//
5112
//*****************************************************************************
5113
#define TIMER_TAPMR_TAPSMRH_M 0x0000FF00 // GPTM Timer A Prescale Match High
5114
// Byte
5115
#define TIMER_TAPMR_TAPSMR_M 0x000000FF // GPTM TimerA Prescale Match
5116
#define TIMER_TAPMR_TAPSMRH_S 8
5117
#define TIMER_TAPMR_TAPSMR_S 0
5118
5119
//*****************************************************************************
5120
//
5121
// The following are defines for the bit fields in the TIMER_O_TBPMR register.
5122
//
5123
//*****************************************************************************
5124
#define TIMER_TBPMR_TBPSMRH_M 0x0000FF00 // GPTM Timer B Prescale Match High
5125
// Byte
5126
#define TIMER_TBPMR_TBPSMR_M 0x000000FF // GPTM TimerB Prescale Match
5127
#define TIMER_TBPMR_TBPSMRH_S 8
5128
#define TIMER_TBPMR_TBPSMR_S 0
5129
5130
//*****************************************************************************
5131
//
5132
// The following are defines for the bit fields in the TIMER_O_TAR register.
5133
//
5134
//*****************************************************************************
5135
#define TIMER_TAR_M 0xFFFFFFFF // GPTM Timer A Register
5136
#define TIMER_TAR_S 0
5137
5138
//*****************************************************************************
5139
//
5140
// The following are defines for the bit fields in the TIMER_O_TBR register.
5141
//
5142
//*****************************************************************************
5143
#define TIMER_TBR_M 0xFFFFFFFF // GPTM Timer B Register
5144
#define TIMER_TBR_S 0
5145
5146
//*****************************************************************************
5147
//
5148
// The following are defines for the bit fields in the TIMER_O_TAV register.
5149
//
5150
//*****************************************************************************
5151
#define TIMER_TAV_M 0xFFFFFFFF // GPTM Timer A Value
5152
#define TIMER_TAV_S 0
5153
5154
//*****************************************************************************
5155
//
5156
// The following are defines for the bit fields in the TIMER_O_TBV register.
5157
//
5158
//*****************************************************************************
5159
#define TIMER_TBV_M 0xFFFFFFFF // GPTM Timer B Value
5160
#define TIMER_TBV_S 0
5161
5162
//*****************************************************************************
5163
//
5164
// The following are defines for the bit fields in the TIMER_O_RTCPD register.
5165
//
5166
//*****************************************************************************
5167
#define TIMER_RTCPD_RTCPD_M 0x0000FFFF // RTC Predivide Counter Value
5168
#define TIMER_RTCPD_RTCPD_S 0
5169
5170
//*****************************************************************************
5171
//
5172
// The following are defines for the bit fields in the TIMER_O_TAPS register.
5173
//
5174
//*****************************************************************************
5175
#define TIMER_TAPS_PSS_M 0x0000FFFF // GPTM Timer A Prescaler Snapshot
5176
#define TIMER_TAPS_PSS_S 0
5177
5178
//*****************************************************************************
5179
//
5180
// The following are defines for the bit fields in the TIMER_O_TBPS register.
5181
//
5182
//*****************************************************************************
5183
#define TIMER_TBPS_PSS_M 0x0000FFFF // GPTM Timer A Prescaler Value
5184
#define TIMER_TBPS_PSS_S 0
5185
5186
//*****************************************************************************
5187
//
5188
// The following are defines for the bit fields in the TIMER_O_TAPV register.
5189
//
5190
//*****************************************************************************
5191
#define TIMER_TAPV_PSV_M 0x0000FFFF // GPTM Timer A Prescaler Value
5192
#define TIMER_TAPV_PSV_S 0
5193
5194
//*****************************************************************************
5195
//
5196
// The following are defines for the bit fields in the TIMER_O_TBPV register.
5197
//
5198
//*****************************************************************************
5199
#define TIMER_TBPV_PSV_M 0x0000FFFF // GPTM Timer B Prescaler Value
5200
#define TIMER_TBPV_PSV_S 0
5201
5202
//*****************************************************************************
5203
//
5204
// The following are defines for the bit fields in the TIMER_O_PP register.
5205
//
5206
//*****************************************************************************
5207
#define TIMER_PP_SIZE_M 0x0000000F // Count Size
5208
#define TIMER_PP_SIZE_16 0x00000000 // Timer A and Timer B counters are
5209
// 16 bits each with an 8-bit
5210
// prescale counter
5211
#define TIMER_PP_SIZE_32 0x00000001 // Timer A and Timer B counters are
5212
// 32 bits each with a 16-bit
5213
// prescale counter
5214
5215
//*****************************************************************************
5216
//
5217
// The following are defines for the bit fields in the ADC_O_ACTSS register.
5218
//
5219
//*****************************************************************************
5220
#define ADC_ACTSS_BUSY 0x00010000 // ADC Busy
5221
#define ADC_ACTSS_ASEN3 0x00000008 // ADC SS3 Enable
5222
#define ADC_ACTSS_ASEN2 0x00000004 // ADC SS2 Enable
5223
#define ADC_ACTSS_ASEN1 0x00000002 // ADC SS1 Enable
5224
#define ADC_ACTSS_ASEN0 0x00000001 // ADC SS0 Enable
5225
5226
//*****************************************************************************
5227
//
5228
// The following are defines for the bit fields in the ADC_O_RIS register.
5229
//
5230
//*****************************************************************************
5231
#define ADC_RIS_INRDC 0x00010000 // Digital Comparator Raw Interrupt
5232
// Status
5233
#define ADC_RIS_INR3 0x00000008 // SS3 Raw Interrupt Status
5234
#define ADC_RIS_INR2 0x00000004 // SS2 Raw Interrupt Status
5235
#define ADC_RIS_INR1 0x00000002 // SS1 Raw Interrupt Status
5236
#define ADC_RIS_INR0 0x00000001 // SS0 Raw Interrupt Status
5237
5238
//*****************************************************************************
5239
//
5240
// The following are defines for the bit fields in the ADC_O_IM register.
5241
//
5242
//*****************************************************************************
5243
#define ADC_IM_DCONSS3 0x00080000 // Digital Comparator Interrupt on
5244
// SS3
5245
#define ADC_IM_DCONSS2 0x00040000 // Digital Comparator Interrupt on
5246
// SS2
5247
#define ADC_IM_DCONSS1 0x00020000 // Digital Comparator Interrupt on
5248
// SS1
5249
#define ADC_IM_DCONSS0 0x00010000 // Digital Comparator Interrupt on
5250
// SS0
5251
#define ADC_IM_MASK3 0x00000008 // SS3 Interrupt Mask
5252
#define ADC_IM_MASK2 0x00000004 // SS2 Interrupt Mask
5253
#define ADC_IM_MASK1 0x00000002 // SS1 Interrupt Mask
5254
#define ADC_IM_MASK0 0x00000001 // SS0 Interrupt Mask
5255
5256
//*****************************************************************************
5257
//
5258
// The following are defines for the bit fields in the ADC_O_ISC register.
5259
//
5260
//*****************************************************************************
5261
#define ADC_ISC_DCINSS3 0x00080000 // Digital Comparator Interrupt
5262
// Status on SS3
5263
#define ADC_ISC_DCINSS2 0x00040000 // Digital Comparator Interrupt
5264
// Status on SS2
5265
#define ADC_ISC_DCINSS1 0x00020000 // Digital Comparator Interrupt
5266
// Status on SS1
5267
#define ADC_ISC_DCINSS0 0x00010000 // Digital Comparator Interrupt
5268
// Status on SS0
5269
#define ADC_ISC_IN3 0x00000008 // SS3 Interrupt Status and Clear
5270
#define ADC_ISC_IN2 0x00000004 // SS2 Interrupt Status and Clear
5271
#define ADC_ISC_IN1 0x00000002 // SS1 Interrupt Status and Clear
5272
#define ADC_ISC_IN0 0x00000001 // SS0 Interrupt Status and Clear
5273
5274
//*****************************************************************************
5275
//
5276
// The following are defines for the bit fields in the ADC_O_OSTAT register.
5277
//
5278
//*****************************************************************************
5279
#define ADC_OSTAT_OV3 0x00000008 // SS3 FIFO Overflow
5280
#define ADC_OSTAT_OV2 0x00000004 // SS2 FIFO Overflow
5281
#define ADC_OSTAT_OV1 0x00000002 // SS1 FIFO Overflow
5282
#define ADC_OSTAT_OV0 0x00000001 // SS0 FIFO Overflow
5283
5284
//*****************************************************************************
5285
//
5286
// The following are defines for the bit fields in the ADC_O_EMUX register.
5287
//
5288
//*****************************************************************************
5289
#define ADC_EMUX_EM3_M 0x0000F000 // SS3 Trigger Select
5290
#define ADC_EMUX_EM3_PROCESSOR 0x00000000 // Processor (default)
5291
#define ADC_EMUX_EM3_COMP0 0x00001000 // Analog Comparator 0
5292
#define ADC_EMUX_EM3_COMP1 0x00002000 // Analog Comparator 1
5293
#define ADC_EMUX_EM3_EXTERNAL 0x00004000 // External (GPIO Pins)
5294
#define ADC_EMUX_EM3_TIMER 0x00005000 // Timer
5295
#define ADC_EMUX_EM3_PWM0 0x00006000 // PWM generator 0
5296
#define ADC_EMUX_EM3_PWM1 0x00007000 // PWM generator 1
5297
#define ADC_EMUX_EM3_PWM2 0x00008000 // PWM generator 2
5298
#define ADC_EMUX_EM3_PWM3 0x00009000 // PWM generator 3
5299
#define ADC_EMUX_EM3_ALWAYS 0x0000F000 // Always (continuously sample)
5300
#define ADC_EMUX_EM2_M 0x00000F00 // SS2 Trigger Select
5301
#define ADC_EMUX_EM2_PROCESSOR 0x00000000 // Processor (default)
5302
#define ADC_EMUX_EM2_COMP0 0x00000100 // Analog Comparator 0
5303
#define ADC_EMUX_EM2_COMP1 0x00000200 // Analog Comparator 1
5304
#define ADC_EMUX_EM2_EXTERNAL 0x00000400 // External (GPIO Pins)
5305
#define ADC_EMUX_EM2_TIMER 0x00000500 // Timer
5306
#define ADC_EMUX_EM2_PWM0 0x00000600 // PWM generator 0
5307
#define ADC_EMUX_EM2_PWM1 0x00000700 // PWM generator 1
5308
#define ADC_EMUX_EM2_PWM2 0x00000800 // PWM generator 2
5309
#define ADC_EMUX_EM2_PWM3 0x00000900 // PWM generator 3
5310
#define ADC_EMUX_EM2_ALWAYS 0x00000F00 // Always (continuously sample)
5311
#define ADC_EMUX_EM1_M 0x000000F0 // SS1 Trigger Select
5312
#define ADC_EMUX_EM1_PROCESSOR 0x00000000 // Processor (default)
5313
#define ADC_EMUX_EM1_COMP0 0x00000010 // Analog Comparator 0
5314
#define ADC_EMUX_EM1_COMP1 0x00000020 // Analog Comparator 1
5315
#define ADC_EMUX_EM1_EXTERNAL 0x00000040 // External (GPIO Pins)
5316
#define ADC_EMUX_EM1_TIMER 0x00000050 // Timer
5317
#define ADC_EMUX_EM1_PWM0 0x00000060 // PWM generator 0
5318
#define ADC_EMUX_EM1_PWM1 0x00000070 // PWM generator 1
5319
#define ADC_EMUX_EM1_PWM2 0x00000080 // PWM generator 2
5320
#define ADC_EMUX_EM1_PWM3 0x00000090 // PWM generator 3
5321
#define ADC_EMUX_EM1_ALWAYS 0x000000F0 // Always (continuously sample)
5322
#define ADC_EMUX_EM0_M 0x0000000F // SS0 Trigger Select
5323
#define ADC_EMUX_EM0_PROCESSOR 0x00000000 // Processor (default)
5324
#define ADC_EMUX_EM0_COMP0 0x00000001 // Analog Comparator 0
5325
#define ADC_EMUX_EM0_COMP1 0x00000002 // Analog Comparator 1
5326
#define ADC_EMUX_EM0_EXTERNAL 0x00000004 // External (GPIO Pins)
5327
#define ADC_EMUX_EM0_TIMER 0x00000005 // Timer
5328
#define ADC_EMUX_EM0_PWM0 0x00000006 // PWM generator 0
5329
#define ADC_EMUX_EM0_PWM1 0x00000007 // PWM generator 1
5330
#define ADC_EMUX_EM0_PWM2 0x00000008 // PWM generator 2
5331
#define ADC_EMUX_EM0_PWM3 0x00000009 // PWM generator 3
5332
#define ADC_EMUX_EM0_ALWAYS 0x0000000F // Always (continuously sample)
5333
5334
//*****************************************************************************
5335
//
5336
// The following are defines for the bit fields in the ADC_O_USTAT register.
5337
//
5338
//*****************************************************************************
5339
#define ADC_USTAT_UV3 0x00000008 // SS3 FIFO Underflow
5340
#define ADC_USTAT_UV2 0x00000004 // SS2 FIFO Underflow
5341
#define ADC_USTAT_UV1 0x00000002 // SS1 FIFO Underflow
5342
#define ADC_USTAT_UV0 0x00000001 // SS0 FIFO Underflow
5343
5344
//*****************************************************************************
5345
//
5346
// The following are defines for the bit fields in the ADC_O_TSSEL register.
5347
//
5348
//*****************************************************************************
5349
#define ADC_TSSEL_PS3_M 0x30000000 // Generator 3 PWM Module Trigger
5350
// Select
5351
#define ADC_TSSEL_PS3_0 0x00000000 // Use Generator 3 (and its
5352
// trigger) in PWM module 0
5353
#define ADC_TSSEL_PS3_1 0x10000000 // Use Generator 3 (and its
5354
// trigger) in PWM module 1
5355
#define ADC_TSSEL_PS2_M 0x00300000 // Generator 2 PWM Module Trigger
5356
// Select
5357
#define ADC_TSSEL_PS2_0 0x00000000 // Use Generator 2 (and its
5358
// trigger) in PWM module 0
5359
#define ADC_TSSEL_PS2_1 0x00100000 // Use Generator 2 (and its
5360
// trigger) in PWM module 1
5361
#define ADC_TSSEL_PS1_M 0x00003000 // Generator 1 PWM Module Trigger
5362
// Select
5363
#define ADC_TSSEL_PS1_0 0x00000000 // Use Generator 1 (and its
5364
// trigger) in PWM module 0
5365
#define ADC_TSSEL_PS1_1 0x00001000 // Use Generator 1 (and its
5366
// trigger) in PWM module 1
5367
#define ADC_TSSEL_PS0_M 0x00000030 // Generator 0 PWM Module Trigger
5368
// Select
5369
#define ADC_TSSEL_PS0_0 0x00000000 // Use Generator 0 (and its
5370
// trigger) in PWM module 0
5371
#define ADC_TSSEL_PS0_1 0x00000010 // Use Generator 0 (and its
5372
// trigger) in PWM module 1
5373
5374
//*****************************************************************************
5375
//
5376
// The following are defines for the bit fields in the ADC_O_SSPRI register.
5377
//
5378
//*****************************************************************************
5379
#define ADC_SSPRI_SS3_M 0x00003000 // SS3 Priority
5380
#define ADC_SSPRI_SS2_M 0x00000300 // SS2 Priority
5381
#define ADC_SSPRI_SS1_M 0x00000030 // SS1 Priority
5382
#define ADC_SSPRI_SS0_M 0x00000003 // SS0 Priority
5383
5384
//*****************************************************************************
5385
//
5386
// The following are defines for the bit fields in the ADC_O_SPC register.
5387
//
5388
//*****************************************************************************
5389
#define ADC_SPC_PHASE_M 0x0000000F // Phase Difference
5390
#define ADC_SPC_PHASE_0 0x00000000 // ADC sample lags by 0.0
5391
#define ADC_SPC_PHASE_22_5 0x00000001 // ADC sample lags by 22.5
5392
#define ADC_SPC_PHASE_45 0x00000002 // ADC sample lags by 45.0
5393
#define ADC_SPC_PHASE_67_5 0x00000003 // ADC sample lags by 67.5
5394
#define ADC_SPC_PHASE_90 0x00000004 // ADC sample lags by 90.0
5395
#define ADC_SPC_PHASE_112_5 0x00000005 // ADC sample lags by 112.5
5396
#define ADC_SPC_PHASE_135 0x00000006 // ADC sample lags by 135.0
5397
#define ADC_SPC_PHASE_157_5 0x00000007 // ADC sample lags by 157.5
5398
#define ADC_SPC_PHASE_180 0x00000008 // ADC sample lags by 180.0
5399
#define ADC_SPC_PHASE_202_5 0x00000009 // ADC sample lags by 202.5
5400
#define ADC_SPC_PHASE_225 0x0000000A // ADC sample lags by 225.0
5401
#define ADC_SPC_PHASE_247_5 0x0000000B // ADC sample lags by 247.5
5402
#define ADC_SPC_PHASE_270 0x0000000C // ADC sample lags by 270.0
5403
#define ADC_SPC_PHASE_292_5 0x0000000D // ADC sample lags by 292.5
5404
#define ADC_SPC_PHASE_315 0x0000000E // ADC sample lags by 315.0
5405
#define ADC_SPC_PHASE_337_5 0x0000000F // ADC sample lags by 337.5
5406
5407
//*****************************************************************************
5408
//
5409
// The following are defines for the bit fields in the ADC_O_PSSI register.
5410
//
5411
//*****************************************************************************
5412
#define ADC_PSSI_GSYNC 0x80000000 // Global Synchronize
5413
#define ADC_PSSI_SYNCWAIT 0x08000000 // Synchronize Wait
5414
#define ADC_PSSI_SS3 0x00000008 // SS3 Initiate
5415
#define ADC_PSSI_SS2 0x00000004 // SS2 Initiate
5416
#define ADC_PSSI_SS1 0x00000002 // SS1 Initiate
5417
#define ADC_PSSI_SS0 0x00000001 // SS0 Initiate
5418
5419
//*****************************************************************************
5420
//
5421
// The following are defines for the bit fields in the ADC_O_SAC register.
5422
//
5423
//*****************************************************************************
5424
#define ADC_SAC_AVG_M 0x00000007 // Hardware Averaging Control
5425
#define ADC_SAC_AVG_OFF 0x00000000 // No hardware oversampling
5426
#define ADC_SAC_AVG_2X 0x00000001 // 2x hardware oversampling
5427
#define ADC_SAC_AVG_4X 0x00000002 // 4x hardware oversampling
5428
#define ADC_SAC_AVG_8X 0x00000003 // 8x hardware oversampling
5429
#define ADC_SAC_AVG_16X 0x00000004 // 16x hardware oversampling
5430
#define ADC_SAC_AVG_32X 0x00000005 // 32x hardware oversampling
5431
#define ADC_SAC_AVG_64X 0x00000006 // 64x hardware oversampling
5432
5433
//*****************************************************************************
5434
//
5435
// The following are defines for the bit fields in the ADC_O_DCISC register.
5436
//
5437
//*****************************************************************************
5438
#define ADC_DCISC_DCINT7 0x00000080 // Digital Comparator 7 Interrupt
5439
// Status and Clear
5440
#define ADC_DCISC_DCINT6 0x00000040 // Digital Comparator 6 Interrupt
5441
// Status and Clear
5442
#define ADC_DCISC_DCINT5 0x00000020 // Digital Comparator 5 Interrupt
5443
// Status and Clear
5444
#define ADC_DCISC_DCINT4 0x00000010 // Digital Comparator 4 Interrupt
5445
// Status and Clear
5446
#define ADC_DCISC_DCINT3 0x00000008 // Digital Comparator 3 Interrupt
5447
// Status and Clear
5448
#define ADC_DCISC_DCINT2 0x00000004 // Digital Comparator 2 Interrupt
5449
// Status and Clear
5450
#define ADC_DCISC_DCINT1 0x00000002 // Digital Comparator 1 Interrupt
5451
// Status and Clear
5452
#define ADC_DCISC_DCINT0 0x00000001 // Digital Comparator 0 Interrupt
5453
// Status and Clear
5454
5455
//*****************************************************************************
5456
//
5457
// The following are defines for the bit fields in the ADC_O_CTL register.
5458
//
5459
//*****************************************************************************
5460
#define ADC_CTL_DITHER 0x00000040 // Dither Mode Enable
5461
#define ADC_CTL_VREF_M 0x00000001 // Voltage Reference Select
5462
#define ADC_CTL_VREF_INTERNAL 0x00000000 // VDDA and GNDA are the voltage
5463
// references
5464
5465
//*****************************************************************************
5466
//
5467
// The following are defines for the bit fields in the ADC_O_SSMUX0 register.
5468
//
5469
//*****************************************************************************
5470
#define ADC_SSMUX0_MUX7_M 0xF0000000 // 8th Sample Input Select
5471
#define ADC_SSMUX0_MUX6_M 0x0F000000 // 7th Sample Input Select
5472
#define ADC_SSMUX0_MUX5_M 0x00F00000 // 6th Sample Input Select
5473
#define ADC_SSMUX0_MUX4_M 0x000F0000 // 5th Sample Input Select
5474
#define ADC_SSMUX0_MUX3_M 0x0000F000 // 4th Sample Input Select
5475
#define ADC_SSMUX0_MUX2_M 0x00000F00 // 3rd Sample Input Select
5476
#define ADC_SSMUX0_MUX1_M 0x000000F0 // 2nd Sample Input Select
5477
#define ADC_SSMUX0_MUX0_M 0x0000000F // 1st Sample Input Select
5478
#define ADC_SSMUX0_MUX7_S 28
5479
#define ADC_SSMUX0_MUX6_S 24
5480
#define ADC_SSMUX0_MUX5_S 20
5481
#define ADC_SSMUX0_MUX4_S 16
5482
#define ADC_SSMUX0_MUX3_S 12
5483
#define ADC_SSMUX0_MUX2_S 8
5484
#define ADC_SSMUX0_MUX1_S 4
5485
#define ADC_SSMUX0_MUX0_S 0
5486
5487
//*****************************************************************************
5488
//
5489
// The following are defines for the bit fields in the ADC_O_SSCTL0 register.
5490
//
5491
//*****************************************************************************
5492
#define ADC_SSCTL0_TS7 0x80000000 // 8th Sample Temp Sensor Select
5493
#define ADC_SSCTL0_IE7 0x40000000 // 8th Sample Interrupt Enable
5494
#define ADC_SSCTL0_END7 0x20000000 // 8th Sample is End of Sequence
5495
#define ADC_SSCTL0_D7 0x10000000 // 8th Sample Differential Input
5496
// Select
5497
#define ADC_SSCTL0_TS6 0x08000000 // 7th Sample Temp Sensor Select
5498
#define ADC_SSCTL0_IE6 0x04000000 // 7th Sample Interrupt Enable
5499
#define ADC_SSCTL0_END6 0x02000000 // 7th Sample is End of Sequence
5500
#define ADC_SSCTL0_D6 0x01000000 // 7th Sample Differential Input
5501
// Select
5502
#define ADC_SSCTL0_TS5 0x00800000 // 6th Sample Temp Sensor Select
5503
#define ADC_SSCTL0_IE5 0x00400000 // 6th Sample Interrupt Enable
5504
#define ADC_SSCTL0_END5 0x00200000 // 6th Sample is End of Sequence
5505
#define ADC_SSCTL0_D5 0x00100000 // 6th Sample Differential Input
5506
// Select
5507
#define ADC_SSCTL0_TS4 0x00080000 // 5th Sample Temp Sensor Select
5508
#define ADC_SSCTL0_IE4 0x00040000 // 5th Sample Interrupt Enable
5509
#define ADC_SSCTL0_END4 0x00020000 // 5th Sample is End of Sequence
5510
#define ADC_SSCTL0_D4 0x00010000 // 5th Sample Differential Input
5511
// Select
5512
#define ADC_SSCTL0_TS3 0x00008000 // 4th Sample Temp Sensor Select
5513
#define ADC_SSCTL0_IE3 0x00004000 // 4th Sample Interrupt Enable
5514
#define ADC_SSCTL0_END3 0x00002000 // 4th Sample is End of Sequence
5515
#define ADC_SSCTL0_D3 0x00001000 // 4th Sample Differential Input
5516
// Select
5517
#define ADC_SSCTL0_TS2 0x00000800 // 3rd Sample Temp Sensor Select
5518
#define ADC_SSCTL0_IE2 0x00000400 // 3rd Sample Interrupt Enable
5519
#define ADC_SSCTL0_END2 0x00000200 // 3rd Sample is End of Sequence
5520
#define ADC_SSCTL0_D2 0x00000100 // 3rd Sample Differential Input
5521
// Select
5522
#define ADC_SSCTL0_TS1 0x00000080 // 2nd Sample Temp Sensor Select
5523
#define ADC_SSCTL0_IE1 0x00000040 // 2nd Sample Interrupt Enable
5524
#define ADC_SSCTL0_END1 0x00000020 // 2nd Sample is End of Sequence
5525
#define ADC_SSCTL0_D1 0x00000010 // 2nd Sample Differential Input
5526
// Select
5527
#define ADC_SSCTL0_TS0 0x00000008 // 1st Sample Temp Sensor Select
5528
#define ADC_SSCTL0_IE0 0x00000004 // 1st Sample Interrupt Enable
5529
#define ADC_SSCTL0_END0 0x00000002 // 1st Sample is End of Sequence
5530
#define ADC_SSCTL0_D0 0x00000001 // 1st Sample Differential Input
5531
// Select
5532
5533
//*****************************************************************************
5534
//
5535
// The following are defines for the bit fields in the ADC_O_SSFIFO0 register.
5536
//
5537
//*****************************************************************************
5538
#define ADC_SSFIFO0_DATA_M 0x00000FFF // Conversion Result Data
5539
#define ADC_SSFIFO0_DATA_S 0
5540
5541
//*****************************************************************************
5542
//
5543
// The following are defines for the bit fields in the ADC_O_SSFSTAT0 register.
5544
//
5545
//*****************************************************************************
5546
#define ADC_SSFSTAT0_FULL 0x00001000 // FIFO Full
5547
#define ADC_SSFSTAT0_EMPTY 0x00000100 // FIFO Empty
5548
#define ADC_SSFSTAT0_HPTR_M 0x000000F0 // FIFO Head Pointer
5549
#define ADC_SSFSTAT0_TPTR_M 0x0000000F // FIFO Tail Pointer
5550
#define ADC_SSFSTAT0_HPTR_S 4
5551
#define ADC_SSFSTAT0_TPTR_S 0
5552
5553
//*****************************************************************************
5554
//
5555
// The following are defines for the bit fields in the ADC_O_SSOP0 register.
5556
//
5557
//*****************************************************************************
5558
#define ADC_SSOP0_S7DCOP 0x10000000 // Sample 7 Digital Comparator
5559
// Operation
5560
#define ADC_SSOP0_S6DCOP 0x01000000 // Sample 6 Digital Comparator
5561
// Operation
5562
#define ADC_SSOP0_S5DCOP 0x00100000 // Sample 5 Digital Comparator
5563
// Operation
5564
#define ADC_SSOP0_S4DCOP 0x00010000 // Sample 4 Digital Comparator
5565
// Operation
5566
#define ADC_SSOP0_S3DCOP 0x00001000 // Sample 3 Digital Comparator
5567
// Operation
5568
#define ADC_SSOP0_S2DCOP 0x00000100 // Sample 2 Digital Comparator
5569
// Operation
5570
#define ADC_SSOP0_S1DCOP 0x00000010 // Sample 1 Digital Comparator
5571
// Operation
5572
#define ADC_SSOP0_S0DCOP 0x00000001 // Sample 0 Digital Comparator
5573
// Operation
5574
5575
//*****************************************************************************
5576
//
5577
// The following are defines for the bit fields in the ADC_O_SSDC0 register.
5578
//
5579
//*****************************************************************************
5580
#define ADC_SSDC0_S7DCSEL_M 0xF0000000 // Sample 7 Digital Comparator
5581
// Select
5582
#define ADC_SSDC0_S6DCSEL_M 0x0F000000 // Sample 6 Digital Comparator
5583
// Select
5584
#define ADC_SSDC0_S5DCSEL_M 0x00F00000 // Sample 5 Digital Comparator
5585
// Select
5586
#define ADC_SSDC0_S4DCSEL_M 0x000F0000 // Sample 4 Digital Comparator
5587
// Select
5588
#define ADC_SSDC0_S3DCSEL_M 0x0000F000 // Sample 3 Digital Comparator
5589
// Select
5590
#define ADC_SSDC0_S2DCSEL_M 0x00000F00 // Sample 2 Digital Comparator
5591
// Select
5592
#define ADC_SSDC0_S1DCSEL_M 0x000000F0 // Sample 1 Digital Comparator
5593
// Select
5594
#define ADC_SSDC0_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
5595
// Select
5596
#define ADC_SSDC0_S6DCSEL_S 24
5597
#define ADC_SSDC0_S5DCSEL_S 20
5598
#define ADC_SSDC0_S4DCSEL_S 16
5599
#define ADC_SSDC0_S3DCSEL_S 12
5600
#define ADC_SSDC0_S2DCSEL_S 8
5601
#define ADC_SSDC0_S1DCSEL_S 4
5602
#define ADC_SSDC0_S0DCSEL_S 0
5603
5604
//*****************************************************************************
5605
//
5606
// The following are defines for the bit fields in the ADC_O_SSMUX1 register.
5607
//
5608
//*****************************************************************************
5609
#define ADC_SSMUX1_MUX3_M 0x0000F000 // 4th Sample Input Select
5610
#define ADC_SSMUX1_MUX2_M 0x00000F00 // 3rd Sample Input Select
5611
#define ADC_SSMUX1_MUX1_M 0x000000F0 // 2nd Sample Input Select
5612
#define ADC_SSMUX1_MUX0_M 0x0000000F // 1st Sample Input Select
5613
#define ADC_SSMUX1_MUX3_S 12
5614
#define ADC_SSMUX1_MUX2_S 8
5615
#define ADC_SSMUX1_MUX1_S 4
5616
#define ADC_SSMUX1_MUX0_S 0
5617
5618
//*****************************************************************************
5619
//
5620
// The following are defines for the bit fields in the ADC_O_SSCTL1 register.
5621
//
5622
//*****************************************************************************
5623
#define ADC_SSCTL1_TS3 0x00008000 // 4th Sample Temp Sensor Select
5624
#define ADC_SSCTL1_IE3 0x00004000 // 4th Sample Interrupt Enable
5625
#define ADC_SSCTL1_END3 0x00002000 // 4th Sample is End of Sequence
5626
#define ADC_SSCTL1_D3 0x00001000 // 4th Sample Differential Input
5627
// Select
5628
#define ADC_SSCTL1_TS2 0x00000800 // 3rd Sample Temp Sensor Select
5629
#define ADC_SSCTL1_IE2 0x00000400 // 3rd Sample Interrupt Enable
5630
#define ADC_SSCTL1_END2 0x00000200 // 3rd Sample is End of Sequence
5631
#define ADC_SSCTL1_D2 0x00000100 // 3rd Sample Differential Input
5632
// Select
5633
#define ADC_SSCTL1_TS1 0x00000080 // 2nd Sample Temp Sensor Select
5634
#define ADC_SSCTL1_IE1 0x00000040 // 2nd Sample Interrupt Enable
5635
#define ADC_SSCTL1_END1 0x00000020 // 2nd Sample is End of Sequence
5636
#define ADC_SSCTL1_D1 0x00000010 // 2nd Sample Differential Input
5637
// Select
5638
#define ADC_SSCTL1_TS0 0x00000008 // 1st Sample Temp Sensor Select
5639
#define ADC_SSCTL1_IE0 0x00000004 // 1st Sample Interrupt Enable
5640
#define ADC_SSCTL1_END0 0x00000002 // 1st Sample is End of Sequence
5641
#define ADC_SSCTL1_D0 0x00000001 // 1st Sample Differential Input
5642
// Select
5643
5644
//*****************************************************************************
5645
//
5646
// The following are defines for the bit fields in the ADC_O_SSFIFO1 register.
5647
//
5648
//*****************************************************************************
5649
#define ADC_SSFIFO1_DATA_M 0x00000FFF // Conversion Result Data
5650
#define ADC_SSFIFO1_DATA_S 0
5651
5652
//*****************************************************************************
5653
//
5654
// The following are defines for the bit fields in the ADC_O_SSFSTAT1 register.
5655
//
5656
//*****************************************************************************
5657
#define ADC_SSFSTAT1_FULL 0x00001000 // FIFO Full
5658
#define ADC_SSFSTAT1_EMPTY 0x00000100 // FIFO Empty
5659
#define ADC_SSFSTAT1_HPTR_M 0x000000F0 // FIFO Head Pointer
5660
#define ADC_SSFSTAT1_TPTR_M 0x0000000F // FIFO Tail Pointer
5661
#define ADC_SSFSTAT1_HPTR_S 4
5662
#define ADC_SSFSTAT1_TPTR_S 0
5663
5664
//*****************************************************************************
5665
//
5666
// The following are defines for the bit fields in the ADC_O_SSOP1 register.
5667
//
5668
//*****************************************************************************
5669
#define ADC_SSOP1_S3DCOP 0x00001000 // Sample 3 Digital Comparator
5670
// Operation
5671
#define ADC_SSOP1_S2DCOP 0x00000100 // Sample 2 Digital Comparator
5672
// Operation
5673
#define ADC_SSOP1_S1DCOP 0x00000010 // Sample 1 Digital Comparator
5674
// Operation
5675
#define ADC_SSOP1_S0DCOP 0x00000001 // Sample 0 Digital Comparator
5676
// Operation
5677
5678
//*****************************************************************************
5679
//
5680
// The following are defines for the bit fields in the ADC_O_SSDC1 register.
5681
//
5682
//*****************************************************************************
5683
#define ADC_SSDC1_S3DCSEL_M 0x0000F000 // Sample 3 Digital Comparator
5684
// Select
5685
#define ADC_SSDC1_S2DCSEL_M 0x00000F00 // Sample 2 Digital Comparator
5686
// Select
5687
#define ADC_SSDC1_S1DCSEL_M 0x000000F0 // Sample 1 Digital Comparator
5688
// Select
5689
#define ADC_SSDC1_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
5690
// Select
5691
#define ADC_SSDC1_S2DCSEL_S 8
5692
#define ADC_SSDC1_S1DCSEL_S 4
5693
#define ADC_SSDC1_S0DCSEL_S 0
5694
5695
//*****************************************************************************
5696
//
5697
// The following are defines for the bit fields in the ADC_O_SSMUX2 register.
5698
//
5699
//*****************************************************************************
5700
#define ADC_SSMUX2_MUX3_M 0x0000F000 // 4th Sample Input Select
5701
#define ADC_SSMUX2_MUX2_M 0x00000F00 // 3rd Sample Input Select
5702
#define ADC_SSMUX2_MUX1_M 0x000000F0 // 2nd Sample Input Select
5703
#define ADC_SSMUX2_MUX0_M 0x0000000F // 1st Sample Input Select
5704
#define ADC_SSMUX2_MUX3_S 12
5705
#define ADC_SSMUX2_MUX2_S 8
5706
#define ADC_SSMUX2_MUX1_S 4
5707
#define ADC_SSMUX2_MUX0_S 0
5708
5709
//*****************************************************************************
5710
//
5711
// The following are defines for the bit fields in the ADC_O_SSCTL2 register.
5712
//
5713
//*****************************************************************************
5714
#define ADC_SSCTL2_TS3 0x00008000 // 4th Sample Temp Sensor Select
5715
#define ADC_SSCTL2_IE3 0x00004000 // 4th Sample Interrupt Enable
5716
#define ADC_SSCTL2_END3 0x00002000 // 4th Sample is End of Sequence
5717
#define ADC_SSCTL2_D3 0x00001000 // 4th Sample Differential Input
5718
// Select
5719
#define ADC_SSCTL2_TS2 0x00000800 // 3rd Sample Temp Sensor Select
5720
#define ADC_SSCTL2_IE2 0x00000400 // 3rd Sample Interrupt Enable
5721
#define ADC_SSCTL2_END2 0x00000200 // 3rd Sample is End of Sequence
5722
#define ADC_SSCTL2_D2 0x00000100 // 3rd Sample Differential Input
5723
// Select
5724
#define ADC_SSCTL2_TS1 0x00000080 // 2nd Sample Temp Sensor Select
5725
#define ADC_SSCTL2_IE1 0x00000040 // 2nd Sample Interrupt Enable
5726
#define ADC_SSCTL2_END1 0x00000020 // 2nd Sample is End of Sequence
5727
#define ADC_SSCTL2_D1 0x00000010 // 2nd Sample Differential Input
5728
// Select
5729
#define ADC_SSCTL2_TS0 0x00000008 // 1st Sample Temp Sensor Select
5730
#define ADC_SSCTL2_IE0 0x00000004 // 1st Sample Interrupt Enable
5731
#define ADC_SSCTL2_END0 0x00000002 // 1st Sample is End of Sequence
5732
#define ADC_SSCTL2_D0 0x00000001 // 1st Sample Differential Input
5733
// Select
5734
5735
//*****************************************************************************
5736
//
5737
// The following are defines for the bit fields in the ADC_O_SSFIFO2 register.
5738
//
5739
//*****************************************************************************
5740
#define ADC_SSFIFO2_DATA_M 0x00000FFF // Conversion Result Data
5741
#define ADC_SSFIFO2_DATA_S 0
5742
5743
//*****************************************************************************
5744
//
5745
// The following are defines for the bit fields in the ADC_O_SSFSTAT2 register.
5746
//
5747
//*****************************************************************************
5748
#define ADC_SSFSTAT2_FULL 0x00001000 // FIFO Full
5749
#define ADC_SSFSTAT2_EMPTY 0x00000100 // FIFO Empty
5750
#define ADC_SSFSTAT2_HPTR_M 0x000000F0 // FIFO Head Pointer
5751
#define ADC_SSFSTAT2_TPTR_M 0x0000000F // FIFO Tail Pointer
5752
#define ADC_SSFSTAT2_HPTR_S 4
5753
#define ADC_SSFSTAT2_TPTR_S 0
5754
5755
//*****************************************************************************
5756
//
5757
// The following are defines for the bit fields in the ADC_O_SSOP2 register.
5758
//
5759
//*****************************************************************************
5760
#define ADC_SSOP2_S3DCOP 0x00001000 // Sample 3 Digital Comparator
5761
// Operation
5762
#define ADC_SSOP2_S2DCOP 0x00000100 // Sample 2 Digital Comparator
5763
// Operation
5764
#define ADC_SSOP2_S1DCOP 0x00000010 // Sample 1 Digital Comparator
5765
// Operation
5766
#define ADC_SSOP2_S0DCOP 0x00000001 // Sample 0 Digital Comparator
5767
// Operation
5768
5769
//*****************************************************************************
5770
//
5771
// The following are defines for the bit fields in the ADC_O_SSDC2 register.
5772
//
5773
//*****************************************************************************
5774
#define ADC_SSDC2_S3DCSEL_M 0x0000F000 // Sample 3 Digital Comparator
5775
// Select
5776
#define ADC_SSDC2_S2DCSEL_M 0x00000F00 // Sample 2 Digital Comparator
5777
// Select
5778
#define ADC_SSDC2_S1DCSEL_M 0x000000F0 // Sample 1 Digital Comparator
5779
// Select
5780
#define ADC_SSDC2_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
5781
// Select
5782
#define ADC_SSDC2_S2DCSEL_S 8
5783
#define ADC_SSDC2_S1DCSEL_S 4
5784
#define ADC_SSDC2_S0DCSEL_S 0
5785
5786
//*****************************************************************************
5787
//
5788
// The following are defines for the bit fields in the ADC_O_SSMUX3 register.
5789
//
5790
//*****************************************************************************
5791
#define ADC_SSMUX3_MUX0_M 0x0000000F // 1st Sample Input Select
5792
#define ADC_SSMUX3_MUX0_S 0
5793
5794
//*****************************************************************************
5795
//
5796
// The following are defines for the bit fields in the ADC_O_SSCTL3 register.
5797
//
5798
//*****************************************************************************
5799
#define ADC_SSCTL3_TS0 0x00000008 // 1st Sample Temp Sensor Select
5800
#define ADC_SSCTL3_IE0 0x00000004 // Sample Interrupt Enable
5801
#define ADC_SSCTL3_END0 0x00000002 // End of Sequence
5802
#define ADC_SSCTL3_D0 0x00000001 // Sample Differential Input Select
5803
5804
//*****************************************************************************
5805
//
5806
// The following are defines for the bit fields in the ADC_O_SSFIFO3 register.
5807
//
5808
//*****************************************************************************
5809
#define ADC_SSFIFO3_DATA_M 0x00000FFF // Conversion Result Data
5810
#define ADC_SSFIFO3_DATA_S 0
5811
5812
//*****************************************************************************
5813
//
5814
// The following are defines for the bit fields in the ADC_O_SSFSTAT3 register.
5815
//
5816
//*****************************************************************************
5817
#define ADC_SSFSTAT3_FULL 0x00001000 // FIFO Full
5818
#define ADC_SSFSTAT3_EMPTY 0x00000100 // FIFO Empty
5819
#define ADC_SSFSTAT3_HPTR_M 0x000000F0 // FIFO Head Pointer
5820
#define ADC_SSFSTAT3_TPTR_M 0x0000000F // FIFO Tail Pointer
5821
#define ADC_SSFSTAT3_HPTR_S 4
5822
#define ADC_SSFSTAT3_TPTR_S 0
5823
5824
//*****************************************************************************
5825
//
5826
// The following are defines for the bit fields in the ADC_O_SSOP3 register.
5827
//
5828
//*****************************************************************************
5829
#define ADC_SSOP3_S0DCOP 0x00000001 // Sample 0 Digital Comparator
5830
// Operation
5831
5832
//*****************************************************************************
5833
//
5834
// The following are defines for the bit fields in the ADC_O_SSDC3 register.
5835
//
5836
//*****************************************************************************
5837
#define ADC_SSDC3_S0DCSEL_M 0x0000000F // Sample 0 Digital Comparator
5838
// Select
5839
5840
//*****************************************************************************
5841
//
5842
// The following are defines for the bit fields in the ADC_O_DCRIC register.
5843
//
5844
//*****************************************************************************
5845
#define ADC_DCRIC_DCTRIG7 0x00800000 // Digital Comparator Trigger 7
5846
#define ADC_DCRIC_DCTRIG6 0x00400000 // Digital Comparator Trigger 6
5847
#define ADC_DCRIC_DCTRIG5 0x00200000 // Digital Comparator Trigger 5
5848
#define ADC_DCRIC_DCTRIG4 0x00100000 // Digital Comparator Trigger 4
5849
#define ADC_DCRIC_DCTRIG3 0x00080000 // Digital Comparator Trigger 3
5850
#define ADC_DCRIC_DCTRIG2 0x00040000 // Digital Comparator Trigger 2
5851
#define ADC_DCRIC_DCTRIG1 0x00020000 // Digital Comparator Trigger 1
5852
#define ADC_DCRIC_DCTRIG0 0x00010000 // Digital Comparator Trigger 0
5853
#define ADC_DCRIC_DCINT7 0x00000080 // Digital Comparator Interrupt 7
5854
#define ADC_DCRIC_DCINT6 0x00000040 // Digital Comparator Interrupt 6
5855
#define ADC_DCRIC_DCINT5 0x00000020 // Digital Comparator Interrupt 5
5856
#define ADC_DCRIC_DCINT4 0x00000010 // Digital Comparator Interrupt 4
5857
#define ADC_DCRIC_DCINT3 0x00000008 // Digital Comparator Interrupt 3
5858
#define ADC_DCRIC_DCINT2 0x00000004 // Digital Comparator Interrupt 2
5859
#define ADC_DCRIC_DCINT1 0x00000002 // Digital Comparator Interrupt 1
5860
#define ADC_DCRIC_DCINT0 0x00000001 // Digital Comparator Interrupt 0
5861
5862
//*****************************************************************************
5863
//
5864
// The following are defines for the bit fields in the ADC_O_DCCTL0 register.
5865
//
5866
//*****************************************************************************
5867
#define ADC_DCCTL0_CTE 0x00001000 // Comparison Trigger Enable
5868
#define ADC_DCCTL0_CTC_M 0x00000C00 // Comparison Trigger Condition
5869
#define ADC_DCCTL0_CTC_LOW 0x00000000 // Low Band
5870
#define ADC_DCCTL0_CTC_MID 0x00000400 // Mid Band
5871
#define ADC_DCCTL0_CTC_HIGH 0x00000C00 // High Band
5872
#define ADC_DCCTL0_CTM_M 0x00000300 // Comparison Trigger Mode
5873
#define ADC_DCCTL0_CTM_ALWAYS 0x00000000 // Always
5874
#define ADC_DCCTL0_CTM_ONCE 0x00000100 // Once
5875
#define ADC_DCCTL0_CTM_HALWAYS 0x00000200 // Hysteresis Always
5876
#define ADC_DCCTL0_CTM_HONCE 0x00000300 // Hysteresis Once
5877
#define ADC_DCCTL0_CIE 0x00000010 // Comparison Interrupt Enable
5878
#define ADC_DCCTL0_CIC_M 0x0000000C // Comparison Interrupt Condition
5879
#define ADC_DCCTL0_CIC_LOW 0x00000000 // Low Band
5880
#define ADC_DCCTL0_CIC_MID 0x00000004 // Mid Band
5881
#define ADC_DCCTL0_CIC_HIGH 0x0000000C // High Band
5882
#define ADC_DCCTL0_CIM_M 0x00000003 // Comparison Interrupt Mode
5883
#define ADC_DCCTL0_CIM_ALWAYS 0x00000000 // Always
5884
#define ADC_DCCTL0_CIM_ONCE 0x00000001 // Once
5885
#define ADC_DCCTL0_CIM_HALWAYS 0x00000002 // Hysteresis Always
5886
#define ADC_DCCTL0_CIM_HONCE 0x00000003 // Hysteresis Once
5887
5888
//*****************************************************************************
5889
//
5890
// The following are defines for the bit fields in the ADC_O_DCCTL1 register.
5891
//
5892
//*****************************************************************************
5893
#define ADC_DCCTL1_CTE 0x00001000 // Comparison Trigger Enable
5894
#define ADC_DCCTL1_CTC_M 0x00000C00 // Comparison Trigger Condition
5895
#define ADC_DCCTL1_CTC_LOW 0x00000000 // Low Band
5896
#define ADC_DCCTL1_CTC_MID 0x00000400 // Mid Band
5897
#define ADC_DCCTL1_CTC_HIGH 0x00000C00 // High Band
5898
#define ADC_DCCTL1_CTM_M 0x00000300 // Comparison Trigger Mode
5899
#define ADC_DCCTL1_CTM_ALWAYS 0x00000000 // Always
5900
#define ADC_DCCTL1_CTM_ONCE 0x00000100 // Once
5901
#define ADC_DCCTL1_CTM_HALWAYS 0x00000200 // Hysteresis Always
5902
#define ADC_DCCTL1_CTM_HONCE 0x00000300 // Hysteresis Once
5903
#define ADC_DCCTL1_CIE 0x00000010 // Comparison Interrupt Enable
5904
#define ADC_DCCTL1_CIC_M 0x0000000C // Comparison Interrupt Condition
5905
#define ADC_DCCTL1_CIC_LOW 0x00000000 // Low Band
5906
#define ADC_DCCTL1_CIC_MID 0x00000004 // Mid Band
5907
#define ADC_DCCTL1_CIC_HIGH 0x0000000C // High Band
5908
#define ADC_DCCTL1_CIM_M 0x00000003 // Comparison Interrupt Mode
5909
#define ADC_DCCTL1_CIM_ALWAYS 0x00000000 // Always
5910
#define ADC_DCCTL1_CIM_ONCE 0x00000001 // Once
5911
#define ADC_DCCTL1_CIM_HALWAYS 0x00000002 // Hysteresis Always
5912
#define ADC_DCCTL1_CIM_HONCE 0x00000003 // Hysteresis Once
5913
5914
//*****************************************************************************
5915
//
5916
// The following are defines for the bit fields in the ADC_O_DCCTL2 register.
5917
//
5918
//*****************************************************************************
5919
#define ADC_DCCTL2_CTE 0x00001000 // Comparison Trigger Enable
5920
#define ADC_DCCTL2_CTC_M 0x00000C00 // Comparison Trigger Condition
5921
#define ADC_DCCTL2_CTC_LOW 0x00000000 // Low Band
5922
#define ADC_DCCTL2_CTC_MID 0x00000400 // Mid Band
5923
#define ADC_DCCTL2_CTC_HIGH 0x00000C00 // High Band
5924
#define ADC_DCCTL2_CTM_M 0x00000300 // Comparison Trigger Mode
5925
#define ADC_DCCTL2_CTM_ALWAYS 0x00000000 // Always
5926
#define ADC_DCCTL2_CTM_ONCE 0x00000100 // Once
5927
#define ADC_DCCTL2_CTM_HALWAYS 0x00000200 // Hysteresis Always
5928
#define ADC_DCCTL2_CTM_HONCE 0x00000300 // Hysteresis Once
5929
#define ADC_DCCTL2_CIE 0x00000010 // Comparison Interrupt Enable
5930
#define ADC_DCCTL2_CIC_M 0x0000000C // Comparison Interrupt Condition
5931
#define ADC_DCCTL2_CIC_LOW 0x00000000 // Low Band
5932
#define ADC_DCCTL2_CIC_MID 0x00000004 // Mid Band
5933
#define ADC_DCCTL2_CIC_HIGH 0x0000000C // High Band
5934
#define ADC_DCCTL2_CIM_M 0x00000003 // Comparison Interrupt Mode
5935
#define ADC_DCCTL2_CIM_ALWAYS 0x00000000 // Always
5936
#define ADC_DCCTL2_CIM_ONCE 0x00000001 // Once
5937
#define ADC_DCCTL2_CIM_HALWAYS 0x00000002 // Hysteresis Always
5938
#define ADC_DCCTL2_CIM_HONCE 0x00000003 // Hysteresis Once
5939
5940
//*****************************************************************************
5941
//
5942
// The following are defines for the bit fields in the ADC_O_DCCTL3 register.
5943
//
5944
//*****************************************************************************
5945
#define ADC_DCCTL3_CTE 0x00001000 // Comparison Trigger Enable
5946
#define ADC_DCCTL3_CTC_M 0x00000C00 // Comparison Trigger Condition
5947
#define ADC_DCCTL3_CTC_LOW 0x00000000 // Low Band
5948
#define ADC_DCCTL3_CTC_MID 0x00000400 // Mid Band
5949
#define ADC_DCCTL3_CTC_HIGH 0x00000C00 // High Band
5950
#define ADC_DCCTL3_CTM_M 0x00000300 // Comparison Trigger Mode
5951
#define ADC_DCCTL3_CTM_ALWAYS 0x00000000 // Always
5952
#define ADC_DCCTL3_CTM_ONCE 0x00000100 // Once
5953
#define ADC_DCCTL3_CTM_HALWAYS 0x00000200 // Hysteresis Always
5954
#define ADC_DCCTL3_CTM_HONCE 0x00000300 // Hysteresis Once
5955
#define ADC_DCCTL3_CIE 0x00000010 // Comparison Interrupt Enable
5956
#define ADC_DCCTL3_CIC_M 0x0000000C // Comparison Interrupt Condition
5957
#define ADC_DCCTL3_CIC_LOW 0x00000000 // Low Band
5958
#define ADC_DCCTL3_CIC_MID 0x00000004 // Mid Band
5959
#define ADC_DCCTL3_CIC_HIGH 0x0000000C // High Band
5960
#define ADC_DCCTL3_CIM_M 0x00000003 // Comparison Interrupt Mode
5961
#define ADC_DCCTL3_CIM_ALWAYS 0x00000000 // Always
5962
#define ADC_DCCTL3_CIM_ONCE 0x00000001 // Once
5963
#define ADC_DCCTL3_CIM_HALWAYS 0x00000002 // Hysteresis Always
5964
#define ADC_DCCTL3_CIM_HONCE 0x00000003 // Hysteresis Once
5965
5966
//*****************************************************************************
5967
//
5968
// The following are defines for the bit fields in the ADC_O_DCCTL4 register.
5969
//
5970
//*****************************************************************************
5971
#define ADC_DCCTL4_CTE 0x00001000 // Comparison Trigger Enable
5972
#define ADC_DCCTL4_CTC_M 0x00000C00 // Comparison Trigger Condition
5973
#define ADC_DCCTL4_CTC_LOW 0x00000000 // Low Band
5974
#define ADC_DCCTL4_CTC_MID 0x00000400 // Mid Band
5975
#define ADC_DCCTL4_CTC_HIGH 0x00000C00 // High Band
5976
#define ADC_DCCTL4_CTM_M 0x00000300 // Comparison Trigger Mode
5977
#define ADC_DCCTL4_CTM_ALWAYS 0x00000000 // Always
5978
#define ADC_DCCTL4_CTM_ONCE 0x00000100 // Once
5979
#define ADC_DCCTL4_CTM_HALWAYS 0x00000200 // Hysteresis Always
5980
#define ADC_DCCTL4_CTM_HONCE 0x00000300 // Hysteresis Once
5981
#define ADC_DCCTL4_CIE 0x00000010 // Comparison Interrupt Enable
5982
#define ADC_DCCTL4_CIC_M 0x0000000C // Comparison Interrupt Condition
5983
#define ADC_DCCTL4_CIC_LOW 0x00000000 // Low Band
5984
#define ADC_DCCTL4_CIC_MID 0x00000004 // Mid Band
5985
#define ADC_DCCTL4_CIC_HIGH 0x0000000C // High Band
5986
#define ADC_DCCTL4_CIM_M 0x00000003 // Comparison Interrupt Mode
5987
#define ADC_DCCTL4_CIM_ALWAYS 0x00000000 // Always
5988
#define ADC_DCCTL4_CIM_ONCE 0x00000001 // Once
5989
#define ADC_DCCTL4_CIM_HALWAYS 0x00000002 // Hysteresis Always
5990
#define ADC_DCCTL4_CIM_HONCE 0x00000003 // Hysteresis Once
5991
5992
//*****************************************************************************
5993
//
5994
// The following are defines for the bit fields in the ADC_O_DCCTL5 register.
5995
//
5996
//*****************************************************************************
5997
#define ADC_DCCTL5_CTE 0x00001000 // Comparison Trigger Enable
5998
#define ADC_DCCTL5_CTC_M 0x00000C00 // Comparison Trigger Condition
5999
#define ADC_DCCTL5_CTC_LOW 0x00000000 // Low Band
6000
#define ADC_DCCTL5_CTC_MID 0x00000400 // Mid Band
6001
#define ADC_DCCTL5_CTC_HIGH 0x00000C00 // High Band
6002
#define ADC_DCCTL5_CTM_M 0x00000300 // Comparison Trigger Mode
6003
#define ADC_DCCTL5_CTM_ALWAYS 0x00000000 // Always
6004
#define ADC_DCCTL5_CTM_ONCE 0x00000100 // Once
6005
#define ADC_DCCTL5_CTM_HALWAYS 0x00000200 // Hysteresis Always
6006
#define ADC_DCCTL5_CTM_HONCE 0x00000300 // Hysteresis Once
6007
#define ADC_DCCTL5_CIE 0x00000010 // Comparison Interrupt Enable
6008
#define ADC_DCCTL5_CIC_M 0x0000000C // Comparison Interrupt Condition
6009
#define ADC_DCCTL5_CIC_LOW 0x00000000 // Low Band
6010
#define ADC_DCCTL5_CIC_MID 0x00000004 // Mid Band
6011
#define ADC_DCCTL5_CIC_HIGH 0x0000000C // High Band
6012
#define ADC_DCCTL5_CIM_M 0x00000003 // Comparison Interrupt Mode
6013
#define ADC_DCCTL5_CIM_ALWAYS 0x00000000 // Always
6014
#define ADC_DCCTL5_CIM_ONCE 0x00000001 // Once
6015
#define ADC_DCCTL5_CIM_HALWAYS 0x00000002 // Hysteresis Always
6016
#define ADC_DCCTL5_CIM_HONCE 0x00000003 // Hysteresis Once
6017
6018
//*****************************************************************************
6019
//
6020
// The following are defines for the bit fields in the ADC_O_DCCTL6 register.
6021
//
6022
//*****************************************************************************
6023
#define ADC_DCCTL6_CTE 0x00001000 // Comparison Trigger Enable
6024
#define ADC_DCCTL6_CTC_M 0x00000C00 // Comparison Trigger Condition
6025
#define ADC_DCCTL6_CTC_LOW 0x00000000 // Low Band
6026
#define ADC_DCCTL6_CTC_MID 0x00000400 // Mid Band
6027
#define ADC_DCCTL6_CTC_HIGH 0x00000C00 // High Band
6028
#define ADC_DCCTL6_CTM_M 0x00000300 // Comparison Trigger Mode
6029
#define ADC_DCCTL6_CTM_ALWAYS 0x00000000 // Always
6030
#define ADC_DCCTL6_CTM_ONCE 0x00000100 // Once
6031
#define ADC_DCCTL6_CTM_HALWAYS 0x00000200 // Hysteresis Always
6032
#define ADC_DCCTL6_CTM_HONCE 0x00000300 // Hysteresis Once
6033
#define ADC_DCCTL6_CIE 0x00000010 // Comparison Interrupt Enable
6034
#define ADC_DCCTL6_CIC_M 0x0000000C // Comparison Interrupt Condition
6035
#define ADC_DCCTL6_CIC_LOW 0x00000000 // Low Band
6036
#define ADC_DCCTL6_CIC_MID 0x00000004 // Mid Band
6037
#define ADC_DCCTL6_CIC_HIGH 0x0000000C // High Band
6038
#define ADC_DCCTL6_CIM_M 0x00000003 // Comparison Interrupt Mode
6039
#define ADC_DCCTL6_CIM_ALWAYS 0x00000000 // Always
6040
#define ADC_DCCTL6_CIM_ONCE 0x00000001 // Once
6041
#define ADC_DCCTL6_CIM_HALWAYS 0x00000002 // Hysteresis Always
6042
#define ADC_DCCTL6_CIM_HONCE 0x00000003 // Hysteresis Once
6043
6044
//*****************************************************************************
6045
//
6046
// The following are defines for the bit fields in the ADC_O_DCCTL7 register.
6047
//
6048
//*****************************************************************************
6049
#define ADC_DCCTL7_CTE 0x00001000 // Comparison Trigger Enable
6050
#define ADC_DCCTL7_CTC_M 0x00000C00 // Comparison Trigger Condition
6051
#define ADC_DCCTL7_CTC_LOW 0x00000000 // Low Band
6052
#define ADC_DCCTL7_CTC_MID 0x00000400 // Mid Band
6053
#define ADC_DCCTL7_CTC_HIGH 0x00000C00 // High Band
6054
#define ADC_DCCTL7_CTM_M 0x00000300 // Comparison Trigger Mode
6055
#define ADC_DCCTL7_CTM_ALWAYS 0x00000000 // Always
6056
#define ADC_DCCTL7_CTM_ONCE 0x00000100 // Once
6057
#define ADC_DCCTL7_CTM_HALWAYS 0x00000200 // Hysteresis Always
6058
#define ADC_DCCTL7_CTM_HONCE 0x00000300 // Hysteresis Once
6059
#define ADC_DCCTL7_CIE 0x00000010 // Comparison Interrupt Enable
6060
#define ADC_DCCTL7_CIC_M 0x0000000C // Comparison Interrupt Condition
6061
#define ADC_DCCTL7_CIC_LOW 0x00000000 // Low Band
6062
#define ADC_DCCTL7_CIC_MID 0x00000004 // Mid Band
6063
#define ADC_DCCTL7_CIC_HIGH 0x0000000C // High Band
6064
#define ADC_DCCTL7_CIM_M 0x00000003 // Comparison Interrupt Mode
6065
#define ADC_DCCTL7_CIM_ALWAYS 0x00000000 // Always
6066
#define ADC_DCCTL7_CIM_ONCE 0x00000001 // Once
6067
#define ADC_DCCTL7_CIM_HALWAYS 0x00000002 // Hysteresis Always
6068
#define ADC_DCCTL7_CIM_HONCE 0x00000003 // Hysteresis Once
6069
6070
//*****************************************************************************
6071
//
6072
// The following are defines for the bit fields in the ADC_O_DCCMP0 register.
6073
//
6074
//*****************************************************************************
6075
#define ADC_DCCMP0_COMP1_M 0x0FFF0000 // Compare 1
6076
#define ADC_DCCMP0_COMP0_M 0x00000FFF // Compare 0
6077
#define ADC_DCCMP0_COMP1_S 16
6078
#define ADC_DCCMP0_COMP0_S 0
6079
6080
//*****************************************************************************
6081
//
6082
// The following are defines for the bit fields in the ADC_O_DCCMP1 register.
6083
//
6084
//*****************************************************************************
6085
#define ADC_DCCMP1_COMP1_M 0x0FFF0000 // Compare 1
6086
#define ADC_DCCMP1_COMP0_M 0x00000FFF // Compare 0
6087
#define ADC_DCCMP1_COMP1_S 16
6088
#define ADC_DCCMP1_COMP0_S 0
6089
6090
//*****************************************************************************
6091
//
6092
// The following are defines for the bit fields in the ADC_O_DCCMP2 register.
6093
//
6094
//*****************************************************************************
6095
#define ADC_DCCMP2_COMP1_M 0x0FFF0000 // Compare 1
6096
#define ADC_DCCMP2_COMP0_M 0x00000FFF // Compare 0
6097
#define ADC_DCCMP2_COMP1_S 16
6098
#define ADC_DCCMP2_COMP0_S 0
6099
6100
//*****************************************************************************
6101
//
6102
// The following are defines for the bit fields in the ADC_O_DCCMP3 register.
6103
//
6104
//*****************************************************************************
6105
#define ADC_DCCMP3_COMP1_M 0x0FFF0000 // Compare 1
6106
#define ADC_DCCMP3_COMP0_M 0x00000FFF // Compare 0
6107
#define ADC_DCCMP3_COMP1_S 16
6108
#define ADC_DCCMP3_COMP0_S 0
6109
6110
//*****************************************************************************
6111
//
6112
// The following are defines for the bit fields in the ADC_O_DCCMP4 register.
6113
//
6114
//*****************************************************************************
6115
#define ADC_DCCMP4_COMP1_M 0x0FFF0000 // Compare 1
6116
#define ADC_DCCMP4_COMP0_M 0x00000FFF // Compare 0
6117
#define ADC_DCCMP4_COMP1_S 16
6118
#define ADC_DCCMP4_COMP0_S 0
6119
6120
//*****************************************************************************
6121
//
6122
// The following are defines for the bit fields in the ADC_O_DCCMP5 register.
6123
//
6124
//*****************************************************************************
6125
#define ADC_DCCMP5_COMP1_M 0x0FFF0000 // Compare 1
6126
#define ADC_DCCMP5_COMP0_M 0x00000FFF // Compare 0
6127
#define ADC_DCCMP5_COMP1_S 16
6128
#define ADC_DCCMP5_COMP0_S 0
6129
6130
//*****************************************************************************
6131
//
6132
// The following are defines for the bit fields in the ADC_O_DCCMP6 register.
6133
//
6134
//*****************************************************************************
6135
#define ADC_DCCMP6_COMP1_M 0x0FFF0000 // Compare 1
6136
#define ADC_DCCMP6_COMP0_M 0x00000FFF // Compare 0
6137
#define ADC_DCCMP6_COMP1_S 16
6138
#define ADC_DCCMP6_COMP0_S 0
6139
6140
//*****************************************************************************
6141
//
6142
// The following are defines for the bit fields in the ADC_O_DCCMP7 register.
6143
//
6144
//*****************************************************************************
6145
#define ADC_DCCMP7_COMP1_M 0x0FFF0000 // Compare 1
6146
#define ADC_DCCMP7_COMP0_M 0x00000FFF // Compare 0
6147
#define ADC_DCCMP7_COMP1_S 16
6148
#define ADC_DCCMP7_COMP0_S 0
6149
6150
//*****************************************************************************
6151
//
6152
// The following are defines for the bit fields in the ADC_O_PP register.
6153
//
6154
//*****************************************************************************
6155
#define ADC_PP_TS 0x00800000 // Temperature Sensor
6156
#define ADC_PP_RSL_M 0x007C0000 // Resolution
6157
#define ADC_PP_TYPE_M 0x00030000 // ADC Architecture
6158
#define ADC_PP_TYPE_SAR 0x00000000 // SAR
6159
#define ADC_PP_DC_M 0x0000FC00 // Digital Comparator Count
6160
#define ADC_PP_CH_M 0x000003F0 // ADC Channel Count
6161
#define ADC_PP_MSR_M 0x0000000F // Maximum ADC Sample Rate
6162
#define ADC_PP_MSR_125K 0x00000001 // 125 ksps
6163
#define ADC_PP_MSR_250K 0x00000003 // 250 ksps
6164
#define ADC_PP_MSR_500K 0x00000005 // 500 ksps
6165
#define ADC_PP_MSR_1M 0x00000007 // 1 Msps
6166
#define ADC_PP_RSL_S 18
6167
#define ADC_PP_DC_S 10
6168
#define ADC_PP_CH_S 4
6169
6170
//*****************************************************************************
6171
//
6172
// The following are defines for the bit fields in the ADC_O_PC register.
6173
//
6174
//*****************************************************************************
6175
#define ADC_PC_SR_M 0x0000000F // ADC Sample Rate
6176
#define ADC_PC_SR_125K 0x00000001 // 125 ksps
6177
#define ADC_PC_SR_250K 0x00000003 // 250 ksps
6178
#define ADC_PC_SR_500K 0x00000005 // 500 ksps
6179
#define ADC_PC_SR_1M 0x00000007 // 1 Msps
6180
6181
//*****************************************************************************
6182
//
6183
// The following are defines for the bit fields in the ADC_O_CC register.
6184
//
6185
//*****************************************************************************
6186
#define ADC_CC_CS_M 0x0000000F // ADC Clock Source
6187
#define ADC_CC_CS_SYSPLL 0x00000000 // PLL VCO divided by CLKDIV
6188
#define ADC_CC_CS_PIOSC 0x00000001 // PIOSC
6189
6190
//*****************************************************************************
6191
//
6192
// The following are defines for the bit fields in the COMP_O_ACMIS register.
6193
//
6194
//*****************************************************************************
6195
#define COMP_ACMIS_IN1 0x00000002 // Comparator 1 Masked Interrupt
6196
// Status
6197
#define COMP_ACMIS_IN0 0x00000001 // Comparator 0 Masked Interrupt
6198
// Status
6199
6200
//*****************************************************************************
6201
//
6202
// The following are defines for the bit fields in the COMP_O_ACRIS register.
6203
//
6204
//*****************************************************************************
6205
#define COMP_ACRIS_IN1 0x00000002 // Comparator 1 Interrupt Status
6206
#define COMP_ACRIS_IN0 0x00000001 // Comparator 0 Interrupt Status
6207
6208
//*****************************************************************************
6209
//
6210
// The following are defines for the bit fields in the COMP_O_ACINTEN register.
6211
//
6212
//*****************************************************************************
6213
#define COMP_ACINTEN_IN1 0x00000002 // Comparator 1 Interrupt Enable
6214
#define COMP_ACINTEN_IN0 0x00000001 // Comparator 0 Interrupt Enable
6215
6216
//*****************************************************************************
6217
//
6218
// The following are defines for the bit fields in the COMP_O_ACREFCTL
6219
// register.
6220
//
6221
//*****************************************************************************
6222
#define COMP_ACREFCTL_EN 0x00000200 // Resistor Ladder Enable
6223
#define COMP_ACREFCTL_RNG 0x00000100 // Resistor Ladder Range
6224
#define COMP_ACREFCTL_VREF_M 0x0000000F // Resistor Ladder Voltage Ref
6225
#define COMP_ACREFCTL_VREF_S 0
6226
6227
//*****************************************************************************
6228
//
6229
// The following are defines for the bit fields in the COMP_O_ACSTAT0 register.
6230
//
6231
//*****************************************************************************
6232
#define COMP_ACSTAT0_OVAL 0x00000002 // Comparator Output Value
6233
6234
//*****************************************************************************
6235
//
6236
// The following are defines for the bit fields in the COMP_O_ACCTL0 register.
6237
//
6238
//*****************************************************************************
6239
#define COMP_ACCTL0_TOEN 0x00000800 // Trigger Output Enable
6240
#define COMP_ACCTL0_ASRCP_M 0x00000600 // Analog Source Positive
6241
#define COMP_ACCTL0_ASRCP_PIN 0x00000000 // Pin value of Cn+
6242
#define COMP_ACCTL0_ASRCP_PIN0 0x00000200 // Pin value of C0+
6243
#define COMP_ACCTL0_ASRCP_REF 0x00000400 // Internal voltage reference
6244
#define COMP_ACCTL0_TSLVAL 0x00000080 // Trigger Sense Level Value
6245
#define COMP_ACCTL0_TSEN_M 0x00000060 // Trigger Sense
6246
#define COMP_ACCTL0_TSEN_LEVEL 0x00000000 // Level sense, see TSLVAL
6247
#define COMP_ACCTL0_TSEN_FALL 0x00000020 // Falling edge
6248
#define COMP_ACCTL0_TSEN_RISE 0x00000040 // Rising edge
6249
#define COMP_ACCTL0_TSEN_BOTH 0x00000060 // Either edge
6250
#define COMP_ACCTL0_ISLVAL 0x00000010 // Interrupt Sense Level Value
6251
#define COMP_ACCTL0_ISEN_M 0x0000000C // Interrupt Sense
6252
#define COMP_ACCTL0_ISEN_LEVEL 0x00000000 // Level sense, see ISLVAL
6253
#define COMP_ACCTL0_ISEN_FALL 0x00000004 // Falling edge
6254
#define COMP_ACCTL0_ISEN_RISE 0x00000008 // Rising edge
6255
#define COMP_ACCTL0_ISEN_BOTH 0x0000000C // Either edge
6256
#define COMP_ACCTL0_CINV 0x00000002 // Comparator Output Invert
6257
6258
//*****************************************************************************
6259
//
6260
// The following are defines for the bit fields in the COMP_O_ACSTAT1 register.
6261
//
6262
//*****************************************************************************
6263
#define COMP_ACSTAT1_OVAL 0x00000002 // Comparator Output Value
6264
6265
//*****************************************************************************
6266
//
6267
// The following are defines for the bit fields in the COMP_O_ACCTL1 register.
6268
//
6269
//*****************************************************************************
6270
#define COMP_ACCTL1_TOEN 0x00000800 // Trigger Output Enable
6271
#define COMP_ACCTL1_ASRCP_M 0x00000600 // Analog Source Positive
6272
#define COMP_ACCTL1_ASRCP_PIN 0x00000000 // Pin value of Cn+
6273
#define COMP_ACCTL1_ASRCP_PIN0 0x00000200 // Pin value of C0+
6274
#define COMP_ACCTL1_ASRCP_REF 0x00000400 // Internal voltage reference
6275
#define COMP_ACCTL1_TSLVAL 0x00000080 // Trigger Sense Level Value
6276
#define COMP_ACCTL1_TSEN_M 0x00000060 // Trigger Sense
6277
#define COMP_ACCTL1_TSEN_LEVEL 0x00000000 // Level sense, see TSLVAL
6278
#define COMP_ACCTL1_TSEN_FALL 0x00000020 // Falling edge
6279
#define COMP_ACCTL1_TSEN_RISE 0x00000040 // Rising edge
6280
#define COMP_ACCTL1_TSEN_BOTH 0x00000060 // Either edge
6281
#define COMP_ACCTL1_ISLVAL 0x00000010 // Interrupt Sense Level Value
6282
#define COMP_ACCTL1_ISEN_M 0x0000000C // Interrupt Sense
6283
#define COMP_ACCTL1_ISEN_LEVEL 0x00000000 // Level sense, see ISLVAL
6284
#define COMP_ACCTL1_ISEN_FALL 0x00000004 // Falling edge
6285
#define COMP_ACCTL1_ISEN_RISE 0x00000008 // Rising edge
6286
#define COMP_ACCTL1_ISEN_BOTH 0x0000000C // Either edge
6287
#define COMP_ACCTL1_CINV 0x00000002 // Comparator Output Invert
6288
6289
//*****************************************************************************
6290
//
6291
// The following are defines for the bit fields in the COMP_O_PP register.
6292
//
6293
//*****************************************************************************
6294
#define COMP_PP_C1O 0x00020000 // Comparator Output 1 Present
6295
#define COMP_PP_C0O 0x00010000 // Comparator Output 0 Present
6296
#define COMP_PP_CMP1 0x00000002 // Comparator 1 Present
6297
#define COMP_PP_CMP0 0x00000001 // Comparator 0 Present
6298
6299
//*****************************************************************************
6300
//
6301
// The following are defines for the bit fields in the CAN_O_CTL register.
6302
//
6303
//*****************************************************************************
6304
#define CAN_CTL_TEST 0x00000080 // Test Mode Enable
6305
#define CAN_CTL_CCE 0x00000040 // Configuration Change Enable
6306
#define CAN_CTL_DAR 0x00000020 // Disable Automatic-Retransmission
6307
#define CAN_CTL_EIE 0x00000008 // Error Interrupt Enable
6308
#define CAN_CTL_SIE 0x00000004 // Status Interrupt Enable
6309
#define CAN_CTL_IE 0x00000002 // CAN Interrupt Enable
6310
#define CAN_CTL_INIT 0x00000001 // Initialization
6311
6312
//*****************************************************************************
6313
//
6314
// The following are defines for the bit fields in the CAN_O_STS register.
6315
//
6316
//*****************************************************************************
6317
#define CAN_STS_BOFF 0x00000080 // Bus-Off Status
6318
#define CAN_STS_EWARN 0x00000040 // Warning Status
6319
#define CAN_STS_EPASS 0x00000020 // Error Passive
6320
#define CAN_STS_RXOK 0x00000010 // Received a Message Successfully
6321
#define CAN_STS_TXOK 0x00000008 // Transmitted a Message
6322
// Successfully
6323
#define CAN_STS_LEC_M 0x00000007 // Last Error Code
6324
#define CAN_STS_LEC_NONE 0x00000000 // No Error
6325
#define CAN_STS_LEC_STUFF 0x00000001 // Stuff Error
6326
#define CAN_STS_LEC_FORM 0x00000002 // Format Error
6327
#define CAN_STS_LEC_ACK 0x00000003 // ACK Error
6328
#define CAN_STS_LEC_BIT1 0x00000004 // Bit 1 Error
6329
#define CAN_STS_LEC_BIT0 0x00000005 // Bit 0 Error
6330
#define CAN_STS_LEC_CRC 0x00000006 // CRC Error
6331
#define CAN_STS_LEC_NOEVENT 0x00000007 // No Event
6332
6333
//*****************************************************************************
6334
//
6335
// The following are defines for the bit fields in the CAN_O_ERR register.
6336
//
6337
//*****************************************************************************
6338
#define CAN_ERR_RP 0x00008000 // Received Error Passive
6339
#define CAN_ERR_REC_M 0x00007F00 // Receive Error Counter
6340
#define CAN_ERR_TEC_M 0x000000FF // Transmit Error Counter
6341
#define CAN_ERR_REC_S 8
6342
#define CAN_ERR_TEC_S 0
6343
6344
//*****************************************************************************
6345
//
6346
// The following are defines for the bit fields in the CAN_O_BIT register.
6347
//
6348
//*****************************************************************************
6349
#define CAN_BIT_TSEG2_M 0x00007000 // Time Segment after Sample Point
6350
#define CAN_BIT_TSEG1_M 0x00000F00 // Time Segment Before Sample Point
6351
#define CAN_BIT_SJW_M 0x000000C0 // (Re)Synchronization Jump Width
6352
#define CAN_BIT_BRP_M 0x0000003F // Baud Rate Prescaler
6353
#define CAN_BIT_TSEG2_S 12
6354
#define CAN_BIT_TSEG1_S 8
6355
#define CAN_BIT_SJW_S 6
6356
#define CAN_BIT_BRP_S 0
6357
6358
//*****************************************************************************
6359
//
6360
// The following are defines for the bit fields in the CAN_O_INT register.
6361
//
6362
//*****************************************************************************
6363
#define CAN_INT_INTID_M 0x0000FFFF // Interrupt Identifier
6364
#define CAN_INT_INTID_NONE 0x00000000 // No interrupt pending
6365
#define CAN_INT_INTID_STATUS 0x00008000 // Status Interrupt
6366
6367
//*****************************************************************************
6368
//
6369
// The following are defines for the bit fields in the CAN_O_TST register.
6370
//
6371
//*****************************************************************************
6372
#define CAN_TST_RX 0x00000080 // Receive Observation
6373
#define CAN_TST_TX_M 0x00000060 // Transmit Control
6374
#define CAN_TST_TX_CANCTL 0x00000000 // CAN Module Control
6375
#define CAN_TST_TX_SAMPLE 0x00000020 // Sample Point
6376
#define CAN_TST_TX_DOMINANT 0x00000040 // Driven Low
6377
#define CAN_TST_TX_RECESSIVE 0x00000060 // Driven High
6378
#define CAN_TST_LBACK 0x00000010 // Loopback Mode
6379
#define CAN_TST_SILENT 0x00000008 // Silent Mode
6380
#define CAN_TST_BASIC 0x00000004 // Basic Mode
6381
6382
//*****************************************************************************
6383
//
6384
// The following are defines for the bit fields in the CAN_O_BRPE register.
6385
//
6386
//*****************************************************************************
6387
#define CAN_BRPE_BRPE_M 0x0000000F // Baud Rate Prescaler Extension
6388
#define CAN_BRPE_BRPE_S 0
6389
6390
//*****************************************************************************
6391
//
6392
// The following are defines for the bit fields in the CAN_O_IF1CRQ register.
6393
//
6394
//*****************************************************************************
6395
#define CAN_IF1CRQ_BUSY 0x00008000 // Busy Flag
6396
#define CAN_IF1CRQ_MNUM_M 0x0000003F // Message Number
6397
#define CAN_IF1CRQ_MNUM_S 0
6398
6399
//*****************************************************************************
6400
//
6401
// The following are defines for the bit fields in the CAN_O_IF1CMSK register.
6402
//
6403
//*****************************************************************************
6404
#define CAN_IF1CMSK_WRNRD 0x00000080 // Write, Not Read
6405
#define CAN_IF1CMSK_MASK 0x00000040 // Access Mask Bits
6406
#define CAN_IF1CMSK_ARB 0x00000020 // Access Arbitration Bits
6407
#define CAN_IF1CMSK_CONTROL 0x00000010 // Access Control Bits
6408
#define CAN_IF1CMSK_CLRINTPND 0x00000008 // Clear Interrupt Pending Bit
6409
#define CAN_IF1CMSK_NEWDAT 0x00000004 // Access New Data
6410
#define CAN_IF1CMSK_TXRQST 0x00000004 // Access Transmission Request
6411
#define CAN_IF1CMSK_DATAA 0x00000002 // Access Data Byte 0 to 3
6412
#define CAN_IF1CMSK_DATAB 0x00000001 // Access Data Byte 4 to 7
6413
6414
//*****************************************************************************
6415
//
6416
// The following are defines for the bit fields in the CAN_O_IF1MSK1 register.
6417
//
6418
//*****************************************************************************
6419
#define CAN_IF1MSK1_IDMSK_M 0x0000FFFF // Identifier Mask
6420
#define CAN_IF1MSK1_IDMSK_S 0
6421
6422
//*****************************************************************************
6423
//
6424
// The following are defines for the bit fields in the CAN_O_IF1MSK2 register.
6425
//
6426
//*****************************************************************************
6427
#define CAN_IF1MSK2_MXTD 0x00008000 // Mask Extended Identifier
6428
#define CAN_IF1MSK2_MDIR 0x00004000 // Mask Message Direction
6429
#define CAN_IF1MSK2_IDMSK_M 0x00001FFF // Identifier Mask
6430
#define CAN_IF1MSK2_IDMSK_S 0
6431
6432
//*****************************************************************************
6433
//
6434
// The following are defines for the bit fields in the CAN_O_IF1ARB1 register.
6435
//
6436
//*****************************************************************************
6437
#define CAN_IF1ARB1_ID_M 0x0000FFFF // Message Identifier
6438
#define CAN_IF1ARB1_ID_S 0
6439
6440
//*****************************************************************************
6441
//
6442
// The following are defines for the bit fields in the CAN_O_IF1ARB2 register.
6443
//
6444
//*****************************************************************************
6445
#define CAN_IF1ARB2_MSGVAL 0x00008000 // Message Valid
6446
#define CAN_IF1ARB2_XTD 0x00004000 // Extended Identifier
6447
#define CAN_IF1ARB2_DIR 0x00002000 // Message Direction
6448
#define CAN_IF1ARB2_ID_M 0x00001FFF // Message Identifier
6449
#define CAN_IF1ARB2_ID_S 0
6450
6451
//*****************************************************************************
6452
//
6453
// The following are defines for the bit fields in the CAN_O_IF1MCTL register.
6454
//
6455
//*****************************************************************************
6456
#define CAN_IF1MCTL_NEWDAT 0x00008000 // New Data
6457
#define CAN_IF1MCTL_MSGLST 0x00004000 // Message Lost
6458
#define CAN_IF1MCTL_INTPND 0x00002000 // Interrupt Pending
6459
#define CAN_IF1MCTL_UMASK 0x00001000 // Use Acceptance Mask
6460
#define CAN_IF1MCTL_TXIE 0x00000800 // Transmit Interrupt Enable
6461
#define CAN_IF1MCTL_RXIE 0x00000400 // Receive Interrupt Enable
6462
#define CAN_IF1MCTL_RMTEN 0x00000200 // Remote Enable
6463
#define CAN_IF1MCTL_TXRQST 0x00000100 // Transmit Request
6464
#define CAN_IF1MCTL_EOB 0x00000080 // End of Buffer
6465
#define CAN_IF1MCTL_DLC_M 0x0000000F // Data Length Code
6466
#define CAN_IF1MCTL_DLC_S 0
6467
6468
//*****************************************************************************
6469
//
6470
// The following are defines for the bit fields in the CAN_O_IF1DA1 register.
6471
//
6472
//*****************************************************************************
6473
#define CAN_IF1DA1_DATA_M 0x0000FFFF // Data
6474
#define CAN_IF1DA1_DATA_S 0
6475
6476
//*****************************************************************************
6477
//
6478
// The following are defines for the bit fields in the CAN_O_IF1DA2 register.
6479
//
6480
//*****************************************************************************
6481
#define CAN_IF1DA2_DATA_M 0x0000FFFF // Data
6482
#define CAN_IF1DA2_DATA_S 0
6483
6484
//*****************************************************************************
6485
//
6486
// The following are defines for the bit fields in the CAN_O_IF1DB1 register.
6487
//
6488
//*****************************************************************************
6489
#define CAN_IF1DB1_DATA_M 0x0000FFFF // Data
6490
#define CAN_IF1DB1_DATA_S 0
6491
6492
//*****************************************************************************
6493
//
6494
// The following are defines for the bit fields in the CAN_O_IF1DB2 register.
6495
//
6496
//*****************************************************************************
6497
#define CAN_IF1DB2_DATA_M 0x0000FFFF // Data
6498
#define CAN_IF1DB2_DATA_S 0
6499
6500
//*****************************************************************************
6501
//
6502
// The following are defines for the bit fields in the CAN_O_IF2CRQ register.
6503
//
6504
//*****************************************************************************
6505
#define CAN_IF2CRQ_BUSY 0x00008000 // Busy Flag
6506
#define CAN_IF2CRQ_MNUM_M 0x0000003F // Message Number
6507
#define CAN_IF2CRQ_MNUM_S 0
6508
6509
//*****************************************************************************
6510
//
6511
// The following are defines for the bit fields in the CAN_O_IF2CMSK register.
6512
//
6513
//*****************************************************************************
6514
#define CAN_IF2CMSK_WRNRD 0x00000080 // Write, Not Read
6515
#define CAN_IF2CMSK_MASK 0x00000040 // Access Mask Bits
6516
#define CAN_IF2CMSK_ARB 0x00000020 // Access Arbitration Bits
6517
#define CAN_IF2CMSK_CONTROL 0x00000010 // Access Control Bits
6518
#define CAN_IF2CMSK_CLRINTPND 0x00000008 // Clear Interrupt Pending Bit
6519
#define CAN_IF2CMSK_NEWDAT 0x00000004 // Access New Data
6520
#define CAN_IF2CMSK_TXRQST 0x00000004 // Access Transmission Request
6521
#define CAN_IF2CMSK_DATAA 0x00000002 // Access Data Byte 0 to 3
6522
#define CAN_IF2CMSK_DATAB 0x00000001 // Access Data Byte 4 to 7
6523
6524
//*****************************************************************************
6525
//
6526
// The following are defines for the bit fields in the CAN_O_IF2MSK1 register.
6527
//
6528
//*****************************************************************************
6529
#define CAN_IF2MSK1_IDMSK_M 0x0000FFFF // Identifier Mask
6530
#define CAN_IF2MSK1_IDMSK_S 0
6531
6532
//*****************************************************************************
6533
//
6534
// The following are defines for the bit fields in the CAN_O_IF2MSK2 register.
6535
//
6536
//*****************************************************************************
6537
#define CAN_IF2MSK2_MXTD 0x00008000 // Mask Extended Identifier
6538
#define CAN_IF2MSK2_MDIR 0x00004000 // Mask Message Direction
6539
#define CAN_IF2MSK2_IDMSK_M 0x00001FFF // Identifier Mask
6540
#define CAN_IF2MSK2_IDMSK_S 0
6541
6542
//*****************************************************************************
6543
//
6544
// The following are defines for the bit fields in the CAN_O_IF2ARB1 register.
6545
//
6546
//*****************************************************************************
6547
#define CAN_IF2ARB1_ID_M 0x0000FFFF // Message Identifier
6548
#define CAN_IF2ARB1_ID_S 0
6549
6550
//*****************************************************************************
6551
//
6552
// The following are defines for the bit fields in the CAN_O_IF2ARB2 register.
6553
//
6554
//*****************************************************************************
6555
#define CAN_IF2ARB2_MSGVAL 0x00008000 // Message Valid
6556
#define CAN_IF2ARB2_XTD 0x00004000 // Extended Identifier
6557
#define CAN_IF2ARB2_DIR 0x00002000 // Message Direction
6558
#define CAN_IF2ARB2_ID_M 0x00001FFF // Message Identifier
6559
#define CAN_IF2ARB2_ID_S 0
6560
6561
//*****************************************************************************
6562
//
6563
// The following are defines for the bit fields in the CAN_O_IF2MCTL register.
6564
//
6565
//*****************************************************************************
6566
#define CAN_IF2MCTL_NEWDAT 0x00008000 // New Data
6567
#define CAN_IF2MCTL_MSGLST 0x00004000 // Message Lost
6568
#define CAN_IF2MCTL_INTPND 0x00002000 // Interrupt Pending
6569
#define CAN_IF2MCTL_UMASK 0x00001000 // Use Acceptance Mask
6570
#define CAN_IF2MCTL_TXIE 0x00000800 // Transmit Interrupt Enable
6571
#define CAN_IF2MCTL_RXIE 0x00000400 // Receive Interrupt Enable
6572
#define CAN_IF2MCTL_RMTEN 0x00000200 // Remote Enable
6573
#define CAN_IF2MCTL_TXRQST 0x00000100 // Transmit Request
6574
#define CAN_IF2MCTL_EOB 0x00000080 // End of Buffer
6575
#define CAN_IF2MCTL_DLC_M 0x0000000F // Data Length Code
6576
#define CAN_IF2MCTL_DLC_S 0
6577
6578
//*****************************************************************************
6579
//
6580
// The following are defines for the bit fields in the CAN_O_IF2DA1 register.
6581
//
6582
//*****************************************************************************
6583
#define CAN_IF2DA1_DATA_M 0x0000FFFF // Data
6584
#define CAN_IF2DA1_DATA_S 0
6585
6586
//*****************************************************************************
6587
//
6588
// The following are defines for the bit fields in the CAN_O_IF2DA2 register.
6589
//
6590
//*****************************************************************************
6591
#define CAN_IF2DA2_DATA_M 0x0000FFFF // Data
6592
#define CAN_IF2DA2_DATA_S 0
6593
6594
//*****************************************************************************
6595
//
6596
// The following are defines for the bit fields in the CAN_O_IF2DB1 register.
6597
//
6598
//*****************************************************************************
6599
#define CAN_IF2DB1_DATA_M 0x0000FFFF // Data
6600
#define CAN_IF2DB1_DATA_S 0
6601
6602
//*****************************************************************************
6603
//
6604
// The following are defines for the bit fields in the CAN_O_IF2DB2 register.
6605
//
6606
//*****************************************************************************
6607
#define CAN_IF2DB2_DATA_M 0x0000FFFF // Data
6608
#define CAN_IF2DB2_DATA_S 0
6609
6610
//*****************************************************************************
6611
//
6612
// The following are defines for the bit fields in the CAN_O_TXRQ1 register.
6613
//
6614
//*****************************************************************************
6615
#define CAN_TXRQ1_TXRQST_M 0x0000FFFF // Transmission Request Bits
6616
#define CAN_TXRQ1_TXRQST_S 0
6617
6618
//*****************************************************************************
6619
//
6620
// The following are defines for the bit fields in the CAN_O_TXRQ2 register.
6621
//
6622
//*****************************************************************************
6623
#define CAN_TXRQ2_TXRQST_M 0x0000FFFF // Transmission Request Bits
6624
#define CAN_TXRQ2_TXRQST_S 0
6625
6626
//*****************************************************************************
6627
//
6628
// The following are defines for the bit fields in the CAN_O_NWDA1 register.
6629
//
6630
//*****************************************************************************
6631
#define CAN_NWDA1_NEWDAT_M 0x0000FFFF // New Data Bits
6632
#define CAN_NWDA1_NEWDAT_S 0
6633
6634
//*****************************************************************************
6635
//
6636
// The following are defines for the bit fields in the CAN_O_NWDA2 register.
6637
//
6638
//*****************************************************************************
6639
#define CAN_NWDA2_NEWDAT_M 0x0000FFFF // New Data Bits
6640
#define CAN_NWDA2_NEWDAT_S 0
6641
6642
//*****************************************************************************
6643
//
6644
// The following are defines for the bit fields in the CAN_O_MSG1INT register.
6645
//
6646
//*****************************************************************************
6647
#define CAN_MSG1INT_INTPND_M 0x0000FFFF // Interrupt Pending Bits
6648
#define CAN_MSG1INT_INTPND_S 0
6649
6650
//*****************************************************************************
6651
//
6652
// The following are defines for the bit fields in the CAN_O_MSG2INT register.
6653
//
6654
//*****************************************************************************
6655
#define CAN_MSG2INT_INTPND_M 0x0000FFFF // Interrupt Pending Bits
6656
#define CAN_MSG2INT_INTPND_S 0
6657
6658
//*****************************************************************************
6659
//
6660
// The following are defines for the bit fields in the CAN_O_MSG1VAL register.
6661
//
6662
//*****************************************************************************
6663
#define CAN_MSG1VAL_MSGVAL_M 0x0000FFFF // Message Valid Bits
6664
#define CAN_MSG1VAL_MSGVAL_S 0
6665
6666
//*****************************************************************************
6667
//
6668
// The following are defines for the bit fields in the CAN_O_MSG2VAL register.
6669
//
6670
//*****************************************************************************
6671
#define CAN_MSG2VAL_MSGVAL_M 0x0000FFFF // Message Valid Bits
6672
#define CAN_MSG2VAL_MSGVAL_S 0
6673
6674
//*****************************************************************************
6675
//
6676
// The following are defines for the bit fields in the USB_O_FADDR register.
6677
//
6678
//*****************************************************************************
6679
#define USB_FADDR_M 0x0000007F // Function Address
6680
#define USB_FADDR_S 0
6681
6682
//*****************************************************************************
6683
//
6684
// The following are defines for the bit fields in the USB_O_POWER register.
6685
//
6686
//*****************************************************************************
6687
#define USB_POWER_ISOUP 0x00000080 // Isochronous Update
6688
#define USB_POWER_SOFTCONN 0x00000040 // Soft Connect/Disconnect
6689
#define USB_POWER_RESET 0x00000008 // RESET Signaling
6690
#define USB_POWER_RESUME 0x00000004 // RESUME Signaling
6691
#define USB_POWER_SUSPEND 0x00000002 // SUSPEND Mode
6692
#define USB_POWER_PWRDNPHY 0x00000001 // Power Down PHY
6693
6694
//*****************************************************************************
6695
//
6696
// The following are defines for the bit fields in the USB_O_TXIS register.
6697
//
6698
//*****************************************************************************
6699
#define USB_TXIS_EP7 0x00000080 // TX Endpoint 7 Interrupt
6700
#define USB_TXIS_EP6 0x00000040 // TX Endpoint 6 Interrupt
6701
#define USB_TXIS_EP5 0x00000020 // TX Endpoint 5 Interrupt
6702
#define USB_TXIS_EP4 0x00000010 // TX Endpoint 4 Interrupt
6703
#define USB_TXIS_EP3 0x00000008 // TX Endpoint 3 Interrupt
6704
#define USB_TXIS_EP2 0x00000004 // TX Endpoint 2 Interrupt
6705
#define USB_TXIS_EP1 0x00000002 // TX Endpoint 1 Interrupt
6706
#define USB_TXIS_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
6707
6708
//*****************************************************************************
6709
//
6710
// The following are defines for the bit fields in the USB_O_RXIS register.
6711
//
6712
//*****************************************************************************
6713
#define USB_RXIS_EP7 0x00000080 // RX Endpoint 7 Interrupt
6714
#define USB_RXIS_EP6 0x00000040 // RX Endpoint 6 Interrupt
6715
#define USB_RXIS_EP5 0x00000020 // RX Endpoint 5 Interrupt
6716
#define USB_RXIS_EP4 0x00000010 // RX Endpoint 4 Interrupt
6717
#define USB_RXIS_EP3 0x00000008 // RX Endpoint 3 Interrupt
6718
#define USB_RXIS_EP2 0x00000004 // RX Endpoint 2 Interrupt
6719
#define USB_RXIS_EP1 0x00000002 // RX Endpoint 1 Interrupt
6720
6721
//*****************************************************************************
6722
//
6723
// The following are defines for the bit fields in the USB_O_TXIE register.
6724
//
6725
//*****************************************************************************
6726
#define USB_TXIE_EP7 0x00000080 // TX Endpoint 7 Interrupt Enable
6727
#define USB_TXIE_EP6 0x00000040 // TX Endpoint 6 Interrupt Enable
6728
#define USB_TXIE_EP5 0x00000020 // TX Endpoint 5 Interrupt Enable
6729
#define USB_TXIE_EP4 0x00000010 // TX Endpoint 4 Interrupt Enable
6730
#define USB_TXIE_EP3 0x00000008 // TX Endpoint 3 Interrupt Enable
6731
#define USB_TXIE_EP2 0x00000004 // TX Endpoint 2 Interrupt Enable
6732
#define USB_TXIE_EP1 0x00000002 // TX Endpoint 1 Interrupt Enable
6733
#define USB_TXIE_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
6734
// Enable
6735
6736
//*****************************************************************************
6737
//
6738
// The following are defines for the bit fields in the USB_O_RXIE register.
6739
//
6740
//*****************************************************************************
6741
#define USB_RXIE_EP7 0x00000080 // RX Endpoint 7 Interrupt Enable
6742
#define USB_RXIE_EP6 0x00000040 // RX Endpoint 6 Interrupt Enable
6743
#define USB_RXIE_EP5 0x00000020 // RX Endpoint 5 Interrupt Enable
6744
#define USB_RXIE_EP4 0x00000010 // RX Endpoint 4 Interrupt Enable
6745
#define USB_RXIE_EP3 0x00000008 // RX Endpoint 3 Interrupt Enable
6746
#define USB_RXIE_EP2 0x00000004 // RX Endpoint 2 Interrupt Enable
6747
#define USB_RXIE_EP1 0x00000002 // RX Endpoint 1 Interrupt Enable
6748
6749
//*****************************************************************************
6750
//
6751
// The following are defines for the bit fields in the USB_O_IS register.
6752
//
6753
//*****************************************************************************
6754
#define USB_IS_VBUSERR 0x00000080 // VBUS Error (OTG only)
6755
#define USB_IS_SESREQ 0x00000040 // SESSION REQUEST (OTG only)
6756
#define USB_IS_DISCON 0x00000020 // Session Disconnect (OTG only)
6757
#define USB_IS_CONN 0x00000010 // Session Connect
6758
#define USB_IS_SOF 0x00000008 // Start of Frame
6759
#define USB_IS_BABBLE 0x00000004 // Babble Detected
6760
#define USB_IS_RESET 0x00000004 // RESET Signaling Detected
6761
#define USB_IS_RESUME 0x00000002 // RESUME Signaling Detected
6762
#define USB_IS_SUSPEND 0x00000001 // SUSPEND Signaling Detected
6763
6764
//*****************************************************************************
6765
//
6766
// The following are defines for the bit fields in the USB_O_IE register.
6767
//
6768
//*****************************************************************************
6769
#define USB_IE_VBUSERR 0x00000080 // Enable VBUS Error Interrupt (OTG
6770
// only)
6771
#define USB_IE_SESREQ 0x00000040 // Enable Session Request (OTG
6772
// only)
6773
#define USB_IE_DISCON 0x00000020 // Enable Disconnect Interrupt
6774
#define USB_IE_CONN 0x00000010 // Enable Connect Interrupt
6775
#define USB_IE_SOF 0x00000008 // Enable Start-of-Frame Interrupt
6776
#define USB_IE_BABBLE 0x00000004 // Enable Babble Interrupt
6777
#define USB_IE_RESET 0x00000004 // Enable RESET Interrupt
6778
#define USB_IE_RESUME 0x00000002 // Enable RESUME Interrupt
6779
#define USB_IE_SUSPND 0x00000001 // Enable SUSPEND Interrupt
6780
6781
//*****************************************************************************
6782
//
6783
// The following are defines for the bit fields in the USB_O_FRAME register.
6784
//
6785
//*****************************************************************************
6786
#define USB_FRAME_M 0x000007FF // Frame Number
6787
#define USB_FRAME_S 0
6788
6789
//*****************************************************************************
6790
//
6791
// The following are defines for the bit fields in the USB_O_EPIDX register.
6792
//
6793
//*****************************************************************************
6794
#define USB_EPIDX_EPIDX_M 0x0000000F // Endpoint Index
6795
#define USB_EPIDX_EPIDX_S 0
6796
6797
//*****************************************************************************
6798
//
6799
// The following are defines for the bit fields in the USB_O_TEST register.
6800
//
6801
//*****************************************************************************
6802
#define USB_TEST_FORCEH 0x00000080 // Force Host Mode
6803
#define USB_TEST_FIFOACC 0x00000040 // FIFO Access
6804
#define USB_TEST_FORCEFS 0x00000020 // Force Full-Speed Mode
6805
6806
//*****************************************************************************
6807
//
6808
// The following are defines for the bit fields in the USB_O_FIFO0 register.
6809
//
6810
//*****************************************************************************
6811
#define USB_FIFO0_EPDATA_M 0xFFFFFFFF // Endpoint Data
6812
#define USB_FIFO0_EPDATA_S 0
6813
6814
//*****************************************************************************
6815
//
6816
// The following are defines for the bit fields in the USB_O_FIFO1 register.
6817
//
6818
//*****************************************************************************
6819
#define USB_FIFO1_EPDATA_M 0xFFFFFFFF // Endpoint Data
6820
#define USB_FIFO1_EPDATA_S 0
6821
6822
//*****************************************************************************
6823
//
6824
// The following are defines for the bit fields in the USB_O_FIFO2 register.
6825
//
6826
//*****************************************************************************
6827
#define USB_FIFO2_EPDATA_M 0xFFFFFFFF // Endpoint Data
6828
#define USB_FIFO2_EPDATA_S 0
6829
6830
//*****************************************************************************
6831
//
6832
// The following are defines for the bit fields in the USB_O_FIFO3 register.
6833
//
6834
//*****************************************************************************
6835
#define USB_FIFO3_EPDATA_M 0xFFFFFFFF // Endpoint Data
6836
#define USB_FIFO3_EPDATA_S 0
6837
6838
//*****************************************************************************
6839
//
6840
// The following are defines for the bit fields in the USB_O_FIFO4 register.
6841
//
6842
//*****************************************************************************
6843
#define USB_FIFO4_EPDATA_M 0xFFFFFFFF // Endpoint Data
6844
#define USB_FIFO4_EPDATA_S 0
6845
6846
//*****************************************************************************
6847
//
6848
// The following are defines for the bit fields in the USB_O_FIFO5 register.
6849
//
6850
//*****************************************************************************
6851
#define USB_FIFO5_EPDATA_M 0xFFFFFFFF // Endpoint Data
6852
#define USB_FIFO5_EPDATA_S 0
6853
6854
//*****************************************************************************
6855
//
6856
// The following are defines for the bit fields in the USB_O_FIFO6 register.
6857
//
6858
//*****************************************************************************
6859
#define USB_FIFO6_EPDATA_M 0xFFFFFFFF // Endpoint Data
6860
#define USB_FIFO6_EPDATA_S 0
6861
6862
//*****************************************************************************
6863
//
6864
// The following are defines for the bit fields in the USB_O_FIFO7 register.
6865
//
6866
//*****************************************************************************
6867
#define USB_FIFO7_EPDATA_M 0xFFFFFFFF // Endpoint Data
6868
#define USB_FIFO7_EPDATA_S 0
6869
6870
//*****************************************************************************
6871
//
6872
// The following are defines for the bit fields in the USB_O_DEVCTL register.
6873
//
6874
//*****************************************************************************
6875
#define USB_DEVCTL_DEV 0x00000080 // Device Mode (OTG only)
6876
#define USB_DEVCTL_FSDEV 0x00000040 // Full-Speed Device Detected
6877
#define USB_DEVCTL_LSDEV 0x00000020 // Low-Speed Device Detected
6878
#define USB_DEVCTL_VBUS_M 0x00000018 // VBUS Level (OTG only)
6879
#define USB_DEVCTL_VBUS_NONE 0x00000000 // Below SessionEnd
6880
#define USB_DEVCTL_VBUS_SEND 0x00000008 // Above SessionEnd, below AValid
6881
#define USB_DEVCTL_VBUS_AVALID 0x00000010 // Above AValid, below VBUSValid
6882
#define USB_DEVCTL_VBUS_VALID 0x00000018 // Above VBUSValid
6883
#define USB_DEVCTL_HOST 0x00000004 // Host Mode
6884
#define USB_DEVCTL_HOSTREQ 0x00000002 // Host Request (OTG only)
6885
#define USB_DEVCTL_SESSION 0x00000001 // Session Start/End (OTG only)
6886
6887
//*****************************************************************************
6888
//
6889
// The following are defines for the bit fields in the USB_O_TXFIFOSZ register.
6890
//
6891
//*****************************************************************************
6892
#define USB_TXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
6893
#define USB_TXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
6894
#define USB_TXFIFOSZ_SIZE_8 0x00000000 // 8
6895
#define USB_TXFIFOSZ_SIZE_16 0x00000001 // 16
6896
#define USB_TXFIFOSZ_SIZE_32 0x00000002 // 32
6897
#define USB_TXFIFOSZ_SIZE_64 0x00000003 // 64
6898
#define USB_TXFIFOSZ_SIZE_128 0x00000004 // 128
6899
#define USB_TXFIFOSZ_SIZE_256 0x00000005 // 256
6900
#define USB_TXFIFOSZ_SIZE_512 0x00000006 // 512
6901
#define USB_TXFIFOSZ_SIZE_1024 0x00000007 // 1024
6902
#define USB_TXFIFOSZ_SIZE_2048 0x00000008 // 2048
6903
6904
//*****************************************************************************
6905
//
6906
// The following are defines for the bit fields in the USB_O_RXFIFOSZ register.
6907
//
6908
//*****************************************************************************
6909
#define USB_RXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
6910
#define USB_RXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
6911
#define USB_RXFIFOSZ_SIZE_8 0x00000000 // 8
6912
#define USB_RXFIFOSZ_SIZE_16 0x00000001 // 16
6913
#define USB_RXFIFOSZ_SIZE_32 0x00000002 // 32
6914
#define USB_RXFIFOSZ_SIZE_64 0x00000003 // 64
6915
#define USB_RXFIFOSZ_SIZE_128 0x00000004 // 128
6916
#define USB_RXFIFOSZ_SIZE_256 0x00000005 // 256
6917
#define USB_RXFIFOSZ_SIZE_512 0x00000006 // 512
6918
#define USB_RXFIFOSZ_SIZE_1024 0x00000007 // 1024
6919
#define USB_RXFIFOSZ_SIZE_2048 0x00000008 // 2048
6920
6921
//*****************************************************************************
6922
//
6923
// The following are defines for the bit fields in the USB_O_TXFIFOADD
6924
// register.
6925
//
6926
//*****************************************************************************
6927
#define USB_TXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
6928
#define USB_TXFIFOADD_ADDR_S 0
6929
6930
//*****************************************************************************
6931
//
6932
// The following are defines for the bit fields in the USB_O_RXFIFOADD
6933
// register.
6934
//
6935
//*****************************************************************************
6936
#define USB_RXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
6937
#define USB_RXFIFOADD_ADDR_S 0
6938
6939
//*****************************************************************************
6940
//
6941
// The following are defines for the bit fields in the USB_O_CONTIM register.
6942
//
6943
//*****************************************************************************
6944
#define USB_CONTIM_WTCON_M 0x000000F0 // Connect Wait
6945
#define USB_CONTIM_WTID_M 0x0000000F // Wait ID
6946
#define USB_CONTIM_WTCON_S 4
6947
#define USB_CONTIM_WTID_S 0
6948
6949
//*****************************************************************************
6950
//
6951
// The following are defines for the bit fields in the USB_O_VPLEN register.
6952
//
6953
//*****************************************************************************
6954
#define USB_VPLEN_VPLEN_M 0x000000FF // VBUS Pulse Length
6955
#define USB_VPLEN_VPLEN_S 0
6956
6957
//*****************************************************************************
6958
//
6959
// The following are defines for the bit fields in the USB_O_FSEOF register.
6960
//
6961
//*****************************************************************************
6962
#define USB_FSEOF_FSEOFG_M 0x000000FF // Full-Speed End-of-Frame Gap
6963
#define USB_FSEOF_FSEOFG_S 0
6964
6965
//*****************************************************************************
6966
//
6967
// The following are defines for the bit fields in the USB_O_LSEOF register.
6968
//
6969
//*****************************************************************************
6970
#define USB_LSEOF_LSEOFG_M 0x000000FF // Low-Speed End-of-Frame Gap
6971
#define USB_LSEOF_LSEOFG_S 0
6972
6973
//*****************************************************************************
6974
//
6975
// The following are defines for the bit fields in the USB_O_TXFUNCADDR0
6976
// register.
6977
//
6978
//*****************************************************************************
6979
#define USB_TXFUNCADDR0_ADDR_M 0x0000007F // Device Address
6980
#define USB_TXFUNCADDR0_ADDR_S 0
6981
6982
//*****************************************************************************
6983
//
6984
// The following are defines for the bit fields in the USB_O_TXHUBADDR0
6985
// register.
6986
//
6987
//*****************************************************************************
6988
#define USB_TXHUBADDR0_ADDR_M 0x0000007F // Hub Address
6989
#define USB_TXHUBADDR0_ADDR_S 0
6990
6991
//*****************************************************************************
6992
//
6993
// The following are defines for the bit fields in the USB_O_TXHUBPORT0
6994
// register.
6995
//
6996
//*****************************************************************************
6997
#define USB_TXHUBPORT0_PORT_M 0x0000007F // Hub Port
6998
#define USB_TXHUBPORT0_PORT_S 0
6999
7000
//*****************************************************************************
7001
//
7002
// The following are defines for the bit fields in the USB_O_TXFUNCADDR1
7003
// register.
7004
//
7005
//*****************************************************************************
7006
#define USB_TXFUNCADDR1_ADDR_M 0x0000007F // Device Address
7007
#define USB_TXFUNCADDR1_ADDR_S 0
7008
7009
//*****************************************************************************
7010
//
7011
// The following are defines for the bit fields in the USB_O_TXHUBADDR1
7012
// register.
7013
//
7014
//*****************************************************************************
7015
#define USB_TXHUBADDR1_ADDR_M 0x0000007F // Hub Address
7016
#define USB_TXHUBADDR1_ADDR_S 0
7017
7018
//*****************************************************************************
7019
//
7020
// The following are defines for the bit fields in the USB_O_TXHUBPORT1
7021
// register.
7022
//
7023
//*****************************************************************************
7024
#define USB_TXHUBPORT1_PORT_M 0x0000007F // Hub Port
7025
#define USB_TXHUBPORT1_PORT_S 0
7026
7027
//*****************************************************************************
7028
//
7029
// The following are defines for the bit fields in the USB_O_RXFUNCADDR1
7030
// register.
7031
//
7032
//*****************************************************************************
7033
#define USB_RXFUNCADDR1_ADDR_M 0x0000007F // Device Address
7034
#define USB_RXFUNCADDR1_ADDR_S 0
7035
7036
//*****************************************************************************
7037
//
7038
// The following are defines for the bit fields in the USB_O_RXHUBADDR1
7039
// register.
7040
//
7041
//*****************************************************************************
7042
#define USB_RXHUBADDR1_ADDR_M 0x0000007F // Hub Address
7043
#define USB_RXHUBADDR1_ADDR_S 0
7044
7045
//*****************************************************************************
7046
//
7047
// The following are defines for the bit fields in the USB_O_RXHUBPORT1
7048
// register.
7049
//
7050
//*****************************************************************************
7051
#define USB_RXHUBPORT1_PORT_M 0x0000007F // Hub Port
7052
#define USB_RXHUBPORT1_PORT_S 0
7053
7054
//*****************************************************************************
7055
//
7056
// The following are defines for the bit fields in the USB_O_TXFUNCADDR2
7057
// register.
7058
//
7059
//*****************************************************************************
7060
#define USB_TXFUNCADDR2_ADDR_M 0x0000007F // Device Address
7061
#define USB_TXFUNCADDR2_ADDR_S 0
7062
7063
//*****************************************************************************
7064
//
7065
// The following are defines for the bit fields in the USB_O_TXHUBADDR2
7066
// register.
7067
//
7068
//*****************************************************************************
7069
#define USB_TXHUBADDR2_ADDR_M 0x0000007F // Hub Address
7070
#define USB_TXHUBADDR2_ADDR_S 0
7071
7072
//*****************************************************************************
7073
//
7074
// The following are defines for the bit fields in the USB_O_TXHUBPORT2
7075
// register.
7076
//
7077
//*****************************************************************************
7078
#define USB_TXHUBPORT2_PORT_M 0x0000007F // Hub Port
7079
#define USB_TXHUBPORT2_PORT_S 0
7080
7081
//*****************************************************************************
7082
//
7083
// The following are defines for the bit fields in the USB_O_RXFUNCADDR2
7084
// register.
7085
//
7086
//*****************************************************************************
7087
#define USB_RXFUNCADDR2_ADDR_M 0x0000007F // Device Address
7088
#define USB_RXFUNCADDR2_ADDR_S 0
7089
7090
//*****************************************************************************
7091
//
7092
// The following are defines for the bit fields in the USB_O_RXHUBADDR2
7093
// register.
7094
//
7095
//*****************************************************************************
7096
#define USB_RXHUBADDR2_ADDR_M 0x0000007F // Hub Address
7097
#define USB_RXHUBADDR2_ADDR_S 0
7098
7099
//*****************************************************************************
7100
//
7101
// The following are defines for the bit fields in the USB_O_RXHUBPORT2
7102
// register.
7103
//
7104
//*****************************************************************************
7105
#define USB_RXHUBPORT2_PORT_M 0x0000007F // Hub Port
7106
#define USB_RXHUBPORT2_PORT_S 0
7107
7108
//*****************************************************************************
7109
//
7110
// The following are defines for the bit fields in the USB_O_TXFUNCADDR3
7111
// register.
7112
//
7113
//*****************************************************************************
7114
#define USB_TXFUNCADDR3_ADDR_M 0x0000007F // Device Address
7115
#define USB_TXFUNCADDR3_ADDR_S 0
7116
7117
//*****************************************************************************
7118
//
7119
// The following are defines for the bit fields in the USB_O_TXHUBADDR3
7120
// register.
7121
//
7122
//*****************************************************************************
7123
#define USB_TXHUBADDR3_ADDR_M 0x0000007F // Hub Address
7124
#define USB_TXHUBADDR3_ADDR_S 0
7125
7126
//*****************************************************************************
7127
//
7128
// The following are defines for the bit fields in the USB_O_TXHUBPORT3
7129
// register.
7130
//
7131
//*****************************************************************************
7132
#define USB_TXHUBPORT3_PORT_M 0x0000007F // Hub Port
7133
#define USB_TXHUBPORT3_PORT_S 0
7134
7135
//*****************************************************************************
7136
//
7137
// The following are defines for the bit fields in the USB_O_RXFUNCADDR3
7138
// register.
7139
//
7140
//*****************************************************************************
7141
#define USB_RXFUNCADDR3_ADDR_M 0x0000007F // Device Address
7142
#define USB_RXFUNCADDR3_ADDR_S 0
7143
7144
//*****************************************************************************
7145
//
7146
// The following are defines for the bit fields in the USB_O_RXHUBADDR3
7147
// register.
7148
//
7149
//*****************************************************************************
7150
#define USB_RXHUBADDR3_ADDR_M 0x0000007F // Hub Address
7151
#define USB_RXHUBADDR3_ADDR_S 0
7152
7153
//*****************************************************************************
7154
//
7155
// The following are defines for the bit fields in the USB_O_RXHUBPORT3
7156
// register.
7157
//
7158
//*****************************************************************************
7159
#define USB_RXHUBPORT3_PORT_M 0x0000007F // Hub Port
7160
#define USB_RXHUBPORT3_PORT_S 0
7161
7162
//*****************************************************************************
7163
//
7164
// The following are defines for the bit fields in the USB_O_TXFUNCADDR4
7165
// register.
7166
//
7167
//*****************************************************************************
7168
#define USB_TXFUNCADDR4_ADDR_M 0x0000007F // Device Address
7169
#define USB_TXFUNCADDR4_ADDR_S 0
7170
7171
//*****************************************************************************
7172
//
7173
// The following are defines for the bit fields in the USB_O_TXHUBADDR4
7174
// register.
7175
//
7176
//*****************************************************************************
7177
#define USB_TXHUBADDR4_ADDR_M 0x0000007F // Hub Address
7178
#define USB_TXHUBADDR4_ADDR_S 0
7179
7180
//*****************************************************************************
7181
//
7182
// The following are defines for the bit fields in the USB_O_TXHUBPORT4
7183
// register.
7184
//
7185
//*****************************************************************************
7186
#define USB_TXHUBPORT4_PORT_M 0x0000007F // Hub Port
7187
#define USB_TXHUBPORT4_PORT_S 0
7188
7189
//*****************************************************************************
7190
//
7191
// The following are defines for the bit fields in the USB_O_RXFUNCADDR4
7192
// register.
7193
//
7194
//*****************************************************************************
7195
#define USB_RXFUNCADDR4_ADDR_M 0x0000007F // Device Address
7196
#define USB_RXFUNCADDR4_ADDR_S 0
7197
7198
//*****************************************************************************
7199
//
7200
// The following are defines for the bit fields in the USB_O_RXHUBADDR4
7201
// register.
7202
//
7203
//*****************************************************************************
7204
#define USB_RXHUBADDR4_ADDR_M 0x0000007F // Hub Address
7205
#define USB_RXHUBADDR4_ADDR_S 0
7206
7207
//*****************************************************************************
7208
//
7209
// The following are defines for the bit fields in the USB_O_RXHUBPORT4
7210
// register.
7211
//
7212
//*****************************************************************************
7213
#define USB_RXHUBPORT4_PORT_M 0x0000007F // Hub Port
7214
#define USB_RXHUBPORT4_PORT_S 0
7215
7216
//*****************************************************************************
7217
//
7218
// The following are defines for the bit fields in the USB_O_TXFUNCADDR5
7219
// register.
7220
//
7221
//*****************************************************************************
7222
#define USB_TXFUNCADDR5_ADDR_M 0x0000007F // Device Address
7223
#define USB_TXFUNCADDR5_ADDR_S 0
7224
7225
//*****************************************************************************
7226
//
7227
// The following are defines for the bit fields in the USB_O_TXHUBADDR5
7228
// register.
7229
//
7230
//*****************************************************************************
7231
#define USB_TXHUBADDR5_ADDR_M 0x0000007F // Hub Address
7232
#define USB_TXHUBADDR5_ADDR_S 0
7233
7234
//*****************************************************************************
7235
//
7236
// The following are defines for the bit fields in the USB_O_TXHUBPORT5
7237
// register.
7238
//
7239
//*****************************************************************************
7240
#define USB_TXHUBPORT5_PORT_M 0x0000007F // Hub Port
7241
#define USB_TXHUBPORT5_PORT_S 0
7242
7243
//*****************************************************************************
7244
//
7245
// The following are defines for the bit fields in the USB_O_RXFUNCADDR5
7246
// register.
7247
//
7248
//*****************************************************************************
7249
#define USB_RXFUNCADDR5_ADDR_M 0x0000007F // Device Address
7250
#define USB_RXFUNCADDR5_ADDR_S 0
7251
7252
//*****************************************************************************
7253
//
7254
// The following are defines for the bit fields in the USB_O_RXHUBADDR5
7255
// register.
7256
//
7257
//*****************************************************************************
7258
#define USB_RXHUBADDR5_ADDR_M 0x0000007F // Hub Address
7259
#define USB_RXHUBADDR5_ADDR_S 0
7260
7261
//*****************************************************************************
7262
//
7263
// The following are defines for the bit fields in the USB_O_RXHUBPORT5
7264
// register.
7265
//
7266
//*****************************************************************************
7267
#define USB_RXHUBPORT5_PORT_M 0x0000007F // Hub Port
7268
#define USB_RXHUBPORT5_PORT_S 0
7269
7270
//*****************************************************************************
7271
//
7272
// The following are defines for the bit fields in the USB_O_TXFUNCADDR6
7273
// register.
7274
//
7275
//*****************************************************************************
7276
#define USB_TXFUNCADDR6_ADDR_M 0x0000007F // Device Address
7277
#define USB_TXFUNCADDR6_ADDR_S 0
7278
7279
//*****************************************************************************
7280
//
7281
// The following are defines for the bit fields in the USB_O_TXHUBADDR6
7282
// register.
7283
//
7284
//*****************************************************************************
7285
#define USB_TXHUBADDR6_ADDR_M 0x0000007F // Hub Address
7286
#define USB_TXHUBADDR6_ADDR_S 0
7287
7288
//*****************************************************************************
7289
//
7290
// The following are defines for the bit fields in the USB_O_TXHUBPORT6
7291
// register.
7292
//
7293
//*****************************************************************************
7294
#define USB_TXHUBPORT6_PORT_M 0x0000007F // Hub Port
7295
#define USB_TXHUBPORT6_PORT_S 0
7296
7297
//*****************************************************************************
7298
//
7299
// The following are defines for the bit fields in the USB_O_RXFUNCADDR6
7300
// register.
7301
//
7302
//*****************************************************************************
7303
#define USB_RXFUNCADDR6_ADDR_M 0x0000007F // Device Address
7304
#define USB_RXFUNCADDR6_ADDR_S 0
7305
7306
//*****************************************************************************
7307
//
7308
// The following are defines for the bit fields in the USB_O_RXHUBADDR6
7309
// register.
7310
//
7311
//*****************************************************************************
7312
#define USB_RXHUBADDR6_ADDR_M 0x0000007F // Hub Address
7313
#define USB_RXHUBADDR6_ADDR_S 0
7314
7315
//*****************************************************************************
7316
//
7317
// The following are defines for the bit fields in the USB_O_RXHUBPORT6
7318
// register.
7319
//
7320
//*****************************************************************************
7321
#define USB_RXHUBPORT6_PORT_M 0x0000007F // Hub Port
7322
#define USB_RXHUBPORT6_PORT_S 0
7323
7324
//*****************************************************************************
7325
//
7326
// The following are defines for the bit fields in the USB_O_TXFUNCADDR7
7327
// register.
7328
//
7329
//*****************************************************************************
7330
#define USB_TXFUNCADDR7_ADDR_M 0x0000007F // Device Address
7331
#define USB_TXFUNCADDR7_ADDR_S 0
7332
7333
//*****************************************************************************
7334
//
7335
// The following are defines for the bit fields in the USB_O_TXHUBADDR7
7336
// register.
7337
//
7338
//*****************************************************************************
7339
#define USB_TXHUBADDR7_ADDR_M 0x0000007F // Hub Address
7340
#define USB_TXHUBADDR7_ADDR_S 0
7341
7342
//*****************************************************************************
7343
//
7344
// The following are defines for the bit fields in the USB_O_TXHUBPORT7
7345
// register.
7346
//
7347
//*****************************************************************************
7348
#define USB_TXHUBPORT7_PORT_M 0x0000007F // Hub Port
7349
#define USB_TXHUBPORT7_PORT_S 0
7350
7351
//*****************************************************************************
7352
//
7353
// The following are defines for the bit fields in the USB_O_RXFUNCADDR7
7354
// register.
7355
//
7356
//*****************************************************************************
7357
#define USB_RXFUNCADDR7_ADDR_M 0x0000007F // Device Address
7358
#define USB_RXFUNCADDR7_ADDR_S 0
7359
7360
//*****************************************************************************
7361
//
7362
// The following are defines for the bit fields in the USB_O_RXHUBADDR7
7363
// register.
7364
//
7365
//*****************************************************************************
7366
#define USB_RXHUBADDR7_ADDR_M 0x0000007F // Hub Address
7367
#define USB_RXHUBADDR7_ADDR_S 0
7368
7369
//*****************************************************************************
7370
//
7371
// The following are defines for the bit fields in the USB_O_RXHUBPORT7
7372
// register.
7373
//
7374
//*****************************************************************************
7375
#define USB_RXHUBPORT7_PORT_M 0x0000007F // Hub Port
7376
#define USB_RXHUBPORT7_PORT_S 0
7377
7378
//*****************************************************************************
7379
//
7380
// The following are defines for the bit fields in the USB_O_CSRL0 register.
7381
//
7382
//*****************************************************************************
7383
#define USB_CSRL0_NAKTO 0x00000080 // NAK Timeout
7384
#define USB_CSRL0_SETENDC 0x00000080 // Setup End Clear
7385
#define USB_CSRL0_STATUS 0x00000040 // STATUS Packet
7386
#define USB_CSRL0_RXRDYC 0x00000040 // RXRDY Clear
7387
#define USB_CSRL0_REQPKT 0x00000020 // Request Packet
7388
#define USB_CSRL0_STALL 0x00000020 // Send Stall
7389
#define USB_CSRL0_SETEND 0x00000010 // Setup End
7390
#define USB_CSRL0_ERROR 0x00000010 // Error
7391
#define USB_CSRL0_DATAEND 0x00000008 // Data End
7392
#define USB_CSRL0_SETUP 0x00000008 // Setup Packet
7393
#define USB_CSRL0_STALLED 0x00000004 // Endpoint Stalled
7394
#define USB_CSRL0_TXRDY 0x00000002 // Transmit Packet Ready
7395
#define USB_CSRL0_RXRDY 0x00000001 // Receive Packet Ready
7396
7397
//*****************************************************************************
7398
//
7399
// The following are defines for the bit fields in the USB_O_CSRH0 register.
7400
//
7401
//*****************************************************************************
7402
#define USB_CSRH0_DTWE 0x00000004 // Data Toggle Write Enable
7403
#define USB_CSRH0_DT 0x00000002 // Data Toggle
7404
#define USB_CSRH0_FLUSH 0x00000001 // Flush FIFO
7405
7406
//*****************************************************************************
7407
//
7408
// The following are defines for the bit fields in the USB_O_COUNT0 register.
7409
//
7410
//*****************************************************************************
7411
#define USB_COUNT0_COUNT_M 0x0000007F // FIFO Count
7412
#define USB_COUNT0_COUNT_S 0
7413
7414
//*****************************************************************************
7415
//
7416
// The following are defines for the bit fields in the USB_O_TYPE0 register.
7417
//
7418
//*****************************************************************************
7419
#define USB_TYPE0_SPEED_M 0x000000C0 // Operating Speed
7420
#define USB_TYPE0_SPEED_FULL 0x00000080 // Full
7421
#define USB_TYPE0_SPEED_LOW 0x000000C0 // Low
7422
7423
//*****************************************************************************
7424
//
7425
// The following are defines for the bit fields in the USB_O_NAKLMT register.
7426
//
7427
//*****************************************************************************
7428
#define USB_NAKLMT_NAKLMT_M 0x0000001F // EP0 NAK Limit
7429
#define USB_NAKLMT_NAKLMT_S 0
7430
7431
//*****************************************************************************
7432
//
7433
// The following are defines for the bit fields in the USB_O_TXMAXP1 register.
7434
//
7435
//*****************************************************************************
7436
#define USB_TXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
7437
#define USB_TXMAXP1_MAXLOAD_S 0
7438
7439
//*****************************************************************************
7440
//
7441
// The following are defines for the bit fields in the USB_O_TXCSRL1 register.
7442
//
7443
//*****************************************************************************
7444
#define USB_TXCSRL1_NAKTO 0x00000080 // NAK Timeout
7445
#define USB_TXCSRL1_CLRDT 0x00000040 // Clear Data Toggle
7446
#define USB_TXCSRL1_STALLED 0x00000020 // Endpoint Stalled
7447
#define USB_TXCSRL1_STALL 0x00000010 // Send STALL
7448
#define USB_TXCSRL1_SETUP 0x00000010 // Setup Packet
7449
#define USB_TXCSRL1_FLUSH 0x00000008 // Flush FIFO
7450
#define USB_TXCSRL1_ERROR 0x00000004 // Error
7451
#define USB_TXCSRL1_UNDRN 0x00000004 // Underrun
7452
#define USB_TXCSRL1_FIFONE 0x00000002 // FIFO Not Empty
7453
#define USB_TXCSRL1_TXRDY 0x00000001 // Transmit Packet Ready
7454
7455
//*****************************************************************************
7456
//
7457
// The following are defines for the bit fields in the USB_O_TXCSRH1 register.
7458
//
7459
//*****************************************************************************
7460
#define USB_TXCSRH1_AUTOSET 0x00000080 // Auto Set
7461
#define USB_TXCSRH1_ISO 0x00000040 // Isochronous Transfers
7462
#define USB_TXCSRH1_MODE 0x00000020 // Mode
7463
#define USB_TXCSRH1_DMAEN 0x00000010 // DMA Request Enable
7464
#define USB_TXCSRH1_FDT 0x00000008 // Force Data Toggle
7465
#define USB_TXCSRH1_DMAMOD 0x00000004 // DMA Request Mode
7466
#define USB_TXCSRH1_DTWE 0x00000002 // Data Toggle Write Enable
7467
#define USB_TXCSRH1_DT 0x00000001 // Data Toggle
7468
7469
//*****************************************************************************
7470
//
7471
// The following are defines for the bit fields in the USB_O_RXMAXP1 register.
7472
//
7473
//*****************************************************************************
7474
#define USB_RXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
7475
#define USB_RXMAXP1_MAXLOAD_S 0
7476
7477
//*****************************************************************************
7478
//
7479
// The following are defines for the bit fields in the USB_O_RXCSRL1 register.
7480
//
7481
//*****************************************************************************
7482
#define USB_RXCSRL1_CLRDT 0x00000080 // Clear Data Toggle
7483
#define USB_RXCSRL1_STALLED 0x00000040 // Endpoint Stalled
7484
#define USB_RXCSRL1_STALL 0x00000020 // Send STALL
7485
#define USB_RXCSRL1_REQPKT 0x00000020 // Request Packet
7486
#define USB_RXCSRL1_FLUSH 0x00000010 // Flush FIFO
7487
#define USB_RXCSRL1_DATAERR 0x00000008 // Data Error
7488
#define USB_RXCSRL1_NAKTO 0x00000008 // NAK Timeout
7489
#define USB_RXCSRL1_OVER 0x00000004 // Overrun
7490
#define USB_RXCSRL1_ERROR 0x00000004 // Error
7491
#define USB_RXCSRL1_FULL 0x00000002 // FIFO Full
7492
#define USB_RXCSRL1_RXRDY 0x00000001 // Receive Packet Ready
7493
7494
//*****************************************************************************
7495
//
7496
// The following are defines for the bit fields in the USB_O_RXCSRH1 register.
7497
//
7498
//*****************************************************************************
7499
#define USB_RXCSRH1_AUTOCL 0x00000080 // Auto Clear
7500
#define USB_RXCSRH1_AUTORQ 0x00000040 // Auto Request
7501
#define USB_RXCSRH1_ISO 0x00000040 // Isochronous Transfers
7502
#define USB_RXCSRH1_DMAEN 0x00000020 // DMA Request Enable
7503
#define USB_RXCSRH1_DISNYET 0x00000010 // Disable NYET
7504
#define USB_RXCSRH1_PIDERR 0x00000010 // PID Error
7505
#define USB_RXCSRH1_DMAMOD 0x00000008 // DMA Request Mode
7506
#define USB_RXCSRH1_DTWE 0x00000004 // Data Toggle Write Enable
7507
#define USB_RXCSRH1_DT 0x00000002 // Data Toggle
7508
7509
//*****************************************************************************
7510
//
7511
// The following are defines for the bit fields in the USB_O_RXCOUNT1 register.
7512
//
7513
//*****************************************************************************
7514
#define USB_RXCOUNT1_COUNT_M 0x00001FFF // Receive Packet Count
7515
#define USB_RXCOUNT1_COUNT_S 0
7516
7517
//*****************************************************************************
7518
//
7519
// The following are defines for the bit fields in the USB_O_TXTYPE1 register.
7520
//
7521
//*****************************************************************************
7522
#define USB_TXTYPE1_SPEED_M 0x000000C0 // Operating Speed
7523
#define USB_TXTYPE1_SPEED_DFLT 0x00000000 // Default
7524
#define USB_TXTYPE1_SPEED_FULL 0x00000080 // Full
7525
#define USB_TXTYPE1_SPEED_LOW 0x000000C0 // Low
7526
#define USB_TXTYPE1_PROTO_M 0x00000030 // Protocol
7527
#define USB_TXTYPE1_PROTO_CTRL 0x00000000 // Control
7528
#define USB_TXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
7529
#define USB_TXTYPE1_PROTO_BULK 0x00000020 // Bulk
7530
#define USB_TXTYPE1_PROTO_INT 0x00000030 // Interrupt
7531
#define USB_TXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
7532
#define USB_TXTYPE1_TEP_S 0
7533
7534
//*****************************************************************************
7535
//
7536
// The following are defines for the bit fields in the USB_O_TXINTERVAL1
7537
// register.
7538
//
7539
//*****************************************************************************
7540
#define USB_TXINTERVAL1_NAKLMT_M \
7541
0x000000FF // NAK Limit
7542
#define USB_TXINTERVAL1_TXPOLL_M \
7543
0x000000FF // TX Polling
7544
#define USB_TXINTERVAL1_TXPOLL_S \
7545
0
7546
#define USB_TXINTERVAL1_NAKLMT_S \
7547
0
7548
7549
//*****************************************************************************
7550
//
7551
// The following are defines for the bit fields in the USB_O_RXTYPE1 register.
7552
//
7553
//*****************************************************************************
7554
#define USB_RXTYPE1_SPEED_M 0x000000C0 // Operating Speed
7555
#define USB_RXTYPE1_SPEED_DFLT 0x00000000 // Default
7556
#define USB_RXTYPE1_SPEED_FULL 0x00000080 // Full
7557
#define USB_RXTYPE1_SPEED_LOW 0x000000C0 // Low
7558
#define USB_RXTYPE1_PROTO_M 0x00000030 // Protocol
7559
#define USB_RXTYPE1_PROTO_CTRL 0x00000000 // Control
7560
#define USB_RXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
7561
#define USB_RXTYPE1_PROTO_BULK 0x00000020 // Bulk
7562
#define USB_RXTYPE1_PROTO_INT 0x00000030 // Interrupt
7563
#define USB_RXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
7564
#define USB_RXTYPE1_TEP_S 0
7565
7566
//*****************************************************************************
7567
//
7568
// The following are defines for the bit fields in the USB_O_RXINTERVAL1
7569
// register.
7570
//
7571
//*****************************************************************************
7572
#define USB_RXINTERVAL1_TXPOLL_M \
7573
0x000000FF // RX Polling
7574
#define USB_RXINTERVAL1_NAKLMT_M \
7575
0x000000FF // NAK Limit
7576
#define USB_RXINTERVAL1_TXPOLL_S \
7577
0
7578
#define USB_RXINTERVAL1_NAKLMT_S \
7579
0
7580
7581
//*****************************************************************************
7582
//
7583
// The following are defines for the bit fields in the USB_O_TXMAXP2 register.
7584
//
7585
//*****************************************************************************
7586
#define USB_TXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
7587
#define USB_TXMAXP2_MAXLOAD_S 0
7588
7589
//*****************************************************************************
7590
//
7591
// The following are defines for the bit fields in the USB_O_TXCSRL2 register.
7592
//
7593
//*****************************************************************************
7594
#define USB_TXCSRL2_NAKTO 0x00000080 // NAK Timeout
7595
#define USB_TXCSRL2_CLRDT 0x00000040 // Clear Data Toggle
7596
#define USB_TXCSRL2_STALLED 0x00000020 // Endpoint Stalled
7597
#define USB_TXCSRL2_SETUP 0x00000010 // Setup Packet
7598
#define USB_TXCSRL2_STALL 0x00000010 // Send STALL
7599
#define USB_TXCSRL2_FLUSH 0x00000008 // Flush FIFO
7600
#define USB_TXCSRL2_ERROR 0x00000004 // Error
7601
#define USB_TXCSRL2_UNDRN 0x00000004 // Underrun
7602
#define USB_TXCSRL2_FIFONE 0x00000002 // FIFO Not Empty
7603
#define USB_TXCSRL2_TXRDY 0x00000001 // Transmit Packet Ready
7604
7605
//*****************************************************************************
7606
//
7607
// The following are defines for the bit fields in the USB_O_TXCSRH2 register.
7608
//
7609
//*****************************************************************************
7610
#define USB_TXCSRH2_AUTOSET 0x00000080 // Auto Set
7611
#define USB_TXCSRH2_ISO 0x00000040 // Isochronous Transfers
7612
#define USB_TXCSRH2_MODE 0x00000020 // Mode
7613
#define USB_TXCSRH2_DMAEN 0x00000010 // DMA Request Enable
7614
#define USB_TXCSRH2_FDT 0x00000008 // Force Data Toggle
7615
#define USB_TXCSRH2_DMAMOD 0x00000004 // DMA Request Mode
7616
#define USB_TXCSRH2_DTWE 0x00000002 // Data Toggle Write Enable
7617
#define USB_TXCSRH2_DT 0x00000001 // Data Toggle
7618
7619
//*****************************************************************************
7620
//
7621
// The following are defines for the bit fields in the USB_O_RXMAXP2 register.
7622
//
7623
//*****************************************************************************
7624
#define USB_RXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
7625
#define USB_RXMAXP2_MAXLOAD_S 0
7626
7627
//*****************************************************************************
7628
//
7629
// The following are defines for the bit fields in the USB_O_RXCSRL2 register.
7630
//
7631
//*****************************************************************************
7632
#define USB_RXCSRL2_CLRDT 0x00000080 // Clear Data Toggle
7633
#define USB_RXCSRL2_STALLED 0x00000040 // Endpoint Stalled
7634
#define USB_RXCSRL2_REQPKT 0x00000020 // Request Packet
7635
#define USB_RXCSRL2_STALL 0x00000020 // Send STALL
7636
#define USB_RXCSRL2_FLUSH 0x00000010 // Flush FIFO
7637
#define USB_RXCSRL2_DATAERR 0x00000008 // Data Error
7638
#define USB_RXCSRL2_NAKTO 0x00000008 // NAK Timeout
7639
#define USB_RXCSRL2_ERROR 0x00000004 // Error
7640
#define USB_RXCSRL2_OVER 0x00000004 // Overrun
7641
#define USB_RXCSRL2_FULL 0x00000002 // FIFO Full
7642
#define USB_RXCSRL2_RXRDY 0x00000001 // Receive Packet Ready
7643
7644
//*****************************************************************************
7645
//
7646
// The following are defines for the bit fields in the USB_O_RXCSRH2 register.
7647
//
7648
//*****************************************************************************
7649
#define USB_RXCSRH2_AUTOCL 0x00000080 // Auto Clear
7650
#define USB_RXCSRH2_AUTORQ 0x00000040 // Auto Request
7651
#define USB_RXCSRH2_ISO 0x00000040 // Isochronous Transfers
7652
#define USB_RXCSRH2_DMAEN 0x00000020 // DMA Request Enable
7653
#define USB_RXCSRH2_DISNYET 0x00000010 // Disable NYET
7654
#define USB_RXCSRH2_PIDERR 0x00000010 // PID Error
7655
#define USB_RXCSRH2_DMAMOD 0x00000008 // DMA Request Mode
7656
#define USB_RXCSRH2_DTWE 0x00000004 // Data Toggle Write Enable
7657
#define USB_RXCSRH2_DT 0x00000002 // Data Toggle
7658
7659
//*****************************************************************************
7660
//
7661
// The following are defines for the bit fields in the USB_O_RXCOUNT2 register.
7662
//
7663
//*****************************************************************************
7664
#define USB_RXCOUNT2_COUNT_M 0x00001FFF // Receive Packet Count
7665
#define USB_RXCOUNT2_COUNT_S 0
7666
7667
//*****************************************************************************
7668
//
7669
// The following are defines for the bit fields in the USB_O_TXTYPE2 register.
7670
//
7671
//*****************************************************************************
7672
#define USB_TXTYPE2_SPEED_M 0x000000C0 // Operating Speed
7673
#define USB_TXTYPE2_SPEED_DFLT 0x00000000 // Default
7674
#define USB_TXTYPE2_SPEED_FULL 0x00000080 // Full
7675
#define USB_TXTYPE2_SPEED_LOW 0x000000C0 // Low
7676
#define USB_TXTYPE2_PROTO_M 0x00000030 // Protocol
7677
#define USB_TXTYPE2_PROTO_CTRL 0x00000000 // Control
7678
#define USB_TXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
7679
#define USB_TXTYPE2_PROTO_BULK 0x00000020 // Bulk
7680
#define USB_TXTYPE2_PROTO_INT 0x00000030 // Interrupt
7681
#define USB_TXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
7682
#define USB_TXTYPE2_TEP_S 0
7683
7684
//*****************************************************************************
7685
//
7686
// The following are defines for the bit fields in the USB_O_TXINTERVAL2
7687
// register.
7688
//
7689
//*****************************************************************************
7690
#define USB_TXINTERVAL2_TXPOLL_M \
7691
0x000000FF // TX Polling
7692
#define USB_TXINTERVAL2_NAKLMT_M \
7693
0x000000FF // NAK Limit
7694
#define USB_TXINTERVAL2_NAKLMT_S \
7695
0
7696
#define USB_TXINTERVAL2_TXPOLL_S \
7697
0
7698
7699
//*****************************************************************************
7700
//
7701
// The following are defines for the bit fields in the USB_O_RXTYPE2 register.
7702
//
7703
//*****************************************************************************
7704
#define USB_RXTYPE2_SPEED_M 0x000000C0 // Operating Speed
7705
#define USB_RXTYPE2_SPEED_DFLT 0x00000000 // Default
7706
#define USB_RXTYPE2_SPEED_FULL 0x00000080 // Full
7707
#define USB_RXTYPE2_SPEED_LOW 0x000000C0 // Low
7708
#define USB_RXTYPE2_PROTO_M 0x00000030 // Protocol
7709
#define USB_RXTYPE2_PROTO_CTRL 0x00000000 // Control
7710
#define USB_RXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
7711
#define USB_RXTYPE2_PROTO_BULK 0x00000020 // Bulk
7712
#define USB_RXTYPE2_PROTO_INT 0x00000030 // Interrupt
7713
#define USB_RXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
7714
#define USB_RXTYPE2_TEP_S 0
7715
7716
//*****************************************************************************
7717
//
7718
// The following are defines for the bit fields in the USB_O_RXINTERVAL2
7719
// register.
7720
//
7721
//*****************************************************************************
7722
#define USB_RXINTERVAL2_TXPOLL_M \
7723
0x000000FF // RX Polling
7724
#define USB_RXINTERVAL2_NAKLMT_M \
7725
0x000000FF // NAK Limit
7726
#define USB_RXINTERVAL2_TXPOLL_S \
7727
0
7728
#define USB_RXINTERVAL2_NAKLMT_S \
7729
0
7730
7731
//*****************************************************************************
7732
//
7733
// The following are defines for the bit fields in the USB_O_TXMAXP3 register.
7734
//
7735
//*****************************************************************************
7736
#define USB_TXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
7737
#define USB_TXMAXP3_MAXLOAD_S 0
7738
7739
//*****************************************************************************
7740
//
7741
// The following are defines for the bit fields in the USB_O_TXCSRL3 register.
7742
//
7743
//*****************************************************************************
7744
#define USB_TXCSRL3_NAKTO 0x00000080 // NAK Timeout
7745
#define USB_TXCSRL3_CLRDT 0x00000040 // Clear Data Toggle
7746
#define USB_TXCSRL3_STALLED 0x00000020 // Endpoint Stalled
7747
#define USB_TXCSRL3_SETUP 0x00000010 // Setup Packet
7748
#define USB_TXCSRL3_STALL 0x00000010 // Send STALL
7749
#define USB_TXCSRL3_FLUSH 0x00000008 // Flush FIFO
7750
#define USB_TXCSRL3_ERROR 0x00000004 // Error
7751
#define USB_TXCSRL3_UNDRN 0x00000004 // Underrun
7752
#define USB_TXCSRL3_FIFONE 0x00000002 // FIFO Not Empty
7753
#define USB_TXCSRL3_TXRDY 0x00000001 // Transmit Packet Ready
7754
7755
//*****************************************************************************
7756
//
7757
// The following are defines for the bit fields in the USB_O_TXCSRH3 register.
7758
//
7759
//*****************************************************************************
7760
#define USB_TXCSRH3_AUTOSET 0x00000080 // Auto Set
7761
#define USB_TXCSRH3_ISO 0x00000040 // Isochronous Transfers
7762
#define USB_TXCSRH3_MODE 0x00000020 // Mode
7763
#define USB_TXCSRH3_DMAEN 0x00000010 // DMA Request Enable
7764
#define USB_TXCSRH3_FDT 0x00000008 // Force Data Toggle
7765
#define USB_TXCSRH3_DMAMOD 0x00000004 // DMA Request Mode
7766
#define USB_TXCSRH3_DTWE 0x00000002 // Data Toggle Write Enable
7767
#define USB_TXCSRH3_DT 0x00000001 // Data Toggle
7768
7769
//*****************************************************************************
7770
//
7771
// The following are defines for the bit fields in the USB_O_RXMAXP3 register.
7772
//
7773
//*****************************************************************************
7774
#define USB_RXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
7775
#define USB_RXMAXP3_MAXLOAD_S 0
7776
7777
//*****************************************************************************
7778
//
7779
// The following are defines for the bit fields in the USB_O_RXCSRL3 register.
7780
//
7781
//*****************************************************************************
7782
#define USB_RXCSRL3_CLRDT 0x00000080 // Clear Data Toggle
7783
#define USB_RXCSRL3_STALLED 0x00000040 // Endpoint Stalled
7784
#define USB_RXCSRL3_STALL 0x00000020 // Send STALL
7785
#define USB_RXCSRL3_REQPKT 0x00000020 // Request Packet
7786
#define USB_RXCSRL3_FLUSH 0x00000010 // Flush FIFO
7787
#define USB_RXCSRL3_DATAERR 0x00000008 // Data Error
7788
#define USB_RXCSRL3_NAKTO 0x00000008 // NAK Timeout
7789
#define USB_RXCSRL3_ERROR 0x00000004 // Error
7790
#define USB_RXCSRL3_OVER 0x00000004 // Overrun
7791
#define USB_RXCSRL3_FULL 0x00000002 // FIFO Full
7792
#define USB_RXCSRL3_RXRDY 0x00000001 // Receive Packet Ready
7793
7794
//*****************************************************************************
7795
//
7796
// The following are defines for the bit fields in the USB_O_RXCSRH3 register.
7797
//
7798
//*****************************************************************************
7799
#define USB_RXCSRH3_AUTOCL 0x00000080 // Auto Clear
7800
#define USB_RXCSRH3_AUTORQ 0x00000040 // Auto Request
7801
#define USB_RXCSRH3_ISO 0x00000040 // Isochronous Transfers
7802
#define USB_RXCSRH3_DMAEN 0x00000020 // DMA Request Enable
7803
#define USB_RXCSRH3_DISNYET 0x00000010 // Disable NYET
7804
#define USB_RXCSRH3_PIDERR 0x00000010 // PID Error
7805
#define USB_RXCSRH3_DMAMOD 0x00000008 // DMA Request Mode
7806
#define USB_RXCSRH3_DTWE 0x00000004 // Data Toggle Write Enable
7807
#define USB_RXCSRH3_DT 0x00000002 // Data Toggle
7808
7809
//*****************************************************************************
7810
//
7811
// The following are defines for the bit fields in the USB_O_RXCOUNT3 register.
7812
//
7813
//*****************************************************************************
7814
#define USB_RXCOUNT3_COUNT_M 0x00001FFF // Receive Packet Count
7815
#define USB_RXCOUNT3_COUNT_S 0
7816
7817
//*****************************************************************************
7818
//
7819
// The following are defines for the bit fields in the USB_O_TXTYPE3 register.
7820
//
7821
//*****************************************************************************
7822
#define USB_TXTYPE3_SPEED_M 0x000000C0 // Operating Speed
7823
#define USB_TXTYPE3_SPEED_DFLT 0x00000000 // Default
7824
#define USB_TXTYPE3_SPEED_FULL 0x00000080 // Full
7825
#define USB_TXTYPE3_SPEED_LOW 0x000000C0 // Low
7826
#define USB_TXTYPE3_PROTO_M 0x00000030 // Protocol
7827
#define USB_TXTYPE3_PROTO_CTRL 0x00000000 // Control
7828
#define USB_TXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
7829
#define USB_TXTYPE3_PROTO_BULK 0x00000020 // Bulk
7830
#define USB_TXTYPE3_PROTO_INT 0x00000030 // Interrupt
7831
#define USB_TXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
7832
#define USB_TXTYPE3_TEP_S 0
7833
7834
//*****************************************************************************
7835
//
7836
// The following are defines for the bit fields in the USB_O_TXINTERVAL3
7837
// register.
7838
//
7839
//*****************************************************************************
7840
#define USB_TXINTERVAL3_TXPOLL_M \
7841
0x000000FF // TX Polling
7842
#define USB_TXINTERVAL3_NAKLMT_M \
7843
0x000000FF // NAK Limit
7844
#define USB_TXINTERVAL3_TXPOLL_S \
7845
0
7846
#define USB_TXINTERVAL3_NAKLMT_S \
7847
0
7848
7849
//*****************************************************************************
7850
//
7851
// The following are defines for the bit fields in the USB_O_RXTYPE3 register.
7852
//
7853
//*****************************************************************************
7854
#define USB_RXTYPE3_SPEED_M 0x000000C0 // Operating Speed
7855
#define USB_RXTYPE3_SPEED_DFLT 0x00000000 // Default
7856
#define USB_RXTYPE3_SPEED_FULL 0x00000080 // Full
7857
#define USB_RXTYPE3_SPEED_LOW 0x000000C0 // Low
7858
#define USB_RXTYPE3_PROTO_M 0x00000030 // Protocol
7859
#define USB_RXTYPE3_PROTO_CTRL 0x00000000 // Control
7860
#define USB_RXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
7861
#define USB_RXTYPE3_PROTO_BULK 0x00000020 // Bulk
7862
#define USB_RXTYPE3_PROTO_INT 0x00000030 // Interrupt
7863
#define USB_RXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
7864
#define USB_RXTYPE3_TEP_S 0
7865
7866
//*****************************************************************************
7867
//
7868
// The following are defines for the bit fields in the USB_O_RXINTERVAL3
7869
// register.
7870
//
7871
//*****************************************************************************
7872
#define USB_RXINTERVAL3_TXPOLL_M \
7873
0x000000FF // RX Polling
7874
#define USB_RXINTERVAL3_NAKLMT_M \
7875
0x000000FF // NAK Limit
7876
#define USB_RXINTERVAL3_TXPOLL_S \
7877
0
7878
#define USB_RXINTERVAL3_NAKLMT_S \
7879
0
7880
7881
//*****************************************************************************
7882
//
7883
// The following are defines for the bit fields in the USB_O_TXMAXP4 register.
7884
//
7885
//*****************************************************************************
7886
#define USB_TXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
7887
#define USB_TXMAXP4_MAXLOAD_S 0
7888
7889
//*****************************************************************************
7890
//
7891
// The following are defines for the bit fields in the USB_O_TXCSRL4 register.
7892
//
7893
//*****************************************************************************
7894
#define USB_TXCSRL4_NAKTO 0x00000080 // NAK Timeout
7895
#define USB_TXCSRL4_CLRDT 0x00000040 // Clear Data Toggle
7896
#define USB_TXCSRL4_STALLED 0x00000020 // Endpoint Stalled
7897
#define USB_TXCSRL4_SETUP 0x00000010 // Setup Packet
7898
#define USB_TXCSRL4_STALL 0x00000010 // Send STALL
7899
#define USB_TXCSRL4_FLUSH 0x00000008 // Flush FIFO
7900
#define USB_TXCSRL4_ERROR 0x00000004 // Error
7901
#define USB_TXCSRL4_UNDRN 0x00000004 // Underrun
7902
#define USB_TXCSRL4_FIFONE 0x00000002 // FIFO Not Empty
7903
#define USB_TXCSRL4_TXRDY 0x00000001 // Transmit Packet Ready
7904
7905
//*****************************************************************************
7906
//
7907
// The following are defines for the bit fields in the USB_O_TXCSRH4 register.
7908
//
7909
//*****************************************************************************
7910
#define USB_TXCSRH4_AUTOSET 0x00000080 // Auto Set
7911
#define USB_TXCSRH4_ISO 0x00000040 // Isochronous Transfers
7912
#define USB_TXCSRH4_MODE 0x00000020 // Mode
7913
#define USB_TXCSRH4_DMAEN 0x00000010 // DMA Request Enable
7914
#define USB_TXCSRH4_FDT 0x00000008 // Force Data Toggle
7915
#define USB_TXCSRH4_DMAMOD 0x00000004 // DMA Request Mode
7916
#define USB_TXCSRH4_DTWE 0x00000002 // Data Toggle Write Enable
7917
#define USB_TXCSRH4_DT 0x00000001 // Data Toggle
7918
7919
//*****************************************************************************
7920
//
7921
// The following are defines for the bit fields in the USB_O_RXMAXP4 register.
7922
//
7923
//*****************************************************************************
7924
#define USB_RXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
7925
#define USB_RXMAXP4_MAXLOAD_S 0
7926
7927
//*****************************************************************************
7928
//
7929
// The following are defines for the bit fields in the USB_O_RXCSRL4 register.
7930
//
7931
//*****************************************************************************
7932
#define USB_RXCSRL4_CLRDT 0x00000080 // Clear Data Toggle
7933
#define USB_RXCSRL4_STALLED 0x00000040 // Endpoint Stalled
7934
#define USB_RXCSRL4_STALL 0x00000020 // Send STALL
7935
#define USB_RXCSRL4_REQPKT 0x00000020 // Request Packet
7936
#define USB_RXCSRL4_FLUSH 0x00000010 // Flush FIFO
7937
#define USB_RXCSRL4_NAKTO 0x00000008 // NAK Timeout
7938
#define USB_RXCSRL4_DATAERR 0x00000008 // Data Error
7939
#define USB_RXCSRL4_OVER 0x00000004 // Overrun
7940
#define USB_RXCSRL4_ERROR 0x00000004 // Error
7941
#define USB_RXCSRL4_FULL 0x00000002 // FIFO Full
7942
#define USB_RXCSRL4_RXRDY 0x00000001 // Receive Packet Ready
7943
7944
//*****************************************************************************
7945
//
7946
// The following are defines for the bit fields in the USB_O_RXCSRH4 register.
7947
//
7948
//*****************************************************************************
7949
#define USB_RXCSRH4_AUTOCL 0x00000080 // Auto Clear
7950
#define USB_RXCSRH4_AUTORQ 0x00000040 // Auto Request
7951
#define USB_RXCSRH4_ISO 0x00000040 // Isochronous Transfers
7952
#define USB_RXCSRH4_DMAEN 0x00000020 // DMA Request Enable
7953
#define USB_RXCSRH4_DISNYET 0x00000010 // Disable NYET
7954
#define USB_RXCSRH4_PIDERR 0x00000010 // PID Error
7955
#define USB_RXCSRH4_DMAMOD 0x00000008 // DMA Request Mode
7956
#define USB_RXCSRH4_DTWE 0x00000004 // Data Toggle Write Enable
7957
#define USB_RXCSRH4_DT 0x00000002 // Data Toggle
7958
7959
//*****************************************************************************
7960
//
7961
// The following are defines for the bit fields in the USB_O_RXCOUNT4 register.
7962
//
7963
//*****************************************************************************
7964
#define USB_RXCOUNT4_COUNT_M 0x00001FFF // Receive Packet Count
7965
#define USB_RXCOUNT4_COUNT_S 0
7966
7967
//*****************************************************************************
7968
//
7969
// The following are defines for the bit fields in the USB_O_TXTYPE4 register.
7970
//
7971
//*****************************************************************************
7972
#define USB_TXTYPE4_SPEED_M 0x000000C0 // Operating Speed
7973
#define USB_TXTYPE4_SPEED_DFLT 0x00000000 // Default
7974
#define USB_TXTYPE4_SPEED_FULL 0x00000080 // Full
7975
#define USB_TXTYPE4_SPEED_LOW 0x000000C0 // Low
7976
#define USB_TXTYPE4_PROTO_M 0x00000030 // Protocol
7977
#define USB_TXTYPE4_PROTO_CTRL 0x00000000 // Control
7978
#define USB_TXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
7979
#define USB_TXTYPE4_PROTO_BULK 0x00000020 // Bulk
7980
#define USB_TXTYPE4_PROTO_INT 0x00000030 // Interrupt
7981
#define USB_TXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
7982
#define USB_TXTYPE4_TEP_S 0
7983
7984
//*****************************************************************************
7985
//
7986
// The following are defines for the bit fields in the USB_O_TXINTERVAL4
7987
// register.
7988
//
7989
//*****************************************************************************
7990
#define USB_TXINTERVAL4_TXPOLL_M \
7991
0x000000FF // TX Polling
7992
#define USB_TXINTERVAL4_NAKLMT_M \
7993
0x000000FF // NAK Limit
7994
#define USB_TXINTERVAL4_NAKLMT_S \
7995
0
7996
#define USB_TXINTERVAL4_TXPOLL_S \
7997
0
7998
7999
//*****************************************************************************
8000
//
8001
// The following are defines for the bit fields in the USB_O_RXTYPE4 register.
8002
//
8003
//*****************************************************************************
8004
#define USB_RXTYPE4_SPEED_M 0x000000C0 // Operating Speed
8005
#define USB_RXTYPE4_SPEED_DFLT 0x00000000 // Default
8006
#define USB_RXTYPE4_SPEED_FULL 0x00000080 // Full
8007
#define USB_RXTYPE4_SPEED_LOW 0x000000C0 // Low
8008
#define USB_RXTYPE4_PROTO_M 0x00000030 // Protocol
8009
#define USB_RXTYPE4_PROTO_CTRL 0x00000000 // Control
8010
#define USB_RXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
8011
#define USB_RXTYPE4_PROTO_BULK 0x00000020 // Bulk
8012
#define USB_RXTYPE4_PROTO_INT 0x00000030 // Interrupt
8013
#define USB_RXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
8014
#define USB_RXTYPE4_TEP_S 0
8015
8016
//*****************************************************************************
8017
//
8018
// The following are defines for the bit fields in the USB_O_RXINTERVAL4
8019
// register.
8020
//
8021
//*****************************************************************************
8022
#define USB_RXINTERVAL4_TXPOLL_M \
8023
0x000000FF // RX Polling
8024
#define USB_RXINTERVAL4_NAKLMT_M \
8025
0x000000FF // NAK Limit
8026
#define USB_RXINTERVAL4_NAKLMT_S \
8027
0
8028
#define USB_RXINTERVAL4_TXPOLL_S \
8029
0
8030
8031
//*****************************************************************************
8032
//
8033
// The following are defines for the bit fields in the USB_O_TXMAXP5 register.
8034
//
8035
//*****************************************************************************
8036
#define USB_TXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
8037
#define USB_TXMAXP5_MAXLOAD_S 0
8038
8039
//*****************************************************************************
8040
//
8041
// The following are defines for the bit fields in the USB_O_TXCSRL5 register.
8042
//
8043
//*****************************************************************************
8044
#define USB_TXCSRL5_NAKTO 0x00000080 // NAK Timeout
8045
#define USB_TXCSRL5_CLRDT 0x00000040 // Clear Data Toggle
8046
#define USB_TXCSRL5_STALLED 0x00000020 // Endpoint Stalled
8047
#define USB_TXCSRL5_SETUP 0x00000010 // Setup Packet
8048
#define USB_TXCSRL5_STALL 0x00000010 // Send STALL
8049
#define USB_TXCSRL5_FLUSH 0x00000008 // Flush FIFO
8050
#define USB_TXCSRL5_ERROR 0x00000004 // Error
8051
#define USB_TXCSRL5_UNDRN 0x00000004 // Underrun
8052
#define USB_TXCSRL5_FIFONE 0x00000002 // FIFO Not Empty
8053
#define USB_TXCSRL5_TXRDY 0x00000001 // Transmit Packet Ready
8054
8055
//*****************************************************************************
8056
//
8057
// The following are defines for the bit fields in the USB_O_TXCSRH5 register.
8058
//
8059
//*****************************************************************************
8060
#define USB_TXCSRH5_AUTOSET 0x00000080 // Auto Set
8061
#define USB_TXCSRH5_ISO 0x00000040 // Isochronous Transfers
8062
#define USB_TXCSRH5_MODE 0x00000020 // Mode
8063
#define USB_TXCSRH5_DMAEN 0x00000010 // DMA Request Enable
8064
#define USB_TXCSRH5_FDT 0x00000008 // Force Data Toggle
8065
#define USB_TXCSRH5_DMAMOD 0x00000004 // DMA Request Mode
8066
#define USB_TXCSRH5_DTWE 0x00000002 // Data Toggle Write Enable
8067
#define USB_TXCSRH5_DT 0x00000001 // Data Toggle
8068
8069
//*****************************************************************************
8070
//
8071
// The following are defines for the bit fields in the USB_O_RXMAXP5 register.
8072
//
8073
//*****************************************************************************
8074
#define USB_RXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
8075
#define USB_RXMAXP5_MAXLOAD_S 0
8076
8077
//*****************************************************************************
8078
//
8079
// The following are defines for the bit fields in the USB_O_RXCSRL5 register.
8080
//
8081
//*****************************************************************************
8082
#define USB_RXCSRL5_CLRDT 0x00000080 // Clear Data Toggle
8083
#define USB_RXCSRL5_STALLED 0x00000040 // Endpoint Stalled
8084
#define USB_RXCSRL5_STALL 0x00000020 // Send STALL
8085
#define USB_RXCSRL5_REQPKT 0x00000020 // Request Packet
8086
#define USB_RXCSRL5_FLUSH 0x00000010 // Flush FIFO
8087
#define USB_RXCSRL5_NAKTO 0x00000008 // NAK Timeout
8088
#define USB_RXCSRL5_DATAERR 0x00000008 // Data Error
8089
#define USB_RXCSRL5_ERROR 0x00000004 // Error
8090
#define USB_RXCSRL5_OVER 0x00000004 // Overrun
8091
#define USB_RXCSRL5_FULL 0x00000002 // FIFO Full
8092
#define USB_RXCSRL5_RXRDY 0x00000001 // Receive Packet Ready
8093
8094
//*****************************************************************************
8095
//
8096
// The following are defines for the bit fields in the USB_O_RXCSRH5 register.
8097
//
8098
//*****************************************************************************
8099
#define USB_RXCSRH5_AUTOCL 0x00000080 // Auto Clear
8100
#define USB_RXCSRH5_AUTORQ 0x00000040 // Auto Request
8101
#define USB_RXCSRH5_ISO 0x00000040 // Isochronous Transfers
8102
#define USB_RXCSRH5_DMAEN 0x00000020 // DMA Request Enable
8103
#define USB_RXCSRH5_DISNYET 0x00000010 // Disable NYET
8104
#define USB_RXCSRH5_PIDERR 0x00000010 // PID Error
8105
#define USB_RXCSRH5_DMAMOD 0x00000008 // DMA Request Mode
8106
#define USB_RXCSRH5_DTWE 0x00000004 // Data Toggle Write Enable
8107
#define USB_RXCSRH5_DT 0x00000002 // Data Toggle
8108
8109
//*****************************************************************************
8110
//
8111
// The following are defines for the bit fields in the USB_O_RXCOUNT5 register.
8112
//
8113
//*****************************************************************************
8114
#define USB_RXCOUNT5_COUNT_M 0x00001FFF // Receive Packet Count
8115
#define USB_RXCOUNT5_COUNT_S 0
8116
8117
//*****************************************************************************
8118
//
8119
// The following are defines for the bit fields in the USB_O_TXTYPE5 register.
8120
//
8121
//*****************************************************************************
8122
#define USB_TXTYPE5_SPEED_M 0x000000C0 // Operating Speed
8123
#define USB_TXTYPE5_SPEED_DFLT 0x00000000 // Default
8124
#define USB_TXTYPE5_SPEED_FULL 0x00000080 // Full
8125
#define USB_TXTYPE5_SPEED_LOW 0x000000C0 // Low
8126
#define USB_TXTYPE5_PROTO_M 0x00000030 // Protocol
8127
#define USB_TXTYPE5_PROTO_CTRL 0x00000000 // Control
8128
#define USB_TXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
8129
#define USB_TXTYPE5_PROTO_BULK 0x00000020 // Bulk
8130
#define USB_TXTYPE5_PROTO_INT 0x00000030 // Interrupt
8131
#define USB_TXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
8132
#define USB_TXTYPE5_TEP_S 0
8133
8134
//*****************************************************************************
8135
//
8136
// The following are defines for the bit fields in the USB_O_TXINTERVAL5
8137
// register.
8138
//
8139
//*****************************************************************************
8140
#define USB_TXINTERVAL5_TXPOLL_M \
8141
0x000000FF // TX Polling
8142
#define USB_TXINTERVAL5_NAKLMT_M \
8143
0x000000FF // NAK Limit
8144
#define USB_TXINTERVAL5_NAKLMT_S \
8145
0
8146
#define USB_TXINTERVAL5_TXPOLL_S \
8147
0
8148
8149
//*****************************************************************************
8150
//
8151
// The following are defines for the bit fields in the USB_O_RXTYPE5 register.
8152
//
8153
//*****************************************************************************
8154
#define USB_RXTYPE5_SPEED_M 0x000000C0 // Operating Speed
8155
#define USB_RXTYPE5_SPEED_DFLT 0x00000000 // Default
8156
#define USB_RXTYPE5_SPEED_FULL 0x00000080 // Full
8157
#define USB_RXTYPE5_SPEED_LOW 0x000000C0 // Low
8158
#define USB_RXTYPE5_PROTO_M 0x00000030 // Protocol
8159
#define USB_RXTYPE5_PROTO_CTRL 0x00000000 // Control
8160
#define USB_RXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
8161
#define USB_RXTYPE5_PROTO_BULK 0x00000020 // Bulk
8162
#define USB_RXTYPE5_PROTO_INT 0x00000030 // Interrupt
8163
#define USB_RXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
8164
#define USB_RXTYPE5_TEP_S 0
8165
8166
//*****************************************************************************
8167
//
8168
// The following are defines for the bit fields in the USB_O_RXINTERVAL5
8169
// register.
8170
//
8171
//*****************************************************************************
8172
#define USB_RXINTERVAL5_TXPOLL_M \
8173
0x000000FF // RX Polling
8174
#define USB_RXINTERVAL5_NAKLMT_M \
8175
0x000000FF // NAK Limit
8176
#define USB_RXINTERVAL5_TXPOLL_S \
8177
0
8178
#define USB_RXINTERVAL5_NAKLMT_S \
8179
0
8180
8181
//*****************************************************************************
8182
//
8183
// The following are defines for the bit fields in the USB_O_TXMAXP6 register.
8184
//
8185
//*****************************************************************************
8186
#define USB_TXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
8187
#define USB_TXMAXP6_MAXLOAD_S 0
8188
8189
//*****************************************************************************
8190
//
8191
// The following are defines for the bit fields in the USB_O_TXCSRL6 register.
8192
//
8193
//*****************************************************************************
8194
#define USB_TXCSRL6_NAKTO 0x00000080 // NAK Timeout
8195
#define USB_TXCSRL6_CLRDT 0x00000040 // Clear Data Toggle
8196
#define USB_TXCSRL6_STALLED 0x00000020 // Endpoint Stalled
8197
#define USB_TXCSRL6_STALL 0x00000010 // Send STALL
8198
#define USB_TXCSRL6_SETUP 0x00000010 // Setup Packet
8199
#define USB_TXCSRL6_FLUSH 0x00000008 // Flush FIFO
8200
#define USB_TXCSRL6_ERROR 0x00000004 // Error
8201
#define USB_TXCSRL6_UNDRN 0x00000004 // Underrun
8202
#define USB_TXCSRL6_FIFONE 0x00000002 // FIFO Not Empty
8203
#define USB_TXCSRL6_TXRDY 0x00000001 // Transmit Packet Ready
8204
8205
//*****************************************************************************
8206
//
8207
// The following are defines for the bit fields in the USB_O_TXCSRH6 register.
8208
//
8209
//*****************************************************************************
8210
#define USB_TXCSRH6_AUTOSET 0x00000080 // Auto Set
8211
#define USB_TXCSRH6_ISO 0x00000040 // Isochronous Transfers
8212
#define USB_TXCSRH6_MODE 0x00000020 // Mode
8213
#define USB_TXCSRH6_DMAEN 0x00000010 // DMA Request Enable
8214
#define USB_TXCSRH6_FDT 0x00000008 // Force Data Toggle
8215
#define USB_TXCSRH6_DMAMOD 0x00000004 // DMA Request Mode
8216
#define USB_TXCSRH6_DTWE 0x00000002 // Data Toggle Write Enable
8217
#define USB_TXCSRH6_DT 0x00000001 // Data Toggle
8218
8219
//*****************************************************************************
8220
//
8221
// The following are defines for the bit fields in the USB_O_RXMAXP6 register.
8222
//
8223
//*****************************************************************************
8224
#define USB_RXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
8225
#define USB_RXMAXP6_MAXLOAD_S 0
8226
8227
//*****************************************************************************
8228
//
8229
// The following are defines for the bit fields in the USB_O_RXCSRL6 register.
8230
//
8231
//*****************************************************************************
8232
#define USB_RXCSRL6_CLRDT 0x00000080 // Clear Data Toggle
8233
#define USB_RXCSRL6_STALLED 0x00000040 // Endpoint Stalled
8234
#define USB_RXCSRL6_REQPKT 0x00000020 // Request Packet
8235
#define USB_RXCSRL6_STALL 0x00000020 // Send STALL
8236
#define USB_RXCSRL6_FLUSH 0x00000010 // Flush FIFO
8237
#define USB_RXCSRL6_NAKTO 0x00000008 // NAK Timeout
8238
#define USB_RXCSRL6_DATAERR 0x00000008 // Data Error
8239
#define USB_RXCSRL6_ERROR 0x00000004 // Error
8240
#define USB_RXCSRL6_OVER 0x00000004 // Overrun
8241
#define USB_RXCSRL6_FULL 0x00000002 // FIFO Full
8242
#define USB_RXCSRL6_RXRDY 0x00000001 // Receive Packet Ready
8243
8244
//*****************************************************************************
8245
//
8246
// The following are defines for the bit fields in the USB_O_RXCSRH6 register.
8247
//
8248
//*****************************************************************************
8249
#define USB_RXCSRH6_AUTOCL 0x00000080 // Auto Clear
8250
#define USB_RXCSRH6_AUTORQ 0x00000040 // Auto Request
8251
#define USB_RXCSRH6_ISO 0x00000040 // Isochronous Transfers
8252
#define USB_RXCSRH6_DMAEN 0x00000020 // DMA Request Enable
8253
#define USB_RXCSRH6_DISNYET 0x00000010 // Disable NYET
8254
#define USB_RXCSRH6_PIDERR 0x00000010 // PID Error
8255
#define USB_RXCSRH6_DMAMOD 0x00000008 // DMA Request Mode
8256
#define USB_RXCSRH6_DTWE 0x00000004 // Data Toggle Write Enable
8257
#define USB_RXCSRH6_DT 0x00000002 // Data Toggle
8258
8259
//*****************************************************************************
8260
//
8261
// The following are defines for the bit fields in the USB_O_RXCOUNT6 register.
8262
//
8263
//*****************************************************************************
8264
#define USB_RXCOUNT6_COUNT_M 0x00001FFF // Receive Packet Count
8265
#define USB_RXCOUNT6_COUNT_S 0
8266
8267
//*****************************************************************************
8268
//
8269
// The following are defines for the bit fields in the USB_O_TXTYPE6 register.
8270
//
8271
//*****************************************************************************
8272
#define USB_TXTYPE6_SPEED_M 0x000000C0 // Operating Speed
8273
#define USB_TXTYPE6_SPEED_DFLT 0x00000000 // Default
8274
#define USB_TXTYPE6_SPEED_FULL 0x00000080 // Full
8275
#define USB_TXTYPE6_SPEED_LOW 0x000000C0 // Low
8276
#define USB_TXTYPE6_PROTO_M 0x00000030 // Protocol
8277
#define USB_TXTYPE6_PROTO_CTRL 0x00000000 // Control
8278
#define USB_TXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
8279
#define USB_TXTYPE6_PROTO_BULK 0x00000020 // Bulk
8280
#define USB_TXTYPE6_PROTO_INT 0x00000030 // Interrupt
8281
#define USB_TXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
8282
#define USB_TXTYPE6_TEP_S 0
8283
8284
//*****************************************************************************
8285
//
8286
// The following are defines for the bit fields in the USB_O_TXINTERVAL6
8287
// register.
8288
//
8289
//*****************************************************************************
8290
#define USB_TXINTERVAL6_TXPOLL_M \
8291
0x000000FF // TX Polling
8292
#define USB_TXINTERVAL6_NAKLMT_M \
8293
0x000000FF // NAK Limit
8294
#define USB_TXINTERVAL6_TXPOLL_S \
8295
0
8296
#define USB_TXINTERVAL6_NAKLMT_S \
8297
0
8298
8299
//*****************************************************************************
8300
//
8301
// The following are defines for the bit fields in the USB_O_RXTYPE6 register.
8302
//
8303
//*****************************************************************************
8304
#define USB_RXTYPE6_SPEED_M 0x000000C0 // Operating Speed
8305
#define USB_RXTYPE6_SPEED_DFLT 0x00000000 // Default
8306
#define USB_RXTYPE6_SPEED_FULL 0x00000080 // Full
8307
#define USB_RXTYPE6_SPEED_LOW 0x000000C0 // Low
8308
#define USB_RXTYPE6_PROTO_M 0x00000030 // Protocol
8309
#define USB_RXTYPE6_PROTO_CTRL 0x00000000 // Control
8310
#define USB_RXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
8311
#define USB_RXTYPE6_PROTO_BULK 0x00000020 // Bulk
8312
#define USB_RXTYPE6_PROTO_INT 0x00000030 // Interrupt
8313
#define USB_RXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
8314
#define USB_RXTYPE6_TEP_S 0
8315
8316
//*****************************************************************************
8317
//
8318
// The following are defines for the bit fields in the USB_O_RXINTERVAL6
8319
// register.
8320
//
8321
//*****************************************************************************
8322
#define USB_RXINTERVAL6_TXPOLL_M \
8323
0x000000FF // RX Polling
8324
#define USB_RXINTERVAL6_NAKLMT_M \
8325
0x000000FF // NAK Limit
8326
#define USB_RXINTERVAL6_NAKLMT_S \
8327
0
8328
#define USB_RXINTERVAL6_TXPOLL_S \
8329
0
8330
8331
//*****************************************************************************
8332
//
8333
// The following are defines for the bit fields in the USB_O_TXMAXP7 register.
8334
//
8335
//*****************************************************************************
8336
#define USB_TXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
8337
#define USB_TXMAXP7_MAXLOAD_S 0
8338
8339
//*****************************************************************************
8340
//
8341
// The following are defines for the bit fields in the USB_O_TXCSRL7 register.
8342
//
8343
//*****************************************************************************
8344
#define USB_TXCSRL7_NAKTO 0x00000080 // NAK Timeout
8345
#define USB_TXCSRL7_CLRDT 0x00000040 // Clear Data Toggle
8346
#define USB_TXCSRL7_STALLED 0x00000020 // Endpoint Stalled
8347
#define USB_TXCSRL7_STALL 0x00000010 // Send STALL
8348
#define USB_TXCSRL7_SETUP 0x00000010 // Setup Packet
8349
#define USB_TXCSRL7_FLUSH 0x00000008 // Flush FIFO
8350
#define USB_TXCSRL7_ERROR 0x00000004 // Error
8351
#define USB_TXCSRL7_UNDRN 0x00000004 // Underrun
8352
#define USB_TXCSRL7_FIFONE 0x00000002 // FIFO Not Empty
8353
#define USB_TXCSRL7_TXRDY 0x00000001 // Transmit Packet Ready
8354
8355
//*****************************************************************************
8356
//
8357
// The following are defines for the bit fields in the USB_O_TXCSRH7 register.
8358
//
8359
//*****************************************************************************
8360
#define USB_TXCSRH7_AUTOSET 0x00000080 // Auto Set
8361
#define USB_TXCSRH7_ISO 0x00000040 // Isochronous Transfers
8362
#define USB_TXCSRH7_MODE 0x00000020 // Mode
8363
#define USB_TXCSRH7_DMAEN 0x00000010 // DMA Request Enable
8364
#define USB_TXCSRH7_FDT 0x00000008 // Force Data Toggle
8365
#define USB_TXCSRH7_DMAMOD 0x00000004 // DMA Request Mode
8366
#define USB_TXCSRH7_DTWE 0x00000002 // Data Toggle Write Enable
8367
#define USB_TXCSRH7_DT 0x00000001 // Data Toggle
8368
8369
//*****************************************************************************
8370
//
8371
// The following are defines for the bit fields in the USB_O_RXMAXP7 register.
8372
//
8373
//*****************************************************************************
8374
#define USB_RXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
8375
#define USB_RXMAXP7_MAXLOAD_S 0
8376
8377
//*****************************************************************************
8378
//
8379
// The following are defines for the bit fields in the USB_O_RXCSRL7 register.
8380
//
8381
//*****************************************************************************
8382
#define USB_RXCSRL7_CLRDT 0x00000080 // Clear Data Toggle
8383
#define USB_RXCSRL7_STALLED 0x00000040 // Endpoint Stalled
8384
#define USB_RXCSRL7_REQPKT 0x00000020 // Request Packet
8385
#define USB_RXCSRL7_STALL 0x00000020 // Send STALL
8386
#define USB_RXCSRL7_FLUSH 0x00000010 // Flush FIFO
8387
#define USB_RXCSRL7_DATAERR 0x00000008 // Data Error
8388
#define USB_RXCSRL7_NAKTO 0x00000008 // NAK Timeout
8389
#define USB_RXCSRL7_ERROR 0x00000004 // Error
8390
#define USB_RXCSRL7_OVER 0x00000004 // Overrun
8391
#define USB_RXCSRL7_FULL 0x00000002 // FIFO Full
8392
#define USB_RXCSRL7_RXRDY 0x00000001 // Receive Packet Ready
8393
8394
//*****************************************************************************
8395
//
8396
// The following are defines for the bit fields in the USB_O_RXCSRH7 register.
8397
//
8398
//*****************************************************************************
8399
#define USB_RXCSRH7_AUTOCL 0x00000080 // Auto Clear
8400
#define USB_RXCSRH7_ISO 0x00000040 // Isochronous Transfers
8401
#define USB_RXCSRH7_AUTORQ 0x00000040 // Auto Request
8402
#define USB_RXCSRH7_DMAEN 0x00000020 // DMA Request Enable
8403
#define USB_RXCSRH7_PIDERR 0x00000010 // PID Error
8404
#define USB_RXCSRH7_DISNYET 0x00000010 // Disable NYET
8405
#define USB_RXCSRH7_DMAMOD 0x00000008 // DMA Request Mode
8406
#define USB_RXCSRH7_DTWE 0x00000004 // Data Toggle Write Enable
8407
#define USB_RXCSRH7_DT 0x00000002 // Data Toggle
8408
8409
//*****************************************************************************
8410
//
8411
// The following are defines for the bit fields in the USB_O_RXCOUNT7 register.
8412
//
8413
//*****************************************************************************
8414
#define USB_RXCOUNT7_COUNT_M 0x00001FFF // Receive Packet Count
8415
#define USB_RXCOUNT7_COUNT_S 0
8416
8417
//*****************************************************************************
8418
//
8419
// The following are defines for the bit fields in the USB_O_TXTYPE7 register.
8420
//
8421
//*****************************************************************************
8422
#define USB_TXTYPE7_SPEED_M 0x000000C0 // Operating Speed
8423
#define USB_TXTYPE7_SPEED_DFLT 0x00000000 // Default
8424
#define USB_TXTYPE7_SPEED_FULL 0x00000080 // Full
8425
#define USB_TXTYPE7_SPEED_LOW 0x000000C0 // Low
8426
#define USB_TXTYPE7_PROTO_M 0x00000030 // Protocol
8427
#define USB_TXTYPE7_PROTO_CTRL 0x00000000 // Control
8428
#define USB_TXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
8429
#define USB_TXTYPE7_PROTO_BULK 0x00000020 // Bulk
8430
#define USB_TXTYPE7_PROTO_INT 0x00000030 // Interrupt
8431
#define USB_TXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
8432
#define USB_TXTYPE7_TEP_S 0
8433
8434
//*****************************************************************************
8435
//
8436
// The following are defines for the bit fields in the USB_O_TXINTERVAL7
8437
// register.
8438
//
8439
//*****************************************************************************
8440
#define USB_TXINTERVAL7_TXPOLL_M \
8441
0x000000FF // TX Polling
8442
#define USB_TXINTERVAL7_NAKLMT_M \
8443
0x000000FF // NAK Limit
8444
#define USB_TXINTERVAL7_NAKLMT_S \
8445
0
8446
#define USB_TXINTERVAL7_TXPOLL_S \
8447
0
8448
8449
//*****************************************************************************
8450
//
8451
// The following are defines for the bit fields in the USB_O_RXTYPE7 register.
8452
//
8453
//*****************************************************************************
8454
#define USB_RXTYPE7_SPEED_M 0x000000C0 // Operating Speed
8455
#define USB_RXTYPE7_SPEED_DFLT 0x00000000 // Default
8456
#define USB_RXTYPE7_SPEED_FULL 0x00000080 // Full
8457
#define USB_RXTYPE7_SPEED_LOW 0x000000C0 // Low
8458
#define USB_RXTYPE7_PROTO_M 0x00000030 // Protocol
8459
#define USB_RXTYPE7_PROTO_CTRL 0x00000000 // Control
8460
#define USB_RXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
8461
#define USB_RXTYPE7_PROTO_BULK 0x00000020 // Bulk
8462
#define USB_RXTYPE7_PROTO_INT 0x00000030 // Interrupt
8463
#define USB_RXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
8464
#define USB_RXTYPE7_TEP_S 0
8465
8466
//*****************************************************************************
8467
//
8468
// The following are defines for the bit fields in the USB_O_RXINTERVAL7
8469
// register.
8470
//
8471
//*****************************************************************************
8472
#define USB_RXINTERVAL7_TXPOLL_M \
8473
0x000000FF // RX Polling
8474
#define USB_RXINTERVAL7_NAKLMT_M \
8475
0x000000FF // NAK Limit
8476
#define USB_RXINTERVAL7_NAKLMT_S \
8477
0
8478
#define USB_RXINTERVAL7_TXPOLL_S \
8479
0
8480
8481
//*****************************************************************************
8482
//
8483
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT1
8484
// register.
8485
//
8486
//*****************************************************************************
8487
#define USB_RQPKTCOUNT1_M 0x0000FFFF // Block Transfer Packet Count
8488
#define USB_RQPKTCOUNT1_S 0
8489
8490
//*****************************************************************************
8491
//
8492
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT2
8493
// register.
8494
//
8495
//*****************************************************************************
8496
#define USB_RQPKTCOUNT2_M 0x0000FFFF // Block Transfer Packet Count
8497
#define USB_RQPKTCOUNT2_S 0
8498
8499
//*****************************************************************************
8500
//
8501
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT3
8502
// register.
8503
//
8504
//*****************************************************************************
8505
#define USB_RQPKTCOUNT3_M 0x0000FFFF // Block Transfer Packet Count
8506
#define USB_RQPKTCOUNT3_S 0
8507
8508
//*****************************************************************************
8509
//
8510
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT4
8511
// register.
8512
//
8513
//*****************************************************************************
8514
#define USB_RQPKTCOUNT4_COUNT_M 0x0000FFFF // Block Transfer Packet Count
8515
#define USB_RQPKTCOUNT4_COUNT_S 0
8516
8517
//*****************************************************************************
8518
//
8519
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT5
8520
// register.
8521
//
8522
//*****************************************************************************
8523
#define USB_RQPKTCOUNT5_COUNT_M 0x0000FFFF // Block Transfer Packet Count
8524
#define USB_RQPKTCOUNT5_COUNT_S 0
8525
8526
//*****************************************************************************
8527
//
8528
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT6
8529
// register.
8530
//
8531
//*****************************************************************************
8532
#define USB_RQPKTCOUNT6_COUNT_M 0x0000FFFF // Block Transfer Packet Count
8533
#define USB_RQPKTCOUNT6_COUNT_S 0
8534
8535
//*****************************************************************************
8536
//
8537
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT7
8538
// register.
8539
//
8540
//*****************************************************************************
8541
#define USB_RQPKTCOUNT7_COUNT_M 0x0000FFFF // Block Transfer Packet Count
8542
#define USB_RQPKTCOUNT7_COUNT_S 0
8543
8544
//*****************************************************************************
8545
//
8546
// The following are defines for the bit fields in the USB_O_RXDPKTBUFDIS
8547
// register.
8548
//
8549
//*****************************************************************************
8550
#define USB_RXDPKTBUFDIS_EP7 0x00000080 // EP7 RX Double-Packet Buffer
8551
// Disable
8552
#define USB_RXDPKTBUFDIS_EP6 0x00000040 // EP6 RX Double-Packet Buffer
8553
// Disable
8554
#define USB_RXDPKTBUFDIS_EP5 0x00000020 // EP5 RX Double-Packet Buffer
8555
// Disable
8556
#define USB_RXDPKTBUFDIS_EP4 0x00000010 // EP4 RX Double-Packet Buffer
8557
// Disable
8558
#define USB_RXDPKTBUFDIS_EP3 0x00000008 // EP3 RX Double-Packet Buffer
8559
// Disable
8560
#define USB_RXDPKTBUFDIS_EP2 0x00000004 // EP2 RX Double-Packet Buffer
8561
// Disable
8562
#define USB_RXDPKTBUFDIS_EP1 0x00000002 // EP1 RX Double-Packet Buffer
8563
// Disable
8564
8565
//*****************************************************************************
8566
//
8567
// The following are defines for the bit fields in the USB_O_TXDPKTBUFDIS
8568
// register.
8569
//
8570
//*****************************************************************************
8571
#define USB_TXDPKTBUFDIS_EP7 0x00000080 // EP7 TX Double-Packet Buffer
8572
// Disable
8573
#define USB_TXDPKTBUFDIS_EP6 0x00000040 // EP6 TX Double-Packet Buffer
8574
// Disable
8575
#define USB_TXDPKTBUFDIS_EP5 0x00000020 // EP5 TX Double-Packet Buffer
8576
// Disable
8577
#define USB_TXDPKTBUFDIS_EP4 0x00000010 // EP4 TX Double-Packet Buffer
8578
// Disable
8579
#define USB_TXDPKTBUFDIS_EP3 0x00000008 // EP3 TX Double-Packet Buffer
8580
// Disable
8581
#define USB_TXDPKTBUFDIS_EP2 0x00000004 // EP2 TX Double-Packet Buffer
8582
// Disable
8583
#define USB_TXDPKTBUFDIS_EP1 0x00000002 // EP1 TX Double-Packet Buffer
8584
// Disable
8585
8586
//*****************************************************************************
8587
//
8588
// The following are defines for the bit fields in the USB_O_EPC register.
8589
//
8590
//*****************************************************************************
8591
#define USB_EPC_PFLTACT_M 0x00000300 // Power Fault Action
8592
#define USB_EPC_PFLTACT_UNCHG 0x00000000 // Unchanged
8593
#define USB_EPC_PFLTACT_TRIS 0x00000100 // Tristate
8594
#define USB_EPC_PFLTACT_LOW 0x00000200 // Low
8595
#define USB_EPC_PFLTACT_HIGH 0x00000300 // High
8596
#define USB_EPC_PFLTAEN 0x00000040 // Power Fault Action Enable
8597
#define USB_EPC_PFLTSEN_HIGH 0x00000020 // Power Fault Sense
8598
#define USB_EPC_PFLTEN 0x00000010 // Power Fault Input Enable
8599
#define USB_EPC_EPENDE 0x00000004 // EPEN Drive Enable
8600
#define USB_EPC_EPEN_M 0x00000003 // External Power Supply Enable
8601
// Configuration
8602
#define USB_EPC_EPEN_LOW 0x00000000 // Power Enable Active Low
8603
#define USB_EPC_EPEN_HIGH 0x00000001 // Power Enable Active High
8604
#define USB_EPC_EPEN_VBLOW 0x00000002 // Power Enable High if VBUS Low
8605
// (OTG only)
8606
#define USB_EPC_EPEN_VBHIGH 0x00000003 // Power Enable High if VBUS High
8607
// (OTG only)
8608
8609
//*****************************************************************************
8610
//
8611
// The following are defines for the bit fields in the USB_O_EPCRIS register.
8612
//
8613
//*****************************************************************************
8614
#define USB_EPCRIS_PF 0x00000001 // USB Power Fault Interrupt Status
8615
8616
//*****************************************************************************
8617
//
8618
// The following are defines for the bit fields in the USB_O_EPCIM register.
8619
//
8620
//*****************************************************************************
8621
#define USB_EPCIM_PF 0x00000001 // USB Power Fault Interrupt Mask
8622
8623
//*****************************************************************************
8624
//
8625
// The following are defines for the bit fields in the USB_O_EPCISC register.
8626
//
8627
//*****************************************************************************
8628
#define USB_EPCISC_PF 0x00000001 // USB Power Fault Interrupt Status
8629
// and Clear
8630
8631
//*****************************************************************************
8632
//
8633
// The following are defines for the bit fields in the USB_O_DRRIS register.
8634
//
8635
//*****************************************************************************
8636
#define USB_DRRIS_RESUME 0x00000001 // RESUME Interrupt Status
8637
8638
//*****************************************************************************
8639
//
8640
// The following are defines for the bit fields in the USB_O_DRIM register.
8641
//
8642
//*****************************************************************************
8643
#define USB_DRIM_RESUME 0x00000001 // RESUME Interrupt Mask
8644
8645
//*****************************************************************************
8646
//
8647
// The following are defines for the bit fields in the USB_O_DRISC register.
8648
//
8649
//*****************************************************************************
8650
#define USB_DRISC_RESUME 0x00000001 // RESUME Interrupt Status and
8651
// Clear
8652
8653
//*****************************************************************************
8654
//
8655
// The following are defines for the bit fields in the USB_O_GPCS register.
8656
//
8657
//*****************************************************************************
8658
#define USB_GPCS_DEVMODOTG 0x00000002 // Enable Device Mode
8659
#define USB_GPCS_DEVMOD 0x00000001 // Device Mode
8660
8661
//*****************************************************************************
8662
//
8663
// The following are defines for the bit fields in the USB_O_VDC register.
8664
//
8665
//*****************************************************************************
8666
#define USB_VDC_VBDEN 0x00000001 // VBUS Droop Enable
8667
8668
//*****************************************************************************
8669
//
8670
// The following are defines for the bit fields in the USB_O_VDCRIS register.
8671
//
8672
//*****************************************************************************
8673
#define USB_VDCRIS_VD 0x00000001 // VBUS Droop Raw Interrupt Status
8674
8675
//*****************************************************************************
8676
//
8677
// The following are defines for the bit fields in the USB_O_VDCIM register.
8678
//
8679
//*****************************************************************************
8680
#define USB_VDCIM_VD 0x00000001 // VBUS Droop Interrupt Mask
8681
8682
//*****************************************************************************
8683
//
8684
// The following are defines for the bit fields in the USB_O_VDCISC register.
8685
//
8686
//*****************************************************************************
8687
#define USB_VDCISC_VD 0x00000001 // VBUS Droop Interrupt Status and
8688
// Clear
8689
8690
//*****************************************************************************
8691
//
8692
// The following are defines for the bit fields in the USB_O_IDVRIS register.
8693
//
8694
//*****************************************************************************
8695
#define USB_IDVRIS_ID 0x00000001 // ID Valid Detect Raw Interrupt
8696
// Status
8697
8698
//*****************************************************************************
8699
//
8700
// The following are defines for the bit fields in the USB_O_IDVIM register.
8701
//
8702
//*****************************************************************************
8703
#define USB_IDVIM_ID 0x00000001 // ID Valid Detect Interrupt Mask
8704
8705
//*****************************************************************************
8706
//
8707
// The following are defines for the bit fields in the USB_O_IDVISC register.
8708
//
8709
//*****************************************************************************
8710
#define USB_IDVISC_ID 0x00000001 // ID Valid Detect Interrupt Status
8711
// and Clear
8712
8713
//*****************************************************************************
8714
//
8715
// The following are defines for the bit fields in the USB_O_DMASEL register.
8716
//
8717
//*****************************************************************************
8718
#define USB_DMASEL_DMACTX_M 0x00F00000 // DMA C TX Select
8719
#define USB_DMASEL_DMACRX_M 0x000F0000 // DMA C RX Select
8720
#define USB_DMASEL_DMABTX_M 0x0000F000 // DMA B TX Select
8721
#define USB_DMASEL_DMABRX_M 0x00000F00 // DMA B RX Select
8722
#define USB_DMASEL_DMAATX_M 0x000000F0 // DMA A TX Select
8723
#define USB_DMASEL_DMAARX_M 0x0000000F // DMA A RX Select
8724
#define USB_DMASEL_DMACTX_S 20
8725
#define USB_DMASEL_DMACRX_S 16
8726
#define USB_DMASEL_DMABTX_S 12
8727
#define USB_DMASEL_DMABRX_S 8
8728
#define USB_DMASEL_DMAATX_S 4
8729
#define USB_DMASEL_DMAARX_S 0
8730
8731
//*****************************************************************************
8732
//
8733
// The following are defines for the bit fields in the USB_O_PP register.
8734
//
8735
//*****************************************************************************
8736
#define USB_PP_ECNT_M 0x0000FF00 // Endpoint Count
8737
#define USB_PP_USB_M 0x000000C0 // USB Capability
8738
#define USB_PP_USB_DEVICE 0x00000040 // DEVICE
8739
#define USB_PP_USB_HOSTDEVICE 0x00000080 // HOST
8740
#define USB_PP_USB_OTG 0x000000C0 // OTG
8741
#define USB_PP_PHY 0x00000010 // PHY Present
8742
#define USB_PP_TYPE_M 0x0000000F // Controller Type
8743
#define USB_PP_TYPE_0 0x00000000 // The first-generation USB
8744
// controller
8745
#define USB_PP_ECNT_S 8
8746
8747
//*****************************************************************************
8748
//
8749
// The following are defines for the bit fields in the EEPROM_EESIZE register.
8750
//
8751
//*****************************************************************************
8752
#define EEPROM_EESIZE_BLKCNT_M 0x07FF0000 // Number of 16-Word Blocks
8753
#define EEPROM_EESIZE_WORDCNT_M 0x0000FFFF // Number of 32-Bit Words
8754
#define EEPROM_EESIZE_BLKCNT_S 16
8755
#define EEPROM_EESIZE_WORDCNT_S 0
8756
8757
//*****************************************************************************
8758
//
8759
// The following are defines for the bit fields in the EEPROM_EEBLOCK register.
8760
//
8761
//*****************************************************************************
8762
#define EEPROM_EEBLOCK_BLOCK_M 0x0000FFFF // Current Block
8763
#define EEPROM_EEBLOCK_BLOCK_S 0
8764
8765
//*****************************************************************************
8766
//
8767
// The following are defines for the bit fields in the EEPROM_EEOFFSET
8768
// register.
8769
//
8770
//*****************************************************************************
8771
#define EEPROM_EEOFFSET_OFFSET_M \
8772
0x0000000F // Current Address Offset
8773
#define EEPROM_EEOFFSET_OFFSET_S \
8774
0
8775
8776
//*****************************************************************************
8777
//
8778
// The following are defines for the bit fields in the EEPROM_EERDWR register.
8779
//
8780
//*****************************************************************************
8781
#define EEPROM_EERDWR_VALUE_M 0xFFFFFFFF // EEPROM Read or Write Data
8782
#define EEPROM_EERDWR_VALUE_S 0
8783
8784
//*****************************************************************************
8785
//
8786
// The following are defines for the bit fields in the EEPROM_EERDWRINC
8787
// register.
8788
//
8789
//*****************************************************************************
8790
#define EEPROM_EERDWRINC_VALUE_M \
8791
0xFFFFFFFF // EEPROM Read or Write Data with
8792
// Increment
8793
#define EEPROM_EERDWRINC_VALUE_S \
8794
0
8795
8796
//*****************************************************************************
8797
//
8798
// The following are defines for the bit fields in the EEPROM_EEDONE register.
8799
//
8800
//*****************************************************************************
8801
#define EEPROM_EEDONE_WRBUSY 0x00000020 // Write Busy
8802
#define EEPROM_EEDONE_NOPERM 0x00000010 // Write Without Permission
8803
#define EEPROM_EEDONE_WKCOPY 0x00000008 // Working on a Copy
8804
#define EEPROM_EEDONE_WKERASE 0x00000004 // Working on an Erase
8805
#define EEPROM_EEDONE_WORKING 0x00000001 // EEPROM Working
8806
8807
//*****************************************************************************
8808
//
8809
// The following are defines for the bit fields in the EEPROM_EESUPP register.
8810
//
8811
//*****************************************************************************
8812
#define EEPROM_EESUPP_PRETRY 0x00000008 // Programming Must Be Retried
8813
#define EEPROM_EESUPP_ERETRY 0x00000004 // Erase Must Be Retried
8814
8815
//*****************************************************************************
8816
//
8817
// The following are defines for the bit fields in the EEPROM_EEUNLOCK
8818
// register.
8819
//
8820
//*****************************************************************************
8821
#define EEPROM_EEUNLOCK_UNLOCK_M \
8822
0xFFFFFFFF // EEPROM Unlock
8823
8824
//*****************************************************************************
8825
//
8826
// The following are defines for the bit fields in the EEPROM_EEPROT register.
8827
//
8828
//*****************************************************************************
8829
#define EEPROM_EEPROT_ACC 0x00000008 // Access Control
8830
#define EEPROM_EEPROT_PROT_M 0x00000007 // Protection Control
8831
#define EEPROM_EEPROT_PROT_RWNPW \
8832
0x00000000 // This setting is the default. If
8833
// there is no password, the block
8834
// is not protected and is readable
8835
// and writable
8836
#define EEPROM_EEPROT_PROT_RWPW 0x00000001 // If there is a password, the
8837
// block is readable or writable
8838
// only when unlocked
8839
#define EEPROM_EEPROT_PROT_RONPW \
8840
0x00000002 // If there is no password, the
8841
// block is readable, not writable
8842
8843
//*****************************************************************************
8844
//
8845
// The following are defines for the bit fields in the EEPROM_EEPASS0 register.
8846
//
8847
//*****************************************************************************
8848
#define EEPROM_EEPASS0_PASS_M 0xFFFFFFFF // Password
8849
#define EEPROM_EEPASS0_PASS_S 0
8850
8851
//*****************************************************************************
8852
//
8853
// The following are defines for the bit fields in the EEPROM_EEPASS1 register.
8854
//
8855
//*****************************************************************************
8856
#define EEPROM_EEPASS1_PASS_M 0xFFFFFFFF // Password
8857
#define EEPROM_EEPASS1_PASS_S 0
8858
8859
//*****************************************************************************
8860
//
8861
// The following are defines for the bit fields in the EEPROM_EEPASS2 register.
8862
//
8863
//*****************************************************************************
8864
#define EEPROM_EEPASS2_PASS_M 0xFFFFFFFF // Password
8865
#define EEPROM_EEPASS2_PASS_S 0
8866
8867
//*****************************************************************************
8868
//
8869
// The following are defines for the bit fields in the EEPROM_EEINT register.
8870
//
8871
//*****************************************************************************
8872
#define EEPROM_EEINT_INT 0x00000001 // Interrupt Enable
8873
8874
//*****************************************************************************
8875
//
8876
// The following are defines for the bit fields in the EEPROM_EEHIDE register.
8877
//
8878
//*****************************************************************************
8879
#define EEPROM_EEHIDE_HN_M 0xFFFFFFFE // Hide Block
8880
8881
//*****************************************************************************
8882
//
8883
// The following are defines for the bit fields in the EEPROM_EEDBGME register.
8884
//
8885
//*****************************************************************************
8886
#define EEPROM_EEDBGME_KEY_M 0xFFFF0000 // Erase Key
8887
#define EEPROM_EEDBGME_ME 0x00000001 // Mass Erase
8888
#define EEPROM_EEDBGME_KEY_S 16
8889
8890
//*****************************************************************************
8891
//
8892
// The following are defines for the bit fields in the EEPROM_PP register.
8893
//
8894
//*****************************************************************************
8895
#define EEPROM_PP_SIZE_M 0x0000001F // EEPROM Size
8896
#define EEPROM_PP_SIZE_S 0
8897
8898
//*****************************************************************************
8899
//
8900
// The following are defines for the bit fields in the SYSEXC_RIS register.
8901
//
8902
//*****************************************************************************
8903
#define SYSEXC_RIS_FPIXCRIS 0x00000020 // Floating-Point Inexact Exception
8904
// Raw Interrupt Status
8905
#define SYSEXC_RIS_FPOFCRIS 0x00000010 // Floating-Point Overflow
8906
// Exception Raw Interrupt Status
8907
#define SYSEXC_RIS_FPUFCRIS 0x00000008 // Floating-Point Underflow
8908
// Exception Raw Interrupt Status
8909
#define SYSEXC_RIS_FPIOCRIS 0x00000004 // Floating-Point Invalid Operation
8910
// Raw Interrupt Status
8911
#define SYSEXC_RIS_FPDZCRIS 0x00000002 // Floating-Point Divide By 0
8912
// Exception Raw Interrupt Status
8913
#define SYSEXC_RIS_FPIDCRIS 0x00000001 // Floating-Point Input Denormal
8914
// Exception Raw Interrupt Status
8915
8916
//*****************************************************************************
8917
//
8918
// The following are defines for the bit fields in the SYSEXC_IM register.
8919
//
8920
//*****************************************************************************
8921
#define SYSEXC_IM_FPIXCIM 0x00000020 // Floating-Point Inexact Exception
8922
// Interrupt Mask
8923
#define SYSEXC_IM_FPOFCIM 0x00000010 // Floating-Point Overflow
8924
// Exception Interrupt Mask
8925
#define SYSEXC_IM_FPUFCIM 0x00000008 // Floating-Point Underflow
8926
// Exception Interrupt Mask
8927
#define SYSEXC_IM_FPIOCIM 0x00000004 // Floating-Point Invalid Operation
8928
// Interrupt Mask
8929
#define SYSEXC_IM_FPDZCIM 0x00000002 // Floating-Point Divide By 0
8930
// Exception Interrupt Mask
8931
#define SYSEXC_IM_FPIDCIM 0x00000001 // Floating-Point Input Denormal
8932
// Exception Interrupt Mask
8933
8934
//*****************************************************************************
8935
//
8936
// The following are defines for the bit fields in the SYSEXC_MIS register.
8937
//
8938
//*****************************************************************************
8939
#define SYSEXC_MIS_FPIXCMIS 0x00000020 // Floating-Point Inexact Exception
8940
// Masked Interrupt Status
8941
#define SYSEXC_MIS_FPOFCMIS 0x00000010 // Floating-Point Overflow
8942
// Exception Masked Interrupt
8943
// Status
8944
#define SYSEXC_MIS_FPUFCMIS 0x00000008 // Floating-Point Underflow
8945
// Exception Masked Interrupt
8946
// Status
8947
#define SYSEXC_MIS_FPIOCMIS 0x00000004 // Floating-Point Invalid Operation
8948
// Masked Interrupt Status
8949
#define SYSEXC_MIS_FPDZCMIS 0x00000002 // Floating-Point Divide By 0
8950
// Exception Masked Interrupt
8951
// Status
8952
#define SYSEXC_MIS_FPIDCMIS 0x00000001 // Floating-Point Input Denormal
8953
// Exception Masked Interrupt
8954
// Status
8955
8956
//*****************************************************************************
8957
//
8958
// The following are defines for the bit fields in the SYSEXC_IC register.
8959
//
8960
//*****************************************************************************
8961
#define SYSEXC_IC_FPIXCIC 0x00000020 // Floating-Point Inexact Exception
8962
// Interrupt Clear
8963
#define SYSEXC_IC_FPOFCIC 0x00000010 // Floating-Point Overflow
8964
// Exception Interrupt Clear
8965
#define SYSEXC_IC_FPUFCIC 0x00000008 // Floating-Point Underflow
8966
// Exception Interrupt Clear
8967
#define SYSEXC_IC_FPIOCIC 0x00000004 // Floating-Point Invalid Operation
8968
// Interrupt Clear
8969
#define SYSEXC_IC_FPDZCIC 0x00000002 // Floating-Point Divide By 0
8970
// Exception Interrupt Clear
8971
#define SYSEXC_IC_FPIDCIC 0x00000001 // Floating-Point Input Denormal
8972
// Exception Interrupt Clear
8973
8974
//*****************************************************************************
8975
//
8976
// The following are defines for the bit fields in the HIB_RTCC register.
8977
//
8978
//*****************************************************************************
8979
#define HIB_RTCC_M 0xFFFFFFFF // RTC Counter
8980
#define HIB_RTCC_S 0
8981
8982
//*****************************************************************************
8983
//
8984
// The following are defines for the bit fields in the HIB_RTCM0 register.
8985
//
8986
//*****************************************************************************
8987
#define HIB_RTCM0_M 0xFFFFFFFF // RTC Match 0
8988
#define HIB_RTCM0_S 0
8989
8990
//*****************************************************************************
8991
//
8992
// The following are defines for the bit fields in the HIB_RTCLD register.
8993
//
8994
//*****************************************************************************
8995
#define HIB_RTCLD_M 0xFFFFFFFF // RTC Load
8996
#define HIB_RTCLD_S 0
8997
8998
//*****************************************************************************
8999
//
9000
// The following are defines for the bit fields in the HIB_CTL register.
9001
//
9002
//*****************************************************************************
9003
#define HIB_CTL_WRC 0x80000000 // Write Complete/Capable
9004
#define HIB_CTL_OSCDRV 0x00020000 // Oscillator Drive Capability
9005
#define HIB_CTL_OSCBYP 0x00010000 // Oscillator Bypass
9006
#define HIB_CTL_VBATSEL_M 0x00006000 // Select for Low-Battery
9007
// Comparator
9008
#define HIB_CTL_VBATSEL_1_9V 0x00000000 // 1.9 Volts
9009
#define HIB_CTL_VBATSEL_2_1V 0x00002000 // 2.1 Volts (default)
9010
#define HIB_CTL_VBATSEL_2_3V 0x00004000 // 2.3 Volts
9011
#define HIB_CTL_VBATSEL_2_5V 0x00006000 // 2.5 Volts
9012
#define HIB_CTL_BATCHK 0x00000400 // Check Battery Status
9013
#define HIB_CTL_BATWKEN 0x00000200 // Wake on Low Battery
9014
#define HIB_CTL_VDD3ON 0x00000100 // VDD Powered
9015
#define HIB_CTL_VABORT 0x00000080 // Power Cut Abort Enable
9016
#define HIB_CTL_CLK32EN 0x00000040 // Clocking Enable
9017
#define HIB_CTL_PINWEN 0x00000010 // External Wake Pin Enable
9018
#define HIB_CTL_RTCWEN 0x00000008 // RTC Wake-up Enable
9019
#define HIB_CTL_HIBREQ 0x00000002 // Hibernation Request
9020
#define HIB_CTL_RTCEN 0x00000001 // RTC Timer Enable
9021
9022
//*****************************************************************************
9023
//
9024
// The following are defines for the bit fields in the HIB_IM register.
9025
//
9026
//*****************************************************************************
9027
#define HIB_IM_WC 0x00000010 // External Write Complete/Capable
9028
// Interrupt Mask
9029
#define HIB_IM_EXTW 0x00000008 // External Wake-Up Interrupt Mask
9030
#define HIB_IM_LOWBAT 0x00000004 // Low Battery Voltage Interrupt
9031
// Mask
9032
#define HIB_IM_RTCALT0 0x00000001 // RTC Alert 0 Interrupt Mask
9033
9034
//*****************************************************************************
9035
//
9036
// The following are defines for the bit fields in the HIB_RIS register.
9037
//
9038
//*****************************************************************************
9039
#define HIB_RIS_WC 0x00000010 // Write Complete/Capable Raw
9040
// Interrupt Status
9041
#define HIB_RIS_EXTW 0x00000008 // External Wake-Up Raw Interrupt
9042
// Status
9043
#define HIB_RIS_LOWBAT 0x00000004 // Low Battery Voltage Raw
9044
// Interrupt Status
9045
#define HIB_RIS_RTCALT0 0x00000001 // RTC Alert 0 Raw Interrupt Status
9046
9047
//*****************************************************************************
9048
//
9049
// The following are defines for the bit fields in the HIB_MIS register.
9050
//
9051
//*****************************************************************************
9052
#define HIB_MIS_WC 0x00000010 // Write Complete/Capable Masked
9053
// Interrupt Status
9054
#define HIB_MIS_EXTW 0x00000008 // External Wake-Up Masked
9055
// Interrupt Status
9056
#define HIB_MIS_LOWBAT 0x00000004 // Low Battery Voltage Masked
9057
// Interrupt Status
9058
#define HIB_MIS_RTCALT0 0x00000001 // RTC Alert 0 Masked Interrupt
9059
// Status
9060
9061
//*****************************************************************************
9062
//
9063
// The following are defines for the bit fields in the HIB_IC register.
9064
//
9065
//*****************************************************************************
9066
#define HIB_IC_WC 0x00000010 // Write Complete/Capable Interrupt
9067
// Clear
9068
#define HIB_IC_EXTW 0x00000008 // External Wake-Up Interrupt Clear
9069
#define HIB_IC_LOWBAT 0x00000004 // Low Battery Voltage Interrupt
9070
// Clear
9071
#define HIB_IC_RTCALT0 0x00000001 // RTC Alert0 Masked Interrupt
9072
// Clear
9073
9074
//*****************************************************************************
9075
//
9076
// The following are defines for the bit fields in the HIB_RTCT register.
9077
//
9078
//*****************************************************************************
9079
#define HIB_RTCT_TRIM_M 0x0000FFFF // RTC Trim Value
9080
#define HIB_RTCT_TRIM_S 0
9081
9082
//*****************************************************************************
9083
//
9084
// The following are defines for the bit fields in the HIB_RTCSS register.
9085
//
9086
//*****************************************************************************
9087
#define HIB_RTCSS_RTCSSM_M 0x7FFF0000 // RTC Sub Seconds Match
9088
#define HIB_RTCSS_RTCSSC_M 0x00007FFF // RTC Sub Seconds Count
9089
#define HIB_RTCSS_RTCSSM_S 16
9090
#define HIB_RTCSS_RTCSSC_S 0
9091
9092
//*****************************************************************************
9093
//
9094
// The following are defines for the bit fields in the HIB_DATA register.
9095
//
9096
//*****************************************************************************
9097
#define HIB_DATA_RTD_M 0xFFFFFFFF // Hibernation Module NV Data
9098
#define HIB_DATA_RTD_S 0
9099
9100
//*****************************************************************************
9101
//
9102
// The following are defines for the bit fields in the FLASH_FMA register.
9103
//
9104
//*****************************************************************************
9105
#define FLASH_FMA_OFFSET_M 0x0003FFFF // Address Offset
9106
#define FLASH_FMA_OFFSET_S 0
9107
9108
//*****************************************************************************
9109
//
9110
// The following are defines for the bit fields in the FLASH_FMD register.
9111
//
9112
//*****************************************************************************
9113
#define FLASH_FMD_DATA_M 0xFFFFFFFF // Data Value
9114
#define FLASH_FMD_DATA_S 0
9115
9116
//*****************************************************************************
9117
//
9118
// The following are defines for the bit fields in the FLASH_FMC register.
9119
//
9120
//*****************************************************************************
9121
#define FLASH_FMC_WRKEY 0xA4420000 // FLASH write key
9122
#define FLASH_FMC_COMT 0x00000008 // Commit Register Value
9123
#define FLASH_FMC_MERASE 0x00000004 // Mass Erase Flash Memory
9124
#define FLASH_FMC_ERASE 0x00000002 // Erase a Page of Flash Memory
9125
#define FLASH_FMC_WRITE 0x00000001 // Write a Word into Flash Memory
9126
9127
//*****************************************************************************
9128
//
9129
// The following are defines for the bit fields in the FLASH_FCRIS register.
9130
//
9131
//*****************************************************************************
9132
#define FLASH_FCRIS_PROGRIS 0x00002000 // Program Verify Error Raw
9133
// Interrupt Status
9134
#define FLASH_FCRIS_ERRIS 0x00000800 // Erase Verify Error Raw Interrupt
9135
// Status
9136
#define FLASH_FCRIS_INVDRIS 0x00000400 // Invalid Data Raw Interrupt
9137
// Status
9138
#define FLASH_FCRIS_VOLTRIS 0x00000200 // Pump Voltage Raw Interrupt
9139
// Status
9140
#define FLASH_FCRIS_ERIS 0x00000004 // EEPROM Raw Interrupt Status
9141
#define FLASH_FCRIS_PRIS 0x00000002 // Programming Raw Interrupt Status
9142
#define FLASH_FCRIS_ARIS 0x00000001 // Access Raw Interrupt Status
9143
9144
//*****************************************************************************
9145
//
9146
// The following are defines for the bit fields in the FLASH_FCIM register.
9147
//
9148
//*****************************************************************************
9149
#define FLASH_FCIM_PROGMASK 0x00002000 // PROGVER Interrupt Mask
9150
#define FLASH_FCIM_ERMASK 0x00000800 // ERVER Interrupt Mask
9151
#define FLASH_FCIM_INVDMASK 0x00000400 // Invalid Data Interrupt Mask
9152
#define FLASH_FCIM_VOLTMASK 0x00000200 // VOLT Interrupt Mask
9153
#define FLASH_FCIM_EMASK 0x00000004 // EEPROM Interrupt Mask
9154
#define FLASH_FCIM_PMASK 0x00000002 // Programming Interrupt Mask
9155
#define FLASH_FCIM_AMASK 0x00000001 // Access Interrupt Mask
9156
9157
//*****************************************************************************
9158
//
9159
// The following are defines for the bit fields in the FLASH_FCMISC register.
9160
//
9161
//*****************************************************************************
9162
#define FLASH_FCMISC_PROGMISC 0x00002000 // PROGVER Masked Interrupt Status
9163
// and Clear
9164
#define FLASH_FCMISC_ERMISC 0x00000800 // ERVER Masked Interrupt Status
9165
// and Clear
9166
#define FLASH_FCMISC_INVDMISC 0x00000400 // Invalid Data Masked Interrupt
9167
// Status and Clear
9168
#define FLASH_FCMISC_VOLTMISC 0x00000200 // VOLT Masked Interrupt Status and
9169
// Clear
9170
#define FLASH_FCMISC_EMISC 0x00000004 // EEPROM Masked Interrupt Status
9171
// and Clear
9172
#define FLASH_FCMISC_PMISC 0x00000002 // Programming Masked Interrupt
9173
// Status and Clear
9174
#define FLASH_FCMISC_AMISC 0x00000001 // Access Masked Interrupt Status
9175
// and Clear
9176
9177
//*****************************************************************************
9178
//
9179
// The following are defines for the bit fields in the FLASH_FMC2 register.
9180
//
9181
//*****************************************************************************
9182
#define FLASH_FMC2_WRBUF 0x00000001 // Buffered Flash Memory Write
9183
9184
//*****************************************************************************
9185
//
9186
// The following are defines for the bit fields in the FLASH_FWBVAL register.
9187
//
9188
//*****************************************************************************
9189
#define FLASH_FWBVAL_FWB_M 0xFFFFFFFF // Flash Memory Write Buffer
9190
9191
//*****************************************************************************
9192
//
9193
// The following are defines for the bit fields in the FLASH_FWBN register.
9194
//
9195
//*****************************************************************************
9196
#define FLASH_FWBN_DATA_M 0xFFFFFFFF // Data
9197
9198
//*****************************************************************************
9199
//
9200
// The following are defines for the bit fields in the FLASH_FSIZE register.
9201
//
9202
//*****************************************************************************
9203
#define FLASH_FSIZE_SIZE_M 0x0000FFFF // Flash Size
9204
#define FLASH_FSIZE_SIZE_256KB 0x0000007F // 256 KB of Flash
9205
9206
//*****************************************************************************
9207
//
9208
// The following are defines for the bit fields in the FLASH_SSIZE register.
9209
//
9210
//*****************************************************************************
9211
#define FLASH_SSIZE_SIZE_M 0x0000FFFF // SRAM Size
9212
#define FLASH_SSIZE_SIZE_32KB 0x0000007F // 32 KB of SRAM
9213
9214
//*****************************************************************************
9215
//
9216
// The following are defines for the bit fields in the FLASH_ROMSWMAP register.
9217
//
9218
//*****************************************************************************
9219
#define FLASH_ROMSWMAP_SAFERTOS 0x00000001 // SafeRTOS Present
9220
9221
//*****************************************************************************
9222
//
9223
// The following are defines for the bit fields in the FLASH_RMCTL register.
9224
//
9225
//*****************************************************************************
9226
#define FLASH_RMCTL_BA 0x00000001 // Boot Alias
9227
9228
//*****************************************************************************
9229
//
9230
// The following are defines for the bit fields in the FLASH_BOOTCFG register.
9231
//
9232
//*****************************************************************************
9233
#define FLASH_BOOTCFG_NW 0x80000000 // Not Written
9234
#define FLASH_BOOTCFG_PORT_M 0x0000E000 // Boot GPIO Port
9235
#define FLASH_BOOTCFG_PORT_A 0x00000000 // Port A
9236
#define FLASH_BOOTCFG_PORT_B 0x00002000 // Port B
9237
#define FLASH_BOOTCFG_PORT_C 0x00004000 // Port C
9238
#define FLASH_BOOTCFG_PORT_D 0x00006000 // Port D
9239
#define FLASH_BOOTCFG_PORT_E 0x00008000 // Port E
9240
#define FLASH_BOOTCFG_PORT_F 0x0000A000 // Port F
9241
#define FLASH_BOOTCFG_PORT_G 0x0000C000 // Port G
9242
#define FLASH_BOOTCFG_PORT_H 0x0000E000 // Port H
9243
#define FLASH_BOOTCFG_PIN_M 0x00001C00 // Boot GPIO Pin
9244
#define FLASH_BOOTCFG_PIN_0 0x00000000 // Pin 0
9245
#define FLASH_BOOTCFG_PIN_1 0x00000400 // Pin 1
9246
#define FLASH_BOOTCFG_PIN_2 0x00000800 // Pin 2
9247
#define FLASH_BOOTCFG_PIN_3 0x00000C00 // Pin 3
9248
#define FLASH_BOOTCFG_PIN_4 0x00001000 // Pin 4
9249
#define FLASH_BOOTCFG_PIN_5 0x00001400 // Pin 5
9250
#define FLASH_BOOTCFG_PIN_6 0x00001800 // Pin 6
9251
#define FLASH_BOOTCFG_PIN_7 0x00001C00 // Pin 7
9252
#define FLASH_BOOTCFG_POL 0x00000200 // Boot GPIO Polarity
9253
#define FLASH_BOOTCFG_EN 0x00000100 // Boot GPIO Enable
9254
#define FLASH_BOOTCFG_KEY 0x00000010 // KEY Select
9255
#define FLASH_BOOTCFG_DBG1 0x00000002 // Debug Control 1
9256
#define FLASH_BOOTCFG_DBG0 0x00000001 // Debug Control 0
9257
9258
//*****************************************************************************
9259
//
9260
// The following are defines for the bit fields in the FLASH_USERREG0 register.
9261
//
9262
//*****************************************************************************
9263
#define FLASH_USERREG0_DATA_M 0xFFFFFFFF // User Data
9264
#define FLASH_USERREG0_DATA_S 0
9265
9266
//*****************************************************************************
9267
//
9268
// The following are defines for the bit fields in the FLASH_USERREG1 register.
9269
//
9270
//*****************************************************************************
9271
#define FLASH_USERREG1_DATA_M 0xFFFFFFFF // User Data
9272
#define FLASH_USERREG1_DATA_S 0
9273
9274
//*****************************************************************************
9275
//
9276
// The following are defines for the bit fields in the FLASH_USERREG2 register.
9277
//
9278
//*****************************************************************************
9279
#define FLASH_USERREG2_DATA_M 0xFFFFFFFF // User Data
9280
#define FLASH_USERREG2_DATA_S 0
9281
9282
//*****************************************************************************
9283
//
9284
// The following are defines for the bit fields in the FLASH_USERREG3 register.
9285
//
9286
//*****************************************************************************
9287
#define FLASH_USERREG3_DATA_M 0xFFFFFFFF // User Data
9288
#define FLASH_USERREG3_DATA_S 0
9289
9290
//*****************************************************************************
9291
//
9292
// The following are defines for the bit fields in the SYSCTL_DID0 register.
9293
//
9294
//*****************************************************************************
9295
#define SYSCTL_DID0_VER_M 0x70000000 // DID0 Version
9296
#define SYSCTL_DID0_VER_1 0x10000000 // Second version of the DID0
9297
// register format.
9298
#define SYSCTL_DID0_CLASS_M 0x00FF0000 // Device Class
9299
#define SYSCTL_DID0_CLASS_TM4C123 \
9300
0x00050000 // Tiva TM4C123x and TM4E123x
9301
// microcontrollers
9302
#define SYSCTL_DID0_MAJ_M 0x0000FF00 // Major Revision
9303
#define SYSCTL_DID0_MAJ_REVA 0x00000000 // Revision A (initial device)
9304
#define SYSCTL_DID0_MAJ_REVB 0x00000100 // Revision B (first base layer
9305
// revision)
9306
#define SYSCTL_DID0_MAJ_REVC 0x00000200 // Revision C (second base layer
9307
// revision)
9308
#define SYSCTL_DID0_MIN_M 0x000000FF // Minor Revision
9309
#define SYSCTL_DID0_MIN_0 0x00000000 // Initial device, or a major
9310
// revision update
9311
#define SYSCTL_DID0_MIN_1 0x00000001 // First metal layer change
9312
#define SYSCTL_DID0_MIN_2 0x00000002 // Second metal layer change
9313
9314
//*****************************************************************************
9315
//
9316
// The following are defines for the bit fields in the SYSCTL_DID1 register.
9317
//
9318
//*****************************************************************************
9319
#define SYSCTL_DID1_VER_M 0xF0000000 // DID1 Version
9320
#define SYSCTL_DID1_VER_1 0x10000000 // fury_ib
9321
#define SYSCTL_DID1_FAM_M 0x0F000000 // Family
9322
#define SYSCTL_DID1_FAM_TIVA 0x00000000 // Tiva family of microcontollers
9323
#define SYSCTL_DID1_PRTNO_M 0x00FF0000 // Part Number
9324
#define SYSCTL_DID1_PRTNO_TM4C123GH6PM \
9325
0x00A10000 // TM4C123GH6PM
9326
#define SYSCTL_DID1_PINCNT_M 0x0000E000 // Package Pin Count
9327
#define SYSCTL_DID1_PINCNT_100 0x00004000 // 100-pin LQFP package
9328
#define SYSCTL_DID1_PINCNT_64 0x00006000 // 64-pin LQFP package
9329
#define SYSCTL_DID1_PINCNT_144 0x00008000 // 144-pin LQFP package
9330
#define SYSCTL_DID1_PINCNT_157 0x0000A000 // 157-pin BGA package
9331
#define SYSCTL_DID1_PINCNT_128 0x0000C000 // 128-pin TQFP package
9332
#define SYSCTL_DID1_TEMP_M 0x000000E0 // Temperature Range
9333
#define SYSCTL_DID1_TEMP_I 0x00000020 // Industrial temperature range
9334
#define SYSCTL_DID1_TEMP_E 0x00000040 // Extended temperature range
9335
#define SYSCTL_DID1_TEMP_IE 0x00000060 // Available in both industrial
9336
// temperature range (-40C to 85C)
9337
// and extended temperature range
9338
// (-40C to 105C) devices. See
9339
#define SYSCTL_DID1_PKG_M 0x00000018 // Package Type
9340
#define SYSCTL_DID1_PKG_QFP 0x00000008 // QFP package
9341
#define SYSCTL_DID1_PKG_BGA 0x00000010 // BGA package
9342
#define SYSCTL_DID1_ROHS 0x00000004 // RoHS-Compliance
9343
#define SYSCTL_DID1_QUAL_M 0x00000003 // Qualification Status
9344
#define SYSCTL_DID1_QUAL_ES 0x00000000 // Engineering Sample (unqualified)
9345
#define SYSCTL_DID1_QUAL_PP 0x00000001 // Pilot Production (unqualified)
9346
#define SYSCTL_DID1_QUAL_FQ 0x00000002 // Fully Qualified
9347
9348
//*****************************************************************************
9349
//
9350
// The following are defines for the bit fields in the SYSCTL_DC0 register.
9351
//
9352
//*****************************************************************************
9353
#define SYSCTL_DC0_SRAMSZ_M 0xFFFF0000 // SRAM Size
9354
#define SYSCTL_DC0_SRAMSZ_2KB 0x00070000 // 2 KB of SRAM
9355
#define SYSCTL_DC0_SRAMSZ_4KB 0x000F0000 // 4 KB of SRAM
9356
#define SYSCTL_DC0_SRAMSZ_6KB 0x00170000 // 6 KB of SRAM
9357
#define SYSCTL_DC0_SRAMSZ_8KB 0x001F0000 // 8 KB of SRAM
9358
#define SYSCTL_DC0_SRAMSZ_12KB 0x002F0000 // 12 KB of SRAM
9359
#define SYSCTL_DC0_SRAMSZ_16KB 0x003F0000 // 16 KB of SRAM
9360
#define SYSCTL_DC0_SRAMSZ_20KB 0x004F0000 // 20 KB of SRAM
9361
#define SYSCTL_DC0_SRAMSZ_24KB 0x005F0000 // 24 KB of SRAM
9362
#define SYSCTL_DC0_SRAMSZ_32KB 0x007F0000 // 32 KB of SRAM
9363
#define SYSCTL_DC0_FLASHSZ_M 0x0000FFFF // Flash Size
9364
#define SYSCTL_DC0_FLASHSZ_8KB 0x00000003 // 8 KB of Flash
9365
#define SYSCTL_DC0_FLASHSZ_16KB 0x00000007 // 16 KB of Flash
9366
#define SYSCTL_DC0_FLASHSZ_32KB 0x0000000F // 32 KB of Flash
9367
#define SYSCTL_DC0_FLASHSZ_64KB 0x0000001F // 64 KB of Flash
9368
#define SYSCTL_DC0_FLASHSZ_96KB 0x0000002F // 96 KB of Flash
9369
#define SYSCTL_DC0_FLASHSZ_128K 0x0000003F // 128 KB of Flash
9370
#define SYSCTL_DC0_FLASHSZ_192K 0x0000005F // 192 KB of Flash
9371
#define SYSCTL_DC0_FLASHSZ_256K 0x0000007F // 256 KB of Flash
9372
9373
//*****************************************************************************
9374
//
9375
// The following are defines for the bit fields in the SYSCTL_DC1 register.
9376
//
9377
//*****************************************************************************
9378
#define SYSCTL_DC1_WDT1 0x10000000 // Watchdog Timer1 Present
9379
#define SYSCTL_DC1_CAN1 0x02000000 // CAN Module 1 Present
9380
#define SYSCTL_DC1_CAN0 0x01000000 // CAN Module 0 Present
9381
#define SYSCTL_DC1_PWM1 0x00200000 // PWM Module 1 Present
9382
#define SYSCTL_DC1_PWM0 0x00100000 // PWM Module 0 Present
9383
#define SYSCTL_DC1_ADC1 0x00020000 // ADC Module 1 Present
9384
#define SYSCTL_DC1_ADC0 0x00010000 // ADC Module 0 Present
9385
#define SYSCTL_DC1_MINSYSDIV_M 0x0000F000 // System Clock Divider
9386
#define SYSCTL_DC1_MINSYSDIV_80 0x00001000 // Specifies an 80-MHz CPU clock
9387
// with a PLL divider of 2.5
9388
#define SYSCTL_DC1_MINSYSDIV_66 0x00002000 // Specifies a 66-MHz CPU clock
9389
// with a PLL divider of 3
9390
#define SYSCTL_DC1_MINSYSDIV_50 0x00003000 // Specifies a 50-MHz CPU clock
9391
// with a PLL divider of 4
9392
#define SYSCTL_DC1_MINSYSDIV_40 0x00004000 // Specifies a 40-MHz CPU clock
9393
// with a PLL divider of 5
9394
#define SYSCTL_DC1_MINSYSDIV_25 0x00007000 // Specifies a 25-MHz clock with a
9395
// PLL divider of 8
9396
#define SYSCTL_DC1_MINSYSDIV_20 0x00009000 // Specifies a 20-MHz clock with a
9397
// PLL divider of 10
9398
#define SYSCTL_DC1_ADC1SPD_M 0x00000C00 // Max ADC1 Speed
9399
#define SYSCTL_DC1_ADC1SPD_125K 0x00000000 // 125K samples/second
9400
#define SYSCTL_DC1_ADC1SPD_250K 0x00000400 // 250K samples/second
9401
#define SYSCTL_DC1_ADC1SPD_500K 0x00000800 // 500K samples/second
9402
#define SYSCTL_DC1_ADC1SPD_1M 0x00000C00 // 1M samples/second
9403
#define SYSCTL_DC1_ADC0SPD_M 0x00000300 // Max ADC0 Speed
9404
#define SYSCTL_DC1_ADC0SPD_125K 0x00000000 // 125K samples/second
9405
#define SYSCTL_DC1_ADC0SPD_250K 0x00000100 // 250K samples/second
9406
#define SYSCTL_DC1_ADC0SPD_500K 0x00000200 // 500K samples/second
9407
#define SYSCTL_DC1_ADC0SPD_1M 0x00000300 // 1M samples/second
9408
#define SYSCTL_DC1_MPU 0x00000080 // MPU Present
9409
#define SYSCTL_DC1_HIB 0x00000040 // Hibernation Module Present
9410
#define SYSCTL_DC1_TEMP 0x00000020 // Temp Sensor Present
9411
#define SYSCTL_DC1_PLL 0x00000010 // PLL Present
9412
#define SYSCTL_DC1_WDT0 0x00000008 // Watchdog Timer 0 Present
9413
#define SYSCTL_DC1_SWO 0x00000004 // SWO Trace Port Present
9414
#define SYSCTL_DC1_SWD 0x00000002 // SWD Present
9415
#define SYSCTL_DC1_JTAG 0x00000001 // JTAG Present
9416
9417
//*****************************************************************************
9418
//
9419
// The following are defines for the bit fields in the SYSCTL_DC2 register.
9420
//
9421
//*****************************************************************************
9422
#define SYSCTL_DC2_EPI0 0x40000000 // EPI Module 0 Present
9423
#define SYSCTL_DC2_I2S0 0x10000000 // I2S Module 0 Present
9424
#define SYSCTL_DC2_COMP2 0x04000000 // Analog Comparator 2 Present
9425
#define SYSCTL_DC2_COMP1 0x02000000 // Analog Comparator 1 Present
9426
#define SYSCTL_DC2_COMP0 0x01000000 // Analog Comparator 0 Present
9427
#define SYSCTL_DC2_TIMER3 0x00080000 // Timer Module 3 Present
9428
#define SYSCTL_DC2_TIMER2 0x00040000 // Timer Module 2 Present
9429
#define SYSCTL_DC2_TIMER1 0x00020000 // Timer Module 1 Present
9430
#define SYSCTL_DC2_TIMER0 0x00010000 // Timer Module 0 Present
9431
#define SYSCTL_DC2_I2C1HS 0x00008000 // I2C Module 1 Speed
9432
#define SYSCTL_DC2_I2C1 0x00004000 // I2C Module 1 Present
9433
#define SYSCTL_DC2_I2C0HS 0x00002000 // I2C Module 0 Speed
9434
#define SYSCTL_DC2_I2C0 0x00001000 // I2C Module 0 Present
9435
#define SYSCTL_DC2_QEI1 0x00000200 // QEI Module 1 Present
9436
#define SYSCTL_DC2_QEI0 0x00000100 // QEI Module 0 Present
9437
#define SYSCTL_DC2_SSI1 0x00000020 // SSI Module 1 Present
9438
#define SYSCTL_DC2_SSI0 0x00000010 // SSI Module 0 Present
9439
#define SYSCTL_DC2_UART2 0x00000004 // UART Module 2 Present
9440
#define SYSCTL_DC2_UART1 0x00000002 // UART Module 1 Present
9441
#define SYSCTL_DC2_UART0 0x00000001 // UART Module 0 Present
9442
9443
//*****************************************************************************
9444
//
9445
// The following are defines for the bit fields in the SYSCTL_DC3 register.
9446
//
9447
//*****************************************************************************
9448
#define SYSCTL_DC3_32KHZ 0x80000000 // 32KHz Input Clock Available
9449
#define SYSCTL_DC3_CCP5 0x20000000 // T2CCP1 Pin Present
9450
#define SYSCTL_DC3_CCP4 0x10000000 // T2CCP0 Pin Present
9451
#define SYSCTL_DC3_CCP3 0x08000000 // T1CCP1 Pin Present
9452
#define SYSCTL_DC3_CCP2 0x04000000 // T1CCP0 Pin Present
9453
#define SYSCTL_DC3_CCP1 0x02000000 // T0CCP1 Pin Present
9454
#define SYSCTL_DC3_CCP0 0x01000000 // T0CCP0 Pin Present
9455
#define SYSCTL_DC3_ADC0AIN7 0x00800000 // ADC Module 0 AIN7 Pin Present
9456
#define SYSCTL_DC3_ADC0AIN6 0x00400000 // ADC Module 0 AIN6 Pin Present
9457
#define SYSCTL_DC3_ADC0AIN5 0x00200000 // ADC Module 0 AIN5 Pin Present
9458
#define SYSCTL_DC3_ADC0AIN4 0x00100000 // ADC Module 0 AIN4 Pin Present
9459
#define SYSCTL_DC3_ADC0AIN3 0x00080000 // ADC Module 0 AIN3 Pin Present
9460
#define SYSCTL_DC3_ADC0AIN2 0x00040000 // ADC Module 0 AIN2 Pin Present
9461
#define SYSCTL_DC3_ADC0AIN1 0x00020000 // ADC Module 0 AIN1 Pin Present
9462
#define SYSCTL_DC3_ADC0AIN0 0x00010000 // ADC Module 0 AIN0 Pin Present
9463
#define SYSCTL_DC3_PWMFAULT 0x00008000 // PWM Fault Pin Present
9464
#define SYSCTL_DC3_C2O 0x00004000 // C2o Pin Present
9465
#define SYSCTL_DC3_C2PLUS 0x00002000 // C2+ Pin Present
9466
#define SYSCTL_DC3_C2MINUS 0x00001000 // C2- Pin Present
9467
#define SYSCTL_DC3_C1O 0x00000800 // C1o Pin Present
9468
#define SYSCTL_DC3_C1PLUS 0x00000400 // C1+ Pin Present
9469
#define SYSCTL_DC3_C1MINUS 0x00000200 // C1- Pin Present
9470
#define SYSCTL_DC3_C0O 0x00000100 // C0o Pin Present
9471
#define SYSCTL_DC3_C0PLUS 0x00000080 // C0+ Pin Present
9472
#define SYSCTL_DC3_C0MINUS 0x00000040 // C0- Pin Present
9473
#define SYSCTL_DC3_PWM5 0x00000020 // PWM5 Pin Present
9474
#define SYSCTL_DC3_PWM4 0x00000010 // PWM4 Pin Present
9475
#define SYSCTL_DC3_PWM3 0x00000008 // PWM3 Pin Present
9476
#define SYSCTL_DC3_PWM2 0x00000004 // PWM2 Pin Present
9477
#define SYSCTL_DC3_PWM1 0x00000002 // PWM1 Pin Present
9478
#define SYSCTL_DC3_PWM0 0x00000001 // PWM0 Pin Present
9479
9480
//*****************************************************************************
9481
//
9482
// The following are defines for the bit fields in the SYSCTL_DC4 register.
9483
//
9484
//*****************************************************************************
9485
#define SYSCTL_DC4_EPHY0 0x40000000 // Ethernet PHY Layer 0 Present
9486
#define SYSCTL_DC4_EMAC0 0x10000000 // Ethernet MAC Layer 0 Present
9487
#define SYSCTL_DC4_E1588 0x01000000 // 1588 Capable
9488
#define SYSCTL_DC4_PICAL 0x00040000 // PIOSC Calibrate
9489
#define SYSCTL_DC4_CCP7 0x00008000 // T3CCP1 Pin Present
9490
#define SYSCTL_DC4_CCP6 0x00004000 // T3CCP0 Pin Present
9491
#define SYSCTL_DC4_UDMA 0x00002000 // Micro-DMA Module Present
9492
#define SYSCTL_DC4_ROM 0x00001000 // Internal Code ROM Present
9493
#define SYSCTL_DC4_GPIOJ 0x00000100 // GPIO Port J Present
9494
#define SYSCTL_DC4_GPIOH 0x00000080 // GPIO Port H Present
9495
#define SYSCTL_DC4_GPIOG 0x00000040 // GPIO Port G Present
9496
#define SYSCTL_DC4_GPIOF 0x00000020 // GPIO Port F Present
9497
#define SYSCTL_DC4_GPIOE 0x00000010 // GPIO Port E Present
9498
#define SYSCTL_DC4_GPIOD 0x00000008 // GPIO Port D Present
9499
#define SYSCTL_DC4_GPIOC 0x00000004 // GPIO Port C Present
9500
#define SYSCTL_DC4_GPIOB 0x00000002 // GPIO Port B Present
9501
#define SYSCTL_DC4_GPIOA 0x00000001 // GPIO Port A Present
9502
9503
//*****************************************************************************
9504
//
9505
// The following are defines for the bit fields in the SYSCTL_DC5 register.
9506
//
9507
//*****************************************************************************
9508
#define SYSCTL_DC5_PWMFAULT3 0x08000000 // PWM Fault 3 Pin Present
9509
#define SYSCTL_DC5_PWMFAULT2 0x04000000 // PWM Fault 2 Pin Present
9510
#define SYSCTL_DC5_PWMFAULT1 0x02000000 // PWM Fault 1 Pin Present
9511
#define SYSCTL_DC5_PWMFAULT0 0x01000000 // PWM Fault 0 Pin Present
9512
#define SYSCTL_DC5_PWMEFLT 0x00200000 // PWM Extended Fault Active
9513
#define SYSCTL_DC5_PWMESYNC 0x00100000 // PWM Extended SYNC Active
9514
#define SYSCTL_DC5_PWM7 0x00000080 // PWM7 Pin Present
9515
#define SYSCTL_DC5_PWM6 0x00000040 // PWM6 Pin Present
9516
#define SYSCTL_DC5_PWM5 0x00000020 // PWM5 Pin Present
9517
#define SYSCTL_DC5_PWM4 0x00000010 // PWM4 Pin Present
9518
#define SYSCTL_DC5_PWM3 0x00000008 // PWM3 Pin Present
9519
#define SYSCTL_DC5_PWM2 0x00000004 // PWM2 Pin Present
9520
#define SYSCTL_DC5_PWM1 0x00000002 // PWM1 Pin Present
9521
#define SYSCTL_DC5_PWM0 0x00000001 // PWM0 Pin Present
9522
9523
//*****************************************************************************
9524
//
9525
// The following are defines for the bit fields in the SYSCTL_DC6 register.
9526
//
9527
//*****************************************************************************
9528
#define SYSCTL_DC6_USB0PHY 0x00000010 // USB Module 0 PHY Present
9529
#define SYSCTL_DC6_USB0_M 0x00000003 // USB Module 0 Present
9530
#define SYSCTL_DC6_USB0_DEV 0x00000001 // USB0 is Device Only
9531
#define SYSCTL_DC6_USB0_HOSTDEV 0x00000002 // USB is Device or Host
9532
#define SYSCTL_DC6_USB0_OTG 0x00000003 // USB0 is OTG
9533
9534
//*****************************************************************************
9535
//
9536
// The following are defines for the bit fields in the SYSCTL_DC7 register.
9537
//
9538
//*****************************************************************************
9539
#define SYSCTL_DC7_DMACH30 0x40000000 // DMA Channel 30
9540
#define SYSCTL_DC7_DMACH29 0x20000000 // DMA Channel 29
9541
#define SYSCTL_DC7_DMACH28 0x10000000 // DMA Channel 28
9542
#define SYSCTL_DC7_DMACH27 0x08000000 // DMA Channel 27
9543
#define SYSCTL_DC7_DMACH26 0x04000000 // DMA Channel 26
9544
#define SYSCTL_DC7_DMACH25 0x02000000 // DMA Channel 25
9545
#define SYSCTL_DC7_DMACH24 0x01000000 // DMA Channel 24
9546
#define SYSCTL_DC7_DMACH23 0x00800000 // DMA Channel 23
9547
#define SYSCTL_DC7_DMACH22 0x00400000 // DMA Channel 22
9548
#define SYSCTL_DC7_DMACH21 0x00200000 // DMA Channel 21
9549
#define SYSCTL_DC7_DMACH20 0x00100000 // DMA Channel 20
9550
#define SYSCTL_DC7_DMACH19 0x00080000 // DMA Channel 19
9551
#define SYSCTL_DC7_DMACH18 0x00040000 // DMA Channel 18
9552
#define SYSCTL_DC7_DMACH17 0x00020000 // DMA Channel 17
9553
#define SYSCTL_DC7_DMACH16 0x00010000 // DMA Channel 16
9554
#define SYSCTL_DC7_DMACH15 0x00008000 // DMA Channel 15
9555
#define SYSCTL_DC7_DMACH14 0x00004000 // DMA Channel 14
9556
#define SYSCTL_DC7_DMACH13 0x00002000 // DMA Channel 13
9557
#define SYSCTL_DC7_DMACH12 0x00001000 // DMA Channel 12
9558
#define SYSCTL_DC7_DMACH11 0x00000800 // DMA Channel 11
9559
#define SYSCTL_DC7_DMACH10 0x00000400 // DMA Channel 10
9560
#define SYSCTL_DC7_DMACH9 0x00000200 // DMA Channel 9
9561
#define SYSCTL_DC7_DMACH8 0x00000100 // DMA Channel 8
9562
#define SYSCTL_DC7_DMACH7 0x00000080 // DMA Channel 7
9563
#define SYSCTL_DC7_DMACH6 0x00000040 // DMA Channel 6
9564
#define SYSCTL_DC7_DMACH5 0x00000020 // DMA Channel 5
9565
#define SYSCTL_DC7_DMACH4 0x00000010 // DMA Channel 4
9566
#define SYSCTL_DC7_DMACH3 0x00000008 // DMA Channel 3
9567
#define SYSCTL_DC7_DMACH2 0x00000004 // DMA Channel 2
9568
#define SYSCTL_DC7_DMACH1 0x00000002 // DMA Channel 1
9569
#define SYSCTL_DC7_DMACH0 0x00000001 // DMA Channel 0
9570
9571
//*****************************************************************************
9572
//
9573
// The following are defines for the bit fields in the SYSCTL_DC8 register.
9574
//
9575
//*****************************************************************************
9576
#define SYSCTL_DC8_ADC1AIN15 0x80000000 // ADC Module 1 AIN15 Pin Present
9577
#define SYSCTL_DC8_ADC1AIN14 0x40000000 // ADC Module 1 AIN14 Pin Present
9578
#define SYSCTL_DC8_ADC1AIN13 0x20000000 // ADC Module 1 AIN13 Pin Present
9579
#define SYSCTL_DC8_ADC1AIN12 0x10000000 // ADC Module 1 AIN12 Pin Present
9580
#define SYSCTL_DC8_ADC1AIN11 0x08000000 // ADC Module 1 AIN11 Pin Present
9581
#define SYSCTL_DC8_ADC1AIN10 0x04000000 // ADC Module 1 AIN10 Pin Present
9582
#define SYSCTL_DC8_ADC1AIN9 0x02000000 // ADC Module 1 AIN9 Pin Present
9583
#define SYSCTL_DC8_ADC1AIN8 0x01000000 // ADC Module 1 AIN8 Pin Present
9584
#define SYSCTL_DC8_ADC1AIN7 0x00800000 // ADC Module 1 AIN7 Pin Present
9585
#define SYSCTL_DC8_ADC1AIN6 0x00400000 // ADC Module 1 AIN6 Pin Present
9586
#define SYSCTL_DC8_ADC1AIN5 0x00200000 // ADC Module 1 AIN5 Pin Present
9587
#define SYSCTL_DC8_ADC1AIN4 0x00100000 // ADC Module 1 AIN4 Pin Present
9588
#define SYSCTL_DC8_ADC1AIN3 0x00080000 // ADC Module 1 AIN3 Pin Present
9589
#define SYSCTL_DC8_ADC1AIN2 0x00040000 // ADC Module 1 AIN2 Pin Present
9590
#define SYSCTL_DC8_ADC1AIN1 0x00020000 // ADC Module 1 AIN1 Pin Present
9591
#define SYSCTL_DC8_ADC1AIN0 0x00010000 // ADC Module 1 AIN0 Pin Present
9592
#define SYSCTL_DC8_ADC0AIN15 0x00008000 // ADC Module 0 AIN15 Pin Present
9593
#define SYSCTL_DC8_ADC0AIN14 0x00004000 // ADC Module 0 AIN14 Pin Present
9594
#define SYSCTL_DC8_ADC0AIN13 0x00002000 // ADC Module 0 AIN13 Pin Present
9595
#define SYSCTL_DC8_ADC0AIN12 0x00001000 // ADC Module 0 AIN12 Pin Present
9596
#define SYSCTL_DC8_ADC0AIN11 0x00000800 // ADC Module 0 AIN11 Pin Present
9597
#define SYSCTL_DC8_ADC0AIN10 0x00000400 // ADC Module 0 AIN10 Pin Present
9598
#define SYSCTL_DC8_ADC0AIN9 0x00000200 // ADC Module 0 AIN9 Pin Present
9599
#define SYSCTL_DC8_ADC0AIN8 0x00000100 // ADC Module 0 AIN8 Pin Present
9600
#define SYSCTL_DC8_ADC0AIN7 0x00000080 // ADC Module 0 AIN7 Pin Present
9601
#define SYSCTL_DC8_ADC0AIN6 0x00000040 // ADC Module 0 AIN6 Pin Present
9602
#define SYSCTL_DC8_ADC0AIN5 0x00000020 // ADC Module 0 AIN5 Pin Present
9603
#define SYSCTL_DC8_ADC0AIN4 0x00000010 // ADC Module 0 AIN4 Pin Present
9604
#define SYSCTL_DC8_ADC0AIN3 0x00000008 // ADC Module 0 AIN3 Pin Present
9605
#define SYSCTL_DC8_ADC0AIN2 0x00000004 // ADC Module 0 AIN2 Pin Present
9606
#define SYSCTL_DC8_ADC0AIN1 0x00000002 // ADC Module 0 AIN1 Pin Present
9607
#define SYSCTL_DC8_ADC0AIN0 0x00000001 // ADC Module 0 AIN0 Pin Present
9608
9609
//*****************************************************************************
9610
//
9611
// The following are defines for the bit fields in the SYSCTL_PBORCTL register.
9612
//
9613
//*****************************************************************************
9614
#define SYSCTL_PBORCTL_BOR0 0x00000004 // VDD under BOR0 Event Action
9615
#define SYSCTL_PBORCTL_BOR1 0x00000002 // VDD under BOR1 Event Action
9616
9617
//*****************************************************************************
9618
//
9619
// The following are defines for the bit fields in the SYSCTL_SRCR0 register.
9620
//
9621
//*****************************************************************************
9622
#define SYSCTL_SRCR0_WDT1 0x10000000 // WDT1 Reset Control
9623
#define SYSCTL_SRCR0_CAN1 0x02000000 // CAN1 Reset Control
9624
#define SYSCTL_SRCR0_CAN0 0x01000000 // CAN0 Reset Control
9625
#define SYSCTL_SRCR0_PWM0 0x00100000 // PWM Reset Control
9626
#define SYSCTL_SRCR0_ADC1 0x00020000 // ADC1 Reset Control
9627
#define SYSCTL_SRCR0_ADC0 0x00010000 // ADC0 Reset Control
9628
#define SYSCTL_SRCR0_HIB 0x00000040 // HIB Reset Control
9629
#define SYSCTL_SRCR0_WDT0 0x00000008 // WDT0 Reset Control
9630
9631
//*****************************************************************************
9632
//
9633
// The following are defines for the bit fields in the SYSCTL_SRCR1 register.
9634
//
9635
//*****************************************************************************
9636
#define SYSCTL_SRCR1_COMP1 0x02000000 // Analog Comp 1 Reset Control
9637
#define SYSCTL_SRCR1_COMP0 0x01000000 // Analog Comp 0 Reset Control
9638
#define SYSCTL_SRCR1_TIMER3 0x00080000 // Timer 3 Reset Control
9639
#define SYSCTL_SRCR1_TIMER2 0x00040000 // Timer 2 Reset Control
9640
#define SYSCTL_SRCR1_TIMER1 0x00020000 // Timer 1 Reset Control
9641
#define SYSCTL_SRCR1_TIMER0 0x00010000 // Timer 0 Reset Control
9642
#define SYSCTL_SRCR1_I2C1 0x00004000 // I2C1 Reset Control
9643
#define SYSCTL_SRCR1_I2C0 0x00001000 // I2C0 Reset Control
9644
#define SYSCTL_SRCR1_QEI1 0x00000200 // QEI1 Reset Control
9645
#define SYSCTL_SRCR1_QEI0 0x00000100 // QEI0 Reset Control
9646
#define SYSCTL_SRCR1_SSI1 0x00000020 // SSI1 Reset Control
9647
#define SYSCTL_SRCR1_SSI0 0x00000010 // SSI0 Reset Control
9648
#define SYSCTL_SRCR1_UART2 0x00000004 // UART2 Reset Control
9649
#define SYSCTL_SRCR1_UART1 0x00000002 // UART1 Reset Control
9650
#define SYSCTL_SRCR1_UART0 0x00000001 // UART0 Reset Control
9651
9652
//*****************************************************************************
9653
//
9654
// The following are defines for the bit fields in the SYSCTL_SRCR2 register.
9655
//
9656
//*****************************************************************************
9657
#define SYSCTL_SRCR2_USB0 0x00010000 // USB0 Reset Control
9658
#define SYSCTL_SRCR2_UDMA 0x00002000 // Micro-DMA Reset Control
9659
#define SYSCTL_SRCR2_GPIOF 0x00000020 // Port F Reset Control
9660
#define SYSCTL_SRCR2_GPIOE 0x00000010 // Port E Reset Control
9661
#define SYSCTL_SRCR2_GPIOD 0x00000008 // Port D Reset Control
9662
#define SYSCTL_SRCR2_GPIOC 0x00000004 // Port C Reset Control
9663
#define SYSCTL_SRCR2_GPIOB 0x00000002 // Port B Reset Control
9664
#define SYSCTL_SRCR2_GPIOA 0x00000001 // Port A Reset Control
9665
9666
//*****************************************************************************
9667
//
9668
// The following are defines for the bit fields in the SYSCTL_RIS register.
9669
//
9670
//*****************************************************************************
9671
#define SYSCTL_RIS_BOR0RIS 0x00000800 // VDD under BOR0 Raw Interrupt
9672
// Status
9673
#define SYSCTL_RIS_VDDARIS 0x00000400 // VDDA Power OK Event Raw
9674
// Interrupt Status
9675
#define SYSCTL_RIS_MOSCPUPRIS 0x00000100 // MOSC Power Up Raw Interrupt
9676
// Status
9677
#define SYSCTL_RIS_USBPLLLRIS 0x00000080 // USB PLL Lock Raw Interrupt
9678
// Status
9679
#define SYSCTL_RIS_PLLLRIS 0x00000040 // PLL Lock Raw Interrupt Status
9680
#define SYSCTL_RIS_MOFRIS 0x00000008 // Main Oscillator Failure Raw
9681
// Interrupt Status
9682
#define SYSCTL_RIS_BOR1RIS 0x00000002 // VDD under BOR1 Raw Interrupt
9683
// Status
9684
9685
//*****************************************************************************
9686
//
9687
// The following are defines for the bit fields in the SYSCTL_IMC register.
9688
//
9689
//*****************************************************************************
9690
#define SYSCTL_IMC_BOR0IM 0x00000800 // VDD under BOR0 Interrupt Mask
9691
#define SYSCTL_IMC_VDDAIM 0x00000400 // VDDA Power OK Interrupt Mask
9692
#define SYSCTL_IMC_MOSCPUPIM 0x00000100 // MOSC Power Up Interrupt Mask
9693
#define SYSCTL_IMC_USBPLLLIM 0x00000080 // USB PLL Lock Interrupt Mask
9694
#define SYSCTL_IMC_PLLLIM 0x00000040 // PLL Lock Interrupt Mask
9695
#define SYSCTL_IMC_MOFIM 0x00000008 // Main Oscillator Failure
9696
// Interrupt Mask
9697
#define SYSCTL_IMC_BOR1IM 0x00000002 // VDD under BOR1 Interrupt Mask
9698
9699
//*****************************************************************************
9700
//
9701
// The following are defines for the bit fields in the SYSCTL_MISC register.
9702
//
9703
//*****************************************************************************
9704
#define SYSCTL_MISC_BOR0MIS 0x00000800 // VDD under BOR0 Masked Interrupt
9705
// Status
9706
#define SYSCTL_MISC_VDDAMIS 0x00000400 // VDDA Power OK Masked Interrupt
9707
// Status
9708
#define SYSCTL_MISC_MOSCPUPMIS 0x00000100 // MOSC Power Up Masked Interrupt
9709
// Status
9710
#define SYSCTL_MISC_USBPLLLMIS 0x00000080 // USB PLL Lock Masked Interrupt
9711
// Status
9712
#define SYSCTL_MISC_PLLLMIS 0x00000040 // PLL Lock Masked Interrupt Status
9713
#define SYSCTL_MISC_MOFMIS 0x00000008 // Main Oscillator Failure Masked
9714
// Interrupt Status
9715
#define SYSCTL_MISC_BOR1MIS 0x00000002 // VDD under BOR1 Masked Interrupt
9716
// Status
9717
9718
//*****************************************************************************
9719
//
9720
// The following are defines for the bit fields in the SYSCTL_RESC register.
9721
//
9722
//*****************************************************************************
9723
#define SYSCTL_RESC_MOSCFAIL 0x00010000 // MOSC Failure Reset
9724
#define SYSCTL_RESC_WDT1 0x00000020 // Watchdog Timer 1 Reset
9725
#define SYSCTL_RESC_SW 0x00000010 // Software Reset
9726
#define SYSCTL_RESC_WDT0 0x00000008 // Watchdog Timer 0 Reset
9727
#define SYSCTL_RESC_BOR 0x00000004 // Brown-Out Reset
9728
#define SYSCTL_RESC_POR 0x00000002 // Power-On Reset
9729
#define SYSCTL_RESC_EXT 0x00000001 // External Reset
9730
9731
//*****************************************************************************
9732
//
9733
// The following are defines for the bit fields in the SYSCTL_RCC register.
9734
//
9735
//*****************************************************************************
9736
#define SYSCTL_RCC_ACG 0x08000000 // Auto Clock Gating
9737
#define SYSCTL_RCC_SYSDIV_M 0x07800000 // System Clock Divisor
9738
#define SYSCTL_RCC_USESYSDIV 0x00400000 // Enable System Clock Divider
9739
#define SYSCTL_RCC_USEPWMDIV 0x00100000 // Enable PWM Clock Divisor
9740
#define SYSCTL_RCC_PWMDIV_M 0x000E0000 // PWM Unit Clock Divisor
9741
#define SYSCTL_RCC_PWMDIV_2 0x00000000 // PWM clock /2
9742
#define SYSCTL_RCC_PWMDIV_4 0x00020000 // PWM clock /4
9743
#define SYSCTL_RCC_PWMDIV_8 0x00040000 // PWM clock /8
9744
#define SYSCTL_RCC_PWMDIV_16 0x00060000 // PWM clock /16
9745
#define SYSCTL_RCC_PWMDIV_32 0x00080000 // PWM clock /32
9746
#define SYSCTL_RCC_PWMDIV_64 0x000A0000 // PWM clock /64
9747
#define SYSCTL_RCC_PWRDN 0x00002000 // PLL Power Down
9748
#define SYSCTL_RCC_BYPASS 0x00000800 // PLL Bypass
9749
#define SYSCTL_RCC_XTAL_M 0x000007C0 // Crystal Value
9750
#define SYSCTL_RCC_XTAL_4MHZ 0x00000180 // 4 MHz
9751
#define SYSCTL_RCC_XTAL_4_09MHZ 0x000001C0 // 4.096 MHz
9752
#define SYSCTL_RCC_XTAL_4_91MHZ 0x00000200 // 4.9152 MHz
9753
#define SYSCTL_RCC_XTAL_5MHZ 0x00000240 // 5 MHz
9754
#define SYSCTL_RCC_XTAL_5_12MHZ 0x00000280 // 5.12 MHz
9755
#define SYSCTL_RCC_XTAL_6MHZ 0x000002C0 // 6 MHz
9756
#define SYSCTL_RCC_XTAL_6_14MHZ 0x00000300 // 6.144 MHz
9757
#define SYSCTL_RCC_XTAL_7_37MHZ 0x00000340 // 7.3728 MHz
9758
#define SYSCTL_RCC_XTAL_8MHZ 0x00000380 // 8 MHz
9759
#define SYSCTL_RCC_XTAL_8_19MHZ 0x000003C0 // 8.192 MHz
9760
#define SYSCTL_RCC_XTAL_10MHZ 0x00000400 // 10 MHz
9761
#define SYSCTL_RCC_XTAL_12MHZ 0x00000440 // 12 MHz
9762
#define SYSCTL_RCC_XTAL_12_2MHZ 0x00000480 // 12.288 MHz
9763
#define SYSCTL_RCC_XTAL_13_5MHZ 0x000004C0 // 13.56 MHz
9764
#define SYSCTL_RCC_XTAL_14_3MHZ 0x00000500 // 14.31818 MHz
9765
#define SYSCTL_RCC_XTAL_16MHZ 0x00000540 // 16 MHz
9766
#define SYSCTL_RCC_XTAL_16_3MHZ 0x00000580 // 16.384 MHz
9767
#define SYSCTL_RCC_XTAL_18MHZ 0x000005C0 // 18.0 MHz (USB)
9768
#define SYSCTL_RCC_XTAL_20MHZ 0x00000600 // 20.0 MHz (USB)
9769
#define SYSCTL_RCC_XTAL_24MHZ 0x00000640 // 24.0 MHz (USB)
9770
#define SYSCTL_RCC_XTAL_25MHZ 0x00000680 // 25.0 MHz (USB)
9771
#define SYSCTL_RCC_OSCSRC_M 0x00000030 // Oscillator Source
9772
#define SYSCTL_RCC_OSCSRC_MAIN 0x00000000 // MOSC
9773
#define SYSCTL_RCC_OSCSRC_INT 0x00000010 // IOSC
9774
#define SYSCTL_RCC_OSCSRC_INT4 0x00000020 // IOSC/4
9775
#define SYSCTL_RCC_OSCSRC_30 0x00000030 // LFIOSC
9776
#define SYSCTL_RCC_MOSCDIS 0x00000001 // Main Oscillator Disable
9777
#define SYSCTL_RCC_SYSDIV_S 23
9778
9779
//*****************************************************************************
9780
//
9781
// The following are defines for the bit fields in the SYSCTL_GPIOHBCTL
9782
// register.
9783
//
9784
//*****************************************************************************
9785
#define SYSCTL_GPIOHBCTL_PORTF 0x00000020 // Port F Advanced High-Performance
9786
// Bus
9787
#define SYSCTL_GPIOHBCTL_PORTE 0x00000010 // Port E Advanced High-Performance
9788
// Bus
9789
#define SYSCTL_GPIOHBCTL_PORTD 0x00000008 // Port D Advanced High-Performance
9790
// Bus
9791
#define SYSCTL_GPIOHBCTL_PORTC 0x00000004 // Port C Advanced High-Performance
9792
// Bus
9793
#define SYSCTL_GPIOHBCTL_PORTB 0x00000002 // Port B Advanced High-Performance
9794
// Bus
9795
#define SYSCTL_GPIOHBCTL_PORTA 0x00000001 // Port A Advanced High-Performance
9796
// Bus
9797
9798
//*****************************************************************************
9799
//
9800
// The following are defines for the bit fields in the SYSCTL_RCC2 register.
9801
//
9802
//*****************************************************************************
9803
#define SYSCTL_RCC2_USERCC2 0x80000000 // Use RCC2
9804
#define SYSCTL_RCC2_DIV400 0x40000000 // Divide PLL as 400 MHz vs. 200
9805
// MHz
9806
#define SYSCTL_RCC2_SYSDIV2_M 0x1F800000 // System Clock Divisor 2
9807
#define SYSCTL_RCC2_SYSDIV2LSB 0x00400000 // Additional LSB for SYSDIV2
9808
#define SYSCTL_RCC2_USBPWRDN 0x00004000 // Power-Down USB PLL
9809
#define SYSCTL_RCC2_PWRDN2 0x00002000 // Power-Down PLL 2
9810
#define SYSCTL_RCC2_BYPASS2 0x00000800 // PLL Bypass 2
9811
#define SYSCTL_RCC2_OSCSRC2_M 0x00000070 // Oscillator Source 2
9812
#define SYSCTL_RCC2_OSCSRC2_MO 0x00000000 // MOSC
9813
#define SYSCTL_RCC2_OSCSRC2_IO 0x00000010 // PIOSC
9814
#define SYSCTL_RCC2_OSCSRC2_IO4 0x00000020 // PIOSC/4
9815
#define SYSCTL_RCC2_OSCSRC2_30 0x00000030 // LFIOSC
9816
#define SYSCTL_RCC2_OSCSRC2_32 0x00000070 // 32.768 kHz
9817
#define SYSCTL_RCC2_SYSDIV2_S 23
9818
9819
//*****************************************************************************
9820
//
9821
// The following are defines for the bit fields in the SYSCTL_MOSCCTL register.
9822
//
9823
//*****************************************************************************
9824
#define SYSCTL_MOSCCTL_NOXTAL 0x00000004 // No Crystal Connected
9825
#define SYSCTL_MOSCCTL_MOSCIM 0x00000002 // MOSC Failure Action
9826
#define SYSCTL_MOSCCTL_CVAL 0x00000001 // Clock Validation for MOSC
9827
9828
//*****************************************************************************
9829
//
9830
// The following are defines for the bit fields in the SYSCTL_RCGC0 register.
9831
//
9832
//*****************************************************************************
9833
#define SYSCTL_RCGC0_WDT1 0x10000000 // WDT1 Clock Gating Control
9834
#define SYSCTL_RCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control
9835
#define SYSCTL_RCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control
9836
#define SYSCTL_RCGC0_PWM0 0x00100000 // PWM Clock Gating Control
9837
#define SYSCTL_RCGC0_ADC1 0x00020000 // ADC1 Clock Gating Control
9838
#define SYSCTL_RCGC0_ADC0 0x00010000 // ADC0 Clock Gating Control
9839
#define SYSCTL_RCGC0_ADC1SPD_M 0x00000C00 // ADC1 Sample Speed
9840
#define SYSCTL_RCGC0_ADC1SPD_125K \
9841
0x00000000 // 125K samples/second
9842
#define SYSCTL_RCGC0_ADC1SPD_250K \
9843
0x00000400 // 250K samples/second
9844
#define SYSCTL_RCGC0_ADC1SPD_500K \
9845
0x00000800 // 500K samples/second
9846
#define SYSCTL_RCGC0_ADC1SPD_1M 0x00000C00 // 1M samples/second
9847
#define SYSCTL_RCGC0_ADC0SPD_M 0x00000300 // ADC0 Sample Speed
9848
#define SYSCTL_RCGC0_ADC0SPD_125K \
9849
0x00000000 // 125K samples/second
9850
#define SYSCTL_RCGC0_ADC0SPD_250K \
9851
0x00000100 // 250K samples/second
9852
#define SYSCTL_RCGC0_ADC0SPD_500K \
9853
0x00000200 // 500K samples/second
9854
#define SYSCTL_RCGC0_ADC0SPD_1M 0x00000300 // 1M samples/second
9855
#define SYSCTL_RCGC0_HIB 0x00000040 // HIB Clock Gating Control
9856
#define SYSCTL_RCGC0_WDT0 0x00000008 // WDT0 Clock Gating Control
9857
9858
//*****************************************************************************
9859
//
9860
// The following are defines for the bit fields in the SYSCTL_RCGC1 register.
9861
//
9862
//*****************************************************************************
9863
#define SYSCTL_RCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock Gating
9864
#define SYSCTL_RCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock Gating
9865
#define SYSCTL_RCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control
9866
#define SYSCTL_RCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control
9867
#define SYSCTL_RCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control
9868
#define SYSCTL_RCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control
9869
#define SYSCTL_RCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control
9870
#define SYSCTL_RCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control
9871
#define SYSCTL_RCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control
9872
#define SYSCTL_RCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control
9873
#define SYSCTL_RCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control
9874
#define SYSCTL_RCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control
9875
#define SYSCTL_RCGC1_UART2 0x00000004 // UART2 Clock Gating Control
9876
#define SYSCTL_RCGC1_UART1 0x00000002 // UART1 Clock Gating Control
9877
#define SYSCTL_RCGC1_UART0 0x00000001 // UART0 Clock Gating Control
9878
9879
//*****************************************************************************
9880
//
9881
// The following are defines for the bit fields in the SYSCTL_RCGC2 register.
9882
//
9883
//*****************************************************************************
9884
#define SYSCTL_RCGC2_USB0 0x00010000 // USB0 Clock Gating Control
9885
#define SYSCTL_RCGC2_UDMA 0x00002000 // Micro-DMA Clock Gating Control
9886
#define SYSCTL_RCGC2_GPIOF 0x00000020 // Port F Clock Gating Control
9887
#define SYSCTL_RCGC2_GPIOE 0x00000010 // Port E Clock Gating Control
9888
#define SYSCTL_RCGC2_GPIOD 0x00000008 // Port D Clock Gating Control
9889
#define SYSCTL_RCGC2_GPIOC 0x00000004 // Port C Clock Gating Control
9890
#define SYSCTL_RCGC2_GPIOB 0x00000002 // Port B Clock Gating Control
9891
#define SYSCTL_RCGC2_GPIOA 0x00000001 // Port A Clock Gating Control
9892
9893
//*****************************************************************************
9894
//
9895
// The following are defines for the bit fields in the SYSCTL_SCGC0 register.
9896
//
9897
//*****************************************************************************
9898
#define SYSCTL_SCGC0_WDT1 0x10000000 // WDT1 Clock Gating Control
9899
#define SYSCTL_SCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control
9900
#define SYSCTL_SCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control
9901
#define SYSCTL_SCGC0_PWM0 0x00100000 // PWM Clock Gating Control
9902
#define SYSCTL_SCGC0_ADC1 0x00020000 // ADC1 Clock Gating Control
9903
#define SYSCTL_SCGC0_ADC0 0x00010000 // ADC0 Clock Gating Control
9904
#define SYSCTL_SCGC0_HIB 0x00000040 // HIB Clock Gating Control
9905
#define SYSCTL_SCGC0_WDT0 0x00000008 // WDT0 Clock Gating Control
9906
9907
//*****************************************************************************
9908
//
9909
// The following are defines for the bit fields in the SYSCTL_SCGC1 register.
9910
//
9911
//*****************************************************************************
9912
#define SYSCTL_SCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock Gating
9913
#define SYSCTL_SCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock Gating
9914
#define SYSCTL_SCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control
9915
#define SYSCTL_SCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control
9916
#define SYSCTL_SCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control
9917
#define SYSCTL_SCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control
9918
#define SYSCTL_SCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control
9919
#define SYSCTL_SCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control
9920
#define SYSCTL_SCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control
9921
#define SYSCTL_SCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control
9922
#define SYSCTL_SCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control
9923
#define SYSCTL_SCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control
9924
#define SYSCTL_SCGC1_UART2 0x00000004 // UART2 Clock Gating Control
9925
#define SYSCTL_SCGC1_UART1 0x00000002 // UART1 Clock Gating Control
9926
#define SYSCTL_SCGC1_UART0 0x00000001 // UART0 Clock Gating Control
9927
9928
//*****************************************************************************
9929
//
9930
// The following are defines for the bit fields in the SYSCTL_SCGC2 register.
9931
//
9932
//*****************************************************************************
9933
#define SYSCTL_SCGC2_USB0 0x00010000 // USB0 Clock Gating Control
9934
#define SYSCTL_SCGC2_UDMA 0x00002000 // Micro-DMA Clock Gating Control
9935
#define SYSCTL_SCGC2_GPIOF 0x00000020 // Port F Clock Gating Control
9936
#define SYSCTL_SCGC2_GPIOE 0x00000010 // Port E Clock Gating Control
9937
#define SYSCTL_SCGC2_GPIOD 0x00000008 // Port D Clock Gating Control
9938
#define SYSCTL_SCGC2_GPIOC 0x00000004 // Port C Clock Gating Control
9939
#define SYSCTL_SCGC2_GPIOB 0x00000002 // Port B Clock Gating Control
9940
#define SYSCTL_SCGC2_GPIOA 0x00000001 // Port A Clock Gating Control
9941
9942
//*****************************************************************************
9943
//
9944
// The following are defines for the bit fields in the SYSCTL_DCGC0 register.
9945
//
9946
//*****************************************************************************
9947
#define SYSCTL_DCGC0_WDT1 0x10000000 // WDT1 Clock Gating Control
9948
#define SYSCTL_DCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control
9949
#define SYSCTL_DCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control
9950
#define SYSCTL_DCGC0_PWM0 0x00100000 // PWM Clock Gating Control
9951
#define SYSCTL_DCGC0_ADC1 0x00020000 // ADC1 Clock Gating Control
9952
#define SYSCTL_DCGC0_ADC0 0x00010000 // ADC0 Clock Gating Control
9953
#define SYSCTL_DCGC0_HIB 0x00000040 // HIB Clock Gating Control
9954
#define SYSCTL_DCGC0_WDT0 0x00000008 // WDT0 Clock Gating Control
9955
9956
//*****************************************************************************
9957
//
9958
// The following are defines for the bit fields in the SYSCTL_DCGC1 register.
9959
//
9960
//*****************************************************************************
9961
#define SYSCTL_DCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock Gating
9962
#define SYSCTL_DCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock Gating
9963
#define SYSCTL_DCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control
9964
#define SYSCTL_DCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control
9965
#define SYSCTL_DCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control
9966
#define SYSCTL_DCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control
9967
#define SYSCTL_DCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control
9968
#define SYSCTL_DCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control
9969
#define SYSCTL_DCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control
9970
#define SYSCTL_DCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control
9971
#define SYSCTL_DCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control
9972
#define SYSCTL_DCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control
9973
#define SYSCTL_DCGC1_UART2 0x00000004 // UART2 Clock Gating Control
9974
#define SYSCTL_DCGC1_UART1 0x00000002 // UART1 Clock Gating Control
9975
#define SYSCTL_DCGC1_UART0 0x00000001 // UART0 Clock Gating Control
9976
9977
//*****************************************************************************
9978
//
9979
// The following are defines for the bit fields in the SYSCTL_DCGC2 register.
9980
//
9981
//*****************************************************************************
9982
#define SYSCTL_DCGC2_USB0 0x00010000 // USB0 Clock Gating Control
9983
#define SYSCTL_DCGC2_UDMA 0x00002000 // Micro-DMA Clock Gating Control
9984
#define SYSCTL_DCGC2_GPIOF 0x00000020 // Port F Clock Gating Control
9985
#define SYSCTL_DCGC2_GPIOE 0x00000010 // Port E Clock Gating Control
9986
#define SYSCTL_DCGC2_GPIOD 0x00000008 // Port D Clock Gating Control
9987
#define SYSCTL_DCGC2_GPIOC 0x00000004 // Port C Clock Gating Control
9988
#define SYSCTL_DCGC2_GPIOB 0x00000002 // Port B Clock Gating Control
9989
#define SYSCTL_DCGC2_GPIOA 0x00000001 // Port A Clock Gating Control
9990
9991
//*****************************************************************************
9992
//
9993
// The following are defines for the bit fields in the SYSCTL_DSLPCLKCFG
9994
// register.
9995
//
9996
//*****************************************************************************
9997
#define SYSCTL_DSLPCLKCFG_D_M 0x1F800000 // Divider Field Override
9998
#define SYSCTL_DSLPCLKCFG_O_M 0x00000070 // Clock Source
9999
#define SYSCTL_DSLPCLKCFG_O_IGN 0x00000000 // MOSC
10000
#define SYSCTL_DSLPCLKCFG_O_IO 0x00000010 // PIOSC
10001
#define SYSCTL_DSLPCLKCFG_O_30 0x00000030 // LFIOSC
10002
#define SYSCTL_DSLPCLKCFG_O_32 0x00000070 // 32.768 kHz
10003
#define SYSCTL_DSLPCLKCFG_PIOSCPD \
10004
0x00000002 // PIOSC Power Down Request
10005
#define SYSCTL_DSLPCLKCFG_D_S 23
10006
10007
//*****************************************************************************
10008
//
10009
// The following are defines for the bit fields in the SYSCTL_SYSPROP register.
10010
//
10011
//*****************************************************************************
10012
#define SYSCTL_SYSPROP_FPU 0x00000001 // FPU Present
10013
10014
//*****************************************************************************
10015
//
10016
// The following are defines for the bit fields in the SYSCTL_PIOSCCAL
10017
// register.
10018
//
10019
//*****************************************************************************
10020
#define SYSCTL_PIOSCCAL_UTEN 0x80000000 // Use User Trim Value
10021
#define SYSCTL_PIOSCCAL_CAL 0x00000200 // Start Calibration
10022
#define SYSCTL_PIOSCCAL_UPDATE 0x00000100 // Update Trim
10023
#define SYSCTL_PIOSCCAL_UT_M 0x0000007F // User Trim Value
10024
#define SYSCTL_PIOSCCAL_UT_S 0
10025
10026
//*****************************************************************************
10027
//
10028
// The following are defines for the bit fields in the SYSCTL_PIOSCSTAT
10029
// register.
10030
//
10031
//*****************************************************************************
10032
#define SYSCTL_PIOSCSTAT_DT_M 0x007F0000 // Default Trim Value
10033
#define SYSCTL_PIOSCSTAT_CR_M 0x00000300 // Calibration Result
10034
#define SYSCTL_PIOSCSTAT_CRNONE 0x00000000 // Calibration has not been
10035
// attempted
10036
#define SYSCTL_PIOSCSTAT_CRPASS 0x00000100 // The last calibration operation
10037
// completed to meet 1% accuracy
10038
#define SYSCTL_PIOSCSTAT_CRFAIL 0x00000200 // The last calibration operation
10039
// failed to meet 1% accuracy
10040
#define SYSCTL_PIOSCSTAT_CT_M 0x0000007F // Calibration Trim Value
10041
#define SYSCTL_PIOSCSTAT_DT_S 16
10042
#define SYSCTL_PIOSCSTAT_CT_S 0
10043
10044
//*****************************************************************************
10045
//
10046
// The following are defines for the bit fields in the SYSCTL_PLLFREQ0
10047
// register.
10048
//
10049
//*****************************************************************************
10050
#define SYSCTL_PLLFREQ0_MFRAC_M 0x000FFC00 // PLL M Fractional Value
10051
#define SYSCTL_PLLFREQ0_MINT_M 0x000003FF // PLL M Integer Value
10052
#define SYSCTL_PLLFREQ0_MFRAC_S 10
10053
#define SYSCTL_PLLFREQ0_MINT_S 0
10054
10055
//*****************************************************************************
10056
//
10057
// The following are defines for the bit fields in the SYSCTL_PLLFREQ1
10058
// register.
10059
//
10060
//*****************************************************************************
10061
#define SYSCTL_PLLFREQ1_Q_M 0x00001F00 // PLL Q Value
10062
#define SYSCTL_PLLFREQ1_N_M 0x0000001F // PLL N Value
10063
#define SYSCTL_PLLFREQ1_Q_S 8
10064
#define SYSCTL_PLLFREQ1_N_S 0
10065
10066
//*****************************************************************************
10067
//
10068
// The following are defines for the bit fields in the SYSCTL_PLLSTAT register.
10069
//
10070
//*****************************************************************************
10071
#define SYSCTL_PLLSTAT_LOCK 0x00000001 // PLL Lock
10072
10073
//*****************************************************************************
10074
//
10075
// The following are defines for the bit fields in the SYSCTL_SLPPWRCFG
10076
// register.
10077
//
10078
//*****************************************************************************
10079
#define SYSCTL_SLPPWRCFG_FLASHPM_M \
10080
0x00000030 // Flash Power Modes
10081
#define SYSCTL_SLPPWRCFG_FLASHPM_NRM \
10082
0x00000000 // Active Mode
10083
#define SYSCTL_SLPPWRCFG_FLASHPM_SLP \
10084
0x00000020 // Low Power Mode
10085
#define SYSCTL_SLPPWRCFG_SRAMPM_M \
10086
0x00000003 // SRAM Power Modes
10087
#define SYSCTL_SLPPWRCFG_SRAMPM_NRM \
10088
0x00000000 // Active Mode
10089
#define SYSCTL_SLPPWRCFG_SRAMPM_SBY \
10090
0x00000001 // Standby Mode
10091
#define SYSCTL_SLPPWRCFG_SRAMPM_LP \
10092
0x00000003 // Low Power Mode
10093
10094
//*****************************************************************************
10095
//
10096
// The following are defines for the bit fields in the SYSCTL_DSLPPWRCFG
10097
// register.
10098
//
10099
//*****************************************************************************
10100
#define SYSCTL_DSLPPWRCFG_FLASHPM_M \
10101
0x00000030 // Flash Power Modes
10102
#define SYSCTL_DSLPPWRCFG_FLASHPM_NRM \
10103
0x00000000 // Active Mode
10104
#define SYSCTL_DSLPPWRCFG_FLASHPM_SLP \
10105
0x00000020 // Low Power Mode
10106
#define SYSCTL_DSLPPWRCFG_SRAMPM_M \
10107
0x00000003 // SRAM Power Modes
10108
#define SYSCTL_DSLPPWRCFG_SRAMPM_NRM \
10109
0x00000000 // Active Mode
10110
#define SYSCTL_DSLPPWRCFG_SRAMPM_SBY \
10111
0x00000001 // Standby Mode
10112
#define SYSCTL_DSLPPWRCFG_SRAMPM_LP \
10113
0x00000003 // Low Power Mode
10114
10115
//*****************************************************************************
10116
//
10117
// The following are defines for the bit fields in the SYSCTL_DC9 register.
10118
//
10119
//*****************************************************************************
10120
#define SYSCTL_DC9_ADC1DC7 0x00800000 // ADC1 DC7 Present
10121
#define SYSCTL_DC9_ADC1DC6 0x00400000 // ADC1 DC6 Present
10122
#define SYSCTL_DC9_ADC1DC5 0x00200000 // ADC1 DC5 Present
10123
#define SYSCTL_DC9_ADC1DC4 0x00100000 // ADC1 DC4 Present
10124
#define SYSCTL_DC9_ADC1DC3 0x00080000 // ADC1 DC3 Present
10125
#define SYSCTL_DC9_ADC1DC2 0x00040000 // ADC1 DC2 Present
10126
#define SYSCTL_DC9_ADC1DC1 0x00020000 // ADC1 DC1 Present
10127
#define SYSCTL_DC9_ADC1DC0 0x00010000 // ADC1 DC0 Present
10128
#define SYSCTL_DC9_ADC0DC7 0x00000080 // ADC0 DC7 Present
10129
#define SYSCTL_DC9_ADC0DC6 0x00000040 // ADC0 DC6 Present
10130
#define SYSCTL_DC9_ADC0DC5 0x00000020 // ADC0 DC5 Present
10131
#define SYSCTL_DC9_ADC0DC4 0x00000010 // ADC0 DC4 Present
10132
#define SYSCTL_DC9_ADC0DC3 0x00000008 // ADC0 DC3 Present
10133
#define SYSCTL_DC9_ADC0DC2 0x00000004 // ADC0 DC2 Present
10134
#define SYSCTL_DC9_ADC0DC1 0x00000002 // ADC0 DC1 Present
10135
#define SYSCTL_DC9_ADC0DC0 0x00000001 // ADC0 DC0 Present
10136
10137
//*****************************************************************************
10138
//
10139
// The following are defines for the bit fields in the SYSCTL_NVMSTAT register.
10140
//
10141
//*****************************************************************************
10142
#define SYSCTL_NVMSTAT_FWB 0x00000001 // 32 Word Flash Write Buffer
10143
// Available
10144
10145
//*****************************************************************************
10146
//
10147
// The following are defines for the bit fields in the SYSCTL_LDOSPCTL
10148
// register.
10149
//
10150
//*****************************************************************************
10151
#define SYSCTL_LDOSPCTL_VADJEN 0x80000000 // Voltage Adjust Enable
10152
#define SYSCTL_LDOSPCTL_VLDO_M 0x000000FF // LDO Output Voltage
10153
#define SYSCTL_LDOSPCTL_VLDO_0_90V \
10154
0x00000012 // 0.90 V
10155
#define SYSCTL_LDOSPCTL_VLDO_0_95V \
10156
0x00000013 // 0.95 V
10157
#define SYSCTL_LDOSPCTL_VLDO_1_00V \
10158
0x00000014 // 1.00 V
10159
#define SYSCTL_LDOSPCTL_VLDO_1_05V \
10160
0x00000015 // 1.05 V
10161
#define SYSCTL_LDOSPCTL_VLDO_1_10V \
10162
0x00000016 // 1.10 V
10163
#define SYSCTL_LDOSPCTL_VLDO_1_15V \
10164
0x00000017 // 1.15 V
10165
#define SYSCTL_LDOSPCTL_VLDO_1_20V \
10166
0x00000018 // 1.20 V
10167
10168
//*****************************************************************************
10169
//
10170
// The following are defines for the bit fields in the SYSCTL_LDODPCTL
10171
// register.
10172
//
10173
//*****************************************************************************
10174
#define SYSCTL_LDODPCTL_VADJEN 0x80000000 // Voltage Adjust Enable
10175
#define SYSCTL_LDODPCTL_VLDO_M 0x000000FF // LDO Output Voltage
10176
#define SYSCTL_LDODPCTL_VLDO_0_90V \
10177
0x00000012 // 0.90 V
10178
#define SYSCTL_LDODPCTL_VLDO_0_95V \
10179
0x00000013 // 0.95 V
10180
#define SYSCTL_LDODPCTL_VLDO_1_00V \
10181
0x00000014 // 1.00 V
10182
#define SYSCTL_LDODPCTL_VLDO_1_05V \
10183
0x00000015 // 1.05 V
10184
#define SYSCTL_LDODPCTL_VLDO_1_10V \
10185
0x00000016 // 1.10 V
10186
#define SYSCTL_LDODPCTL_VLDO_1_15V \
10187
0x00000017 // 1.15 V
10188
#define SYSCTL_LDODPCTL_VLDO_1_20V \
10189
0x00000018 // 1.20 V
10190
10191
//*****************************************************************************
10192
//
10193
// The following are defines for the bit fields in the SYSCTL_PPWD register.
10194
//
10195
//*****************************************************************************
10196
#define SYSCTL_PPWD_P1 0x00000002 // Watchdog Timer 1 Present
10197
#define SYSCTL_PPWD_P0 0x00000001 // Watchdog Timer 0 Present
10198
10199
//*****************************************************************************
10200
//
10201
// The following are defines for the bit fields in the SYSCTL_PPTIMER register.
10202
//
10203
//*****************************************************************************
10204
#define SYSCTL_PPTIMER_P5 0x00000020 // 16/32-Bit General-Purpose Timer
10205
// 5 Present
10206
#define SYSCTL_PPTIMER_P4 0x00000010 // 16/32-Bit General-Purpose Timer
10207
// 4 Present
10208
#define SYSCTL_PPTIMER_P3 0x00000008 // 16/32-Bit General-Purpose Timer
10209
// 3 Present
10210
#define SYSCTL_PPTIMER_P2 0x00000004 // 16/32-Bit General-Purpose Timer
10211
// 2 Present
10212
#define SYSCTL_PPTIMER_P1 0x00000002 // 16/32-Bit General-Purpose Timer
10213
// 1 Present
10214
#define SYSCTL_PPTIMER_P0 0x00000001 // 16/32-Bit General-Purpose Timer
10215
// 0 Present
10216
10217
//*****************************************************************************
10218
//
10219
// The following are defines for the bit fields in the SYSCTL_PPGPIO register.
10220
//
10221
//*****************************************************************************
10222
#define SYSCTL_PPGPIO_P14 0x00004000 // GPIO Port Q Present
10223
#define SYSCTL_PPGPIO_P13 0x00002000 // GPIO Port P Present
10224
#define SYSCTL_PPGPIO_P12 0x00001000 // GPIO Port N Present
10225
#define SYSCTL_PPGPIO_P11 0x00000800 // GPIO Port M Present
10226
#define SYSCTL_PPGPIO_P10 0x00000400 // GPIO Port L Present
10227
#define SYSCTL_PPGPIO_P9 0x00000200 // GPIO Port K Present
10228
#define SYSCTL_PPGPIO_P8 0x00000100 // GPIO Port J Present
10229
#define SYSCTL_PPGPIO_P7 0x00000080 // GPIO Port H Present
10230
#define SYSCTL_PPGPIO_P6 0x00000040 // GPIO Port G Present
10231
#define SYSCTL_PPGPIO_P5 0x00000020 // GPIO Port F Present
10232
#define SYSCTL_PPGPIO_P4 0x00000010 // GPIO Port E Present
10233
#define SYSCTL_PPGPIO_P3 0x00000008 // GPIO Port D Present
10234
#define SYSCTL_PPGPIO_P2 0x00000004 // GPIO Port C Present
10235
#define SYSCTL_PPGPIO_P1 0x00000002 // GPIO Port B Present
10236
#define SYSCTL_PPGPIO_P0 0x00000001 // GPIO Port A Present
10237
10238
//*****************************************************************************
10239
//
10240
// The following are defines for the bit fields in the SYSCTL_PPDMA register.
10241
//
10242
//*****************************************************************************
10243
#define SYSCTL_PPDMA_P0 0x00000001 // uDMA Module Present
10244
10245
//*****************************************************************************
10246
//
10247
// The following are defines for the bit fields in the SYSCTL_PPHIB register.
10248
//
10249
//*****************************************************************************
10250
#define SYSCTL_PPHIB_P0 0x00000001 // Hibernation Module Present
10251
10252
//*****************************************************************************
10253
//
10254
// The following are defines for the bit fields in the SYSCTL_PPUART register.
10255
//
10256
//*****************************************************************************
10257
#define SYSCTL_PPUART_P7 0x00000080 // UART Module 7 Present
10258
#define SYSCTL_PPUART_P6 0x00000040 // UART Module 6 Present
10259
#define SYSCTL_PPUART_P5 0x00000020 // UART Module 5 Present
10260
#define SYSCTL_PPUART_P4 0x00000010 // UART Module 4 Present
10261
#define SYSCTL_PPUART_P3 0x00000008 // UART Module 3 Present
10262
#define SYSCTL_PPUART_P2 0x00000004 // UART Module 2 Present
10263
#define SYSCTL_PPUART_P1 0x00000002 // UART Module 1 Present
10264
#define SYSCTL_PPUART_P0 0x00000001 // UART Module 0 Present
10265
10266
//*****************************************************************************
10267
//
10268
// The following are defines for the bit fields in the SYSCTL_PPSSI register.
10269
//
10270
//*****************************************************************************
10271
#define SYSCTL_PPSSI_P3 0x00000008 // SSI Module 3 Present
10272
#define SYSCTL_PPSSI_P2 0x00000004 // SSI Module 2 Present
10273
#define SYSCTL_PPSSI_P1 0x00000002 // SSI Module 1 Present
10274
#define SYSCTL_PPSSI_P0 0x00000001 // SSI Module 0 Present
10275
10276
//*****************************************************************************
10277
//
10278
// The following are defines for the bit fields in the SYSCTL_PPI2C register.
10279
//
10280
//*****************************************************************************
10281
#define SYSCTL_PPI2C_P5 0x00000020 // I2C Module 5 Present
10282
#define SYSCTL_PPI2C_P4 0x00000010 // I2C Module 4 Present
10283
#define SYSCTL_PPI2C_P3 0x00000008 // I2C Module 3 Present
10284
#define SYSCTL_PPI2C_P2 0x00000004 // I2C Module 2 Present
10285
#define SYSCTL_PPI2C_P1 0x00000002 // I2C Module 1 Present
10286
#define SYSCTL_PPI2C_P0 0x00000001 // I2C Module 0 Present
10287
10288
//*****************************************************************************
10289
//
10290
// The following are defines for the bit fields in the SYSCTL_PPUSB register.
10291
//
10292
//*****************************************************************************
10293
#define SYSCTL_PPUSB_P0 0x00000001 // USB Module Present
10294
10295
//*****************************************************************************
10296
//
10297
// The following are defines for the bit fields in the SYSCTL_PPCAN register.
10298
//
10299
//*****************************************************************************
10300
#define SYSCTL_PPCAN_P1 0x00000002 // CAN Module 1 Present
10301
#define SYSCTL_PPCAN_P0 0x00000001 // CAN Module 0 Present
10302
10303
//*****************************************************************************
10304
//
10305
// The following are defines for the bit fields in the SYSCTL_PPADC register.
10306
//
10307
//*****************************************************************************
10308
#define SYSCTL_PPADC_P1 0x00000002 // ADC Module 1 Present
10309
#define SYSCTL_PPADC_P0 0x00000001 // ADC Module 0 Present
10310
10311
//*****************************************************************************
10312
//
10313
// The following are defines for the bit fields in the SYSCTL_PPACMP register.
10314
//
10315
//*****************************************************************************
10316
#define SYSCTL_PPACMP_P0 0x00000001 // Analog Comparator Module Present
10317
10318
//*****************************************************************************
10319
//
10320
// The following are defines for the bit fields in the SYSCTL_PPPWM register.
10321
//
10322
//*****************************************************************************
10323
#define SYSCTL_PPPWM_P1 0x00000002 // PWM Module 1 Present
10324
#define SYSCTL_PPPWM_P0 0x00000001 // PWM Module 0 Present
10325
10326
//*****************************************************************************
10327
//
10328
// The following are defines for the bit fields in the SYSCTL_PPQEI register.
10329
//
10330
//*****************************************************************************
10331
#define SYSCTL_PPQEI_P1 0x00000002 // QEI Module 1 Present
10332
#define SYSCTL_PPQEI_P0 0x00000001 // QEI Module 0 Present
10333
10334
//*****************************************************************************
10335
//
10336
// The following are defines for the bit fields in the SYSCTL_PPEEPROM
10337
// register.
10338
//
10339
//*****************************************************************************
10340
#define SYSCTL_PPEEPROM_P0 0x00000001 // EEPROM Module Present
10341
10342
//*****************************************************************************
10343
//
10344
// The following are defines for the bit fields in the SYSCTL_PPWTIMER
10345
// register.
10346
//
10347
//*****************************************************************************
10348
#define SYSCTL_PPWTIMER_P5 0x00000020 // 32/64-Bit Wide General-Purpose
10349
// Timer 5 Present
10350
#define SYSCTL_PPWTIMER_P4 0x00000010 // 32/64-Bit Wide General-Purpose
10351
// Timer 4 Present
10352
#define SYSCTL_PPWTIMER_P3 0x00000008 // 32/64-Bit Wide General-Purpose
10353
// Timer 3 Present
10354
#define SYSCTL_PPWTIMER_P2 0x00000004 // 32/64-Bit Wide General-Purpose
10355
// Timer 2 Present
10356
#define SYSCTL_PPWTIMER_P1 0x00000002 // 32/64-Bit Wide General-Purpose
10357
// Timer 1 Present
10358
#define SYSCTL_PPWTIMER_P0 0x00000001 // 32/64-Bit Wide General-Purpose
10359
// Timer 0 Present
10360
10361
//*****************************************************************************
10362
//
10363
// The following are defines for the bit fields in the SYSCTL_SRWD register.
10364
//
10365
//*****************************************************************************
10366
#define SYSCTL_SRWD_R1 0x00000002 // Watchdog Timer 1 Software Reset
10367
#define SYSCTL_SRWD_R0 0x00000001 // Watchdog Timer 0 Software Reset
10368
10369
//*****************************************************************************
10370
//
10371
// The following are defines for the bit fields in the SYSCTL_SRTIMER register.
10372
//
10373
//*****************************************************************************
10374
#define SYSCTL_SRTIMER_R5 0x00000020 // 16/32-Bit General-Purpose Timer
10375
// 5 Software Reset
10376
#define SYSCTL_SRTIMER_R4 0x00000010 // 16/32-Bit General-Purpose Timer
10377
// 4 Software Reset
10378
#define SYSCTL_SRTIMER_R3 0x00000008 // 16/32-Bit General-Purpose Timer
10379
// 3 Software Reset
10380
#define SYSCTL_SRTIMER_R2 0x00000004 // 16/32-Bit General-Purpose Timer
10381
// 2 Software Reset
10382
#define SYSCTL_SRTIMER_R1 0x00000002 // 16/32-Bit General-Purpose Timer
10383
// 1 Software Reset
10384
#define SYSCTL_SRTIMER_R0 0x00000001 // 16/32-Bit General-Purpose Timer
10385
// 0 Software Reset
10386
10387
//*****************************************************************************
10388
//
10389
// The following are defines for the bit fields in the SYSCTL_SRGPIO register.
10390
//
10391
//*****************************************************************************
10392
#define SYSCTL_SRGPIO_R5 0x00000020 // GPIO Port F Software Reset
10393
#define SYSCTL_SRGPIO_R4 0x00000010 // GPIO Port E Software Reset
10394
#define SYSCTL_SRGPIO_R3 0x00000008 // GPIO Port D Software Reset
10395
#define SYSCTL_SRGPIO_R2 0x00000004 // GPIO Port C Software Reset
10396
#define SYSCTL_SRGPIO_R1 0x00000002 // GPIO Port B Software Reset
10397
#define SYSCTL_SRGPIO_R0 0x00000001 // GPIO Port A Software Reset
10398
10399
//*****************************************************************************
10400
//
10401
// The following are defines for the bit fields in the SYSCTL_SRDMA register.
10402
//
10403
//*****************************************************************************
10404
#define SYSCTL_SRDMA_R0 0x00000001 // uDMA Module Software Reset
10405
10406
//*****************************************************************************
10407
//
10408
// The following are defines for the bit fields in the SYSCTL_SRHIB register.
10409
//
10410
//*****************************************************************************
10411
#define SYSCTL_SRHIB_R0 0x00000001 // Hibernation Module Software
10412
// Reset
10413
10414
//*****************************************************************************
10415
//
10416
// The following are defines for the bit fields in the SYSCTL_SRUART register.
10417
//
10418
//*****************************************************************************
10419
#define SYSCTL_SRUART_R7 0x00000080 // UART Module 7 Software Reset
10420
#define SYSCTL_SRUART_R6 0x00000040 // UART Module 6 Software Reset
10421
#define SYSCTL_SRUART_R5 0x00000020 // UART Module 5 Software Reset
10422
#define SYSCTL_SRUART_R4 0x00000010 // UART Module 4 Software Reset
10423
#define SYSCTL_SRUART_R3 0x00000008 // UART Module 3 Software Reset
10424
#define SYSCTL_SRUART_R2 0x00000004 // UART Module 2 Software Reset
10425
#define SYSCTL_SRUART_R1 0x00000002 // UART Module 1 Software Reset
10426
#define SYSCTL_SRUART_R0 0x00000001 // UART Module 0 Software Reset
10427
10428
//*****************************************************************************
10429
//
10430
// The following are defines for the bit fields in the SYSCTL_SRSSI register.
10431
//
10432
//*****************************************************************************
10433
#define SYSCTL_SRSSI_R3 0x00000008 // SSI Module 3 Software Reset
10434
#define SYSCTL_SRSSI_R2 0x00000004 // SSI Module 2 Software Reset
10435
#define SYSCTL_SRSSI_R1 0x00000002 // SSI Module 1 Software Reset
10436
#define SYSCTL_SRSSI_R0 0x00000001 // SSI Module 0 Software Reset
10437
10438
//*****************************************************************************
10439
//
10440
// The following are defines for the bit fields in the SYSCTL_SRI2C register.
10441
//
10442
//*****************************************************************************
10443
#define SYSCTL_SRI2C_R3 0x00000008 // I2C Module 3 Software Reset
10444
#define SYSCTL_SRI2C_R2 0x00000004 // I2C Module 2 Software Reset
10445
#define SYSCTL_SRI2C_R1 0x00000002 // I2C Module 1 Software Reset
10446
#define SYSCTL_SRI2C_R0 0x00000001 // I2C Module 0 Software Reset
10447
10448
//*****************************************************************************
10449
//
10450
// The following are defines for the bit fields in the SYSCTL_SRUSB register.
10451
//
10452
//*****************************************************************************
10453
#define SYSCTL_SRUSB_R0 0x00000001 // USB Module Software Reset
10454
10455
//*****************************************************************************
10456
//
10457
// The following are defines for the bit fields in the SYSCTL_SRCAN register.
10458
//
10459
//*****************************************************************************
10460
#define SYSCTL_SRCAN_R1 0x00000002 // CAN Module 1 Software Reset
10461
#define SYSCTL_SRCAN_R0 0x00000001 // CAN Module 0 Software Reset
10462
10463
//*****************************************************************************
10464
//
10465
// The following are defines for the bit fields in the SYSCTL_SRADC register.
10466
//
10467
//*****************************************************************************
10468
#define SYSCTL_SRADC_R1 0x00000002 // ADC Module 1 Software Reset
10469
#define SYSCTL_SRADC_R0 0x00000001 // ADC Module 0 Software Reset
10470
10471
//*****************************************************************************
10472
//
10473
// The following are defines for the bit fields in the SYSCTL_SRACMP register.
10474
//
10475
//*****************************************************************************
10476
#define SYSCTL_SRACMP_R0 0x00000001 // Analog Comparator Module 0
10477
// Software Reset
10478
10479
//*****************************************************************************
10480
//
10481
// The following are defines for the bit fields in the SYSCTL_SRPWM register.
10482
//
10483
//*****************************************************************************
10484
#define SYSCTL_SRPWM_R1 0x00000002 // PWM Module 1 Software Reset
10485
#define SYSCTL_SRPWM_R0 0x00000001 // PWM Module 0 Software Reset
10486
10487
//*****************************************************************************
10488
//
10489
// The following are defines for the bit fields in the SYSCTL_SRQEI register.
10490
//
10491
//*****************************************************************************
10492
#define SYSCTL_SRQEI_R1 0x00000002 // QEI Module 1 Software Reset
10493
#define SYSCTL_SRQEI_R0 0x00000001 // QEI Module 0 Software Reset
10494
10495
//*****************************************************************************
10496
//
10497
// The following are defines for the bit fields in the SYSCTL_SREEPROM
10498
// register.
10499
//
10500
//*****************************************************************************
10501
#define SYSCTL_SREEPROM_R0 0x00000001 // EEPROM Module Software Reset
10502
10503
//*****************************************************************************
10504
//
10505
// The following are defines for the bit fields in the SYSCTL_SRWTIMER
10506
// register.
10507
//
10508
//*****************************************************************************
10509
#define SYSCTL_SRWTIMER_R5 0x00000020 // 32/64-Bit Wide General-Purpose
10510
// Timer 5 Software Reset
10511
#define SYSCTL_SRWTIMER_R4 0x00000010 // 32/64-Bit Wide General-Purpose
10512
// Timer 4 Software Reset
10513
#define SYSCTL_SRWTIMER_R3 0x00000008 // 32/64-Bit Wide General-Purpose
10514
// Timer 3 Software Reset
10515
#define SYSCTL_SRWTIMER_R2 0x00000004 // 32/64-Bit Wide General-Purpose
10516
// Timer 2 Software Reset
10517
#define SYSCTL_SRWTIMER_R1 0x00000002 // 32/64-Bit Wide General-Purpose
10518
// Timer 1 Software Reset
10519
#define SYSCTL_SRWTIMER_R0 0x00000001 // 32/64-Bit Wide General-Purpose
10520
// Timer 0 Software Reset
10521
10522
//*****************************************************************************
10523
//
10524
// The following are defines for the bit fields in the SYSCTL_RCGCWD register.
10525
//
10526
//*****************************************************************************
10527
#define SYSCTL_RCGCWD_R1 0x00000002 // Watchdog Timer 1 Run Mode Clock
10528
// Gating Control
10529
#define SYSCTL_RCGCWD_R0 0x00000001 // Watchdog Timer 0 Run Mode Clock
10530
// Gating Control
10531
10532
//*****************************************************************************
10533
//
10534
// The following are defines for the bit fields in the SYSCTL_RCGCTIMER
10535
// register.
10536
//
10537
//*****************************************************************************
10538
#define SYSCTL_RCGCTIMER_R5 0x00000020 // 16/32-Bit General-Purpose Timer
10539
// 5 Run Mode Clock Gating Control
10540
#define SYSCTL_RCGCTIMER_R4 0x00000010 // 16/32-Bit General-Purpose Timer
10541
// 4 Run Mode Clock Gating Control
10542
#define SYSCTL_RCGCTIMER_R3 0x00000008 // 16/32-Bit General-Purpose Timer
10543
// 3 Run Mode Clock Gating Control
10544
#define SYSCTL_RCGCTIMER_R2 0x00000004 // 16/32-Bit General-Purpose Timer
10545
// 2 Run Mode Clock Gating Control
10546
#define SYSCTL_RCGCTIMER_R1 0x00000002 // 16/32-Bit General-Purpose Timer
10547
// 1 Run Mode Clock Gating Control
10548
#define SYSCTL_RCGCTIMER_R0 0x00000001 // 16/32-Bit General-Purpose Timer
10549
// 0 Run Mode Clock Gating Control
10550
10551
//*****************************************************************************
10552
//
10553
// The following are defines for the bit fields in the SYSCTL_RCGCGPIO
10554
// register.
10555
//
10556
//*****************************************************************************
10557
#define SYSCTL_RCGCGPIO_R5 0x00000020 // GPIO Port F Run Mode Clock
10558
// Gating Control
10559
#define SYSCTL_RCGCGPIO_R4 0x00000010 // GPIO Port E Run Mode Clock
10560
// Gating Control
10561
#define SYSCTL_RCGCGPIO_R3 0x00000008 // GPIO Port D Run Mode Clock
10562
// Gating Control
10563
#define SYSCTL_RCGCGPIO_R2 0x00000004 // GPIO Port C Run Mode Clock
10564
// Gating Control
10565
#define SYSCTL_RCGCGPIO_R1 0x00000002 // GPIO Port B Run Mode Clock
10566
// Gating Control
10567
#define SYSCTL_RCGCGPIO_R0 0x00000001 // GPIO Port A Run Mode Clock
10568
// Gating Control
10569
10570
//*****************************************************************************
10571
//
10572
// The following are defines for the bit fields in the SYSCTL_RCGCDMA register.
10573
//
10574
//*****************************************************************************
10575
#define SYSCTL_RCGCDMA_R0 0x00000001 // uDMA Module Run Mode Clock
10576
// Gating Control
10577
10578
//*****************************************************************************
10579
//
10580
// The following are defines for the bit fields in the SYSCTL_RCGCHIB register.
10581
//
10582
//*****************************************************************************
10583
#define SYSCTL_RCGCHIB_R0 0x00000001 // Hibernation Module Run Mode
10584
// Clock Gating Control
10585
10586
//*****************************************************************************
10587
//
10588
// The following are defines for the bit fields in the SYSCTL_RCGCUART
10589
// register.
10590
//
10591
//*****************************************************************************
10592
#define SYSCTL_RCGCUART_R7 0x00000080 // UART Module 7 Run Mode Clock
10593
// Gating Control
10594
#define SYSCTL_RCGCUART_R6 0x00000040 // UART Module 6 Run Mode Clock
10595
// Gating Control
10596
#define SYSCTL_RCGCUART_R5 0x00000020 // UART Module 5 Run Mode Clock
10597
// Gating Control
10598
#define SYSCTL_RCGCUART_R4 0x00000010 // UART Module 4 Run Mode Clock
10599
// Gating Control
10600
#define SYSCTL_RCGCUART_R3 0x00000008 // UART Module 3 Run Mode Clock
10601
// Gating Control
10602
#define SYSCTL_RCGCUART_R2 0x00000004 // UART Module 2 Run Mode Clock
10603
// Gating Control
10604
#define SYSCTL_RCGCUART_R1 0x00000002 // UART Module 1 Run Mode Clock
10605
// Gating Control
10606
#define SYSCTL_RCGCUART_R0 0x00000001 // UART Module 0 Run Mode Clock
10607
// Gating Control
10608
10609
//*****************************************************************************
10610
//
10611
// The following are defines for the bit fields in the SYSCTL_RCGCSSI register.
10612
//
10613
//*****************************************************************************
10614
#define SYSCTL_RCGCSSI_R3 0x00000008 // SSI Module 3 Run Mode Clock
10615
// Gating Control
10616
#define SYSCTL_RCGCSSI_R2 0x00000004 // SSI Module 2 Run Mode Clock
10617
// Gating Control
10618
#define SYSCTL_RCGCSSI_R1 0x00000002 // SSI Module 1 Run Mode Clock
10619
// Gating Control
10620
#define SYSCTL_RCGCSSI_R0 0x00000001 // SSI Module 0 Run Mode Clock
10621
// Gating Control
10622
10623
//*****************************************************************************
10624
//
10625
// The following are defines for the bit fields in the SYSCTL_RCGCI2C register.
10626
//
10627
//*****************************************************************************
10628
#define SYSCTL_RCGCI2C_R3 0x00000008 // I2C Module 3 Run Mode Clock
10629
// Gating Control
10630
#define SYSCTL_RCGCI2C_R2 0x00000004 // I2C Module 2 Run Mode Clock
10631
// Gating Control
10632
#define SYSCTL_RCGCI2C_R1 0x00000002 // I2C Module 1 Run Mode Clock
10633
// Gating Control
10634
#define SYSCTL_RCGCI2C_R0 0x00000001 // I2C Module 0 Run Mode Clock
10635
// Gating Control
10636
10637
//*****************************************************************************
10638
//
10639
// The following are defines for the bit fields in the SYSCTL_RCGCUSB register.
10640
//
10641
//*****************************************************************************
10642
#define SYSCTL_RCGCUSB_R0 0x00000001 // USB Module Run Mode Clock Gating
10643
// Control
10644
10645
//*****************************************************************************
10646
//
10647
// The following are defines for the bit fields in the SYSCTL_RCGCCAN register.
10648
//
10649
//*****************************************************************************
10650
#define SYSCTL_RCGCCAN_R1 0x00000002 // CAN Module 1 Run Mode Clock
10651
// Gating Control
10652
#define SYSCTL_RCGCCAN_R0 0x00000001 // CAN Module 0 Run Mode Clock
10653
// Gating Control
10654
10655
//*****************************************************************************
10656
//
10657
// The following are defines for the bit fields in the SYSCTL_RCGCADC register.
10658
//
10659
//*****************************************************************************
10660
#define SYSCTL_RCGCADC_R1 0x00000002 // ADC Module 1 Run Mode Clock
10661
// Gating Control
10662
#define SYSCTL_RCGCADC_R0 0x00000001 // ADC Module 0 Run Mode Clock
10663
// Gating Control
10664
10665
//*****************************************************************************
10666
//
10667
// The following are defines for the bit fields in the SYSCTL_RCGCACMP
10668
// register.
10669
//
10670
//*****************************************************************************
10671
#define SYSCTL_RCGCACMP_R0 0x00000001 // Analog Comparator Module 0 Run
10672
// Mode Clock Gating Control
10673
10674
//*****************************************************************************
10675
//
10676
// The following are defines for the bit fields in the SYSCTL_RCGCPWM register.
10677
//
10678
//*****************************************************************************
10679
#define SYSCTL_RCGCPWM_R1 0x00000002 // PWM Module 1 Run Mode Clock
10680
// Gating Control
10681
#define SYSCTL_RCGCPWM_R0 0x00000001 // PWM Module 0 Run Mode Clock
10682
// Gating Control
10683
10684
//*****************************************************************************
10685
//
10686
// The following are defines for the bit fields in the SYSCTL_RCGCQEI register.
10687
//
10688
//*****************************************************************************
10689
#define SYSCTL_RCGCQEI_R1 0x00000002 // QEI Module 1 Run Mode Clock
10690
// Gating Control
10691
#define SYSCTL_RCGCQEI_R0 0x00000001 // QEI Module 0 Run Mode Clock
10692
// Gating Control
10693
10694
//*****************************************************************************
10695
//
10696
// The following are defines for the bit fields in the SYSCTL_RCGCEEPROM
10697
// register.
10698
//
10699
//*****************************************************************************
10700
#define SYSCTL_RCGCEEPROM_R0 0x00000001 // EEPROM Module Run Mode Clock
10701
// Gating Control
10702
10703
//*****************************************************************************
10704
//
10705
// The following are defines for the bit fields in the SYSCTL_RCGCWTIMER
10706
// register.
10707
//
10708
//*****************************************************************************
10709
#define SYSCTL_RCGCWTIMER_R5 0x00000020 // 32/64-Bit Wide General-Purpose
10710
// Timer 5 Run Mode Clock Gating
10711
// Control
10712
#define SYSCTL_RCGCWTIMER_R4 0x00000010 // 32/64-Bit Wide General-Purpose
10713
// Timer 4 Run Mode Clock Gating
10714
// Control
10715
#define SYSCTL_RCGCWTIMER_R3 0x00000008 // 32/64-Bit Wide General-Purpose
10716
// Timer 3 Run Mode Clock Gating
10717
// Control
10718
#define SYSCTL_RCGCWTIMER_R2 0x00000004 // 32/64-Bit Wide General-Purpose
10719
// Timer 2 Run Mode Clock Gating
10720
// Control
10721
#define SYSCTL_RCGCWTIMER_R1 0x00000002 // 32/64-Bit Wide General-Purpose
10722
// Timer 1 Run Mode Clock Gating
10723
// Control
10724
#define SYSCTL_RCGCWTIMER_R0 0x00000001 // 32/64-Bit Wide General-Purpose
10725
// Timer 0 Run Mode Clock Gating
10726
// Control
10727
10728
//*****************************************************************************
10729
//
10730
// The following are defines for the bit fields in the SYSCTL_SCGCWD register.
10731
//
10732
//*****************************************************************************
10733
#define SYSCTL_SCGCWD_S1 0x00000002 // Watchdog Timer 1 Sleep Mode
10734
// Clock Gating Control
10735
#define SYSCTL_SCGCWD_S0 0x00000001 // Watchdog Timer 0 Sleep Mode
10736
// Clock Gating Control
10737
10738
//*****************************************************************************
10739
//
10740
// The following are defines for the bit fields in the SYSCTL_SCGCTIMER
10741
// register.
10742
//
10743
//*****************************************************************************
10744
#define SYSCTL_SCGCTIMER_S5 0x00000020 // 16/32-Bit General-Purpose Timer
10745
// 5 Sleep Mode Clock Gating
10746
// Control
10747
#define SYSCTL_SCGCTIMER_S4 0x00000010 // 16/32-Bit General-Purpose Timer
10748
// 4 Sleep Mode Clock Gating
10749
// Control
10750
#define SYSCTL_SCGCTIMER_S3 0x00000008 // 16/32-Bit General-Purpose Timer
10751
// 3 Sleep Mode Clock Gating
10752
// Control
10753
#define SYSCTL_SCGCTIMER_S2 0x00000004 // 16/32-Bit General-Purpose Timer
10754
// 2 Sleep Mode Clock Gating
10755
// Control
10756
#define SYSCTL_SCGCTIMER_S1 0x00000002 // 16/32-Bit General-Purpose Timer
10757
// 1 Sleep Mode Clock Gating
10758
// Control
10759
#define SYSCTL_SCGCTIMER_S0 0x00000001 // 16/32-Bit General-Purpose Timer
10760
// 0 Sleep Mode Clock Gating
10761
// Control
10762
10763
//*****************************************************************************
10764
//
10765
// The following are defines for the bit fields in the SYSCTL_SCGCGPIO
10766
// register.
10767
//
10768
//*****************************************************************************
10769
#define SYSCTL_SCGCGPIO_S5 0x00000020 // GPIO Port F Sleep Mode Clock
10770
// Gating Control
10771
#define SYSCTL_SCGCGPIO_S4 0x00000010 // GPIO Port E Sleep Mode Clock
10772
// Gating Control
10773
#define SYSCTL_SCGCGPIO_S3 0x00000008 // GPIO Port D Sleep Mode Clock
10774
// Gating Control
10775
#define SYSCTL_SCGCGPIO_S2 0x00000004 // GPIO Port C Sleep Mode Clock
10776
// Gating Control
10777
#define SYSCTL_SCGCGPIO_S1 0x00000002 // GPIO Port B Sleep Mode Clock
10778
// Gating Control
10779
#define SYSCTL_SCGCGPIO_S0 0x00000001 // GPIO Port A Sleep Mode Clock
10780
// Gating Control
10781
10782
//*****************************************************************************
10783
//
10784
// The following are defines for the bit fields in the SYSCTL_SCGCDMA register.
10785
//
10786
//*****************************************************************************
10787
#define SYSCTL_SCGCDMA_S0 0x00000001 // uDMA Module Sleep Mode Clock
10788
// Gating Control
10789
10790
//*****************************************************************************
10791
//
10792
// The following are defines for the bit fields in the SYSCTL_SCGCHIB register.
10793
//
10794
//*****************************************************************************
10795
#define SYSCTL_SCGCHIB_S0 0x00000001 // Hibernation Module Sleep Mode
10796
// Clock Gating Control
10797
10798
//*****************************************************************************
10799
//
10800
// The following are defines for the bit fields in the SYSCTL_SCGCUART
10801
// register.
10802
//
10803
//*****************************************************************************
10804
#define SYSCTL_SCGCUART_S7 0x00000080 // UART Module 7 Sleep Mode Clock
10805
// Gating Control
10806
#define SYSCTL_SCGCUART_S6 0x00000040 // UART Module 6 Sleep Mode Clock
10807
// Gating Control
10808
#define SYSCTL_SCGCUART_S5 0x00000020 // UART Module 5 Sleep Mode Clock
10809
// Gating Control
10810
#define SYSCTL_SCGCUART_S4 0x00000010 // UART Module 4 Sleep Mode Clock
10811
// Gating Control
10812
#define SYSCTL_SCGCUART_S3 0x00000008 // UART Module 3 Sleep Mode Clock
10813
// Gating Control
10814
#define SYSCTL_SCGCUART_S2 0x00000004 // UART Module 2 Sleep Mode Clock
10815
// Gating Control
10816
#define SYSCTL_SCGCUART_S1 0x00000002 // UART Module 1 Sleep Mode Clock
10817
// Gating Control
10818
#define SYSCTL_SCGCUART_S0 0x00000001 // UART Module 0 Sleep Mode Clock
10819
// Gating Control
10820
10821
//*****************************************************************************
10822
//
10823
// The following are defines for the bit fields in the SYSCTL_SCGCSSI register.
10824
//
10825
//*****************************************************************************
10826
#define SYSCTL_SCGCSSI_S3 0x00000008 // SSI Module 3 Sleep Mode Clock
10827
// Gating Control
10828
#define SYSCTL_SCGCSSI_S2 0x00000004 // SSI Module 2 Sleep Mode Clock
10829
// Gating Control
10830
#define SYSCTL_SCGCSSI_S1 0x00000002 // SSI Module 1 Sleep Mode Clock
10831
// Gating Control
10832
#define SYSCTL_SCGCSSI_S0 0x00000001 // SSI Module 0 Sleep Mode Clock
10833
// Gating Control
10834
10835
//*****************************************************************************
10836
//
10837
// The following are defines for the bit fields in the SYSCTL_SCGCI2C register.
10838
//
10839
//*****************************************************************************
10840
#define SYSCTL_SCGCI2C_S3 0x00000008 // I2C Module 3 Sleep Mode Clock
10841
// Gating Control
10842
#define SYSCTL_SCGCI2C_S2 0x00000004 // I2C Module 2 Sleep Mode Clock
10843
// Gating Control
10844
#define SYSCTL_SCGCI2C_S1 0x00000002 // I2C Module 1 Sleep Mode Clock
10845
// Gating Control
10846
#define SYSCTL_SCGCI2C_S0 0x00000001 // I2C Module 0 Sleep Mode Clock
10847
// Gating Control
10848
10849
//*****************************************************************************
10850
//
10851
// The following are defines for the bit fields in the SYSCTL_SCGCUSB register.
10852
//
10853
//*****************************************************************************
10854
#define SYSCTL_SCGCUSB_S0 0x00000001 // USB Module Sleep Mode Clock
10855
// Gating Control
10856
10857
//*****************************************************************************
10858
//
10859
// The following are defines for the bit fields in the SYSCTL_SCGCCAN register.
10860
//
10861
//*****************************************************************************
10862
#define SYSCTL_SCGCCAN_S1 0x00000002 // CAN Module 1 Sleep Mode Clock
10863
// Gating Control
10864
#define SYSCTL_SCGCCAN_S0 0x00000001 // CAN Module 0 Sleep Mode Clock
10865
// Gating Control
10866
10867
//*****************************************************************************
10868
//
10869
// The following are defines for the bit fields in the SYSCTL_SCGCADC register.
10870
//
10871
//*****************************************************************************
10872
#define SYSCTL_SCGCADC_S1 0x00000002 // ADC Module 1 Sleep Mode Clock
10873
// Gating Control
10874
#define SYSCTL_SCGCADC_S0 0x00000001 // ADC Module 0 Sleep Mode Clock
10875
// Gating Control
10876
10877
//*****************************************************************************
10878
//
10879
// The following are defines for the bit fields in the SYSCTL_SCGCACMP
10880
// register.
10881
//
10882
//*****************************************************************************
10883
#define SYSCTL_SCGCACMP_S0 0x00000001 // Analog Comparator Module 0 Sleep
10884
// Mode Clock Gating Control
10885
10886
//*****************************************************************************
10887
//
10888
// The following are defines for the bit fields in the SYSCTL_SCGCPWM register.
10889
//
10890
//*****************************************************************************
10891
#define SYSCTL_SCGCPWM_S1 0x00000002 // PWM Module 1 Sleep Mode Clock
10892
// Gating Control
10893
#define SYSCTL_SCGCPWM_S0 0x00000001 // PWM Module 0 Sleep Mode Clock
10894
// Gating Control
10895
10896
//*****************************************************************************
10897
//
10898
// The following are defines for the bit fields in the SYSCTL_SCGCQEI register.
10899
//
10900
//*****************************************************************************
10901
#define SYSCTL_SCGCQEI_S1 0x00000002 // QEI Module 1 Sleep Mode Clock
10902
// Gating Control
10903
#define SYSCTL_SCGCQEI_S0 0x00000001 // QEI Module 0 Sleep Mode Clock
10904
// Gating Control
10905
10906
//*****************************************************************************
10907
//
10908
// The following are defines for the bit fields in the SYSCTL_SCGCEEPROM
10909
// register.
10910
//
10911
//*****************************************************************************
10912
#define SYSCTL_SCGCEEPROM_S0 0x00000001 // EEPROM Module Sleep Mode Clock
10913
// Gating Control
10914
10915
//*****************************************************************************
10916
//
10917
// The following are defines for the bit fields in the SYSCTL_SCGCWTIMER
10918
// register.
10919
//
10920
//*****************************************************************************
10921
#define SYSCTL_SCGCWTIMER_S5 0x00000020 // 32/64-Bit Wide General-Purpose
10922
// Timer 5 Sleep Mode Clock Gating
10923
// Control
10924
#define SYSCTL_SCGCWTIMER_S4 0x00000010 // 32/64-Bit Wide General-Purpose
10925
// Timer 4 Sleep Mode Clock Gating
10926
// Control
10927
#define SYSCTL_SCGCWTIMER_S3 0x00000008 // 32/64-Bit Wide General-Purpose
10928
// Timer 3 Sleep Mode Clock Gating
10929
// Control
10930
#define SYSCTL_SCGCWTIMER_S2 0x00000004 // 32/64-Bit Wide General-Purpose
10931
// Timer 2 Sleep Mode Clock Gating
10932
// Control
10933
#define SYSCTL_SCGCWTIMER_S1 0x00000002 // 32/64-Bit Wide General-Purpose
10934
// Timer 1 Sleep Mode Clock Gating
10935
// Control
10936
#define SYSCTL_SCGCWTIMER_S0 0x00000001 // 32/64-Bit Wide General-Purpose
10937
// Timer 0 Sleep Mode Clock Gating
10938
// Control
10939
10940
//*****************************************************************************
10941
//
10942
// The following are defines for the bit fields in the SYSCTL_DCGCWD register.
10943
//
10944
//*****************************************************************************
10945
#define SYSCTL_DCGCWD_D1 0x00000002 // Watchdog Timer 1 Deep-Sleep Mode
10946
// Clock Gating Control
10947
#define SYSCTL_DCGCWD_D0 0x00000001 // Watchdog Timer 0 Deep-Sleep Mode
10948
// Clock Gating Control
10949
10950
//*****************************************************************************
10951
//
10952
// The following are defines for the bit fields in the SYSCTL_DCGCTIMER
10953
// register.
10954
//
10955
//*****************************************************************************
10956
#define SYSCTL_DCGCTIMER_D5 0x00000020 // 16/32-Bit General-Purpose Timer
10957
// 5 Deep-Sleep Mode Clock Gating
10958
// Control
10959
#define SYSCTL_DCGCTIMER_D4 0x00000010 // 16/32-Bit General-Purpose Timer
10960
// 4 Deep-Sleep Mode Clock Gating
10961
// Control
10962
#define SYSCTL_DCGCTIMER_D3 0x00000008 // 16/32-Bit General-Purpose Timer
10963
// 3 Deep-Sleep Mode Clock Gating
10964
// Control
10965
#define SYSCTL_DCGCTIMER_D2 0x00000004 // 16/32-Bit General-Purpose Timer
10966
// 2 Deep-Sleep Mode Clock Gating
10967
// Control
10968
#define SYSCTL_DCGCTIMER_D1 0x00000002 // 16/32-Bit General-Purpose Timer
10969
// 1 Deep-Sleep Mode Clock Gating
10970
// Control
10971
#define SYSCTL_DCGCTIMER_D0 0x00000001 // 16/32-Bit General-Purpose Timer
10972
// 0 Deep-Sleep Mode Clock Gating
10973
// Control
10974
10975
//*****************************************************************************
10976
//
10977
// The following are defines for the bit fields in the SYSCTL_DCGCGPIO
10978
// register.
10979
//
10980
//*****************************************************************************
10981
#define SYSCTL_DCGCGPIO_D5 0x00000020 // GPIO Port F Deep-Sleep Mode
10982
// Clock Gating Control
10983
#define SYSCTL_DCGCGPIO_D4 0x00000010 // GPIO Port E Deep-Sleep Mode
10984
// Clock Gating Control
10985
#define SYSCTL_DCGCGPIO_D3 0x00000008 // GPIO Port D Deep-Sleep Mode
10986
// Clock Gating Control
10987
#define SYSCTL_DCGCGPIO_D2 0x00000004 // GPIO Port C Deep-Sleep Mode
10988
// Clock Gating Control
10989
#define SYSCTL_DCGCGPIO_D1 0x00000002 // GPIO Port B Deep-Sleep Mode
10990
// Clock Gating Control
10991
#define SYSCTL_DCGCGPIO_D0 0x00000001 // GPIO Port A Deep-Sleep Mode
10992
// Clock Gating Control
10993
10994
//*****************************************************************************
10995
//
10996
// The following are defines for the bit fields in the SYSCTL_DCGCDMA register.
10997
//
10998
//*****************************************************************************
10999
#define SYSCTL_DCGCDMA_D0 0x00000001 // uDMA Module Deep-Sleep Mode
11000
// Clock Gating Control
11001
11002
//*****************************************************************************
11003
//
11004
// The following are defines for the bit fields in the SYSCTL_DCGCHIB register.
11005
//
11006
//*****************************************************************************
11007
#define SYSCTL_DCGCHIB_D0 0x00000001 // Hibernation Module Deep-Sleep
11008
// Mode Clock Gating Control
11009
11010
//*****************************************************************************
11011
//
11012
// The following are defines for the bit fields in the SYSCTL_DCGCUART
11013
// register.
11014
//
11015
//*****************************************************************************
11016
#define SYSCTL_DCGCUART_D7 0x00000080 // UART Module 7 Deep-Sleep Mode
11017
// Clock Gating Control
11018
#define SYSCTL_DCGCUART_D6 0x00000040 // UART Module 6 Deep-Sleep Mode
11019
// Clock Gating Control
11020
#define SYSCTL_DCGCUART_D5 0x00000020 // UART Module 5 Deep-Sleep Mode
11021
// Clock Gating Control
11022
#define SYSCTL_DCGCUART_D4 0x00000010 // UART Module 4 Deep-Sleep Mode
11023
// Clock Gating Control
11024
#define SYSCTL_DCGCUART_D3 0x00000008 // UART Module 3 Deep-Sleep Mode
11025
// Clock Gating Control
11026
#define SYSCTL_DCGCUART_D2 0x00000004 // UART Module 2 Deep-Sleep Mode
11027
// Clock Gating Control
11028
#define SYSCTL_DCGCUART_D1 0x00000002 // UART Module 1 Deep-Sleep Mode
11029
// Clock Gating Control
11030
#define SYSCTL_DCGCUART_D0 0x00000001 // UART Module 0 Deep-Sleep Mode
11031
// Clock Gating Control
11032
11033
//*****************************************************************************
11034
//
11035
// The following are defines for the bit fields in the SYSCTL_DCGCSSI register.
11036
//
11037
//*****************************************************************************
11038
#define SYSCTL_DCGCSSI_D3 0x00000008 // SSI Module 3 Deep-Sleep Mode
11039
// Clock Gating Control
11040
#define SYSCTL_DCGCSSI_D2 0x00000004 // SSI Module 2 Deep-Sleep Mode
11041
// Clock Gating Control
11042
#define SYSCTL_DCGCSSI_D1 0x00000002 // SSI Module 1 Deep-Sleep Mode
11043
// Clock Gating Control
11044
#define SYSCTL_DCGCSSI_D0 0x00000001 // SSI Module 0 Deep-Sleep Mode
11045
// Clock Gating Control
11046
11047
//*****************************************************************************
11048
//
11049
// The following are defines for the bit fields in the SYSCTL_DCGCI2C register.
11050
//
11051
//*****************************************************************************
11052
#define SYSCTL_DCGCI2C_D3 0x00000008 // I2C Module 3 Deep-Sleep Mode
11053
// Clock Gating Control
11054
#define SYSCTL_DCGCI2C_D2 0x00000004 // I2C Module 2 Deep-Sleep Mode
11055
// Clock Gating Control
11056
#define SYSCTL_DCGCI2C_D1 0x00000002 // I2C Module 1 Deep-Sleep Mode
11057
// Clock Gating Control
11058
#define SYSCTL_DCGCI2C_D0 0x00000001 // I2C Module 0 Deep-Sleep Mode
11059
// Clock Gating Control
11060
11061
//*****************************************************************************
11062
//
11063
// The following are defines for the bit fields in the SYSCTL_DCGCUSB register.
11064
//
11065
//*****************************************************************************
11066
#define SYSCTL_DCGCUSB_D0 0x00000001 // USB Module Deep-Sleep Mode Clock
11067
// Gating Control
11068
11069
//*****************************************************************************
11070
//
11071
// The following are defines for the bit fields in the SYSCTL_DCGCCAN register.
11072
//
11073
//*****************************************************************************
11074
#define SYSCTL_DCGCCAN_D1 0x00000002 // CAN Module 1 Deep-Sleep Mode
11075
// Clock Gating Control
11076
#define SYSCTL_DCGCCAN_D0 0x00000001 // CAN Module 0 Deep-Sleep Mode
11077
// Clock Gating Control
11078
11079
//*****************************************************************************
11080
//
11081
// The following are defines for the bit fields in the SYSCTL_DCGCADC register.
11082
//
11083
//*****************************************************************************
11084
#define SYSCTL_DCGCADC_D1 0x00000002 // ADC Module 1 Deep-Sleep Mode
11085
// Clock Gating Control
11086
#define SYSCTL_DCGCADC_D0 0x00000001 // ADC Module 0 Deep-Sleep Mode
11087
// Clock Gating Control
11088
11089
//*****************************************************************************
11090
//
11091
// The following are defines for the bit fields in the SYSCTL_DCGCACMP
11092
// register.
11093
//
11094
//*****************************************************************************
11095
#define SYSCTL_DCGCACMP_D0 0x00000001 // Analog Comparator Module 0
11096
// Deep-Sleep Mode Clock Gating
11097
// Control
11098
11099
//*****************************************************************************
11100
//
11101
// The following are defines for the bit fields in the SYSCTL_DCGCPWM register.
11102
//
11103
//*****************************************************************************
11104
#define SYSCTL_DCGCPWM_D1 0x00000002 // PWM Module 1 Deep-Sleep Mode
11105
// Clock Gating Control
11106
#define SYSCTL_DCGCPWM_D0 0x00000001 // PWM Module 0 Deep-Sleep Mode
11107
// Clock Gating Control
11108
11109
//*****************************************************************************
11110
//
11111
// The following are defines for the bit fields in the SYSCTL_DCGCQEI register.
11112
//
11113
//*****************************************************************************
11114
#define SYSCTL_DCGCQEI_D1 0x00000002 // QEI Module 1 Deep-Sleep Mode
11115
// Clock Gating Control
11116
#define SYSCTL_DCGCQEI_D0 0x00000001 // QEI Module 0 Deep-Sleep Mode
11117
// Clock Gating Control
11118
11119
//*****************************************************************************
11120
//
11121
// The following are defines for the bit fields in the SYSCTL_DCGCEEPROM
11122
// register.
11123
//
11124
//*****************************************************************************
11125
#define SYSCTL_DCGCEEPROM_D0 0x00000001 // EEPROM Module Deep-Sleep Mode
11126
// Clock Gating Control
11127
11128
//*****************************************************************************
11129
//
11130
// The following are defines for the bit fields in the SYSCTL_DCGCWTIMER
11131
// register.
11132
//
11133
//*****************************************************************************
11134
#define SYSCTL_DCGCWTIMER_D5 0x00000020 // 32/64-Bit Wide General-Purpose
11135
// Timer 5 Deep-Sleep Mode Clock
11136
// Gating Control
11137
#define SYSCTL_DCGCWTIMER_D4 0x00000010 // 32/64-Bit Wide General-Purpose
11138
// Timer 4 Deep-Sleep Mode Clock
11139
// Gating Control
11140
#define SYSCTL_DCGCWTIMER_D3 0x00000008 // 32/64-Bit Wide General-Purpose
11141
// Timer 3 Deep-Sleep Mode Clock
11142
// Gating Control
11143
#define SYSCTL_DCGCWTIMER_D2 0x00000004 // 32/64-Bit Wide General-Purpose
11144
// Timer 2 Deep-Sleep Mode Clock
11145
// Gating Control
11146
#define SYSCTL_DCGCWTIMER_D1 0x00000002 // 32/64-Bit Wide General-Purpose
11147
// Timer 1 Deep-Sleep Mode Clock
11148
// Gating Control
11149
#define SYSCTL_DCGCWTIMER_D0 0x00000001 // 32/64-Bit Wide General-Purpose
11150
// Timer 0 Deep-Sleep Mode Clock
11151
// Gating Control
11152
11153
//*****************************************************************************
11154
//
11155
// The following are defines for the bit fields in the SYSCTL_PRWD register.
11156
//
11157
//*****************************************************************************
11158
#define SYSCTL_PRWD_R1 0x00000002 // Watchdog Timer 1 Peripheral
11159
// Ready
11160
#define SYSCTL_PRWD_R0 0x00000001 // Watchdog Timer 0 Peripheral
11161
// Ready
11162
11163
//*****************************************************************************
11164
//
11165
// The following are defines for the bit fields in the SYSCTL_PRTIMER register.
11166
//
11167
//*****************************************************************************
11168
#define SYSCTL_PRTIMER_R5 0x00000020 // 16/32-Bit General-Purpose Timer
11169
// 5 Peripheral Ready
11170
#define SYSCTL_PRTIMER_R4 0x00000010 // 16/32-Bit General-Purpose Timer
11171
// 4 Peripheral Ready
11172
#define SYSCTL_PRTIMER_R3 0x00000008 // 16/32-Bit General-Purpose Timer
11173
// 3 Peripheral Ready
11174
#define SYSCTL_PRTIMER_R2 0x00000004 // 16/32-Bit General-Purpose Timer
11175
// 2 Peripheral Ready
11176
#define SYSCTL_PRTIMER_R1 0x00000002 // 16/32-Bit General-Purpose Timer
11177
// 1 Peripheral Ready
11178
#define SYSCTL_PRTIMER_R0 0x00000001 // 16/32-Bit General-Purpose Timer
11179
// 0 Peripheral Ready
11180
11181
//*****************************************************************************
11182
//
11183
// The following are defines for the bit fields in the SYSCTL_PRGPIO register.
11184
//
11185
//*****************************************************************************
11186
#define SYSCTL_PRGPIO_R5 0x00000020 // GPIO Port F Peripheral Ready
11187
#define SYSCTL_PRGPIO_R4 0x00000010 // GPIO Port E Peripheral Ready
11188
#define SYSCTL_PRGPIO_R3 0x00000008 // GPIO Port D Peripheral Ready
11189
#define SYSCTL_PRGPIO_R2 0x00000004 // GPIO Port C Peripheral Ready
11190
#define SYSCTL_PRGPIO_R1 0x00000002 // GPIO Port B Peripheral Ready
11191
#define SYSCTL_PRGPIO_R0 0x00000001 // GPIO Port A Peripheral Ready
11192
11193
//*****************************************************************************
11194
//
11195
// The following are defines for the bit fields in the SYSCTL_PRDMA register.
11196
//
11197
//*****************************************************************************
11198
#define SYSCTL_PRDMA_R0 0x00000001 // uDMA Module Peripheral Ready
11199
11200
//*****************************************************************************
11201
//
11202
// The following are defines for the bit fields in the SYSCTL_PRHIB register.
11203
//
11204
//*****************************************************************************
11205
#define SYSCTL_PRHIB_R0 0x00000001 // Hibernation Module Peripheral
11206
// Ready
11207
11208
//*****************************************************************************
11209
//
11210
// The following are defines for the bit fields in the SYSCTL_PRUART register.
11211
//
11212
//*****************************************************************************
11213
#define SYSCTL_PRUART_R7 0x00000080 // UART Module 7 Peripheral Ready
11214
#define SYSCTL_PRUART_R6 0x00000040 // UART Module 6 Peripheral Ready
11215
#define SYSCTL_PRUART_R5 0x00000020 // UART Module 5 Peripheral Ready
11216
#define SYSCTL_PRUART_R4 0x00000010 // UART Module 4 Peripheral Ready
11217
#define SYSCTL_PRUART_R3 0x00000008 // UART Module 3 Peripheral Ready
11218
#define SYSCTL_PRUART_R2 0x00000004 // UART Module 2 Peripheral Ready
11219
#define SYSCTL_PRUART_R1 0x00000002 // UART Module 1 Peripheral Ready
11220
#define SYSCTL_PRUART_R0 0x00000001 // UART Module 0 Peripheral Ready
11221
11222
//*****************************************************************************
11223
//
11224
// The following are defines for the bit fields in the SYSCTL_PRSSI register.
11225
//
11226
//*****************************************************************************
11227
#define SYSCTL_PRSSI_R3 0x00000008 // SSI Module 3 Peripheral Ready
11228
#define SYSCTL_PRSSI_R2 0x00000004 // SSI Module 2 Peripheral Ready
11229
#define SYSCTL_PRSSI_R1 0x00000002 // SSI Module 1 Peripheral Ready
11230
#define SYSCTL_PRSSI_R0 0x00000001 // SSI Module 0 Peripheral Ready
11231
11232
//*****************************************************************************
11233
//
11234
// The following are defines for the bit fields in the SYSCTL_PRI2C register.
11235
//
11236
//*****************************************************************************
11237
#define SYSCTL_PRI2C_R3 0x00000008 // I2C Module 3 Peripheral Ready
11238
#define SYSCTL_PRI2C_R2 0x00000004 // I2C Module 2 Peripheral Ready
11239
#define SYSCTL_PRI2C_R1 0x00000002 // I2C Module 1 Peripheral Ready
11240
#define SYSCTL_PRI2C_R0 0x00000001 // I2C Module 0 Peripheral Ready
11241
11242
//*****************************************************************************
11243
//
11244
// The following are defines for the bit fields in the SYSCTL_PRUSB register.
11245
//
11246
//*****************************************************************************
11247
#define SYSCTL_PRUSB_R0 0x00000001 // USB Module Peripheral Ready
11248
11249
//*****************************************************************************
11250
//
11251
// The following are defines for the bit fields in the SYSCTL_PRCAN register.
11252
//
11253
//*****************************************************************************
11254
#define SYSCTL_PRCAN_R1 0x00000002 // CAN Module 1 Peripheral Ready
11255
#define SYSCTL_PRCAN_R0 0x00000001 // CAN Module 0 Peripheral Ready
11256
11257
//*****************************************************************************
11258
//
11259
// The following are defines for the bit fields in the SYSCTL_PRADC register.
11260
//
11261
//*****************************************************************************
11262
#define SYSCTL_PRADC_R1 0x00000002 // ADC Module 1 Peripheral Ready
11263
#define SYSCTL_PRADC_R0 0x00000001 // ADC Module 0 Peripheral Ready
11264
11265
//*****************************************************************************
11266
//
11267
// The following are defines for the bit fields in the SYSCTL_PRACMP register.
11268
//
11269
//*****************************************************************************
11270
#define SYSCTL_PRACMP_R0 0x00000001 // Analog Comparator Module 0
11271
// Peripheral Ready
11272
11273
//*****************************************************************************
11274
//
11275
// The following are defines for the bit fields in the SYSCTL_PRPWM register.
11276
//
11277
//*****************************************************************************
11278
#define SYSCTL_PRPWM_R1 0x00000002 // PWM Module 1 Peripheral Ready
11279
#define SYSCTL_PRPWM_R0 0x00000001 // PWM Module 0 Peripheral Ready
11280
11281
//*****************************************************************************
11282
//
11283
// The following are defines for the bit fields in the SYSCTL_PRQEI register.
11284
//
11285
//*****************************************************************************
11286
#define SYSCTL_PRQEI_R1 0x00000002 // QEI Module 1 Peripheral Ready
11287
#define SYSCTL_PRQEI_R0 0x00000001 // QEI Module 0 Peripheral Ready
11288
11289
//*****************************************************************************
11290
//
11291
// The following are defines for the bit fields in the SYSCTL_PREEPROM
11292
// register.
11293
//
11294
//*****************************************************************************
11295
#define SYSCTL_PREEPROM_R0 0x00000001 // EEPROM Module Peripheral Ready
11296
11297
//*****************************************************************************
11298
//
11299
// The following are defines for the bit fields in the SYSCTL_PRWTIMER
11300
// register.
11301
//
11302
//*****************************************************************************
11303
#define SYSCTL_PRWTIMER_R5 0x00000020 // 32/64-Bit Wide General-Purpose
11304
// Timer 5 Peripheral Ready
11305
#define SYSCTL_PRWTIMER_R4 0x00000010 // 32/64-Bit Wide General-Purpose
11306
// Timer 4 Peripheral Ready
11307
#define SYSCTL_PRWTIMER_R3 0x00000008 // 32/64-Bit Wide General-Purpose
11308
// Timer 3 Peripheral Ready
11309
#define SYSCTL_PRWTIMER_R2 0x00000004 // 32/64-Bit Wide General-Purpose
11310
// Timer 2 Peripheral Ready
11311
#define SYSCTL_PRWTIMER_R1 0x00000002 // 32/64-Bit Wide General-Purpose
11312
// Timer 1 Peripheral Ready
11313
#define SYSCTL_PRWTIMER_R0 0x00000001 // 32/64-Bit Wide General-Purpose
11314
// Timer 0 Peripheral Ready
11315
11316
//*****************************************************************************
11317
//
11318
// The following are defines for the bit fields in the UDMA_STAT register.
11319
//
11320
//*****************************************************************************
11321
#define UDMA_STAT_DMACHANS_M 0x001F0000 // Available uDMA Channels Minus 1
11322
#define UDMA_STAT_STATE_M 0x000000F0 // Control State Machine Status
11323
#define UDMA_STAT_STATE_IDLE 0x00000000 // Idle
11324
#define UDMA_STAT_STATE_RD_CTRL 0x00000010 // Reading channel controller data
11325
#define UDMA_STAT_STATE_RD_SRCENDP \
11326
0x00000020 // Reading source end pointer
11327
#define UDMA_STAT_STATE_RD_DSTENDP \
11328
0x00000030 // Reading destination end pointer
11329
#define UDMA_STAT_STATE_RD_SRCDAT \
11330
0x00000040 // Reading source data
11331
#define UDMA_STAT_STATE_WR_DSTDAT \
11332
0x00000050 // Writing destination data
11333
#define UDMA_STAT_STATE_WAIT 0x00000060 // Waiting for uDMA request to
11334
// clear
11335
#define UDMA_STAT_STATE_WR_CTRL 0x00000070 // Writing channel controller data
11336
#define UDMA_STAT_STATE_STALL 0x00000080 // Stalled
11337
#define UDMA_STAT_STATE_DONE 0x00000090 // Done
11338
#define UDMA_STAT_STATE_UNDEF 0x000000A0 // Undefined
11339
#define UDMA_STAT_MASTEN 0x00000001 // Master Enable Status
11340
#define UDMA_STAT_DMACHANS_S 16
11341
11342
//*****************************************************************************
11343
//
11344
// The following are defines for the bit fields in the UDMA_CFG register.
11345
//
11346
//*****************************************************************************
11347
#define UDMA_CFG_MASTEN 0x00000001 // Controller Master Enable
11348
11349
//*****************************************************************************
11350
//
11351
// The following are defines for the bit fields in the UDMA_CTLBASE register.
11352
//
11353
//*****************************************************************************
11354
#define UDMA_CTLBASE_ADDR_M 0xFFFFFC00 // Channel Control Base Address
11355
#define UDMA_CTLBASE_ADDR_S 10
11356
11357
//*****************************************************************************
11358
//
11359
// The following are defines for the bit fields in the UDMA_ALTBASE register.
11360
//
11361
//*****************************************************************************
11362
#define UDMA_ALTBASE_ADDR_M 0xFFFFFFFF // Alternate Channel Address
11363
// Pointer
11364
#define UDMA_ALTBASE_ADDR_S 0
11365
11366
//*****************************************************************************
11367
//
11368
// The following are defines for the bit fields in the UDMA_WAITSTAT register.
11369
//
11370
//*****************************************************************************
11371
#define UDMA_WAITSTAT_WAITREQ_M 0xFFFFFFFF // Channel [n] Wait Status
11372
11373
//*****************************************************************************
11374
//
11375
// The following are defines for the bit fields in the UDMA_SWREQ register.
11376
//
11377
//*****************************************************************************
11378
#define UDMA_SWREQ_M 0xFFFFFFFF // Channel [n] Software Request
11379
11380
//*****************************************************************************
11381
//
11382
// The following are defines for the bit fields in the UDMA_USEBURSTSET
11383
// register.
11384
//
11385
//*****************************************************************************
11386
#define UDMA_USEBURSTSET_SET_M 0xFFFFFFFF // Channel [n] Useburst Set
11387
11388
//*****************************************************************************
11389
//
11390
// The following are defines for the bit fields in the UDMA_USEBURSTCLR
11391
// register.
11392
//
11393
//*****************************************************************************
11394
#define UDMA_USEBURSTCLR_CLR_M 0xFFFFFFFF // Channel [n] Useburst Clear
11395
11396
//*****************************************************************************
11397
//
11398
// The following are defines for the bit fields in the UDMA_REQMASKSET
11399
// register.
11400
//
11401
//*****************************************************************************
11402
#define UDMA_REQMASKSET_SET_M 0xFFFFFFFF // Channel [n] Request Mask Set
11403
11404
//*****************************************************************************
11405
//
11406
// The following are defines for the bit fields in the UDMA_REQMASKCLR
11407
// register.
11408
//
11409
//*****************************************************************************
11410
#define UDMA_REQMASKCLR_CLR_M 0xFFFFFFFF // Channel [n] Request Mask Clear
11411
11412
//*****************************************************************************
11413
//
11414
// The following are defines for the bit fields in the UDMA_ENASET register.
11415
//
11416
//*****************************************************************************
11417
#define UDMA_ENASET_SET_M 0xFFFFFFFF // Channel [n] Enable Set
11418
11419
//*****************************************************************************
11420
//
11421
// The following are defines for the bit fields in the UDMA_ENACLR register.
11422
//
11423
//*****************************************************************************
11424
#define UDMA_ENACLR_CLR_M 0xFFFFFFFF // Clear Channel [n] Enable Clear
11425
11426
//*****************************************************************************
11427
//
11428
// The following are defines for the bit fields in the UDMA_ALTSET register.
11429
//
11430
//*****************************************************************************
11431
#define UDMA_ALTSET_SET_M 0xFFFFFFFF // Channel [n] Alternate Set
11432
11433
//*****************************************************************************
11434
//
11435
// The following are defines for the bit fields in the UDMA_ALTCLR register.
11436
//
11437
//*****************************************************************************
11438
#define UDMA_ALTCLR_CLR_M 0xFFFFFFFF // Channel [n] Alternate Clear
11439
11440
//*****************************************************************************
11441
//
11442
// The following are defines for the bit fields in the UDMA_PRIOSET register.
11443
//
11444
//*****************************************************************************
11445
#define UDMA_PRIOSET_SET_M 0xFFFFFFFF // Channel [n] Priority Set
11446
11447
//*****************************************************************************
11448
//
11449
// The following are defines for the bit fields in the UDMA_PRIOCLR register.
11450
//
11451
//*****************************************************************************
11452
#define UDMA_PRIOCLR_CLR_M 0xFFFFFFFF // Channel [n] Priority Clear
11453
11454
//*****************************************************************************
11455
//
11456
// The following are defines for the bit fields in the UDMA_ERRCLR register.
11457
//
11458
//*****************************************************************************
11459
#define UDMA_ERRCLR_ERRCLR 0x00000001 // uDMA Bus Error Status
11460
11461
//*****************************************************************************
11462
//
11463
// The following are defines for the bit fields in the UDMA_CHASGN register.
11464
//
11465
//*****************************************************************************
11466
#define UDMA_CHASGN_M 0xFFFFFFFF // Channel [n] Assignment Select
11467
#define UDMA_CHASGN_PRIMARY 0x00000000 // Use the primary channel
11468
// assignment
11469
#define UDMA_CHASGN_SECONDARY 0x00000001 // Use the secondary channel
11470
// assignment
11471
11472
//*****************************************************************************
11473
//
11474
// The following are defines for the bit fields in the UDMA_CHIS register.
11475
//
11476
//*****************************************************************************
11477
#define UDMA_CHIS_M 0xFFFFFFFF // Channel [n] Interrupt Status
11478
11479
//*****************************************************************************
11480
//
11481
// The following are defines for the bit fields in the UDMA_CHMAP0 register.
11482
//
11483
//*****************************************************************************
11484
#define UDMA_CHMAP0_CH7SEL_M 0xF0000000 // uDMA Channel 7 Source Select
11485
#define UDMA_CHMAP0_CH6SEL_M 0x0F000000 // uDMA Channel 6 Source Select
11486
#define UDMA_CHMAP0_CH5SEL_M 0x00F00000 // uDMA Channel 5 Source Select
11487
#define UDMA_CHMAP0_CH4SEL_M 0x000F0000 // uDMA Channel 4 Source Select
11488
#define UDMA_CHMAP0_CH3SEL_M 0x0000F000 // uDMA Channel 3 Source Select
11489
#define UDMA_CHMAP0_CH2SEL_M 0x00000F00 // uDMA Channel 2 Source Select
11490
#define UDMA_CHMAP0_CH1SEL_M 0x000000F0 // uDMA Channel 1 Source Select
11491
#define UDMA_CHMAP0_CH0SEL_M 0x0000000F // uDMA Channel 0 Source Select
11492
#define UDMA_CHMAP0_CH7SEL_S 28
11493
#define UDMA_CHMAP0_CH6SEL_S 24
11494
#define UDMA_CHMAP0_CH5SEL_S 20
11495
#define UDMA_CHMAP0_CH4SEL_S 16
11496
#define UDMA_CHMAP0_CH3SEL_S 12
11497
#define UDMA_CHMAP0_CH2SEL_S 8
11498
#define UDMA_CHMAP0_CH1SEL_S 4
11499
#define UDMA_CHMAP0_CH0SEL_S 0
11500
11501
//*****************************************************************************
11502
//
11503
// The following are defines for the bit fields in the UDMA_CHMAP1 register.
11504
//
11505
//*****************************************************************************
11506
#define UDMA_CHMAP1_CH15SEL_M 0xF0000000 // uDMA Channel 15 Source Select
11507
#define UDMA_CHMAP1_CH14SEL_M 0x0F000000 // uDMA Channel 14 Source Select
11508
#define UDMA_CHMAP1_CH13SEL_M 0x00F00000 // uDMA Channel 13 Source Select
11509
#define UDMA_CHMAP1_CH12SEL_M 0x000F0000 // uDMA Channel 12 Source Select
11510
#define UDMA_CHMAP1_CH11SEL_M 0x0000F000 // uDMA Channel 11 Source Select
11511
#define UDMA_CHMAP1_CH10SEL_M 0x00000F00 // uDMA Channel 10 Source Select
11512
#define UDMA_CHMAP1_CH9SEL_M 0x000000F0 // uDMA Channel 9 Source Select
11513
#define UDMA_CHMAP1_CH8SEL_M 0x0000000F // uDMA Channel 8 Source Select
11514
#define UDMA_CHMAP1_CH15SEL_S 28
11515
#define UDMA_CHMAP1_CH14SEL_S 24
11516
#define UDMA_CHMAP1_CH13SEL_S 20
11517
#define UDMA_CHMAP1_CH12SEL_S 16
11518
#define UDMA_CHMAP1_CH11SEL_S 12
11519
#define UDMA_CHMAP1_CH10SEL_S 8
11520
#define UDMA_CHMAP1_CH9SEL_S 4
11521
#define UDMA_CHMAP1_CH8SEL_S 0
11522
11523
//*****************************************************************************
11524
//
11525
// The following are defines for the bit fields in the UDMA_CHMAP2 register.
11526
//
11527
//*****************************************************************************
11528
#define UDMA_CHMAP2_CH23SEL_M 0xF0000000 // uDMA Channel 23 Source Select
11529
#define UDMA_CHMAP2_CH22SEL_M 0x0F000000 // uDMA Channel 22 Source Select
11530
#define UDMA_CHMAP2_CH21SEL_M 0x00F00000 // uDMA Channel 21 Source Select
11531
#define UDMA_CHMAP2_CH20SEL_M 0x000F0000 // uDMA Channel 20 Source Select
11532
#define UDMA_CHMAP2_CH19SEL_M 0x0000F000 // uDMA Channel 19 Source Select
11533
#define UDMA_CHMAP2_CH18SEL_M 0x00000F00 // uDMA Channel 18 Source Select
11534
#define UDMA_CHMAP2_CH17SEL_M 0x000000F0 // uDMA Channel 17 Source Select
11535
#define UDMA_CHMAP2_CH16SEL_M 0x0000000F // uDMA Channel 16 Source Select
11536
#define UDMA_CHMAP2_CH23SEL_S 28
11537
#define UDMA_CHMAP2_CH22SEL_S 24
11538
#define UDMA_CHMAP2_CH21SEL_S 20
11539
#define UDMA_CHMAP2_CH20SEL_S 16
11540
#define UDMA_CHMAP2_CH19SEL_S 12
11541
#define UDMA_CHMAP2_CH18SEL_S 8
11542
#define UDMA_CHMAP2_CH17SEL_S 4
11543
#define UDMA_CHMAP2_CH16SEL_S 0
11544
11545
//*****************************************************************************
11546
//
11547
// The following are defines for the bit fields in the UDMA_CHMAP3 register.
11548
//
11549
//*****************************************************************************
11550
#define UDMA_CHMAP3_CH31SEL_M 0xF0000000 // uDMA Channel 31 Source Select
11551
#define UDMA_CHMAP3_CH30SEL_M 0x0F000000 // uDMA Channel 30 Source Select
11552
#define UDMA_CHMAP3_CH29SEL_M 0x00F00000 // uDMA Channel 29 Source Select
11553
#define UDMA_CHMAP3_CH28SEL_M 0x000F0000 // uDMA Channel 28 Source Select
11554
#define UDMA_CHMAP3_CH27SEL_M 0x0000F000 // uDMA Channel 27 Source Select
11555
#define UDMA_CHMAP3_CH26SEL_M 0x00000F00 // uDMA Channel 26 Source Select
11556
#define UDMA_CHMAP3_CH25SEL_M 0x000000F0 // uDMA Channel 25 Source Select
11557
#define UDMA_CHMAP3_CH24SEL_M 0x0000000F // uDMA Channel 24 Source Select
11558
#define UDMA_CHMAP3_CH31SEL_S 28
11559
#define UDMA_CHMAP3_CH30SEL_S 24
11560
#define UDMA_CHMAP3_CH29SEL_S 20
11561
#define UDMA_CHMAP3_CH28SEL_S 16
11562
#define UDMA_CHMAP3_CH27SEL_S 12
11563
#define UDMA_CHMAP3_CH26SEL_S 8
11564
#define UDMA_CHMAP3_CH25SEL_S 4
11565
#define UDMA_CHMAP3_CH24SEL_S 0
11566
11567
//*****************************************************************************
11568
//
11569
// The following are defines for the bit fields in the UDMA_O_SRCENDP register.
11570
//
11571
//*****************************************************************************
11572
#define UDMA_SRCENDP_ADDR_M 0xFFFFFFFF // Source Address End Pointer
11573
#define UDMA_SRCENDP_ADDR_S 0
11574
11575
//*****************************************************************************
11576
//
11577
// The following are defines for the bit fields in the UDMA_O_DSTENDP register.
11578
//
11579
//*****************************************************************************
11580
#define UDMA_DSTENDP_ADDR_M 0xFFFFFFFF // Destination Address End Pointer
11581
#define UDMA_DSTENDP_ADDR_S 0
11582
11583
//*****************************************************************************
11584
//
11585
// The following are defines for the bit fields in the UDMA_O_CHCTL register.
11586
//
11587
//*****************************************************************************
11588
#define UDMA_CHCTL_DSTINC_M 0xC0000000 // Destination Address Increment
11589
#define UDMA_CHCTL_DSTINC_8 0x00000000 // Byte
11590
#define UDMA_CHCTL_DSTINC_16 0x40000000 // Half-word
11591
#define UDMA_CHCTL_DSTINC_32 0x80000000 // Word
11592
#define UDMA_CHCTL_DSTINC_NONE 0xC0000000 // No increment
11593
#define UDMA_CHCTL_DSTSIZE_M 0x30000000 // Destination Data Size
11594
#define UDMA_CHCTL_DSTSIZE_8 0x00000000 // Byte
11595
#define UDMA_CHCTL_DSTSIZE_16 0x10000000 // Half-word
11596
#define UDMA_CHCTL_DSTSIZE_32 0x20000000 // Word
11597
#define UDMA_CHCTL_SRCINC_M 0x0C000000 // Source Address Increment
11598
#define UDMA_CHCTL_SRCINC_8 0x00000000 // Byte
11599
#define UDMA_CHCTL_SRCINC_16 0x04000000 // Half-word
11600
#define UDMA_CHCTL_SRCINC_32 0x08000000 // Word
11601
#define UDMA_CHCTL_SRCINC_NONE 0x0C000000 // No increment
11602
#define UDMA_CHCTL_SRCSIZE_M 0x03000000 // Source Data Size
11603
#define UDMA_CHCTL_SRCSIZE_8 0x00000000 // Byte
11604
#define UDMA_CHCTL_SRCSIZE_16 0x01000000 // Half-word
11605
#define UDMA_CHCTL_SRCSIZE_32 0x02000000 // Word
11606
#define UDMA_CHCTL_ARBSIZE_M 0x0003C000 // Arbitration Size
11607
#define UDMA_CHCTL_ARBSIZE_1 0x00000000 // 1 Transfer
11608
#define UDMA_CHCTL_ARBSIZE_2 0x00004000 // 2 Transfers
11609
#define UDMA_CHCTL_ARBSIZE_4 0x00008000 // 4 Transfers
11610
#define UDMA_CHCTL_ARBSIZE_8 0x0000C000 // 8 Transfers
11611
#define UDMA_CHCTL_ARBSIZE_16 0x00010000 // 16 Transfers
11612
#define UDMA_CHCTL_ARBSIZE_32 0x00014000 // 32 Transfers
11613
#define UDMA_CHCTL_ARBSIZE_64 0x00018000 // 64 Transfers
11614
#define UDMA_CHCTL_ARBSIZE_128 0x0001C000 // 128 Transfers
11615
#define UDMA_CHCTL_ARBSIZE_256 0x00020000 // 256 Transfers
11616
#define UDMA_CHCTL_ARBSIZE_512 0x00024000 // 512 Transfers
11617
#define UDMA_CHCTL_ARBSIZE_1024 0x00028000 // 1024 Transfers
11618
#define UDMA_CHCTL_XFERSIZE_M 0x00003FF0 // Transfer Size (minus 1)
11619
#define UDMA_CHCTL_NXTUSEBURST 0x00000008 // Next Useburst
11620
#define UDMA_CHCTL_XFERMODE_M 0x00000007 // uDMA Transfer Mode
11621
#define UDMA_CHCTL_XFERMODE_STOP \
11622
0x00000000 // Stop
11623
#define UDMA_CHCTL_XFERMODE_BASIC \
11624
0x00000001 // Basic
11625
#define UDMA_CHCTL_XFERMODE_AUTO \
11626
0x00000002 // Auto-Request
11627
#define UDMA_CHCTL_XFERMODE_PINGPONG \
11628
0x00000003 // Ping-Pong
11629
#define UDMA_CHCTL_XFERMODE_MEM_SG \
11630
0x00000004 // Memory Scatter-Gather
11631
#define UDMA_CHCTL_XFERMODE_MEM_SGA \
11632
0x00000005 // Alternate Memory Scatter-Gather
11633
#define UDMA_CHCTL_XFERMODE_PER_SG \
11634
0x00000006 // Peripheral Scatter-Gather
11635
#define UDMA_CHCTL_XFERMODE_PER_SGA \
11636
0x00000007 // Alternate Peripheral
11637
// Scatter-Gather
11638
#define UDMA_CHCTL_XFERSIZE_S 4
11639
11640
//*****************************************************************************
11641
//
11642
// The following are defines for the bit fields in the NVIC_ACTLR register.
11643
//
11644
//*****************************************************************************
11645
#define NVIC_ACTLR_DISOOFP 0x00000200 // Disable Out-Of-Order Floating
11646
// Point
11647
#define NVIC_ACTLR_DISFPCA 0x00000100 // Disable CONTROL
11648
#define NVIC_ACTLR_DISFOLD 0x00000004 // Disable IT Folding
11649
#define NVIC_ACTLR_DISWBUF 0x00000002 // Disable Write Buffer
11650
#define NVIC_ACTLR_DISMCYC 0x00000001 // Disable Interrupts of Multiple
11651
// Cycle Instructions
11652
11653
//*****************************************************************************
11654
//
11655
// The following are defines for the bit fields in the NVIC_ST_CTRL register.
11656
//
11657
//*****************************************************************************
11658
#define NVIC_ST_CTRL_COUNT 0x00010000 // Count Flag
11659
#define NVIC_ST_CTRL_CLK_SRC 0x00000004 // Clock Source
11660
#define NVIC_ST_CTRL_INTEN 0x00000002 // Interrupt Enable
11661
#define NVIC_ST_CTRL_ENABLE 0x00000001 // Enable
11662
11663
//*****************************************************************************
11664
//
11665
// The following are defines for the bit fields in the NVIC_ST_RELOAD register.
11666
//
11667
//*****************************************************************************
11668
#define NVIC_ST_RELOAD_M 0x00FFFFFF // Reload Value
11669
#define NVIC_ST_RELOAD_S 0
11670
11671
//*****************************************************************************
11672
//
11673
// The following are defines for the bit fields in the NVIC_ST_CURRENT
11674
// register.
11675
//
11676
//*****************************************************************************
11677
#define NVIC_ST_CURRENT_M 0x00FFFFFF // Current Value
11678
#define NVIC_ST_CURRENT_S 0
11679
11680
//*****************************************************************************
11681
//
11682
// The following are defines for the bit fields in the NVIC_EN0 register.
11683
//
11684
//*****************************************************************************
11685
#define NVIC_EN0_INT_M 0xFFFFFFFF // Interrupt Enable
11686
11687
//*****************************************************************************
11688
//
11689
// The following are defines for the bit fields in the NVIC_EN1 register.
11690
//
11691
//*****************************************************************************
11692
#define NVIC_EN1_INT_M 0xFFFFFFFF // Interrupt Enable
11693
11694
//*****************************************************************************
11695
//
11696
// The following are defines for the bit fields in the NVIC_EN2 register.
11697
//
11698
//*****************************************************************************
11699
#define NVIC_EN2_INT_M 0xFFFFFFFF // Interrupt Enable
11700
11701
//*****************************************************************************
11702
//
11703
// The following are defines for the bit fields in the NVIC_EN3 register.
11704
//
11705
//*****************************************************************************
11706
#define NVIC_EN3_INT_M 0xFFFFFFFF // Interrupt Enable
11707
11708
//*****************************************************************************
11709
//
11710
// The following are defines for the bit fields in the NVIC_EN4 register.
11711
//
11712
//*****************************************************************************
11713
#define NVIC_EN4_INT_M 0x000007FF // Interrupt Enable
11714
11715
//*****************************************************************************
11716
//
11717
// The following are defines for the bit fields in the NVIC_DIS0 register.
11718
//
11719
//*****************************************************************************
11720
#define NVIC_DIS0_INT_M 0xFFFFFFFF // Interrupt Disable
11721
11722
//*****************************************************************************
11723
//
11724
// The following are defines for the bit fields in the NVIC_DIS1 register.
11725
//
11726
//*****************************************************************************
11727
#define NVIC_DIS1_INT_M 0xFFFFFFFF // Interrupt Disable
11728
11729
//*****************************************************************************
11730
//
11731
// The following are defines for the bit fields in the NVIC_DIS2 register.
11732
//
11733
//*****************************************************************************
11734
#define NVIC_DIS2_INT_M 0xFFFFFFFF // Interrupt Disable
11735
11736
//*****************************************************************************
11737
//
11738
// The following are defines for the bit fields in the NVIC_DIS3 register.
11739
//
11740
//*****************************************************************************
11741
#define NVIC_DIS3_INT_M 0xFFFFFFFF // Interrupt Disable
11742
11743
//*****************************************************************************
11744
//
11745
// The following are defines for the bit fields in the NVIC_DIS4 register.
11746
//
11747
//*****************************************************************************
11748
#define NVIC_DIS4_INT_M 0x000007FF // Interrupt Disable
11749
11750
//*****************************************************************************
11751
//
11752
// The following are defines for the bit fields in the NVIC_PEND0 register.
11753
//
11754
//*****************************************************************************
11755
#define NVIC_PEND0_INT_M 0xFFFFFFFF // Interrupt Set Pending
11756
11757
//*****************************************************************************
11758
//
11759
// The following are defines for the bit fields in the NVIC_PEND1 register.
11760
//
11761
//*****************************************************************************
11762
#define NVIC_PEND1_INT_M 0xFFFFFFFF // Interrupt Set Pending
11763
11764
//*****************************************************************************
11765
//
11766
// The following are defines for the bit fields in the NVIC_PEND2 register.
11767
//
11768
//*****************************************************************************
11769
#define NVIC_PEND2_INT_M 0xFFFFFFFF // Interrupt Set Pending
11770
11771
//*****************************************************************************
11772
//
11773
// The following are defines for the bit fields in the NVIC_PEND3 register.
11774
//
11775
//*****************************************************************************
11776
#define NVIC_PEND3_INT_M 0xFFFFFFFF // Interrupt Set Pending
11777
11778
//*****************************************************************************
11779
//
11780
// The following are defines for the bit fields in the NVIC_PEND4 register.
11781
//
11782
//*****************************************************************************
11783
#define NVIC_PEND4_INT_M 0x000007FF // Interrupt Set Pending
11784
11785
//*****************************************************************************
11786
//
11787
// The following are defines for the bit fields in the NVIC_UNPEND0 register.
11788
//
11789
//*****************************************************************************
11790
#define NVIC_UNPEND0_INT_M 0xFFFFFFFF // Interrupt Clear Pending
11791
11792
//*****************************************************************************
11793
//
11794
// The following are defines for the bit fields in the NVIC_UNPEND1 register.
11795
//
11796
//*****************************************************************************
11797
#define NVIC_UNPEND1_INT_M 0xFFFFFFFF // Interrupt Clear Pending
11798
11799
//*****************************************************************************
11800
//
11801
// The following are defines for the bit fields in the NVIC_UNPEND2 register.
11802
//
11803
//*****************************************************************************
11804
#define NVIC_UNPEND2_INT_M 0xFFFFFFFF // Interrupt Clear Pending
11805
11806
//*****************************************************************************
11807
//
11808
// The following are defines for the bit fields in the NVIC_UNPEND3 register.
11809
//
11810
//*****************************************************************************
11811
#define NVIC_UNPEND3_INT_M 0xFFFFFFFF // Interrupt Clear Pending
11812
11813
//*****************************************************************************
11814
//
11815
// The following are defines for the bit fields in the NVIC_UNPEND4 register.
11816
//
11817
//*****************************************************************************
11818
#define NVIC_UNPEND4_INT_M 0x000007FF // Interrupt Clear Pending
11819
11820
//*****************************************************************************
11821
//
11822
// The following are defines for the bit fields in the NVIC_ACTIVE0 register.
11823
//
11824
//*****************************************************************************
11825
#define NVIC_ACTIVE0_INT_M 0xFFFFFFFF // Interrupt Active
11826
11827
//*****************************************************************************
11828
//
11829
// The following are defines for the bit fields in the NVIC_ACTIVE1 register.
11830
//
11831
//*****************************************************************************
11832
#define NVIC_ACTIVE1_INT_M 0xFFFFFFFF // Interrupt Active
11833
11834
//*****************************************************************************
11835
//
11836
// The following are defines for the bit fields in the NVIC_ACTIVE2 register.
11837
//
11838
//*****************************************************************************
11839
#define NVIC_ACTIVE2_INT_M 0xFFFFFFFF // Interrupt Active
11840
11841
//*****************************************************************************
11842
//
11843
// The following are defines for the bit fields in the NVIC_ACTIVE3 register.
11844
//
11845
//*****************************************************************************
11846
#define NVIC_ACTIVE3_INT_M 0xFFFFFFFF // Interrupt Active
11847
11848
//*****************************************************************************
11849
//
11850
// The following are defines for the bit fields in the NVIC_ACTIVE4 register.
11851
//
11852
//*****************************************************************************
11853
#define NVIC_ACTIVE4_INT_M 0x000007FF // Interrupt Active
11854
11855
//*****************************************************************************
11856
//
11857
// The following are defines for the bit fields in the NVIC_PRI0 register.
11858
//
11859
//*****************************************************************************
11860
#define NVIC_PRI0_INT3_M 0xE0000000 // Interrupt 3 Priority Mask
11861
#define NVIC_PRI0_INT2_M 0x00E00000 // Interrupt 2 Priority Mask
11862
#define NVIC_PRI0_INT1_M 0x0000E000 // Interrupt 1 Priority Mask
11863
#define NVIC_PRI0_INT0_M 0x000000E0 // Interrupt 0 Priority Mask
11864
#define NVIC_PRI0_INT3_S 29
11865
#define NVIC_PRI0_INT2_S 21
11866
#define NVIC_PRI0_INT1_S 13
11867
#define NVIC_PRI0_INT0_S 5
11868
11869
//*****************************************************************************
11870
//
11871
// The following are defines for the bit fields in the NVIC_PRI1 register.
11872
//
11873
//*****************************************************************************
11874
#define NVIC_PRI1_INT7_M 0xE0000000 // Interrupt 7 Priority Mask
11875
#define NVIC_PRI1_INT6_M 0x00E00000 // Interrupt 6 Priority Mask
11876
#define NVIC_PRI1_INT5_M 0x0000E000 // Interrupt 5 Priority Mask
11877
#define NVIC_PRI1_INT4_M 0x000000E0 // Interrupt 4 Priority Mask
11878
#define NVIC_PRI1_INT7_S 29
11879
#define NVIC_PRI1_INT6_S 21
11880
#define NVIC_PRI1_INT5_S 13
11881
#define NVIC_PRI1_INT4_S 5
11882
11883
//*****************************************************************************
11884
//
11885
// The following are defines for the bit fields in the NVIC_PRI2 register.
11886
//
11887
//*****************************************************************************
11888
#define NVIC_PRI2_INT11_M 0xE0000000 // Interrupt 11 Priority Mask
11889
#define NVIC_PRI2_INT10_M 0x00E00000 // Interrupt 10 Priority Mask
11890
#define NVIC_PRI2_INT9_M 0x0000E000 // Interrupt 9 Priority Mask
11891
#define NVIC_PRI2_INT8_M 0x000000E0 // Interrupt 8 Priority Mask
11892
#define NVIC_PRI2_INT11_S 29
11893
#define NVIC_PRI2_INT10_S 21
11894
#define NVIC_PRI2_INT9_S 13
11895
#define NVIC_PRI2_INT8_S 5
11896
11897
//*****************************************************************************
11898
//
11899
// The following are defines for the bit fields in the NVIC_PRI3 register.
11900
//
11901
//*****************************************************************************
11902
#define NVIC_PRI3_INT15_M 0xE0000000 // Interrupt 15 Priority Mask
11903
#define NVIC_PRI3_INT14_M 0x00E00000 // Interrupt 14 Priority Mask
11904
#define NVIC_PRI3_INT13_M 0x0000E000 // Interrupt 13 Priority Mask
11905
#define NVIC_PRI3_INT12_M 0x000000E0 // Interrupt 12 Priority Mask
11906
#define NVIC_PRI3_INT15_S 29
11907
#define NVIC_PRI3_INT14_S 21
11908
#define NVIC_PRI3_INT13_S 13
11909
#define NVIC_PRI3_INT12_S 5
11910
11911
//*****************************************************************************
11912
//
11913
// The following are defines for the bit fields in the NVIC_PRI4 register.
11914
//
11915
//*****************************************************************************
11916
#define NVIC_PRI4_INT19_M 0xE0000000 // Interrupt 19 Priority Mask
11917
#define NVIC_PRI4_INT18_M 0x00E00000 // Interrupt 18 Priority Mask
11918
#define NVIC_PRI4_INT17_M 0x0000E000 // Interrupt 17 Priority Mask
11919
#define NVIC_PRI4_INT16_M 0x000000E0 // Interrupt 16 Priority Mask
11920
#define NVIC_PRI4_INT19_S 29
11921
#define NVIC_PRI4_INT18_S 21
11922
#define NVIC_PRI4_INT17_S 13
11923
#define NVIC_PRI4_INT16_S 5
11924
11925
//*****************************************************************************
11926
//
11927
// The following are defines for the bit fields in the NVIC_PRI5 register.
11928
//
11929
//*****************************************************************************
11930
#define NVIC_PRI5_INT23_M 0xE0000000 // Interrupt 23 Priority Mask
11931
#define NVIC_PRI5_INT22_M 0x00E00000 // Interrupt 22 Priority Mask
11932
#define NVIC_PRI5_INT21_M 0x0000E000 // Interrupt 21 Priority Mask
11933
#define NVIC_PRI5_INT20_M 0x000000E0 // Interrupt 20 Priority Mask
11934
#define NVIC_PRI5_INT23_S 29
11935
#define NVIC_PRI5_INT22_S 21
11936
#define NVIC_PRI5_INT21_S 13
11937
#define NVIC_PRI5_INT20_S 5
11938
11939
//*****************************************************************************
11940
//
11941
// The following are defines for the bit fields in the NVIC_PRI6 register.
11942
//
11943
//*****************************************************************************
11944
#define NVIC_PRI6_INT27_M 0xE0000000 // Interrupt 27 Priority Mask
11945
#define NVIC_PRI6_INT26_M 0x00E00000 // Interrupt 26 Priority Mask
11946
#define NVIC_PRI6_INT25_M 0x0000E000 // Interrupt 25 Priority Mask
11947
#define NVIC_PRI6_INT24_M 0x000000E0 // Interrupt 24 Priority Mask
11948
#define NVIC_PRI6_INT27_S 29
11949
#define NVIC_PRI6_INT26_S 21
11950
#define NVIC_PRI6_INT25_S 13
11951
#define NVIC_PRI6_INT24_S 5
11952
11953
//*****************************************************************************
11954
//
11955
// The following are defines for the bit fields in the NVIC_PRI7 register.
11956
//
11957
//*****************************************************************************
11958
#define NVIC_PRI7_INT31_M 0xE0000000 // Interrupt 31 Priority Mask
11959
#define NVIC_PRI7_INT30_M 0x00E00000 // Interrupt 30 Priority Mask
11960
#define NVIC_PRI7_INT29_M 0x0000E000 // Interrupt 29 Priority Mask
11961
#define NVIC_PRI7_INT28_M 0x000000E0 // Interrupt 28 Priority Mask
11962
#define NVIC_PRI7_INT31_S 29
11963
#define NVIC_PRI7_INT30_S 21
11964
#define NVIC_PRI7_INT29_S 13
11965
#define NVIC_PRI7_INT28_S 5
11966
11967
//*****************************************************************************
11968
//
11969
// The following are defines for the bit fields in the NVIC_PRI8 register.
11970
//
11971
//*****************************************************************************
11972
#define NVIC_PRI8_INT35_M 0xE0000000 // Interrupt 35 Priority Mask
11973
#define NVIC_PRI8_INT34_M 0x00E00000 // Interrupt 34 Priority Mask
11974
#define NVIC_PRI8_INT33_M 0x0000E000 // Interrupt 33 Priority Mask
11975
#define NVIC_PRI8_INT32_M 0x000000E0 // Interrupt 32 Priority Mask
11976
#define NVIC_PRI8_INT35_S 29
11977
#define NVIC_PRI8_INT34_S 21
11978
#define NVIC_PRI8_INT33_S 13
11979
#define NVIC_PRI8_INT32_S 5
11980
11981
//*****************************************************************************
11982
//
11983
// The following are defines for the bit fields in the NVIC_PRI9 register.
11984
//
11985
//*****************************************************************************
11986
#define NVIC_PRI9_INT39_M 0xE0000000 // Interrupt 39 Priority Mask
11987
#define NVIC_PRI9_INT38_M 0x00E00000 // Interrupt 38 Priority Mask
11988
#define NVIC_PRI9_INT37_M 0x0000E000 // Interrupt 37 Priority Mask
11989
#define NVIC_PRI9_INT36_M 0x000000E0 // Interrupt 36 Priority Mask
11990
#define NVIC_PRI9_INT39_S 29
11991
#define NVIC_PRI9_INT38_S 21
11992
#define NVIC_PRI9_INT37_S 13
11993
#define NVIC_PRI9_INT36_S 5
11994
11995
//*****************************************************************************
11996
//
11997
// The following are defines for the bit fields in the NVIC_PRI10 register.
11998
//
11999
//*****************************************************************************
12000
#define NVIC_PRI10_INT43_M 0xE0000000 // Interrupt 43 Priority Mask
12001
#define NVIC_PRI10_INT42_M 0x00E00000 // Interrupt 42 Priority Mask
12002
#define NVIC_PRI10_INT41_M 0x0000E000 // Interrupt 41 Priority Mask
12003
#define NVIC_PRI10_INT40_M 0x000000E0 // Interrupt 40 Priority Mask
12004
#define NVIC_PRI10_INT43_S 29
12005
#define NVIC_PRI10_INT42_S 21
12006
#define NVIC_PRI10_INT41_S 13
12007
#define NVIC_PRI10_INT40_S 5
12008
12009
//*****************************************************************************
12010
//
12011
// The following are defines for the bit fields in the NVIC_PRI11 register.
12012
//
12013
//*****************************************************************************
12014
#define NVIC_PRI11_INT47_M 0xE0000000 // Interrupt 47 Priority Mask
12015
#define NVIC_PRI11_INT46_M 0x00E00000 // Interrupt 46 Priority Mask
12016
#define NVIC_PRI11_INT45_M 0x0000E000 // Interrupt 45 Priority Mask
12017
#define NVIC_PRI11_INT44_M 0x000000E0 // Interrupt 44 Priority Mask
12018
#define NVIC_PRI11_INT47_S 29
12019
#define NVIC_PRI11_INT46_S 21
12020
#define NVIC_PRI11_INT45_S 13
12021
#define NVIC_PRI11_INT44_S 5
12022
12023
//*****************************************************************************
12024
//
12025
// The following are defines for the bit fields in the NVIC_PRI12 register.
12026
//
12027
//*****************************************************************************
12028
#define NVIC_PRI12_INT51_M 0xE0000000 // Interrupt 51 Priority Mask
12029
#define NVIC_PRI12_INT50_M 0x00E00000 // Interrupt 50 Priority Mask
12030
#define NVIC_PRI12_INT49_M 0x0000E000 // Interrupt 49 Priority Mask
12031
#define NVIC_PRI12_INT48_M 0x000000E0 // Interrupt 48 Priority Mask
12032
#define NVIC_PRI12_INT51_S 29
12033
#define NVIC_PRI12_INT50_S 21
12034
#define NVIC_PRI12_INT49_S 13
12035
#define NVIC_PRI12_INT48_S 5
12036
12037
//*****************************************************************************
12038
//
12039
// The following are defines for the bit fields in the NVIC_PRI13 register.
12040
//
12041
//*****************************************************************************
12042
#define NVIC_PRI13_INT55_M 0xE0000000 // Interrupt 55 Priority Mask
12043
#define NVIC_PRI13_INT54_M 0x00E00000 // Interrupt 54 Priority Mask
12044
#define NVIC_PRI13_INT53_M 0x0000E000 // Interrupt 53 Priority Mask
12045
#define NVIC_PRI13_INT52_M 0x000000E0 // Interrupt 52 Priority Mask
12046
#define NVIC_PRI13_INT55_S 29
12047
#define NVIC_PRI13_INT54_S 21
12048
#define NVIC_PRI13_INT53_S 13
12049
#define NVIC_PRI13_INT52_S 5
12050
12051
//*****************************************************************************
12052
//
12053
// The following are defines for the bit fields in the NVIC_PRI14 register.
12054
//
12055
//*****************************************************************************
12056
#define NVIC_PRI14_INTD_M 0xE0000000 // Interrupt 59 Priority Mask
12057
#define NVIC_PRI14_INTC_M 0x00E00000 // Interrupt 58 Priority Mask
12058
#define NVIC_PRI14_INTB_M 0x0000E000 // Interrupt 57 Priority Mask
12059
#define NVIC_PRI14_INTA_M 0x000000E0 // Interrupt 56 Priority Mask
12060
#define NVIC_PRI14_INTD_S 29
12061
#define NVIC_PRI14_INTC_S 21
12062
#define NVIC_PRI14_INTB_S 13
12063
#define NVIC_PRI14_INTA_S 5
12064
12065
//*****************************************************************************
12066
//
12067
// The following are defines for the bit fields in the NVIC_PRI15 register.
12068
//
12069
//*****************************************************************************
12070
#define NVIC_PRI15_INTD_M 0xE0000000 // Interrupt 63 Priority Mask
12071
#define NVIC_PRI15_INTC_M 0x00E00000 // Interrupt 62 Priority Mask
12072
#define NVIC_PRI15_INTB_M 0x0000E000 // Interrupt 61 Priority Mask
12073
#define NVIC_PRI15_INTA_M 0x000000E0 // Interrupt 60 Priority Mask
12074
#define NVIC_PRI15_INTD_S 29
12075
#define NVIC_PRI15_INTC_S 21
12076
#define NVIC_PRI15_INTB_S 13
12077
#define NVIC_PRI15_INTA_S 5
12078
12079
//*****************************************************************************
12080
//
12081
// The following are defines for the bit fields in the NVIC_PRI16 register.
12082
//
12083
//*****************************************************************************
12084
#define NVIC_PRI16_INTD_M 0xE0000000 // Interrupt 67 Priority Mask
12085
#define NVIC_PRI16_INTC_M 0x00E00000 // Interrupt 66 Priority Mask
12086
#define NVIC_PRI16_INTB_M 0x0000E000 // Interrupt 65 Priority Mask
12087
#define NVIC_PRI16_INTA_M 0x000000E0 // Interrupt 64 Priority Mask
12088
#define NVIC_PRI16_INTD_S 29
12089
#define NVIC_PRI16_INTC_S 21
12090
#define NVIC_PRI16_INTB_S 13
12091
#define NVIC_PRI16_INTA_S 5
12092
12093
//*****************************************************************************
12094
//
12095
// The following are defines for the bit fields in the NVIC_PRI17 register.
12096
//
12097
//*****************************************************************************
12098
#define NVIC_PRI17_INTD_M 0xE0000000 // Interrupt 71 Priority Mask
12099
#define NVIC_PRI17_INTC_M 0x00E00000 // Interrupt 70 Priority Mask
12100
#define NVIC_PRI17_INTB_M 0x0000E000 // Interrupt 69 Priority Mask
12101
#define NVIC_PRI17_INTA_M 0x000000E0 // Interrupt 68 Priority Mask
12102
#define NVIC_PRI17_INTD_S 29
12103
#define NVIC_PRI17_INTC_S 21
12104
#define NVIC_PRI17_INTB_S 13
12105
#define NVIC_PRI17_INTA_S 5
12106
12107
//*****************************************************************************
12108
//
12109
// The following are defines for the bit fields in the NVIC_PRI18 register.
12110
//
12111
//*****************************************************************************
12112
#define NVIC_PRI18_INTD_M 0xE0000000 // Interrupt 75 Priority Mask
12113
#define NVIC_PRI18_INTC_M 0x00E00000 // Interrupt 74 Priority Mask
12114
#define NVIC_PRI18_INTB_M 0x0000E000 // Interrupt 73 Priority Mask
12115
#define NVIC_PRI18_INTA_M 0x000000E0 // Interrupt 72 Priority Mask
12116
#define NVIC_PRI18_INTD_S 29
12117
#define NVIC_PRI18_INTC_S 21
12118
#define NVIC_PRI18_INTB_S 13
12119
#define NVIC_PRI18_INTA_S 5
12120
12121
//*****************************************************************************
12122
//
12123
// The following are defines for the bit fields in the NVIC_PRI19 register.
12124
//
12125
//*****************************************************************************
12126
#define NVIC_PRI19_INTD_M 0xE0000000 // Interrupt 79 Priority Mask
12127
#define NVIC_PRI19_INTC_M 0x00E00000 // Interrupt 78 Priority Mask
12128
#define NVIC_PRI19_INTB_M 0x0000E000 // Interrupt 77 Priority Mask
12129
#define NVIC_PRI19_INTA_M 0x000000E0 // Interrupt 76 Priority Mask
12130
#define NVIC_PRI19_INTD_S 29
12131
#define NVIC_PRI19_INTC_S 21
12132
#define NVIC_PRI19_INTB_S 13
12133
#define NVIC_PRI19_INTA_S 5
12134
12135
//*****************************************************************************
12136
//
12137
// The following are defines for the bit fields in the NVIC_PRI20 register.
12138
//
12139
//*****************************************************************************
12140
#define NVIC_PRI20_INTD_M 0xE0000000 // Interrupt 83 Priority Mask
12141
#define NVIC_PRI20_INTC_M 0x00E00000 // Interrupt 82 Priority Mask
12142
#define NVIC_PRI20_INTB_M 0x0000E000 // Interrupt 81 Priority Mask
12143
#define NVIC_PRI20_INTA_M 0x000000E0 // Interrupt 80 Priority Mask
12144
#define NVIC_PRI20_INTD_S 29
12145
#define NVIC_PRI20_INTC_S 21
12146
#define NVIC_PRI20_INTB_S 13
12147
#define NVIC_PRI20_INTA_S 5
12148
12149
//*****************************************************************************
12150
//
12151
// The following are defines for the bit fields in the NVIC_PRI21 register.
12152
//
12153
//*****************************************************************************
12154
#define NVIC_PRI21_INTD_M 0xE0000000 // Interrupt 87 Priority Mask
12155
#define NVIC_PRI21_INTC_M 0x00E00000 // Interrupt 86 Priority Mask
12156
#define NVIC_PRI21_INTB_M 0x0000E000 // Interrupt 85 Priority Mask
12157
#define NVIC_PRI21_INTA_M 0x000000E0 // Interrupt 84 Priority Mask
12158
#define NVIC_PRI21_INTD_S 29
12159
#define NVIC_PRI21_INTC_S 21
12160
#define NVIC_PRI21_INTB_S 13
12161
#define NVIC_PRI21_INTA_S 5
12162
12163
//*****************************************************************************
12164
//
12165
// The following are defines for the bit fields in the NVIC_PRI22 register.
12166
//
12167
//*****************************************************************************
12168
#define NVIC_PRI22_INTD_M 0xE0000000 // Interrupt 91 Priority Mask
12169
#define NVIC_PRI22_INTC_M 0x00E00000 // Interrupt 90 Priority Mask
12170
#define NVIC_PRI22_INTB_M 0x0000E000 // Interrupt 89 Priority Mask
12171
#define NVIC_PRI22_INTA_M 0x000000E0 // Interrupt 88 Priority Mask
12172
#define NVIC_PRI22_INTD_S 29
12173
#define NVIC_PRI22_INTC_S 21
12174
#define NVIC_PRI22_INTB_S 13
12175
#define NVIC_PRI22_INTA_S 5
12176
12177
//*****************************************************************************
12178
//
12179
// The following are defines for the bit fields in the NVIC_PRI23 register.
12180
//
12181
//*****************************************************************************
12182
#define NVIC_PRI23_INTD_M 0xE0000000 // Interrupt 95 Priority Mask
12183
#define NVIC_PRI23_INTC_M 0x00E00000 // Interrupt 94 Priority Mask
12184
#define NVIC_PRI23_INTB_M 0x0000E000 // Interrupt 93 Priority Mask
12185
#define NVIC_PRI23_INTA_M 0x000000E0 // Interrupt 92 Priority Mask
12186
#define NVIC_PRI23_INTD_S 29
12187
#define NVIC_PRI23_INTC_S 21
12188
#define NVIC_PRI23_INTB_S 13
12189
#define NVIC_PRI23_INTA_S 5
12190
12191
//*****************************************************************************
12192
//
12193
// The following are defines for the bit fields in the NVIC_PRI24 register.
12194
//
12195
//*****************************************************************************
12196
#define NVIC_PRI24_INTD_M 0xE0000000 // Interrupt 99 Priority Mask
12197
#define NVIC_PRI24_INTC_M 0x00E00000 // Interrupt 98 Priority Mask
12198
#define NVIC_PRI24_INTB_M 0x0000E000 // Interrupt 97 Priority Mask
12199
#define NVIC_PRI24_INTA_M 0x000000E0 // Interrupt 96 Priority Mask
12200
#define NVIC_PRI24_INTD_S 29
12201
#define NVIC_PRI24_INTC_S 21
12202
#define NVIC_PRI24_INTB_S 13
12203
#define NVIC_PRI24_INTA_S 5
12204
12205
//*****************************************************************************
12206
//
12207
// The following are defines for the bit fields in the NVIC_PRI25 register.
12208
//
12209
//*****************************************************************************
12210
#define NVIC_PRI25_INTD_M 0xE0000000 // Interrupt 103 Priority Mask
12211
#define NVIC_PRI25_INTC_M 0x00E00000 // Interrupt 102 Priority Mask
12212
#define NVIC_PRI25_INTB_M 0x0000E000 // Interrupt 101 Priority Mask
12213
#define NVIC_PRI25_INTA_M 0x000000E0 // Interrupt 100 Priority Mask
12214
#define NVIC_PRI25_INTD_S 29
12215
#define NVIC_PRI25_INTC_S 21
12216
#define NVIC_PRI25_INTB_S 13
12217
#define NVIC_PRI25_INTA_S 5
12218
12219
//*****************************************************************************
12220
//
12221
// The following are defines for the bit fields in the NVIC_PRI26 register.
12222
//
12223
//*****************************************************************************
12224
#define NVIC_PRI26_INTD_M 0xE0000000 // Interrupt 107 Priority Mask
12225
#define NVIC_PRI26_INTC_M 0x00E00000 // Interrupt 106 Priority Mask
12226
#define NVIC_PRI26_INTB_M 0x0000E000 // Interrupt 105 Priority Mask
12227
#define NVIC_PRI26_INTA_M 0x000000E0 // Interrupt 104 Priority Mask
12228
#define NVIC_PRI26_INTD_S 29
12229
#define NVIC_PRI26_INTC_S 21
12230
#define NVIC_PRI26_INTB_S 13
12231
#define NVIC_PRI26_INTA_S 5
12232
12233
//*****************************************************************************
12234
//
12235
// The following are defines for the bit fields in the NVIC_PRI27 register.
12236
//
12237
//*****************************************************************************
12238
#define NVIC_PRI27_INTD_M 0xE0000000 // Interrupt 111 Priority Mask
12239
#define NVIC_PRI27_INTC_M 0x00E00000 // Interrupt 110 Priority Mask
12240
#define NVIC_PRI27_INTB_M 0x0000E000 // Interrupt 109 Priority Mask
12241
#define NVIC_PRI27_INTA_M 0x000000E0 // Interrupt 108 Priority Mask
12242
#define NVIC_PRI27_INTD_S 29
12243
#define NVIC_PRI27_INTC_S 21
12244
#define NVIC_PRI27_INTB_S 13
12245
#define NVIC_PRI27_INTA_S 5
12246
12247
//*****************************************************************************
12248
//
12249
// The following are defines for the bit fields in the NVIC_PRI28 register.
12250
//
12251
//*****************************************************************************
12252
#define NVIC_PRI28_INTD_M 0xE0000000 // Interrupt 115 Priority Mask
12253
#define NVIC_PRI28_INTC_M 0x00E00000 // Interrupt 114 Priority Mask
12254
#define NVIC_PRI28_INTB_M 0x0000E000 // Interrupt 113 Priority Mask
12255
#define NVIC_PRI28_INTA_M 0x000000E0 // Interrupt 112 Priority Mask
12256
#define NVIC_PRI28_INTD_S 29
12257
#define NVIC_PRI28_INTC_S 21
12258
#define NVIC_PRI28_INTB_S 13
12259
#define NVIC_PRI28_INTA_S 5
12260
12261
//*****************************************************************************
12262
//
12263
// The following are defines for the bit fields in the NVIC_PRI29 register.
12264
//
12265
//*****************************************************************************
12266
#define NVIC_PRI29_INTD_M 0xE0000000 // Interrupt 119 Priority Mask
12267
#define NVIC_PRI29_INTC_M 0x00E00000 // Interrupt 118 Priority Mask
12268
#define NVIC_PRI29_INTB_M 0x0000E000 // Interrupt 117 Priority Mask
12269
#define NVIC_PRI29_INTA_M 0x000000E0 // Interrupt 116 Priority Mask
12270
#define NVIC_PRI29_INTD_S 29
12271
#define NVIC_PRI29_INTC_S 21
12272
#define NVIC_PRI29_INTB_S 13
12273
#define NVIC_PRI29_INTA_S 5
12274
12275
//*****************************************************************************
12276
//
12277
// The following are defines for the bit fields in the NVIC_PRI30 register.
12278
//
12279
//*****************************************************************************
12280
#define NVIC_PRI30_INTD_M 0xE0000000 // Interrupt 123 Priority Mask
12281
#define NVIC_PRI30_INTC_M 0x00E00000 // Interrupt 122 Priority Mask
12282
#define NVIC_PRI30_INTB_M 0x0000E000 // Interrupt 121 Priority Mask
12283
#define NVIC_PRI30_INTA_M 0x000000E0 // Interrupt 120 Priority Mask
12284
#define NVIC_PRI30_INTD_S 29
12285
#define NVIC_PRI30_INTC_S 21
12286
#define NVIC_PRI30_INTB_S 13
12287
#define NVIC_PRI30_INTA_S 5
12288
12289
//*****************************************************************************
12290
//
12291
// The following are defines for the bit fields in the NVIC_PRI31 register.
12292
//
12293
//*****************************************************************************
12294
#define NVIC_PRI31_INTD_M 0xE0000000 // Interrupt 127 Priority Mask
12295
#define NVIC_PRI31_INTC_M 0x00E00000 // Interrupt 126 Priority Mask
12296
#define NVIC_PRI31_INTB_M 0x0000E000 // Interrupt 125 Priority Mask
12297
#define NVIC_PRI31_INTA_M 0x000000E0 // Interrupt 124 Priority Mask
12298
#define NVIC_PRI31_INTD_S 29
12299
#define NVIC_PRI31_INTC_S 21
12300
#define NVIC_PRI31_INTB_S 13
12301
#define NVIC_PRI31_INTA_S 5
12302
12303
//*****************************************************************************
12304
//
12305
// The following are defines for the bit fields in the NVIC_PRI32 register.
12306
//
12307
//*****************************************************************************
12308
#define NVIC_PRI32_INTD_M 0xE0000000 // Interrupt 131 Priority Mask
12309
#define NVIC_PRI32_INTC_M 0x00E00000 // Interrupt 130 Priority Mask
12310
#define NVIC_PRI32_INTB_M 0x0000E000 // Interrupt 129 Priority Mask
12311
#define NVIC_PRI32_INTA_M 0x000000E0 // Interrupt 128 Priority Mask
12312
#define NVIC_PRI32_INTD_S 29
12313
#define NVIC_PRI32_INTC_S 21
12314
#define NVIC_PRI32_INTB_S 13
12315
#define NVIC_PRI32_INTA_S 5
12316
12317
//*****************************************************************************
12318
//
12319
// The following are defines for the bit fields in the NVIC_PRI33 register.
12320
//
12321
//*****************************************************************************
12322
#define NVIC_PRI33_INTD_M 0xE0000000 // Interrupt Priority for Interrupt
12323
// [4n+3]
12324
#define NVIC_PRI33_INTC_M 0x00E00000 // Interrupt Priority for Interrupt
12325
// [4n+2]
12326
#define NVIC_PRI33_INTB_M 0x0000E000 // Interrupt Priority for Interrupt
12327
// [4n+1]
12328
#define NVIC_PRI33_INTA_M 0x000000E0 // Interrupt Priority for Interrupt
12329
// [4n]
12330
#define NVIC_PRI33_INTD_S 29
12331
#define NVIC_PRI33_INTC_S 21
12332
#define NVIC_PRI33_INTB_S 13
12333
#define NVIC_PRI33_INTA_S 5
12334
12335
//*****************************************************************************
12336
//
12337
// The following are defines for the bit fields in the NVIC_PRI34 register.
12338
//
12339
//*****************************************************************************
12340
#define NVIC_PRI34_INTD_M 0xE0000000 // Interrupt Priority for Interrupt
12341
// [4n+3]
12342
#define NVIC_PRI34_INTC_M 0x00E00000 // Interrupt Priority for Interrupt
12343
// [4n+2]
12344
#define NVIC_PRI34_INTB_M 0x0000E000 // Interrupt Priority for Interrupt
12345
// [4n+1]
12346
#define NVIC_PRI34_INTA_M 0x000000E0 // Interrupt Priority for Interrupt
12347
// [4n]
12348
#define NVIC_PRI34_INTD_S 29
12349
#define NVIC_PRI34_INTC_S 21
12350
#define NVIC_PRI34_INTB_S 13
12351
#define NVIC_PRI34_INTA_S 5
12352
12353
//*****************************************************************************
12354
//
12355
// The following are defines for the bit fields in the NVIC_CPUID register.
12356
//
12357
//*****************************************************************************
12358
#define NVIC_CPUID_IMP_M 0xFF000000 // Implementer Code
12359
#define NVIC_CPUID_IMP_ARM 0x41000000 // ARM
12360
#define NVIC_CPUID_VAR_M 0x00F00000 // Variant Number
12361
#define NVIC_CPUID_CON_M 0x000F0000 // Constant
12362
#define NVIC_CPUID_PARTNO_M 0x0000FFF0 // Part Number
12363
#define NVIC_CPUID_PARTNO_CM4 0x0000C240 // Cortex-M4 processor
12364
#define NVIC_CPUID_REV_M 0x0000000F // Revision Number
12365
12366
//*****************************************************************************
12367
//
12368
// The following are defines for the bit fields in the NVIC_INT_CTRL register.
12369
//
12370
//*****************************************************************************
12371
#define NVIC_INT_CTRL_NMI_SET 0x80000000 // NMI Set Pending
12372
#define NVIC_INT_CTRL_PEND_SV 0x10000000 // PendSV Set Pending
12373
#define NVIC_INT_CTRL_UNPEND_SV 0x08000000 // PendSV Clear Pending
12374
#define NVIC_INT_CTRL_PENDSTSET 0x04000000 // SysTick Set Pending
12375
#define NVIC_INT_CTRL_PENDSTCLR 0x02000000 // SysTick Clear Pending
12376
#define NVIC_INT_CTRL_ISR_PRE 0x00800000 // Debug Interrupt Handling
12377
#define NVIC_INT_CTRL_ISR_PEND 0x00400000 // Interrupt Pending
12378
#define NVIC_INT_CTRL_VEC_PEN_M 0x000FF000 // Interrupt Pending Vector Number
12379
#define NVIC_INT_CTRL_VEC_PEN_NMI \
12380
0x00002000 // NMI
12381
#define NVIC_INT_CTRL_VEC_PEN_HARD \
12382
0x00003000 // Hard fault
12383
#define NVIC_INT_CTRL_VEC_PEN_MEM \
12384
0x00004000 // Memory management fault
12385
#define NVIC_INT_CTRL_VEC_PEN_BUS \
12386
0x00005000 // Bus fault
12387
#define NVIC_INT_CTRL_VEC_PEN_USG \
12388
0x00006000 // Usage fault
12389
#define NVIC_INT_CTRL_VEC_PEN_SVC \
12390
0x0000B000 // SVCall
12391
#define NVIC_INT_CTRL_VEC_PEN_PNDSV \
12392
0x0000E000 // PendSV
12393
#define NVIC_INT_CTRL_VEC_PEN_TICK \
12394
0x0000F000 // SysTick
12395
#define NVIC_INT_CTRL_RET_BASE 0x00000800 // Return to Base
12396
#define NVIC_INT_CTRL_VEC_ACT_M 0x000000FF // Interrupt Pending Vector Number
12397
#define NVIC_INT_CTRL_VEC_ACT_S 0
12398
12399
//*****************************************************************************
12400
//
12401
// The following are defines for the bit fields in the NVIC_VTABLE register.
12402
//
12403
//*****************************************************************************
12404
#define NVIC_VTABLE_OFFSET_M 0xFFFFFC00 // Vector Table Offset
12405
#define NVIC_VTABLE_OFFSET_S 10
12406
12407
//*****************************************************************************
12408
//
12409
// The following are defines for the bit fields in the NVIC_APINT register.
12410
//
12411
//*****************************************************************************
12412
#define NVIC_APINT_VECTKEY_M 0xFFFF0000 // Register Key
12413
#define NVIC_APINT_VECTKEY 0x05FA0000 // Vector key
12414
#define NVIC_APINT_ENDIANESS 0x00008000 // Data Endianess
12415
#define NVIC_APINT_PRIGROUP_M 0x00000700 // Interrupt Priority Grouping
12416
#define NVIC_APINT_PRIGROUP_7_1 0x00000000 // Priority group 7.1 split
12417
#define NVIC_APINT_PRIGROUP_6_2 0x00000100 // Priority group 6.2 split
12418
#define NVIC_APINT_PRIGROUP_5_3 0x00000200 // Priority group 5.3 split
12419
#define NVIC_APINT_PRIGROUP_4_4 0x00000300 // Priority group 4.4 split
12420
#define NVIC_APINT_PRIGROUP_3_5 0x00000400 // Priority group 3.5 split
12421
#define NVIC_APINT_PRIGROUP_2_6 0x00000500 // Priority group 2.6 split
12422
#define NVIC_APINT_PRIGROUP_1_7 0x00000600 // Priority group 1.7 split
12423
#define NVIC_APINT_PRIGROUP_0_8 0x00000700 // Priority group 0.8 split
12424
#define NVIC_APINT_SYSRESETREQ 0x00000004 // System Reset Request
12425
#define NVIC_APINT_VECT_CLR_ACT 0x00000002 // Clear Active NMI / Fault
12426
#define NVIC_APINT_VECT_RESET 0x00000001 // System Reset
12427
12428
//*****************************************************************************
12429
//
12430
// The following are defines for the bit fields in the NVIC_SYS_CTRL register.
12431
//
12432
//*****************************************************************************
12433
#define NVIC_SYS_CTRL_SEVONPEND 0x00000010 // Wake Up on Pending
12434
#define NVIC_SYS_CTRL_SLEEPDEEP 0x00000004 // Deep Sleep Enable
12435
#define NVIC_SYS_CTRL_SLEEPEXIT 0x00000002 // Sleep on ISR Exit
12436
12437
//*****************************************************************************
12438
//
12439
// The following are defines for the bit fields in the NVIC_CFG_CTRL register.
12440
//
12441
//*****************************************************************************
12442
#define NVIC_CFG_CTRL_STKALIGN 0x00000200 // Stack Alignment on Exception
12443
// Entry
12444
#define NVIC_CFG_CTRL_BFHFNMIGN 0x00000100 // Ignore Bus Fault in NMI and
12445
// Fault
12446
#define NVIC_CFG_CTRL_DIV0 0x00000010 // Trap on Divide by 0
12447
#define NVIC_CFG_CTRL_UNALIGNED 0x00000008 // Trap on Unaligned Access
12448
#define NVIC_CFG_CTRL_MAIN_PEND 0x00000002 // Allow Main Interrupt Trigger
12449
#define NVIC_CFG_CTRL_BASE_THR 0x00000001 // Thread State Control
12450
12451
//*****************************************************************************
12452
//
12453
// The following are defines for the bit fields in the NVIC_SYS_PRI1 register.
12454
//
12455
//*****************************************************************************
12456
#define NVIC_SYS_PRI1_USAGE_M 0x00E00000 // Usage Fault Priority
12457
#define NVIC_SYS_PRI1_BUS_M 0x0000E000 // Bus Fault Priority
12458
#define NVIC_SYS_PRI1_MEM_M 0x000000E0 // Memory Management Fault Priority
12459
#define NVIC_SYS_PRI1_USAGE_S 21
12460
#define NVIC_SYS_PRI1_BUS_S 13
12461
#define NVIC_SYS_PRI1_MEM_S 5
12462
12463
//*****************************************************************************
12464
//
12465
// The following are defines for the bit fields in the NVIC_SYS_PRI2 register.
12466
//
12467
//*****************************************************************************
12468
#define NVIC_SYS_PRI2_SVC_M 0xE0000000 // SVCall Priority
12469
#define NVIC_SYS_PRI2_SVC_S 29
12470
12471
//*****************************************************************************
12472
//
12473
// The following are defines for the bit fields in the NVIC_SYS_PRI3 register.
12474
//
12475
//*****************************************************************************
12476
#define NVIC_SYS_PRI3_TICK_M 0xE0000000 // SysTick Exception Priority
12477
#define NVIC_SYS_PRI3_PENDSV_M 0x00E00000 // PendSV Priority
12478
#define NVIC_SYS_PRI3_DEBUG_M 0x000000E0 // Debug Priority
12479
#define NVIC_SYS_PRI3_TICK_S 29
12480
#define NVIC_SYS_PRI3_PENDSV_S 21
12481
#define NVIC_SYS_PRI3_DEBUG_S 5
12482
12483
//*****************************************************************************
12484
//
12485
// The following are defines for the bit fields in the NVIC_SYS_HND_CTRL
12486
// register.
12487
//
12488
//*****************************************************************************
12489
#define NVIC_SYS_HND_CTRL_USAGE 0x00040000 // Usage Fault Enable
12490
#define NVIC_SYS_HND_CTRL_BUS 0x00020000 // Bus Fault Enable
12491
#define NVIC_SYS_HND_CTRL_MEM 0x00010000 // Memory Management Fault Enable
12492
#define NVIC_SYS_HND_CTRL_SVC 0x00008000 // SVC Call Pending
12493
#define NVIC_SYS_HND_CTRL_BUSP 0x00004000 // Bus Fault Pending
12494
#define NVIC_SYS_HND_CTRL_MEMP 0x00002000 // Memory Management Fault Pending
12495
#define NVIC_SYS_HND_CTRL_USAGEP \
12496
0x00001000 // Usage Fault Pending
12497
#define NVIC_SYS_HND_CTRL_TICK 0x00000800 // SysTick Exception Active
12498
#define NVIC_SYS_HND_CTRL_PNDSV 0x00000400 // PendSV Exception Active
12499
#define NVIC_SYS_HND_CTRL_MON 0x00000100 // Debug Monitor Active
12500
#define NVIC_SYS_HND_CTRL_SVCA 0x00000080 // SVC Call Active
12501
#define NVIC_SYS_HND_CTRL_USGA 0x00000008 // Usage Fault Active
12502
#define NVIC_SYS_HND_CTRL_BUSA 0x00000002 // Bus Fault Active
12503
#define NVIC_SYS_HND_CTRL_MEMA 0x00000001 // Memory Management Fault Active
12504
12505
//*****************************************************************************
12506
//
12507
// The following are defines for the bit fields in the NVIC_FAULT_STAT
12508
// register.
12509
//
12510
//*****************************************************************************
12511
#define NVIC_FAULT_STAT_DIV0 0x02000000 // Divide-by-Zero Usage Fault
12512
#define NVIC_FAULT_STAT_UNALIGN 0x01000000 // Unaligned Access Usage Fault
12513
#define NVIC_FAULT_STAT_NOCP 0x00080000 // No Coprocessor Usage Fault
12514
#define NVIC_FAULT_STAT_INVPC 0x00040000 // Invalid PC Load Usage Fault
12515
#define NVIC_FAULT_STAT_INVSTAT 0x00020000 // Invalid State Usage Fault
12516
#define NVIC_FAULT_STAT_UNDEF 0x00010000 // Undefined Instruction Usage
12517
// Fault
12518
#define NVIC_FAULT_STAT_BFARV 0x00008000 // Bus Fault Address Register Valid
12519
#define NVIC_FAULT_STAT_BLSPERR 0x00002000 // Bus Fault on Floating-Point Lazy
12520
// State Preservation
12521
#define NVIC_FAULT_STAT_BSTKE 0x00001000 // Stack Bus Fault
12522
#define NVIC_FAULT_STAT_BUSTKE 0x00000800 // Unstack Bus Fault
12523
#define NVIC_FAULT_STAT_IMPRE 0x00000400 // Imprecise Data Bus Error
12524
#define NVIC_FAULT_STAT_PRECISE 0x00000200 // Precise Data Bus Error
12525
#define NVIC_FAULT_STAT_IBUS 0x00000100 // Instruction Bus Error
12526
#define NVIC_FAULT_STAT_MMARV 0x00000080 // Memory Management Fault Address
12527
// Register Valid
12528
#define NVIC_FAULT_STAT_MLSPERR 0x00000020 // Memory Management Fault on
12529
// Floating-Point Lazy State
12530
// Preservation
12531
#define NVIC_FAULT_STAT_MSTKE 0x00000010 // Stack Access Violation
12532
#define NVIC_FAULT_STAT_MUSTKE 0x00000008 // Unstack Access Violation
12533
#define NVIC_FAULT_STAT_DERR 0x00000002 // Data Access Violation
12534
#define NVIC_FAULT_STAT_IERR 0x00000001 // Instruction Access Violation
12535
12536
//*****************************************************************************
12537
//
12538
// The following are defines for the bit fields in the NVIC_HFAULT_STAT
12539
// register.
12540
//
12541
//*****************************************************************************
12542
#define NVIC_HFAULT_STAT_DBG 0x80000000 // Debug Event
12543
#define NVIC_HFAULT_STAT_FORCED 0x40000000 // Forced Hard Fault
12544
#define NVIC_HFAULT_STAT_VECT 0x00000002 // Vector Table Read Fault
12545
12546
//*****************************************************************************
12547
//
12548
// The following are defines for the bit fields in the NVIC_DEBUG_STAT
12549
// register.
12550
//
12551
//*****************************************************************************
12552
#define NVIC_DEBUG_STAT_EXTRNL 0x00000010 // EDBGRQ asserted
12553
#define NVIC_DEBUG_STAT_VCATCH 0x00000008 // Vector catch
12554
#define NVIC_DEBUG_STAT_DWTTRAP 0x00000004 // DWT match
12555
#define NVIC_DEBUG_STAT_BKPT 0x00000002 // Breakpoint instruction
12556
#define NVIC_DEBUG_STAT_HALTED 0x00000001 // Halt request
12557
12558
//*****************************************************************************
12559
//
12560
// The following are defines for the bit fields in the NVIC_MM_ADDR register.
12561
//
12562
//*****************************************************************************
12563
#define NVIC_MM_ADDR_M 0xFFFFFFFF // Fault Address
12564
#define NVIC_MM_ADDR_S 0
12565
12566
//*****************************************************************************
12567
//
12568
// The following are defines for the bit fields in the NVIC_FAULT_ADDR
12569
// register.
12570
//
12571
//*****************************************************************************
12572
#define NVIC_FAULT_ADDR_M 0xFFFFFFFF // Fault Address
12573
#define NVIC_FAULT_ADDR_S 0
12574
12575
//*****************************************************************************
12576
//
12577
// The following are defines for the bit fields in the NVIC_CPAC register.
12578
//
12579
//*****************************************************************************
12580
#define NVIC_CPAC_CP11_M 0x00C00000 // CP11 Coprocessor Access
12581
// Privilege
12582
#define NVIC_CPAC_CP11_DIS 0x00000000 // Access Denied
12583
#define NVIC_CPAC_CP11_PRIV 0x00400000 // Privileged Access Only
12584
#define NVIC_CPAC_CP11_FULL 0x00C00000 // Full Access
12585
#define NVIC_CPAC_CP10_M 0x00300000 // CP10 Coprocessor Access
12586
// Privilege
12587
#define NVIC_CPAC_CP10_DIS 0x00000000 // Access Denied
12588
#define NVIC_CPAC_CP10_PRIV 0x00100000 // Privileged Access Only
12589
#define NVIC_CPAC_CP10_FULL 0x00300000 // Full Access
12590
12591
//*****************************************************************************
12592
//
12593
// The following are defines for the bit fields in the NVIC_MPU_TYPE register.
12594
//
12595
//*****************************************************************************
12596
#define NVIC_MPU_TYPE_IREGION_M 0x00FF0000 // Number of I Regions
12597
#define NVIC_MPU_TYPE_DREGION_M 0x0000FF00 // Number of D Regions
12598
#define NVIC_MPU_TYPE_SEPARATE 0x00000001 // Separate or Unified MPU
12599
#define NVIC_MPU_TYPE_IREGION_S 16
12600
#define NVIC_MPU_TYPE_DREGION_S 8
12601
12602
//*****************************************************************************
12603
//
12604
// The following are defines for the bit fields in the NVIC_MPU_CTRL register.
12605
//
12606
//*****************************************************************************
12607
#define NVIC_MPU_CTRL_PRIVDEFEN 0x00000004 // MPU Default Region
12608
#define NVIC_MPU_CTRL_HFNMIENA 0x00000002 // MPU Enabled During Faults
12609
#define NVIC_MPU_CTRL_ENABLE 0x00000001 // MPU Enable
12610
12611
//*****************************************************************************
12612
//
12613
// The following are defines for the bit fields in the NVIC_MPU_NUMBER
12614
// register.
12615
//
12616
//*****************************************************************************
12617
#define NVIC_MPU_NUMBER_M 0x00000007 // MPU Region to Access
12618
#define NVIC_MPU_NUMBER_S 0
12619
12620
//*****************************************************************************
12621
//
12622
// The following are defines for the bit fields in the NVIC_MPU_BASE register.
12623
//
12624
//*****************************************************************************
12625
#define NVIC_MPU_BASE_ADDR_M 0xFFFFFFE0 // Base Address Mask
12626
#define NVIC_MPU_BASE_VALID 0x00000010 // Region Number Valid
12627
#define NVIC_MPU_BASE_REGION_M 0x00000007 // Region Number
12628
#define NVIC_MPU_BASE_ADDR_S 5
12629
#define NVIC_MPU_BASE_REGION_S 0
12630
12631
//*****************************************************************************
12632
//
12633
// The following are defines for the bit fields in the NVIC_MPU_ATTR register.
12634
//
12635
//*****************************************************************************
12636
#define NVIC_MPU_ATTR_XN 0x10000000 // Instruction Access Disable
12637
#define NVIC_MPU_ATTR_AP_M 0x07000000 // Access Privilege
12638
#define NVIC_MPU_ATTR_TEX_M 0x00380000 // Type Extension Mask
12639
#define NVIC_MPU_ATTR_SHAREABLE 0x00040000 // Shareable
12640
#define NVIC_MPU_ATTR_CACHEABLE 0x00020000 // Cacheable
12641
#define NVIC_MPU_ATTR_BUFFRABLE 0x00010000 // Bufferable
12642
#define NVIC_MPU_ATTR_SRD_M 0x0000FF00 // Subregion Disable Bits
12643
#define NVIC_MPU_ATTR_SIZE_M 0x0000003E // Region Size Mask
12644
#define NVIC_MPU_ATTR_ENABLE 0x00000001 // Region Enable
12645
12646
//*****************************************************************************
12647
//
12648
// The following are defines for the bit fields in the NVIC_MPU_BASE1 register.
12649
//
12650
//*****************************************************************************
12651
#define NVIC_MPU_BASE1_ADDR_M 0xFFFFFFE0 // Base Address Mask
12652
#define NVIC_MPU_BASE1_VALID 0x00000010 // Region Number Valid
12653
#define NVIC_MPU_BASE1_REGION_M 0x00000007 // Region Number
12654
#define NVIC_MPU_BASE1_ADDR_S 5
12655
#define NVIC_MPU_BASE1_REGION_S 0
12656
12657
//*****************************************************************************
12658
//
12659
// The following are defines for the bit fields in the NVIC_MPU_ATTR1 register.
12660
//
12661
//*****************************************************************************
12662
#define NVIC_MPU_ATTR1_XN 0x10000000 // Instruction Access Disable
12663
#define NVIC_MPU_ATTR1_AP_M 0x07000000 // Access Privilege
12664
#define NVIC_MPU_ATTR1_TEX_M 0x00380000 // Type Extension Mask
12665
#define NVIC_MPU_ATTR1_SHAREABLE \
12666
0x00040000 // Shareable
12667
#define NVIC_MPU_ATTR1_CACHEABLE \
12668
0x00020000 // Cacheable
12669
#define NVIC_MPU_ATTR1_BUFFRABLE \
12670
0x00010000 // Bufferable
12671
#define NVIC_MPU_ATTR1_SRD_M 0x0000FF00 // Subregion Disable Bits
12672
#define NVIC_MPU_ATTR1_SIZE_M 0x0000003E // Region Size Mask
12673
#define NVIC_MPU_ATTR1_ENABLE 0x00000001 // Region Enable
12674
12675
//*****************************************************************************
12676
//
12677
// The following are defines for the bit fields in the NVIC_MPU_BASE2 register.
12678
//
12679
//*****************************************************************************
12680
#define NVIC_MPU_BASE2_ADDR_M 0xFFFFFFE0 // Base Address Mask
12681
#define NVIC_MPU_BASE2_VALID 0x00000010 // Region Number Valid
12682
#define NVIC_MPU_BASE2_REGION_M 0x00000007 // Region Number
12683
#define NVIC_MPU_BASE2_ADDR_S 5
12684
#define NVIC_MPU_BASE2_REGION_S 0
12685
12686
//*****************************************************************************
12687
//
12688
// The following are defines for the bit fields in the NVIC_MPU_ATTR2 register.
12689
//
12690
//*****************************************************************************
12691
#define NVIC_MPU_ATTR2_XN 0x10000000 // Instruction Access Disable
12692
#define NVIC_MPU_ATTR2_AP_M 0x07000000 // Access Privilege
12693
#define NVIC_MPU_ATTR2_TEX_M 0x00380000 // Type Extension Mask
12694
#define NVIC_MPU_ATTR2_SHAREABLE \
12695
0x00040000 // Shareable
12696
#define NVIC_MPU_ATTR2_CACHEABLE \
12697
0x00020000 // Cacheable
12698
#define NVIC_MPU_ATTR2_BUFFRABLE \
12699
0x00010000 // Bufferable
12700
#define NVIC_MPU_ATTR2_SRD_M 0x0000FF00 // Subregion Disable Bits
12701
#define NVIC_MPU_ATTR2_SIZE_M 0x0000003E // Region Size Mask
12702
#define NVIC_MPU_ATTR2_ENABLE 0x00000001 // Region Enable
12703
12704
//*****************************************************************************
12705
//
12706
// The following are defines for the bit fields in the NVIC_MPU_BASE3 register.
12707
//
12708
//*****************************************************************************
12709
#define NVIC_MPU_BASE3_ADDR_M 0xFFFFFFE0 // Base Address Mask
12710
#define NVIC_MPU_BASE3_VALID 0x00000010 // Region Number Valid
12711
#define NVIC_MPU_BASE3_REGION_M 0x00000007 // Region Number
12712
#define NVIC_MPU_BASE3_ADDR_S 5
12713
#define NVIC_MPU_BASE3_REGION_S 0
12714
12715
//*****************************************************************************
12716
//
12717
// The following are defines for the bit fields in the NVIC_MPU_ATTR3 register.
12718
//
12719
//*****************************************************************************
12720
#define NVIC_MPU_ATTR3_XN 0x10000000 // Instruction Access Disable
12721
#define NVIC_MPU_ATTR3_AP_M 0x07000000 // Access Privilege
12722
#define NVIC_MPU_ATTR3_TEX_M 0x00380000 // Type Extension Mask
12723
#define NVIC_MPU_ATTR3_SHAREABLE \
12724
0x00040000 // Shareable
12725
#define NVIC_MPU_ATTR3_CACHEABLE \
12726
0x00020000 // Cacheable
12727
#define NVIC_MPU_ATTR3_BUFFRABLE \
12728
0x00010000 // Bufferable
12729
#define NVIC_MPU_ATTR3_SRD_M 0x0000FF00 // Subregion Disable Bits
12730
#define NVIC_MPU_ATTR3_SIZE_M 0x0000003E // Region Size Mask
12731
#define NVIC_MPU_ATTR3_ENABLE 0x00000001 // Region Enable
12732
12733
//*****************************************************************************
12734
//
12735
// The following are defines for the bit fields in the NVIC_DBG_CTRL register.
12736
//
12737
//*****************************************************************************
12738
#define NVIC_DBG_CTRL_DBGKEY_M 0xFFFF0000 // Debug key mask
12739
#define NVIC_DBG_CTRL_DBGKEY 0xA05F0000 // Debug key
12740
#define NVIC_DBG_CTRL_S_RESET_ST \
12741
0x02000000 // Core has reset since last read
12742
#define NVIC_DBG_CTRL_S_RETIRE_ST \
12743
0x01000000 // Core has executed insruction
12744
// since last read
12745
#define NVIC_DBG_CTRL_S_LOCKUP 0x00080000 // Core is locked up
12746
#define NVIC_DBG_CTRL_S_SLEEP 0x00040000 // Core is sleeping
12747
#define NVIC_DBG_CTRL_S_HALT 0x00020000 // Core status on halt
12748
#define NVIC_DBG_CTRL_S_REGRDY 0x00010000 // Register read/write available
12749
#define NVIC_DBG_CTRL_C_SNAPSTALL \
12750
0x00000020 // Breaks a stalled load/store
12751
#define NVIC_DBG_CTRL_C_MASKINT 0x00000008 // Mask interrupts when stepping
12752
#define NVIC_DBG_CTRL_C_STEP 0x00000004 // Step the core
12753
#define NVIC_DBG_CTRL_C_HALT 0x00000002 // Halt the core
12754
#define NVIC_DBG_CTRL_C_DEBUGEN 0x00000001 // Enable debug
12755
12756
//*****************************************************************************
12757
//
12758
// The following are defines for the bit fields in the NVIC_DBG_XFER register.
12759
//
12760
//*****************************************************************************
12761
#define NVIC_DBG_XFER_REG_WNR 0x00010000 // Write or not read
12762
#define NVIC_DBG_XFER_REG_SEL_M 0x0000001F // Register
12763
#define NVIC_DBG_XFER_REG_R0 0x00000000 // Register R0
12764
#define NVIC_DBG_XFER_REG_R1 0x00000001 // Register R1
12765
#define NVIC_DBG_XFER_REG_R2 0x00000002 // Register R2
12766
#define NVIC_DBG_XFER_REG_R3 0x00000003 // Register R3
12767
#define NVIC_DBG_XFER_REG_R4 0x00000004 // Register R4
12768
#define NVIC_DBG_XFER_REG_R5 0x00000005 // Register R5
12769
#define NVIC_DBG_XFER_REG_R6 0x00000006 // Register R6
12770
#define NVIC_DBG_XFER_REG_R7 0x00000007 // Register R7
12771
#define NVIC_DBG_XFER_REG_R8 0x00000008 // Register R8
12772
#define NVIC_DBG_XFER_REG_R9 0x00000009 // Register R9
12773
#define NVIC_DBG_XFER_REG_R10 0x0000000A // Register R10
12774
#define NVIC_DBG_XFER_REG_R11 0x0000000B // Register R11
12775
#define NVIC_DBG_XFER_REG_R12 0x0000000C // Register R12
12776
#define NVIC_DBG_XFER_REG_R13 0x0000000D // Register R13
12777
#define NVIC_DBG_XFER_REG_R14 0x0000000E // Register R14
12778
#define NVIC_DBG_XFER_REG_R15 0x0000000F // Register R15
12779
#define NVIC_DBG_XFER_REG_FLAGS 0x00000010 // xPSR/Flags register
12780
#define NVIC_DBG_XFER_REG_MSP 0x00000011 // Main SP
12781
#define NVIC_DBG_XFER_REG_PSP 0x00000012 // Process SP
12782
#define NVIC_DBG_XFER_REG_DSP 0x00000013 // Deep SP
12783
#define NVIC_DBG_XFER_REG_CFBP 0x00000014 // Control/Fault/BasePri/PriMask
12784
12785
//*****************************************************************************
12786
//
12787
// The following are defines for the bit fields in the NVIC_DBG_DATA register.
12788
//
12789
//*****************************************************************************
12790
#define NVIC_DBG_DATA_M 0xFFFFFFFF // Data temporary cache
12791
#define NVIC_DBG_DATA_S 0
12792
12793
//*****************************************************************************
12794
//
12795
// The following are defines for the bit fields in the NVIC_DBG_INT register.
12796
//
12797
//*****************************************************************************
12798
#define NVIC_DBG_INT_HARDERR 0x00000400 // Debug trap on hard fault
12799
#define NVIC_DBG_INT_INTERR 0x00000200 // Debug trap on interrupt errors
12800
#define NVIC_DBG_INT_BUSERR 0x00000100 // Debug trap on bus error
12801
#define NVIC_DBG_INT_STATERR 0x00000080 // Debug trap on usage fault state
12802
#define NVIC_DBG_INT_CHKERR 0x00000040 // Debug trap on usage fault check
12803
#define NVIC_DBG_INT_NOCPERR 0x00000020 // Debug trap on coprocessor error
12804
#define NVIC_DBG_INT_MMERR 0x00000010 // Debug trap on mem manage fault
12805
#define NVIC_DBG_INT_RESET 0x00000008 // Core reset status
12806
#define NVIC_DBG_INT_RSTPENDCLR 0x00000004 // Clear pending core reset
12807
#define NVIC_DBG_INT_RSTPENDING 0x00000002 // Core reset is pending
12808
#define NVIC_DBG_INT_RSTVCATCH 0x00000001 // Reset vector catch
12809
12810
//*****************************************************************************
12811
//
12812
// The following are defines for the bit fields in the NVIC_SW_TRIG register.
12813
//
12814
//*****************************************************************************
12815
#define NVIC_SW_TRIG_INTID_M 0x000000FF // Interrupt ID
12816
#define NVIC_SW_TRIG_INTID_S 0
12817
12818
//*****************************************************************************
12819
//
12820
// The following are defines for the bit fields in the NVIC_FPCC register.
12821
//
12822
//*****************************************************************************
12823
#define NVIC_FPCC_ASPEN 0x80000000 // Automatic State Preservation
12824
// Enable
12825
#define NVIC_FPCC_LSPEN 0x40000000 // Lazy State Preservation Enable
12826
#define NVIC_FPCC_MONRDY 0x00000100 // Monitor Ready
12827
#define NVIC_FPCC_BFRDY 0x00000040 // Bus Fault Ready
12828
#define NVIC_FPCC_MMRDY 0x00000020 // Memory Management Fault Ready
12829
#define NVIC_FPCC_HFRDY 0x00000010 // Hard Fault Ready
12830
#define NVIC_FPCC_THREAD 0x00000008 // Thread Mode
12831
#define NVIC_FPCC_USER 0x00000002 // User Privilege Level
12832
#define NVIC_FPCC_LSPACT 0x00000001 // Lazy State Preservation Active
12833
12834
//*****************************************************************************
12835
//
12836
// The following are defines for the bit fields in the NVIC_FPCA register.
12837
//
12838
//*****************************************************************************
12839
#define NVIC_FPCA_ADDRESS_M 0xFFFFFFF8 // Address
12840
#define NVIC_FPCA_ADDRESS_S 3
12841
12842
//*****************************************************************************
12843
//
12844
// The following are defines for the bit fields in the NVIC_FPDSC register.
12845
//
12846
//*****************************************************************************
12847
#define NVIC_FPDSC_AHP 0x04000000 // AHP Bit Default
12848
#define NVIC_FPDSC_DN 0x02000000 // DN Bit Default
12849
#define NVIC_FPDSC_FZ 0x01000000 // FZ Bit Default
12850
#define NVIC_FPDSC_RMODE_M 0x00C00000 // RMODE Bit Default
12851
#define NVIC_FPDSC_RMODE_RN 0x00000000 // Round to Nearest (RN) mode
12852
#define NVIC_FPDSC_RMODE_RP 0x00400000 // Round towards Plus Infinity (RP)
12853
// mode
12854
#define NVIC_FPDSC_RMODE_RM 0x00800000 // Round towards Minus Infinity
12855
// (RM) mode
12856
#define NVIC_FPDSC_RMODE_RZ 0x00C00000 // Round towards Zero (RZ) mode
12857
12858
//*****************************************************************************
12859
//
12860
// The following definitions are deprecated.
12861
//
12862
//*****************************************************************************
12863
#ifndef DEPRECATED
12864
#define SYSCTL_DID0_CLASS_BLIZZARD \
12865
0x00050000 // Tiva(TM) C Series TM4C123-class
12866
// microcontrollers
12867
12868
#endif
12869
12870
#endif // __TM4C123GH6PM_H__
inc
tm4c123gh6pm.h
Generated on Fri Mar 13 2015 21:18:37 for EE445M RTOS by
1.8.9.1