SikendeRTOS
RTOS for ARM Cortex M3+ SoCs designed and written from scratch
tm4c123gh6pm.h
Go to the documentation of this file.
1
10
//*****************************************************************************
11
//
12
// tm4c123gh6pm.h - TM4C123GH6PM Register Definitions
13
//
14
// Copyright (c) 2013-2014 Texas Instruments Incorporated. All rights reserved.
15
// Software License Agreement
16
//
17
// Redistribution and use in source and binary forms, with or without
18
// modification, are permitted provided that the following conditions
19
// are met:
20
//
21
// Redistributions of source code must retain the above copyright
22
// notice, this list of conditions and the following disclaimer.
23
//
24
// Redistributions in binary form must reproduce the above copyright
25
// notice, this list of conditions and the following disclaimer in the
26
// documentation and/or other materials provided with the
27
// distribution.
28
//
29
// Neither the name of Texas Instruments Incorporated nor the names of
30
// its contributors may be used to endorse or promote products derived
31
// from this software without specific prior written permission.
32
//
33
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
34
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
35
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
36
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
37
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
38
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
39
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
40
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
41
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
42
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
43
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44
//
45
// This is part of revision 2.1.0.12573 of the Tiva Firmware Development Package.
46
//
47
//*****************************************************************************
48
49
#ifndef __TM4C123GH6PM_H__
50
#define __TM4C123GH6PM_H__
51
52
//*****************************************************************************
53
//
54
// Interrupt assignments
55
//
56
//*****************************************************************************
57
#define INT_GPIOA 16
// GPIO Port A
58
#define INT_GPIOB 17
// GPIO Port B
59
#define INT_GPIOC 18
// GPIO Port C
60
#define INT_GPIOD 19
// GPIO Port D
61
#define INT_GPIOE 20
// GPIO Port E
62
#define INT_UART0 21
// UART0
63
#define INT_UART1 22
// UART1
64
#define INT_SSI0 23
// SSI0
65
#define INT_I2C0 24
// I2C0
66
#define INT_PWM0_FAULT 25
// PWM0 Fault
67
#define INT_PWM0_0 26
// PWM0 Generator 0
68
#define INT_PWM0_1 27
// PWM0 Generator 1
69
#define INT_PWM0_2 28
// PWM0 Generator 2
70
#define INT_QEI0 29
// QEI0
71
#define INT_ADC0SS0 30
// ADC0 Sequence 0
72
#define INT_ADC0SS1 31
// ADC0 Sequence 1
73
#define INT_ADC0SS2 32
// ADC0 Sequence 2
74
#define INT_ADC0SS3 33
// ADC0 Sequence 3
75
#define INT_WATCHDOG 34
// Watchdog Timers 0 and 1
76
#define INT_TIMER0A 35
// 16/32-Bit Timer 0A
77
#define INT_TIMER0B 36
// 16/32-Bit Timer 0B
78
#define INT_TIMER1A 37
// 16/32-Bit Timer 1A
79
#define INT_TIMER1B 38
// 16/32-Bit Timer 1B
80
#define INT_TIMER2A 39
// 16/32-Bit Timer 2A
81
#define INT_TIMER2B 40
// 16/32-Bit Timer 2B
82
#define INT_COMP0 41
// Analog Comparator 0
83
#define INT_COMP1 42
// Analog Comparator 1
84
#define INT_SYSCTL 44
// System Control
85
#define INT_FLASH 45
// Flash Memory Control and EEPROM
86
// Control
87
#define INT_GPIOF 46
// GPIO Port F
88
#define INT_UART2 49
// UART2
89
#define INT_SSI1 50
// SSI1
90
#define INT_TIMER3A 51
// 16/32-Bit Timer 3A
91
#define INT_TIMER3B 52
// Timer 3B
92
#define INT_I2C1 53
// I2C1
93
#define INT_QEI1 54
// QEI1
94
#define INT_CAN0 55
// CAN0
95
#define INT_CAN1 56
// CAN1
96
#define INT_HIBERNATE 59
// Hibernation Module
97
#define INT_USB0 60
// USB
98
#define INT_PWM0_3 61
// PWM Generator 3
99
#define INT_UDMA 62
// uDMA Software
100
#define INT_UDMAERR 63
// uDMA Error
101
#define INT_ADC1SS0 64
// ADC1 Sequence 0
102
#define INT_ADC1SS1 65
// ADC1 Sequence 1
103
#define INT_ADC1SS2 66
// ADC1 Sequence 2
104
#define INT_ADC1SS3 67
// ADC1 Sequence 3
105
#define INT_SSI2 73
// SSI2
106
#define INT_SSI3 74
// SSI3
107
#define INT_UART3 75
// UART3
108
#define INT_UART4 76
// UART4
109
#define INT_UART5 77
// UART5
110
#define INT_UART6 78
// UART6
111
#define INT_UART7 79
// UART7
112
#define INT_I2C2 84
// I2C2
113
#define INT_I2C3 85
// I2C3
114
#define INT_TIMER4A 86
// 16/32-Bit Timer 4A
115
#define INT_TIMER4B 87
// 16/32-Bit Timer 4B
116
#define INT_TIMER5A 108
// 16/32-Bit Timer 5A
117
#define INT_TIMER5B 109
// 16/32-Bit Timer 5B
118
#define INT_WTIMER0A 110
// 32/64-Bit Timer 0A
119
#define INT_WTIMER0B 111
// 32/64-Bit Timer 0B
120
#define INT_WTIMER1A 112
// 32/64-Bit Timer 1A
121
#define INT_WTIMER1B 113
// 32/64-Bit Timer 1B
122
#define INT_WTIMER2A 114
// 32/64-Bit Timer 2A
123
#define INT_WTIMER2B 115
// 32/64-Bit Timer 2B
124
#define INT_WTIMER3A 116
// 32/64-Bit Timer 3A
125
#define INT_WTIMER3B 117
// 32/64-Bit Timer 3B
126
#define INT_WTIMER4A 118
// 32/64-Bit Timer 4A
127
#define INT_WTIMER4B 119
// 32/64-Bit Timer 4B
128
#define INT_WTIMER5A 120
// 32/64-Bit Timer 5A
129
#define INT_WTIMER5B 121
// 32/64-Bit Timer 5B
130
#define INT_SYSEXC 122
// System Exception (imprecise)
131
#define INT_PWM1_0 150
// PWM1 Generator 0
132
#define INT_PWM1_1 151
// PWM1 Generator 1
133
#define INT_PWM1_2 152
// PWM1 Generator 2
134
#define INT_PWM1_3 153
// PWM1 Generator 3
135
#define INT_PWM1_FAULT 154
// PWM1 Fault
136
137
//*****************************************************************************
138
//
139
// Watchdog Timer registers (WATCHDOG0)
140
//
141
//*****************************************************************************
142
#define WATCHDOG0_LOAD_R (*((volatile uint32_t *)0x40000000))
143
#define WATCHDOG0_VALUE_R (*((volatile uint32_t *)0x40000004))
144
#define WATCHDOG0_CTL_R (*((volatile uint32_t *)0x40000008))
145
#define WATCHDOG0_ICR_R (*((volatile uint32_t *)0x4000000C))
146
#define WATCHDOG0_RIS_R (*((volatile uint32_t *)0x40000010))
147
#define WATCHDOG0_MIS_R (*((volatile uint32_t *)0x40000014))
148
#define WATCHDOG0_TEST_R (*((volatile uint32_t *)0x40000418))
149
#define WATCHDOG0_LOCK_R (*((volatile uint32_t *)0x40000C00))
150
151
//*****************************************************************************
152
//
153
// Watchdog Timer registers (WATCHDOG1)
154
//
155
//*****************************************************************************
156
#define WATCHDOG1_LOAD_R (*((volatile uint32_t *)0x40001000))
157
#define WATCHDOG1_VALUE_R (*((volatile uint32_t *)0x40001004))
158
#define WATCHDOG1_CTL_R (*((volatile uint32_t *)0x40001008))
159
#define WATCHDOG1_ICR_R (*((volatile uint32_t *)0x4000100C))
160
#define WATCHDOG1_RIS_R (*((volatile uint32_t *)0x40001010))
161
#define WATCHDOG1_MIS_R (*((volatile uint32_t *)0x40001014))
162
#define WATCHDOG1_TEST_R (*((volatile uint32_t *)0x40001418))
163
#define WATCHDOG1_LOCK_R (*((volatile uint32_t *)0x40001C00))
164
165
//*****************************************************************************
166
//
167
// GPIO registers (PORTA)
168
//
169
//*****************************************************************************
170
#define GPIO_PORTA_DATA_BITS_R ((volatile uint32_t *)0x40004000)
171
#define GPIO_PORTA_DATA_R (*((volatile uint32_t *)0x400043FC))
172
#define GPIO_PORTA_DIR_R (*((volatile uint32_t *)0x40004400))
173
#define GPIO_PORTA_IS_R (*((volatile uint32_t *)0x40004404))
174
#define GPIO_PORTA_IBE_R (*((volatile uint32_t *)0x40004408))
175
#define GPIO_PORTA_IEV_R (*((volatile uint32_t *)0x4000440C))
176
#define GPIO_PORTA_IM_R (*((volatile uint32_t *)0x40004410))
177
#define GPIO_PORTA_RIS_R (*((volatile uint32_t *)0x40004414))
178
#define GPIO_PORTA_MIS_R (*((volatile uint32_t *)0x40004418))
179
#define GPIO_PORTA_ICR_R (*((volatile uint32_t *)0x4000441C))
180
#define GPIO_PORTA_AFSEL_R (*((volatile uint32_t *)0x40004420))
181
#define GPIO_PORTA_DR2R_R (*((volatile uint32_t *)0x40004500))
182
#define GPIO_PORTA_DR4R_R (*((volatile uint32_t *)0x40004504))
183
#define GPIO_PORTA_DR8R_R (*((volatile uint32_t *)0x40004508))
184
#define GPIO_PORTA_ODR_R (*((volatile uint32_t *)0x4000450C))
185
#define GPIO_PORTA_PUR_R (*((volatile uint32_t *)0x40004510))
186
#define GPIO_PORTA_PDR_R (*((volatile uint32_t *)0x40004514))
187
#define GPIO_PORTA_SLR_R (*((volatile uint32_t *)0x40004518))
188
#define GPIO_PORTA_DEN_R (*((volatile uint32_t *)0x4000451C))
189
#define GPIO_PORTA_LOCK_R (*((volatile uint32_t *)0x40004520))
190
#define GPIO_PORTA_CR_R (*((volatile uint32_t *)0x40004524))
191
#define GPIO_PORTA_AMSEL_R (*((volatile uint32_t *)0x40004528))
192
#define GPIO_PORTA_PCTL_R (*((volatile uint32_t *)0x4000452C))
193
#define GPIO_PORTA_ADCCTL_R (*((volatile uint32_t *)0x40004530))
194
#define GPIO_PORTA_DMACTL_R (*((volatile uint32_t *)0x40004534))
195
196
//*****************************************************************************
197
//
198
// GPIO registers (PORTB)
199
//
200
//*****************************************************************************
201
#define GPIO_PORTB_DATA_BITS_R ((volatile uint32_t *)0x40005000)
202
#define GPIO_PORTB_DATA_R (*((volatile uint32_t *)0x400053FC))
203
#define GPIO_PORTB_DIR_R (*((volatile uint32_t *)0x40005400))
204
#define GPIO_PORTB_IS_R (*((volatile uint32_t *)0x40005404))
205
#define GPIO_PORTB_IBE_R (*((volatile uint32_t *)0x40005408))
206
#define GPIO_PORTB_IEV_R (*((volatile uint32_t *)0x4000540C))
207
#define GPIO_PORTB_IM_R (*((volatile uint32_t *)0x40005410))
208
#define GPIO_PORTB_RIS_R (*((volatile uint32_t *)0x40005414))
209
#define GPIO_PORTB_MIS_R (*((volatile uint32_t *)0x40005418))
210
#define GPIO_PORTB_ICR_R (*((volatile uint32_t *)0x4000541C))
211
#define GPIO_PORTB_AFSEL_R (*((volatile uint32_t *)0x40005420))
212
#define GPIO_PORTB_DR2R_R (*((volatile uint32_t *)0x40005500))
213
#define GPIO_PORTB_DR4R_R (*((volatile uint32_t *)0x40005504))
214
#define GPIO_PORTB_DR8R_R (*((volatile uint32_t *)0x40005508))
215
#define GPIO_PORTB_ODR_R (*((volatile uint32_t *)0x4000550C))
216
#define GPIO_PORTB_PUR_R (*((volatile uint32_t *)0x40005510))
217
#define GPIO_PORTB_PDR_R (*((volatile uint32_t *)0x40005514))
218
#define GPIO_PORTB_SLR_R (*((volatile uint32_t *)0x40005518))
219
#define GPIO_PORTB_DEN_R (*((volatile uint32_t *)0x4000551C))
220
#define GPIO_PORTB_LOCK_R (*((volatile uint32_t *)0x40005520))
221
#define GPIO_PORTB_CR_R (*((volatile uint32_t *)0x40005524))
222
#define GPIO_PORTB_AMSEL_R (*((volatile uint32_t *)0x40005528))
223
#define GPIO_PORTB_PCTL_R (*((volatile uint32_t *)0x4000552C))
224
#define GPIO_PORTB_ADCCTL_R (*((volatile uint32_t *)0x40005530))
225
#define GPIO_PORTB_DMACTL_R (*((volatile uint32_t *)0x40005534))
226
227
//*****************************************************************************
228
//
229
// GPIO registers (PORTC)
230
//
231
//*****************************************************************************
232
#define GPIO_PORTC_DATA_BITS_R ((volatile uint32_t *)0x40006000)
233
#define GPIO_PORTC_DATA_R (*((volatile uint32_t *)0x400063FC))
234
#define GPIO_PORTC_DIR_R (*((volatile uint32_t *)0x40006400))
235
#define GPIO_PORTC_IS_R (*((volatile uint32_t *)0x40006404))
236
#define GPIO_PORTC_IBE_R (*((volatile uint32_t *)0x40006408))
237
#define GPIO_PORTC_IEV_R (*((volatile uint32_t *)0x4000640C))
238
#define GPIO_PORTC_IM_R (*((volatile uint32_t *)0x40006410))
239
#define GPIO_PORTC_RIS_R (*((volatile uint32_t *)0x40006414))
240
#define GPIO_PORTC_MIS_R (*((volatile uint32_t *)0x40006418))
241
#define GPIO_PORTC_ICR_R (*((volatile uint32_t *)0x4000641C))
242
#define GPIO_PORTC_AFSEL_R (*((volatile uint32_t *)0x40006420))
243
#define GPIO_PORTC_DR2R_R (*((volatile uint32_t *)0x40006500))
244
#define GPIO_PORTC_DR4R_R (*((volatile uint32_t *)0x40006504))
245
#define GPIO_PORTC_DR8R_R (*((volatile uint32_t *)0x40006508))
246
#define GPIO_PORTC_ODR_R (*((volatile uint32_t *)0x4000650C))
247
#define GPIO_PORTC_PUR_R (*((volatile uint32_t *)0x40006510))
248
#define GPIO_PORTC_PDR_R (*((volatile uint32_t *)0x40006514))
249
#define GPIO_PORTC_SLR_R (*((volatile uint32_t *)0x40006518))
250
#define GPIO_PORTC_DEN_R (*((volatile uint32_t *)0x4000651C))
251
#define GPIO_PORTC_LOCK_R (*((volatile uint32_t *)0x40006520))
252
#define GPIO_PORTC_CR_R (*((volatile uint32_t *)0x40006524))
253
#define GPIO_PORTC_AMSEL_R (*((volatile uint32_t *)0x40006528))
254
#define GPIO_PORTC_PCTL_R (*((volatile uint32_t *)0x4000652C))
255
#define GPIO_PORTC_ADCCTL_R (*((volatile uint32_t *)0x40006530))
256
#define GPIO_PORTC_DMACTL_R (*((volatile uint32_t *)0x40006534))
257
258
//*****************************************************************************
259
//
260
// GPIO registers (PORTD)
261
//
262
//*****************************************************************************
263
#define GPIO_PORTD_DATA_BITS_R ((volatile uint32_t *)0x40007000)
264
#define GPIO_PORTD_DATA_R (*((volatile uint32_t *)0x400073FC))
265
#define GPIO_PORTD_DIR_R (*((volatile uint32_t *)0x40007400))
266
#define GPIO_PORTD_IS_R (*((volatile uint32_t *)0x40007404))
267
#define GPIO_PORTD_IBE_R (*((volatile uint32_t *)0x40007408))
268
#define GPIO_PORTD_IEV_R (*((volatile uint32_t *)0x4000740C))
269
#define GPIO_PORTD_IM_R (*((volatile uint32_t *)0x40007410))
270
#define GPIO_PORTD_RIS_R (*((volatile uint32_t *)0x40007414))
271
#define GPIO_PORTD_MIS_R (*((volatile uint32_t *)0x40007418))
272
#define GPIO_PORTD_ICR_R (*((volatile uint32_t *)0x4000741C))
273
#define GPIO_PORTD_AFSEL_R (*((volatile uint32_t *)0x40007420))
274
#define GPIO_PORTD_DR2R_R (*((volatile uint32_t *)0x40007500))
275
#define GPIO_PORTD_DR4R_R (*((volatile uint32_t *)0x40007504))
276
#define GPIO_PORTD_DR8R_R (*((volatile uint32_t *)0x40007508))
277
#define GPIO_PORTD_ODR_R (*((volatile uint32_t *)0x4000750C))
278
#define GPIO_PORTD_PUR_R (*((volatile uint32_t *)0x40007510))
279
#define GPIO_PORTD_PDR_R (*((volatile uint32_t *)0x40007514))
280
#define GPIO_PORTD_SLR_R (*((volatile uint32_t *)0x40007518))
281
#define GPIO_PORTD_DEN_R (*((volatile uint32_t *)0x4000751C))
282
#define GPIO_PORTD_LOCK_R (*((volatile uint32_t *)0x40007520))
283
#define GPIO_PORTD_CR_R (*((volatile uint32_t *)0x40007524))
284
#define GPIO_PORTD_AMSEL_R (*((volatile uint32_t *)0x40007528))
285
#define GPIO_PORTD_PCTL_R (*((volatile uint32_t *)0x4000752C))
286
#define GPIO_PORTD_ADCCTL_R (*((volatile uint32_t *)0x40007530))
287
#define GPIO_PORTD_DMACTL_R (*((volatile uint32_t *)0x40007534))
288
289
//*****************************************************************************
290
//
291
// SSI registers (SSI0)
292
//
293
//*****************************************************************************
294
#define SSI0_CR0_R (*((volatile uint32_t *)0x40008000))
295
#define SSI0_CR1_R (*((volatile uint32_t *)0x40008004))
296
#define SSI0_DR_R (*((volatile uint32_t *)0x40008008))
297
#define SSI0_SR_R (*((volatile uint32_t *)0x4000800C))
298
#define SSI0_CPSR_R (*((volatile uint32_t *)0x40008010))
299
#define SSI0_IM_R (*((volatile uint32_t *)0x40008014))
300
#define SSI0_RIS_R (*((volatile uint32_t *)0x40008018))
301
#define SSI0_MIS_R (*((volatile uint32_t *)0x4000801C))
302
#define SSI0_ICR_R (*((volatile uint32_t *)0x40008020))
303
#define SSI0_DMACTL_R (*((volatile uint32_t *)0x40008024))
304
#define SSI0_CC_R (*((volatile uint32_t *)0x40008FC8))
305
306
//*****************************************************************************
307
//
308
// SSI registers (SSI1)
309
//
310
//*****************************************************************************
311
#define SSI1_CR0_R (*((volatile uint32_t *)0x40009000))
312
#define SSI1_CR1_R (*((volatile uint32_t *)0x40009004))
313
#define SSI1_DR_R (*((volatile uint32_t *)0x40009008))
314
#define SSI1_SR_R (*((volatile uint32_t *)0x4000900C))
315
#define SSI1_CPSR_R (*((volatile uint32_t *)0x40009010))
316
#define SSI1_IM_R (*((volatile uint32_t *)0x40009014))
317
#define SSI1_RIS_R (*((volatile uint32_t *)0x40009018))
318
#define SSI1_MIS_R (*((volatile uint32_t *)0x4000901C))
319
#define SSI1_ICR_R (*((volatile uint32_t *)0x40009020))
320
#define SSI1_DMACTL_R (*((volatile uint32_t *)0x40009024))
321
#define SSI1_CC_R (*((volatile uint32_t *)0x40009FC8))
322
323
//*****************************************************************************
324
//
325
// SSI registers (SSI2)
326
//
327
//*****************************************************************************
328
#define SSI2_CR0_R (*((volatile uint32_t *)0x4000A000))
329
#define SSI2_CR1_R (*((volatile uint32_t *)0x4000A004))
330
#define SSI2_DR_R (*((volatile uint32_t *)0x4000A008))
331
#define SSI2_SR_R (*((volatile uint32_t *)0x4000A00C))
332
#define SSI2_CPSR_R (*((volatile uint32_t *)0x4000A010))
333
#define SSI2_IM_R (*((volatile uint32_t *)0x4000A014))
334
#define SSI2_RIS_R (*((volatile uint32_t *)0x4000A018))
335
#define SSI2_MIS_R (*((volatile uint32_t *)0x4000A01C))
336
#define SSI2_ICR_R (*((volatile uint32_t *)0x4000A020))
337
#define SSI2_DMACTL_R (*((volatile uint32_t *)0x4000A024))
338
#define SSI2_CC_R (*((volatile uint32_t *)0x4000AFC8))
339
340
//*****************************************************************************
341
//
342
// SSI registers (SSI3)
343
//
344
//*****************************************************************************
345
#define SSI3_CR0_R (*((volatile uint32_t *)0x4000B000))
346
#define SSI3_CR1_R (*((volatile uint32_t *)0x4000B004))
347
#define SSI3_DR_R (*((volatile uint32_t *)0x4000B008))
348
#define SSI3_SR_R (*((volatile uint32_t *)0x4000B00C))
349
#define SSI3_CPSR_R (*((volatile uint32_t *)0x4000B010))
350
#define SSI3_IM_R (*((volatile uint32_t *)0x4000B014))
351
#define SSI3_RIS_R (*((volatile uint32_t *)0x4000B018))
352
#define SSI3_MIS_R (*((volatile uint32_t *)0x4000B01C))
353
#define SSI3_ICR_R (*((volatile uint32_t *)0x4000B020))
354
#define SSI3_DMACTL_R (*((volatile uint32_t *)0x4000B024))
355
#define SSI3_CC_R (*((volatile uint32_t *)0x4000BFC8))
356
357
//*****************************************************************************
358
//
359
// UART registers (UART0)
360
//
361
//*****************************************************************************
362
#define UART0_DR_R (*((volatile uint32_t *)0x4000C000))
363
#define UART0_RSR_R (*((volatile uint32_t *)0x4000C004))
364
#define UART0_ECR_R (*((volatile uint32_t *)0x4000C004))
365
#define UART0_FR_R (*((volatile uint32_t *)0x4000C018))
366
#define UART0_ILPR_R (*((volatile uint32_t *)0x4000C020))
367
#define UART0_IBRD_R (*((volatile uint32_t *)0x4000C024))
368
#define UART0_FBRD_R (*((volatile uint32_t *)0x4000C028))
369
#define UART0_LCRH_R (*((volatile uint32_t *)0x4000C02C))
370
#define UART0_CTL_R (*((volatile uint32_t *)0x4000C030))
371
#define UART0_IFLS_R (*((volatile uint32_t *)0x4000C034))
372
#define UART0_IM_R (*((volatile uint32_t *)0x4000C038))
373
#define UART0_RIS_R (*((volatile uint32_t *)0x4000C03C))
374
#define UART0_MIS_R (*((volatile uint32_t *)0x4000C040))
375
#define UART0_ICR_R (*((volatile uint32_t *)0x4000C044))
376
#define UART0_DMACTL_R (*((volatile uint32_t *)0x4000C048))
377
#define UART0_9BITADDR_R (*((volatile uint32_t *)0x4000C0A4))
378
#define UART0_9BITAMASK_R (*((volatile uint32_t *)0x4000C0A8))
379
#define UART0_PP_R (*((volatile uint32_t *)0x4000CFC0))
380
#define UART0_CC_R (*((volatile uint32_t *)0x4000CFC8))
381
382
//*****************************************************************************
383
//
384
// UART registers (UART1)
385
//
386
//*****************************************************************************
387
#define UART1_DR_R (*((volatile uint32_t *)0x4000D000))
388
#define UART1_RSR_R (*((volatile uint32_t *)0x4000D004))
389
#define UART1_ECR_R (*((volatile uint32_t *)0x4000D004))
390
#define UART1_FR_R (*((volatile uint32_t *)0x4000D018))
391
#define UART1_ILPR_R (*((volatile uint32_t *)0x4000D020))
392
#define UART1_IBRD_R (*((volatile uint32_t *)0x4000D024))
393
#define UART1_FBRD_R (*((volatile uint32_t *)0x4000D028))
394
#define UART1_LCRH_R (*((volatile uint32_t *)0x4000D02C))
395
#define UART1_CTL_R (*((volatile uint32_t *)0x4000D030))
396
#define UART1_IFLS_R (*((volatile uint32_t *)0x4000D034))
397
#define UART1_IM_R (*((volatile uint32_t *)0x4000D038))
398
#define UART1_RIS_R (*((volatile uint32_t *)0x4000D03C))
399
#define UART1_MIS_R (*((volatile uint32_t *)0x4000D040))
400
#define UART1_ICR_R (*((volatile uint32_t *)0x4000D044))
401
#define UART1_DMACTL_R (*((volatile uint32_t *)0x4000D048))
402
#define UART1_9BITADDR_R (*((volatile uint32_t *)0x4000D0A4))
403
#define UART1_9BITAMASK_R (*((volatile uint32_t *)0x4000D0A8))
404
#define UART1_PP_R (*((volatile uint32_t *)0x4000DFC0))
405
#define UART1_CC_R (*((volatile uint32_t *)0x4000DFC8))
406
407
//*****************************************************************************
408
//
409
// UART registers (UART2)
410
//
411
//*****************************************************************************
412
#define UART2_DR_R (*((volatile uint32_t *)0x4000E000))
413
#define UART2_RSR_R (*((volatile uint32_t *)0x4000E004))
414
#define UART2_ECR_R (*((volatile uint32_t *)0x4000E004))
415
#define UART2_FR_R (*((volatile uint32_t *)0x4000E018))
416
#define UART2_ILPR_R (*((volatile uint32_t *)0x4000E020))
417
#define UART2_IBRD_R (*((volatile uint32_t *)0x4000E024))
418
#define UART2_FBRD_R (*((volatile uint32_t *)0x4000E028))
419
#define UART2_LCRH_R (*((volatile uint32_t *)0x4000E02C))
420
#define UART2_CTL_R (*((volatile uint32_t *)0x4000E030))
421
#define UART2_IFLS_R (*((volatile uint32_t *)0x4000E034))
422
#define UART2_IM_R (*((volatile uint32_t *)0x4000E038))
423
#define UART2_RIS_R (*((volatile uint32_t *)0x4000E03C))
424
#define UART2_MIS_R (*((volatile uint32_t *)0x4000E040))
425
#define UART2_ICR_R (*((volatile uint32_t *)0x4000E044))
426
#define UART2_DMACTL_R (*((volatile uint32_t *)0x4000E048))
427
#define UART2_9BITADDR_R (*((volatile uint32_t *)0x4000E0A4))
428
#define UART2_9BITAMASK_R (*((volatile uint32_t *)0x4000E0A8))
429
#define UART2_PP_R (*((volatile uint32_t *)0x4000EFC0))
430
#define UART2_CC_R (*((volatile uint32_t *)0x4000EFC8))
431
432
//*****************************************************************************
433
//
434
// UART registers (UART3)
435
//
436
//*****************************************************************************
437
#define UART3_DR_R (*((volatile uint32_t *)0x4000F000))
438
#define UART3_RSR_R (*((volatile uint32_t *)0x4000F004))
439
#define UART3_ECR_R (*((volatile uint32_t *)0x4000F004))
440
#define UART3_FR_R (*((volatile uint32_t *)0x4000F018))
441
#define UART3_ILPR_R (*((volatile uint32_t *)0x4000F020))
442
#define UART3_IBRD_R (*((volatile uint32_t *)0x4000F024))
443
#define UART3_FBRD_R (*((volatile uint32_t *)0x4000F028))
444
#define UART3_LCRH_R (*((volatile uint32_t *)0x4000F02C))
445
#define UART3_CTL_R (*((volatile uint32_t *)0x4000F030))
446
#define UART3_IFLS_R (*((volatile uint32_t *)0x4000F034))
447
#define UART3_IM_R (*((volatile uint32_t *)0x4000F038))
448
#define UART3_RIS_R (*((volatile uint32_t *)0x4000F03C))
449
#define UART3_MIS_R (*((volatile uint32_t *)0x4000F040))
450
#define UART3_ICR_R (*((volatile uint32_t *)0x4000F044))
451
#define UART3_DMACTL_R (*((volatile uint32_t *)0x4000F048))
452
#define UART3_9BITADDR_R (*((volatile uint32_t *)0x4000F0A4))
453
#define UART3_9BITAMASK_R (*((volatile uint32_t *)0x4000F0A8))
454
#define UART3_PP_R (*((volatile uint32_t *)0x4000FFC0))
455
#define UART3_CC_R (*((volatile uint32_t *)0x4000FFC8))
456
457
//*****************************************************************************
458
//
459
// UART registers (UART4)
460
//
461
//*****************************************************************************
462
#define UART4_DR_R (*((volatile uint32_t *)0x40010000))
463
#define UART4_RSR_R (*((volatile uint32_t *)0x40010004))
464
#define UART4_ECR_R (*((volatile uint32_t *)0x40010004))
465
#define UART4_FR_R (*((volatile uint32_t *)0x40010018))
466
#define UART4_ILPR_R (*((volatile uint32_t *)0x40010020))
467
#define UART4_IBRD_R (*((volatile uint32_t *)0x40010024))
468
#define UART4_FBRD_R (*((volatile uint32_t *)0x40010028))
469
#define UART4_LCRH_R (*((volatile uint32_t *)0x4001002C))
470
#define UART4_CTL_R (*((volatile uint32_t *)0x40010030))
471
#define UART4_IFLS_R (*((volatile uint32_t *)0x40010034))
472
#define UART4_IM_R (*((volatile uint32_t *)0x40010038))
473
#define UART4_RIS_R (*((volatile uint32_t *)0x4001003C))
474
#define UART4_MIS_R (*((volatile uint32_t *)0x40010040))
475
#define UART4_ICR_R (*((volatile uint32_t *)0x40010044))
476
#define UART4_DMACTL_R (*((volatile uint32_t *)0x40010048))
477
#define UART4_9BITADDR_R (*((volatile uint32_t *)0x400100A4))
478
#define UART4_9BITAMASK_R (*((volatile uint32_t *)0x400100A8))
479
#define UART4_PP_R (*((volatile uint32_t *)0x40010FC0))
480
#define UART4_CC_R (*((volatile uint32_t *)0x40010FC8))
481
482
//*****************************************************************************
483
//
484
// UART registers (UART5)
485
//
486
//*****************************************************************************
487
#define UART5_DR_R (*((volatile uint32_t *)0x40011000))
488
#define UART5_RSR_R (*((volatile uint32_t *)0x40011004))
489
#define UART5_ECR_R (*((volatile uint32_t *)0x40011004))
490
#define UART5_FR_R (*((volatile uint32_t *)0x40011018))
491
#define UART5_ILPR_R (*((volatile uint32_t *)0x40011020))
492
#define UART5_IBRD_R (*((volatile uint32_t *)0x40011024))
493
#define UART5_FBRD_R (*((volatile uint32_t *)0x40011028))
494
#define UART5_LCRH_R (*((volatile uint32_t *)0x4001102C))
495
#define UART5_CTL_R (*((volatile uint32_t *)0x40011030))
496
#define UART5_IFLS_R (*((volatile uint32_t *)0x40011034))
497
#define UART5_IM_R (*((volatile uint32_t *)0x40011038))
498
#define UART5_RIS_R (*((volatile uint32_t *)0x4001103C))
499
#define UART5_MIS_R (*((volatile uint32_t *)0x40011040))
500
#define UART5_ICR_R (*((volatile uint32_t *)0x40011044))
501
#define UART5_DMACTL_R (*((volatile uint32_t *)0x40011048))
502
#define UART5_9BITADDR_R (*((volatile uint32_t *)0x400110A4))
503
#define UART5_9BITAMASK_R (*((volatile uint32_t *)0x400110A8))
504
#define UART5_PP_R (*((volatile uint32_t *)0x40011FC0))
505
#define UART5_CC_R (*((volatile uint32_t *)0x40011FC8))
506
507
//*****************************************************************************
508
//
509
// UART registers (UART6)
510
//
511
//*****************************************************************************
512
#define UART6_DR_R (*((volatile uint32_t *)0x40012000))
513
#define UART6_RSR_R (*((volatile uint32_t *)0x40012004))
514
#define UART6_ECR_R (*((volatile uint32_t *)0x40012004))
515
#define UART6_FR_R (*((volatile uint32_t *)0x40012018))
516
#define UART6_ILPR_R (*((volatile uint32_t *)0x40012020))
517
#define UART6_IBRD_R (*((volatile uint32_t *)0x40012024))
518
#define UART6_FBRD_R (*((volatile uint32_t *)0x40012028))
519
#define UART6_LCRH_R (*((volatile uint32_t *)0x4001202C))
520
#define UART6_CTL_R (*((volatile uint32_t *)0x40012030))
521
#define UART6_IFLS_R (*((volatile uint32_t *)0x40012034))
522
#define UART6_IM_R (*((volatile uint32_t *)0x40012038))
523
#define UART6_RIS_R (*((volatile uint32_t *)0x4001203C))
524
#define UART6_MIS_R (*((volatile uint32_t *)0x40012040))
525
#define UART6_ICR_R (*((volatile uint32_t *)0x40012044))
526
#define UART6_DMACTL_R (*((volatile uint32_t *)0x40012048))
527
#define UART6_9BITADDR_R (*((volatile uint32_t *)0x400120A4))
528
#define UART6_9BITAMASK_R (*((volatile uint32_t *)0x400120A8))
529
#define UART6_PP_R (*((volatile uint32_t *)0x40012FC0))
530
#define UART6_CC_R (*((volatile uint32_t *)0x40012FC8))
531
532
//*****************************************************************************
533
//
534
// UART registers (UART7)
535
//
536
//*****************************************************************************
537
#define UART7_DR_R (*((volatile uint32_t *)0x40013000))
538
#define UART7_RSR_R (*((volatile uint32_t *)0x40013004))
539
#define UART7_ECR_R (*((volatile uint32_t *)0x40013004))
540
#define UART7_FR_R (*((volatile uint32_t *)0x40013018))
541
#define UART7_ILPR_R (*((volatile uint32_t *)0x40013020))
542
#define UART7_IBRD_R (*((volatile uint32_t *)0x40013024))
543
#define UART7_FBRD_R (*((volatile uint32_t *)0x40013028))
544
#define UART7_LCRH_R (*((volatile uint32_t *)0x4001302C))
545
#define UART7_CTL_R (*((volatile uint32_t *)0x40013030))
546
#define UART7_IFLS_R (*((volatile uint32_t *)0x40013034))
547
#define UART7_IM_R (*((volatile uint32_t *)0x40013038))
548
#define UART7_RIS_R (*((volatile uint32_t *)0x4001303C))
549
#define UART7_MIS_R (*((volatile uint32_t *)0x40013040))
550
#define UART7_ICR_R (*((volatile uint32_t *)0x40013044))
551
#define UART7_DMACTL_R (*((volatile uint32_t *)0x40013048))
552
#define UART7_9BITADDR_R (*((volatile uint32_t *)0x400130A4))
553
#define UART7_9BITAMASK_R (*((volatile uint32_t *)0x400130A8))
554
#define UART7_PP_R (*((volatile uint32_t *)0x40013FC0))
555
#define UART7_CC_R (*((volatile uint32_t *)0x40013FC8))
556
557
//*****************************************************************************
558
//
559
// I2C registers (I2C0)
560
//
561
//*****************************************************************************
562
#define I2C0_MSA_R (*((volatile uint32_t *)0x40020000))
563
#define I2C0_MCS_R (*((volatile uint32_t *)0x40020004))
564
#define I2C0_MDR_R (*((volatile uint32_t *)0x40020008))
565
#define I2C0_MTPR_R (*((volatile uint32_t *)0x4002000C))
566
#define I2C0_MIMR_R (*((volatile uint32_t *)0x40020010))
567
#define I2C0_MRIS_R (*((volatile uint32_t *)0x40020014))
568
#define I2C0_MMIS_R (*((volatile uint32_t *)0x40020018))
569
#define I2C0_MICR_R (*((volatile uint32_t *)0x4002001C))
570
#define I2C0_MCR_R (*((volatile uint32_t *)0x40020020))
571
#define I2C0_MCLKOCNT_R (*((volatile uint32_t *)0x40020024))
572
#define I2C0_MBMON_R (*((volatile uint32_t *)0x4002002C))
573
#define I2C0_MCR2_R (*((volatile uint32_t *)0x40020038))
574
#define I2C0_SOAR_R (*((volatile uint32_t *)0x40020800))
575
#define I2C0_SCSR_R (*((volatile uint32_t *)0x40020804))
576
#define I2C0_SDR_R (*((volatile uint32_t *)0x40020808))
577
#define I2C0_SIMR_R (*((volatile uint32_t *)0x4002080C))
578
#define I2C0_SRIS_R (*((volatile uint32_t *)0x40020810))
579
#define I2C0_SMIS_R (*((volatile uint32_t *)0x40020814))
580
#define I2C0_SICR_R (*((volatile uint32_t *)0x40020818))
581
#define I2C0_SOAR2_R (*((volatile uint32_t *)0x4002081C))
582
#define I2C0_SACKCTL_R (*((volatile uint32_t *)0x40020820))
583
#define I2C0_PP_R (*((volatile uint32_t *)0x40020FC0))
584
#define I2C0_PC_R (*((volatile uint32_t *)0x40020FC4))
585
586
//*****************************************************************************
587
//
588
// I2C registers (I2C1)
589
//
590
//*****************************************************************************
591
#define I2C1_MSA_R (*((volatile uint32_t *)0x40021000))
592
#define I2C1_MCS_R (*((volatile uint32_t *)0x40021004))
593
#define I2C1_MDR_R (*((volatile uint32_t *)0x40021008))
594
#define I2C1_MTPR_R (*((volatile uint32_t *)0x4002100C))
595
#define I2C1_MIMR_R (*((volatile uint32_t *)0x40021010))
596
#define I2C1_MRIS_R (*((volatile uint32_t *)0x40021014))
597
#define I2C1_MMIS_R (*((volatile uint32_t *)0x40021018))
598
#define I2C1_MICR_R (*((volatile uint32_t *)0x4002101C))
599
#define I2C1_MCR_R (*((volatile uint32_t *)0x40021020))
600
#define I2C1_MCLKOCNT_R (*((volatile uint32_t *)0x40021024))
601
#define I2C1_MBMON_R (*((volatile uint32_t *)0x4002102C))
602
#define I2C1_MCR2_R (*((volatile uint32_t *)0x40021038))
603
#define I2C1_SOAR_R (*((volatile uint32_t *)0x40021800))
604
#define I2C1_SCSR_R (*((volatile uint32_t *)0x40021804))
605
#define I2C1_SDR_R (*((volatile uint32_t *)0x40021808))
606
#define I2C1_SIMR_R (*((volatile uint32_t *)0x4002180C))
607
#define I2C1_SRIS_R (*((volatile uint32_t *)0x40021810))
608
#define I2C1_SMIS_R (*((volatile uint32_t *)0x40021814))
609
#define I2C1_SICR_R (*((volatile uint32_t *)0x40021818))
610
#define I2C1_SOAR2_R (*((volatile uint32_t *)0x4002181C))
611
#define I2C1_SACKCTL_R (*((volatile uint32_t *)0x40021820))
612
#define I2C1_PP_R (*((volatile uint32_t *)0x40021FC0))
613
#define I2C1_PC_R (*((volatile uint32_t *)0x40021FC4))
614
615
//*****************************************************************************
616
//
617
// I2C registers (I2C2)
618
//
619
//*****************************************************************************
620
#define I2C2_MSA_R (*((volatile uint32_t *)0x40022000))
621
#define I2C2_MCS_R (*((volatile uint32_t *)0x40022004))
622
#define I2C2_MDR_R (*((volatile uint32_t *)0x40022008))
623
#define I2C2_MTPR_R (*((volatile uint32_t *)0x4002200C))
624
#define I2C2_MIMR_R (*((volatile uint32_t *)0x40022010))
625
#define I2C2_MRIS_R (*((volatile uint32_t *)0x40022014))
626
#define I2C2_MMIS_R (*((volatile uint32_t *)0x40022018))
627
#define I2C2_MICR_R (*((volatile uint32_t *)0x4002201C))
628
#define I2C2_MCR_R (*((volatile uint32_t *)0x40022020))
629
#define I2C2_MCLKOCNT_R (*((volatile uint32_t *)0x40022024))
630
#define I2C2_MBMON_R (*((volatile uint32_t *)0x4002202C))
631
#define I2C2_MCR2_R (*((volatile uint32_t *)0x40022038))
632
#define I2C2_SOAR_R (*((volatile uint32_t *)0x40022800))
633
#define I2C2_SCSR_R (*((volatile uint32_t *)0x40022804))
634
#define I2C2_SDR_R (*((volatile uint32_t *)0x40022808))
635
#define I2C2_SIMR_R (*((volatile uint32_t *)0x4002280C))
636
#define I2C2_SRIS_R (*((volatile uint32_t *)0x40022810))
637
#define I2C2_SMIS_R (*((volatile uint32_t *)0x40022814))
638
#define I2C2_SICR_R (*((volatile uint32_t *)0x40022818))
639
#define I2C2_SOAR2_R (*((volatile uint32_t *)0x4002281C))
640
#define I2C2_SACKCTL_R (*((volatile uint32_t *)0x40022820))
641
#define I2C2_PP_R (*((volatile uint32_t *)0x40022FC0))
642
#define I2C2_PC_R (*((volatile uint32_t *)0x40022FC4))
643
644
//*****************************************************************************
645
//
646
// I2C registers (I2C3)
647
//
648
//*****************************************************************************
649
#define I2C3_MSA_R (*((volatile uint32_t *)0x40023000))
650
#define I2C3_MCS_R (*((volatile uint32_t *)0x40023004))
651
#define I2C3_MDR_R (*((volatile uint32_t *)0x40023008))
652
#define I2C3_MTPR_R (*((volatile uint32_t *)0x4002300C))
653
#define I2C3_MIMR_R (*((volatile uint32_t *)0x40023010))
654
#define I2C3_MRIS_R (*((volatile uint32_t *)0x40023014))
655
#define I2C3_MMIS_R (*((volatile uint32_t *)0x40023018))
656
#define I2C3_MICR_R (*((volatile uint32_t *)0x4002301C))
657
#define I2C3_MCR_R (*((volatile uint32_t *)0x40023020))
658
#define I2C3_MCLKOCNT_R (*((volatile uint32_t *)0x40023024))
659
#define I2C3_MBMON_R (*((volatile uint32_t *)0x4002302C))
660
#define I2C3_MCR2_R (*((volatile uint32_t *)0x40023038))
661
#define I2C3_SOAR_R (*((volatile uint32_t *)0x40023800))
662
#define I2C3_SCSR_R (*((volatile uint32_t *)0x40023804))
663
#define I2C3_SDR_R (*((volatile uint32_t *)0x40023808))
664
#define I2C3_SIMR_R (*((volatile uint32_t *)0x4002380C))
665
#define I2C3_SRIS_R (*((volatile uint32_t *)0x40023810))
666
#define I2C3_SMIS_R (*((volatile uint32_t *)0x40023814))
667
#define I2C3_SICR_R (*((volatile uint32_t *)0x40023818))
668
#define I2C3_SOAR2_R (*((volatile uint32_t *)0x4002381C))
669
#define I2C3_SACKCTL_R (*((volatile uint32_t *)0x40023820))
670
#define I2C3_PP_R (*((volatile uint32_t *)0x40023FC0))
671
#define I2C3_PC_R (*((volatile uint32_t *)0x40023FC4))
672
673
//*****************************************************************************
674
//
675
// GPIO registers (PORTE)
676
//
677
//*****************************************************************************
678
#define GPIO_PORTE_DATA_BITS_R ((volatile uint32_t *)0x40024000)
679
#define GPIO_PORTE_DATA_R (*((volatile uint32_t *)0x400243FC))
680
#define GPIO_PORTE_DIR_R (*((volatile uint32_t *)0x40024400))
681
#define GPIO_PORTE_IS_R (*((volatile uint32_t *)0x40024404))
682
#define GPIO_PORTE_IBE_R (*((volatile uint32_t *)0x40024408))
683
#define GPIO_PORTE_IEV_R (*((volatile uint32_t *)0x4002440C))
684
#define GPIO_PORTE_IM_R (*((volatile uint32_t *)0x40024410))
685
#define GPIO_PORTE_RIS_R (*((volatile uint32_t *)0x40024414))
686
#define GPIO_PORTE_MIS_R (*((volatile uint32_t *)0x40024418))
687
#define GPIO_PORTE_ICR_R (*((volatile uint32_t *)0x4002441C))
688
#define GPIO_PORTE_AFSEL_R (*((volatile uint32_t *)0x40024420))
689
#define GPIO_PORTE_DR2R_R (*((volatile uint32_t *)0x40024500))
690
#define GPIO_PORTE_DR4R_R (*((volatile uint32_t *)0x40024504))
691
#define GPIO_PORTE_DR8R_R (*((volatile uint32_t *)0x40024508))
692
#define GPIO_PORTE_ODR_R (*((volatile uint32_t *)0x4002450C))
693
#define GPIO_PORTE_PUR_R (*((volatile uint32_t *)0x40024510))
694
#define GPIO_PORTE_PDR_R (*((volatile uint32_t *)0x40024514))
695
#define GPIO_PORTE_SLR_R (*((volatile uint32_t *)0x40024518))
696
#define GPIO_PORTE_DEN_R (*((volatile uint32_t *)0x4002451C))
697
#define GPIO_PORTE_LOCK_R (*((volatile uint32_t *)0x40024520))
698
#define GPIO_PORTE_CR_R (*((volatile uint32_t *)0x40024524))
699
#define GPIO_PORTE_AMSEL_R (*((volatile uint32_t *)0x40024528))
700
#define GPIO_PORTE_PCTL_R (*((volatile uint32_t *)0x4002452C))
701
#define GPIO_PORTE_ADCCTL_R (*((volatile uint32_t *)0x40024530))
702
#define GPIO_PORTE_DMACTL_R (*((volatile uint32_t *)0x40024534))
703
704
//*****************************************************************************
705
//
706
// GPIO registers (PORTF)
707
//
708
//*****************************************************************************
709
#define GPIO_PORTF_DATA_BITS_R ((volatile uint32_t *)0x40025000)
710
#define GPIO_PORTF_DATA_R (*((volatile uint32_t *)0x400253FC))
711
#define GPIO_PORTF_DIR_R (*((volatile uint32_t *)0x40025400))
712
#define GPIO_PORTF_IS_R (*((volatile uint32_t *)0x40025404))
713
#define GPIO_PORTF_IBE_R (*((volatile uint32_t *)0x40025408))
714
#define GPIO_PORTF_IEV_R (*((volatile uint32_t *)0x4002540C))
715
#define GPIO_PORTF_IM_R (*((volatile uint32_t *)0x40025410))
716
#define GPIO_PORTF_RIS_R (*((volatile uint32_t *)0x40025414))
717
#define GPIO_PORTF_MIS_R (*((volatile uint32_t *)0x40025418))
718
#define GPIO_PORTF_ICR_R (*((volatile uint32_t *)0x4002541C))
719
#define GPIO_PORTF_AFSEL_R (*((volatile uint32_t *)0x40025420))
720
#define GPIO_PORTF_DR2R_R (*((volatile uint32_t *)0x40025500))
721
#define GPIO_PORTF_DR4R_R (*((volatile uint32_t *)0x40025504))
722
#define GPIO_PORTF_DR8R_R (*((volatile uint32_t *)0x40025508))
723
#define GPIO_PORTF_ODR_R (*((volatile uint32_t *)0x4002550C))
724
#define GPIO_PORTF_PUR_R (*((volatile uint32_t *)0x40025510))
725
#define GPIO_PORTF_PDR_R (*((volatile uint32_t *)0x40025514))
726
#define GPIO_PORTF_SLR_R (*((volatile uint32_t *)0x40025518))
727
#define GPIO_PORTF_DEN_R (*((volatile uint32_t *)0x4002551C))
728
#define GPIO_PORTF_LOCK_R (*((volatile uint32_t *)0x40025520))
729
#define GPIO_PORTF_CR_R (*((volatile uint32_t *)0x40025524))
730
#define GPIO_PORTF_AMSEL_R (*((volatile uint32_t *)0x40025528))
731
#define GPIO_PORTF_PCTL_R (*((volatile uint32_t *)0x4002552C))
732
#define GPIO_PORTF_ADCCTL_R (*((volatile uint32_t *)0x40025530))
733
#define GPIO_PORTF_DMACTL_R (*((volatile uint32_t *)0x40025534))
734
735
//*****************************************************************************
736
//
737
// PWM registers (PWM0)
738
//
739
//*****************************************************************************
740
#define PWM0_CTL_R (*((volatile uint32_t *)0x40028000))
741
#define PWM0_SYNC_R (*((volatile uint32_t *)0x40028004))
742
#define PWM0_ENABLE_R (*((volatile uint32_t *)0x40028008))
743
#define PWM0_INVERT_R (*((volatile uint32_t *)0x4002800C))
744
#define PWM0_FAULT_R (*((volatile uint32_t *)0x40028010))
745
#define PWM0_INTEN_R (*((volatile uint32_t *)0x40028014))
746
#define PWM0_RIS_R (*((volatile uint32_t *)0x40028018))
747
#define PWM0_ISC_R (*((volatile uint32_t *)0x4002801C))
748
#define PWM0_STATUS_R (*((volatile uint32_t *)0x40028020))
749
#define PWM0_FAULTVAL_R (*((volatile uint32_t *)0x40028024))
750
#define PWM0_ENUPD_R (*((volatile uint32_t *)0x40028028))
751
#define PWM0_0_CTL_R (*((volatile uint32_t *)0x40028040))
752
#define PWM0_0_INTEN_R (*((volatile uint32_t *)0x40028044))
753
#define PWM0_0_RIS_R (*((volatile uint32_t *)0x40028048))
754
#define PWM0_0_ISC_R (*((volatile uint32_t *)0x4002804C))
755
#define PWM0_0_LOAD_R (*((volatile uint32_t *)0x40028050))
756
#define PWM0_0_COUNT_R (*((volatile uint32_t *)0x40028054))
757
#define PWM0_0_CMPA_R (*((volatile uint32_t *)0x40028058))
758
#define PWM0_0_CMPB_R (*((volatile uint32_t *)0x4002805C))
759
#define PWM0_0_GENA_R (*((volatile uint32_t *)0x40028060))
760
#define PWM0_0_GENB_R (*((volatile uint32_t *)0x40028064))
761
#define PWM0_0_DBCTL_R (*((volatile uint32_t *)0x40028068))
762
#define PWM0_0_DBRISE_R (*((volatile uint32_t *)0x4002806C))
763
#define PWM0_0_DBFALL_R (*((volatile uint32_t *)0x40028070))
764
#define PWM0_0_FLTSRC0_R (*((volatile uint32_t *)0x40028074))
765
#define PWM0_0_FLTSRC1_R (*((volatile uint32_t *)0x40028078))
766
#define PWM0_0_MINFLTPER_R (*((volatile uint32_t *)0x4002807C))
767
#define PWM0_1_CTL_R (*((volatile uint32_t *)0x40028080))
768
#define PWM0_1_INTEN_R (*((volatile uint32_t *)0x40028084))
769
#define PWM0_1_RIS_R (*((volatile uint32_t *)0x40028088))
770
#define PWM0_1_ISC_R (*((volatile uint32_t *)0x4002808C))
771
#define PWM0_1_LOAD_R (*((volatile uint32_t *)0x40028090))
772
#define PWM0_1_COUNT_R (*((volatile uint32_t *)0x40028094))
773
#define PWM0_1_CMPA_R (*((volatile uint32_t *)0x40028098))
774
#define PWM0_1_CMPB_R (*((volatile uint32_t *)0x4002809C))
775
#define PWM0_1_GENA_R (*((volatile uint32_t *)0x400280A0))
776
#define PWM0_1_GENB_R (*((volatile uint32_t *)0x400280A4))
777
#define PWM0_1_DBCTL_R (*((volatile uint32_t *)0x400280A8))
778
#define PWM0_1_DBRISE_R (*((volatile uint32_t *)0x400280AC))
779
#define PWM0_1_DBFALL_R (*((volatile uint32_t *)0x400280B0))
780
#define PWM0_1_FLTSRC0_R (*((volatile uint32_t *)0x400280B4))
781
#define PWM0_1_FLTSRC1_R (*((volatile uint32_t *)0x400280B8))
782
#define PWM0_1_MINFLTPER_R (*((volatile uint32_t *)0x400280BC))
783
#define PWM0_2_CTL_R (*((volatile uint32_t *)0x400280C0))
784
#define PWM0_2_INTEN_R (*((volatile uint32_t *)0x400280C4))
785
#define PWM0_2_RIS_R (*((volatile uint32_t *)0x400280C8))
786
#define PWM0_2_ISC_R (*((volatile uint32_t *)0x400280CC))
787
#define PWM0_2_LOAD_R (*((volatile uint32_t *)0x400280D0))
788
#define PWM0_2_COUNT_R (*((volatile uint32_t *)0x400280D4))
789
#define PWM0_2_CMPA_R (*((volatile uint32_t *)0x400280D8))
790
#define PWM0_2_CMPB_R (*((volatile uint32_t *)0x400280DC))
791
#define PWM0_2_GENA_R (*((volatile uint32_t *)0x400280E0))
792
#define PWM0_2_GENB_R (*((volatile uint32_t *)0x400280E4))
793
#define PWM0_2_DBCTL_R (*((volatile uint32_t *)0x400280E8))
794
#define PWM0_2_DBRISE_R (*((volatile uint32_t *)0x400280EC))
795
#define PWM0_2_DBFALL_R (*((volatile uint32_t *)0x400280F0))
796
#define PWM0_2_FLTSRC0_R (*((volatile uint32_t *)0x400280F4))
797
#define PWM0_2_FLTSRC1_R (*((volatile uint32_t *)0x400280F8))
798
#define PWM0_2_MINFLTPER_R (*((volatile uint32_t *)0x400280FC))
799
#define PWM0_3_CTL_R (*((volatile uint32_t *)0x40028100))
800
#define PWM0_3_INTEN_R (*((volatile uint32_t *)0x40028104))
801
#define PWM0_3_RIS_R (*((volatile uint32_t *)0x40028108))
802
#define PWM0_3_ISC_R (*((volatile uint32_t *)0x4002810C))
803
#define PWM0_3_LOAD_R (*((volatile uint32_t *)0x40028110))
804
#define PWM0_3_COUNT_R (*((volatile uint32_t *)0x40028114))
805
#define PWM0_3_CMPA_R (*((volatile uint32_t *)0x40028118))
806
#define PWM0_3_CMPB_R (*((volatile uint32_t *)0x4002811C))
807
#define PWM0_3_GENA_R (*((volatile uint32_t *)0x40028120))
808
#define PWM0_3_GENB_R (*((volatile uint32_t *)0x40028124))
809
#define PWM0_3_DBCTL_R (*((volatile uint32_t *)0x40028128))
810
#define PWM0_3_DBRISE_R (*((volatile uint32_t *)0x4002812C))
811
#define PWM0_3_DBFALL_R (*((volatile uint32_t *)0x40028130))
812
#define PWM0_3_FLTSRC0_R (*((volatile uint32_t *)0x40028134))
813
#define PWM0_3_FLTSRC1_R (*((volatile uint32_t *)0x40028138))
814
#define PWM0_3_MINFLTPER_R (*((volatile uint32_t *)0x4002813C))
815
#define PWM0_0_FLTSEN_R (*((volatile uint32_t *)0x40028800))
816
#define PWM0_0_FLTSTAT0_R (*((volatile uint32_t *)0x40028804))
817
#define PWM0_0_FLTSTAT1_R (*((volatile uint32_t *)0x40028808))
818
#define PWM0_1_FLTSEN_R (*((volatile uint32_t *)0x40028880))
819
#define PWM0_1_FLTSTAT0_R (*((volatile uint32_t *)0x40028884))
820
#define PWM0_1_FLTSTAT1_R (*((volatile uint32_t *)0x40028888))
821
#define PWM0_2_FLTSTAT0_R (*((volatile uint32_t *)0x40028904))
822
#define PWM0_2_FLTSTAT1_R (*((volatile uint32_t *)0x40028908))
823
#define PWM0_3_FLTSTAT0_R (*((volatile uint32_t *)0x40028984))
824
#define PWM0_3_FLTSTAT1_R (*((volatile uint32_t *)0x40028988))
825
#define PWM0_PP_R (*((volatile uint32_t *)0x40028FC0))
826
827
//*****************************************************************************
828
//
829
// PWM registers (PWM1)
830
//
831
//*****************************************************************************
832
#define PWM1_CTL_R (*((volatile uint32_t *)0x40029000))
833
#define PWM1_SYNC_R (*((volatile uint32_t *)0x40029004))
834
#define PWM1_ENABLE_R (*((volatile uint32_t *)0x40029008))
835
#define PWM1_INVERT_R (*((volatile uint32_t *)0x4002900C))
836
#define PWM1_FAULT_R (*((volatile uint32_t *)0x40029010))
837
#define PWM1_INTEN_R (*((volatile uint32_t *)0x40029014))
838
#define PWM1_RIS_R (*((volatile uint32_t *)0x40029018))
839
#define PWM1_ISC_R (*((volatile uint32_t *)0x4002901C))
840
#define PWM1_STATUS_R (*((volatile uint32_t *)0x40029020))
841
#define PWM1_FAULTVAL_R (*((volatile uint32_t *)0x40029024))
842
#define PWM1_ENUPD_R (*((volatile uint32_t *)0x40029028))
843
#define PWM1_0_CTL_R (*((volatile uint32_t *)0x40029040))
844
#define PWM1_0_INTEN_R (*((volatile uint32_t *)0x40029044))
845
#define PWM1_0_RIS_R (*((volatile uint32_t *)0x40029048))
846
#define PWM1_0_ISC_R (*((volatile uint32_t *)0x4002904C))
847
#define PWM1_0_LOAD_R (*((volatile uint32_t *)0x40029050))
848
#define PWM1_0_COUNT_R (*((volatile uint32_t *)0x40029054))
849
#define PWM1_0_CMPA_R (*((volatile uint32_t *)0x40029058))
850
#define PWM1_0_CMPB_R (*((volatile uint32_t *)0x4002905C))
851
#define PWM1_0_GENA_R (*((volatile uint32_t *)0x40029060))
852
#define PWM1_0_GENB_R (*((volatile uint32_t *)0x40029064))
853
#define PWM1_0_DBCTL_R (*((volatile uint32_t *)0x40029068))
854
#define PWM1_0_DBRISE_R (*((volatile uint32_t *)0x4002906C))
855
#define PWM1_0_DBFALL_R (*((volatile uint32_t *)0x40029070))
856
#define PWM1_0_FLTSRC0_R (*((volatile uint32_t *)0x40029074))
857
#define PWM1_0_FLTSRC1_R (*((volatile uint32_t *)0x40029078))
858
#define PWM1_0_MINFLTPER_R (*((volatile uint32_t *)0x4002907C))
859
#define PWM1_1_CTL_R (*((volatile uint32_t *)0x40029080))
860
#define PWM1_1_INTEN_R (*((volatile uint32_t *)0x40029084))
861
#define PWM1_1_RIS_R (*((volatile uint32_t *)0x40029088))
862
#define PWM1_1_ISC_R (*((volatile uint32_t *)0x4002908C))
863
#define PWM1_1_LOAD_R (*((volatile uint32_t *)0x40029090))
864
#define PWM1_1_COUNT_R (*((volatile uint32_t *)0x40029094))
865
#define PWM1_1_CMPA_R (*((volatile uint32_t *)0x40029098))
866
#define PWM1_1_CMPB_R (*((volatile uint32_t *)0x4002909C))
867
#define PWM1_1_GENA_R (*((volatile uint32_t *)0x400290A0))
868
#define PWM1_1_GENB_R (*((volatile uint32_t *)0x400290A4))
869
#define PWM1_1_DBCTL_R (*((volatile uint32_t *)0x400290A8))
870
#define PWM1_1_DBRISE_R (*((volatile uint32_t *)0x400290AC))
871
#define PWM1_1_DBFALL_R (*((volatile uint32_t *)0x400290B0))
872
#define PWM1_1_FLTSRC0_R (*((volatile uint32_t *)0x400290B4))
873
#define PWM1_1_FLTSRC1_R (*((volatile uint32_t *)0x400290B8))
874
#define PWM1_1_MINFLTPER_R (*((volatile uint32_t *)0x400290BC))
875
#define PWM1_2_CTL_R (*((volatile uint32_t *)0x400290C0))
876
#define PWM1_2_INTEN_R (*((volatile uint32_t *)0x400290C4))
877
#define PWM1_2_RIS_R (*((volatile uint32_t *)0x400290C8))
878
#define PWM1_2_ISC_R (*((volatile uint32_t *)0x400290CC))
879
#define PWM1_2_LOAD_R (*((volatile uint32_t *)0x400290D0))
880
#define PWM1_2_COUNT_R (*((volatile uint32_t *)0x400290D4))
881
#define PWM1_2_CMPA_R (*((volatile uint32_t *)0x400290D8))
882
#define PWM1_2_CMPB_R (*((volatile uint32_t *)0x400290DC))
883
#define PWM1_2_GENA_R (*((volatile uint32_t *)0x400290E0))
884
#define PWM1_2_GENB_R (*((volatile uint32_t *)0x400290E4))
885
#define PWM1_2_DBCTL_R (*((volatile uint32_t *)0x400290E8))
886
#define PWM1_2_DBRISE_R (*((volatile uint32_t *)0x400290EC))
887
#define PWM1_2_DBFALL_R (*((volatile uint32_t *)0x400290F0))
888
#define PWM1_2_FLTSRC0_R (*((volatile uint32_t *)0x400290F4))
889
#define PWM1_2_FLTSRC1_R (*((volatile uint32_t *)0x400290F8))
890
#define PWM1_2_MINFLTPER_R (*((volatile uint32_t *)0x400290FC))
891
#define PWM1_3_CTL_R (*((volatile uint32_t *)0x40029100))
892
#define PWM1_3_INTEN_R (*((volatile uint32_t *)0x40029104))
893
#define PWM1_3_RIS_R (*((volatile uint32_t *)0x40029108))
894
#define PWM1_3_ISC_R (*((volatile uint32_t *)0x4002910C))
895
#define PWM1_3_LOAD_R (*((volatile uint32_t *)0x40029110))
896
#define PWM1_3_COUNT_R (*((volatile uint32_t *)0x40029114))
897
#define PWM1_3_CMPA_R (*((volatile uint32_t *)0x40029118))
898
#define PWM1_3_CMPB_R (*((volatile uint32_t *)0x4002911C))
899
#define PWM1_3_GENA_R (*((volatile uint32_t *)0x40029120))
900
#define PWM1_3_GENB_R (*((volatile uint32_t *)0x40029124))
901
#define PWM1_3_DBCTL_R (*((volatile uint32_t *)0x40029128))
902
#define PWM1_3_DBRISE_R (*((volatile uint32_t *)0x4002912C))
903
#define PWM1_3_DBFALL_R (*((volatile uint32_t *)0x40029130))
904
#define PWM1_3_FLTSRC0_R (*((volatile uint32_t *)0x40029134))
905
#define PWM1_3_FLTSRC1_R (*((volatile uint32_t *)0x40029138))
906
#define PWM1_3_MINFLTPER_R (*((volatile uint32_t *)0x4002913C))
907
#define PWM1_0_FLTSEN_R (*((volatile uint32_t *)0x40029800))
908
#define PWM1_0_FLTSTAT0_R (*((volatile uint32_t *)0x40029804))
909
#define PWM1_0_FLTSTAT1_R (*((volatile uint32_t *)0x40029808))
910
#define PWM1_1_FLTSEN_R (*((volatile uint32_t *)0x40029880))
911
#define PWM1_1_FLTSTAT0_R (*((volatile uint32_t *)0x40029884))
912
#define PWM1_1_FLTSTAT1_R (*((volatile uint32_t *)0x40029888))
913
#define PWM1_2_FLTSTAT0_R (*((volatile uint32_t *)0x40029904))
914
#define PWM1_2_FLTSTAT1_R (*((volatile uint32_t *)0x40029908))
915
#define PWM1_3_FLTSTAT0_R (*((volatile uint32_t *)0x40029984))
916
#define PWM1_3_FLTSTAT1_R (*((volatile uint32_t *)0x40029988))
917
#define PWM1_PP_R (*((volatile uint32_t *)0x40029FC0))
918
919
//*****************************************************************************
920
//
921
// QEI registers (QEI0)
922
//
923
//*****************************************************************************
924
#define QEI0_CTL_R (*((volatile uint32_t *)0x4002C000))
925
#define QEI0_STAT_R (*((volatile uint32_t *)0x4002C004))
926
#define QEI0_POS_R (*((volatile uint32_t *)0x4002C008))
927
#define QEI0_MAXPOS_R (*((volatile uint32_t *)0x4002C00C))
928
#define QEI0_LOAD_R (*((volatile uint32_t *)0x4002C010))
929
#define QEI0_TIME_R (*((volatile uint32_t *)0x4002C014))
930
#define QEI0_COUNT_R (*((volatile uint32_t *)0x4002C018))
931
#define QEI0_SPEED_R (*((volatile uint32_t *)0x4002C01C))
932
#define QEI0_INTEN_R (*((volatile uint32_t *)0x4002C020))
933
#define QEI0_RIS_R (*((volatile uint32_t *)0x4002C024))
934
#define QEI0_ISC_R (*((volatile uint32_t *)0x4002C028))
935
936
//*****************************************************************************
937
//
938
// QEI registers (QEI1)
939
//
940
//*****************************************************************************
941
#define QEI1_CTL_R (*((volatile uint32_t *)0x4002D000))
942
#define QEI1_STAT_R (*((volatile uint32_t *)0x4002D004))
943
#define QEI1_POS_R (*((volatile uint32_t *)0x4002D008))
944
#define QEI1_MAXPOS_R (*((volatile uint32_t *)0x4002D00C))
945
#define QEI1_LOAD_R (*((volatile uint32_t *)0x4002D010))
946
#define QEI1_TIME_R (*((volatile uint32_t *)0x4002D014))
947
#define QEI1_COUNT_R (*((volatile uint32_t *)0x4002D018))
948
#define QEI1_SPEED_R (*((volatile uint32_t *)0x4002D01C))
949
#define QEI1_INTEN_R (*((volatile uint32_t *)0x4002D020))
950
#define QEI1_RIS_R (*((volatile uint32_t *)0x4002D024))
951
#define QEI1_ISC_R (*((volatile uint32_t *)0x4002D028))
952
953
//*****************************************************************************
954
//
955
// Timer registers (TIMER0)
956
//
957
//*****************************************************************************
958
#define TIMER0_CFG_R (*((volatile uint32_t *)0x40030000))
959
#define TIMER0_TAMR_R (*((volatile uint32_t *)0x40030004))
960
#define TIMER0_TBMR_R (*((volatile uint32_t *)0x40030008))
961
#define TIMER0_CTL_R (*((volatile uint32_t *)0x4003000C))
962
#define TIMER0_SYNC_R (*((volatile uint32_t *)0x40030010))
963
#define TIMER0_IMR_R (*((volatile uint32_t *)0x40030018))
964
#define TIMER0_RIS_R (*((volatile uint32_t *)0x4003001C))
965
#define TIMER0_MIS_R (*((volatile uint32_t *)0x40030020))
966
#define TIMER0_ICR_R (*((volatile uint32_t *)0x40030024))
967
#define TIMER0_TAILR_R (*((volatile uint32_t *)0x40030028))
968
#define TIMER0_TBILR_R (*((volatile uint32_t *)0x4003002C))
969
#define TIMER0_TAMATCHR_R (*((volatile uint32_t *)0x40030030))
970
#define TIMER0_TBMATCHR_R (*((volatile uint32_t *)0x40030034))
971
#define TIMER0_TAPR_R (*((volatile uint32_t *)0x40030038))
972
#define TIMER0_TBPR_R (*((volatile uint32_t *)0x4003003C))
973
#define TIMER0_TAPMR_R (*((volatile uint32_t *)0x40030040))
974
#define TIMER0_TBPMR_R (*((volatile uint32_t *)0x40030044))
975
#define TIMER0_TAR_R (*((volatile uint32_t *)0x40030048))
976
#define TIMER0_TBR_R (*((volatile uint32_t *)0x4003004C))
977
#define TIMER0_TAV_R (*((volatile uint32_t *)0x40030050))
978
#define TIMER0_TBV_R (*((volatile uint32_t *)0x40030054))
979
#define TIMER0_RTCPD_R (*((volatile uint32_t *)0x40030058))
980
#define TIMER0_TAPS_R (*((volatile uint32_t *)0x4003005C))
981
#define TIMER0_TBPS_R (*((volatile uint32_t *)0x40030060))
982
#define TIMER0_TAPV_R (*((volatile uint32_t *)0x40030064))
983
#define TIMER0_TBPV_R (*((volatile uint32_t *)0x40030068))
984
#define TIMER0_PP_R (*((volatile uint32_t *)0x40030FC0))
985
986
//*****************************************************************************
987
//
988
// Timer registers (TIMER1)
989
//
990
//*****************************************************************************
991
#define TIMER1_CFG_R (*((volatile uint32_t *)0x40031000))
992
#define TIMER1_TAMR_R (*((volatile uint32_t *)0x40031004))
993
#define TIMER1_TBMR_R (*((volatile uint32_t *)0x40031008))
994
#define TIMER1_CTL_R (*((volatile uint32_t *)0x4003100C))
995
#define TIMER1_SYNC_R (*((volatile uint32_t *)0x40031010))
996
#define TIMER1_IMR_R (*((volatile uint32_t *)0x40031018))
997
#define TIMER1_RIS_R (*((volatile uint32_t *)0x4003101C))
998
#define TIMER1_MIS_R (*((volatile uint32_t *)0x40031020))
999
#define TIMER1_ICR_R (*((volatile uint32_t *)0x40031024))
1000
#define TIMER1_TAILR_R (*((volatile uint32_t *)0x40031028))
1001
#define TIMER1_TBILR_R (*((volatile uint32_t *)0x4003102C))
1002
#define TIMER1_TAMATCHR_R (*((volatile uint32_t *)0x40031030))
1003
#define TIMER1_TBMATCHR_R (*((volatile uint32_t *)0x40031034))
1004
#define TIMER1_TAPR_R (*((volatile uint32_t *)0x40031038))
1005
#define TIMER1_TBPR_R (*((volatile uint32_t *)0x4003103C))
1006
#define TIMER1_TAPMR_R (*((volatile uint32_t *)0x40031040))
1007
#define TIMER1_TBPMR_R (*((volatile uint32_t *)0x40031044))
1008
#define TIMER1_TAR_R (*((volatile uint32_t *)0x40031048))
1009
#define TIMER1_TBR_R (*((volatile uint32_t *)0x4003104C))
1010
#define TIMER1_TAV_R (*((volatile uint32_t *)0x40031050))
1011
#define TIMER1_TBV_R (*((volatile uint32_t *)0x40031054))
1012
#define TIMER1_RTCPD_R (*((volatile uint32_t *)0x40031058))
1013
#define TIMER1_TAPS_R (*((volatile uint32_t *)0x4003105C))
1014
#define TIMER1_TBPS_R (*((volatile uint32_t *)0x40031060))
1015
#define TIMER1_TAPV_R (*((volatile uint32_t *)0x40031064))
1016
#define TIMER1_TBPV_R (*((volatile uint32_t *)0x40031068))
1017
#define TIMER1_PP_R (*((volatile uint32_t *)0x40031FC0))
1018
1019
//*****************************************************************************
1020
//
1021
// Timer registers (TIMER2)
1022
//
1023
//*****************************************************************************
1024
#define TIMER2_CFG_R (*((volatile uint32_t *)0x40032000))
1025
#define TIMER2_TAMR_R (*((volatile uint32_t *)0x40032004))
1026
#define TIMER2_TBMR_R (*((volatile uint32_t *)0x40032008))
1027
#define TIMER2_CTL_R (*((volatile uint32_t *)0x4003200C))
1028
#define TIMER2_SYNC_R (*((volatile uint32_t *)0x40032010))
1029
#define TIMER2_IMR_R (*((volatile uint32_t *)0x40032018))
1030
#define TIMER2_RIS_R (*((volatile uint32_t *)0x4003201C))
1031
#define TIMER2_MIS_R (*((volatile uint32_t *)0x40032020))
1032
#define TIMER2_ICR_R (*((volatile uint32_t *)0x40032024))
1033
#define TIMER2_TAILR_R (*((volatile uint32_t *)0x40032028))
1034
#define TIMER2_TBILR_R (*((volatile uint32_t *)0x4003202C))
1035
#define TIMER2_TAMATCHR_R (*((volatile uint32_t *)0x40032030))
1036
#define TIMER2_TBMATCHR_R (*((volatile uint32_t *)0x40032034))
1037
#define TIMER2_TAPR_R (*((volatile uint32_t *)0x40032038))
1038
#define TIMER2_TBPR_R (*((volatile uint32_t *)0x4003203C))
1039
#define TIMER2_TAPMR_R (*((volatile uint32_t *)0x40032040))
1040
#define TIMER2_TBPMR_R (*((volatile uint32_t *)0x40032044))
1041
#define TIMER2_TAR_R (*((volatile uint32_t *)0x40032048))
1042
#define TIMER2_TBR_R (*((volatile uint32_t *)0x4003204C))
1043
#define TIMER2_TAV_R (*((volatile uint32_t *)0x40032050))
1044
#define TIMER2_TBV_R (*((volatile uint32_t *)0x40032054))
1045
#define TIMER2_RTCPD_R (*((volatile uint32_t *)0x40032058))
1046
#define TIMER2_TAPS_R (*((volatile uint32_t *)0x4003205C))
1047
#define TIMER2_TBPS_R (*((volatile uint32_t *)0x40032060))
1048
#define TIMER2_TAPV_R (*((volatile uint32_t *)0x40032064))
1049
#define TIMER2_TBPV_R (*((volatile uint32_t *)0x40032068))
1050
#define TIMER2_PP_R (*((volatile uint32_t *)0x40032FC0))
1051
1052
//*****************************************************************************
1053
//
1054
// Timer registers (TIMER3)
1055
//
1056
//*****************************************************************************
1057
#define TIMER3_CFG_R (*((volatile uint32_t *)0x40033000))
1058
#define TIMER3_TAMR_R (*((volatile uint32_t *)0x40033004))
1059
#define TIMER3_TBMR_R (*((volatile uint32_t *)0x40033008))
1060
#define TIMER3_CTL_R (*((volatile uint32_t *)0x4003300C))
1061
#define TIMER3_SYNC_R (*((volatile uint32_t *)0x40033010))
1062
#define TIMER3_IMR_R (*((volatile uint32_t *)0x40033018))
1063
#define TIMER3_RIS_R (*((volatile uint32_t *)0x4003301C))
1064
#define TIMER3_MIS_R (*((volatile uint32_t *)0x40033020))
1065
#define TIMER3_ICR_R (*((volatile uint32_t *)0x40033024))
1066
#define TIMER3_TAILR_R (*((volatile uint32_t *)0x40033028))
1067
#define TIMER3_TBILR_R (*((volatile uint32_t *)0x4003302C))
1068
#define TIMER3_TAMATCHR_R (*((volatile uint32_t *)0x40033030))
1069
#define TIMER3_TBMATCHR_R (*((volatile uint32_t *)0x40033034))
1070
#define TIMER3_TAPR_R (*((volatile uint32_t *)0x40033038))
1071
#define TIMER3_TBPR_R (*((volatile uint32_t *)0x4003303C))
1072
#define TIMER3_TAPMR_R (*((volatile uint32_t *)0x40033040))
1073
#define TIMER3_TBPMR_R (*((volatile uint32_t *)0x40033044))
1074
#define TIMER3_TAR_R (*((volatile uint32_t *)0x40033048))
1075
#define TIMER3_TBR_R (*((volatile uint32_t *)0x4003304C))
1076
#define TIMER3_TAV_R (*((volatile uint32_t *)0x40033050))
1077
#define TIMER3_TBV_R (*((volatile uint32_t *)0x40033054))
1078
#define TIMER3_RTCPD_R (*((volatile uint32_t *)0x40033058))
1079
#define TIMER3_TAPS_R (*((volatile uint32_t *)0x4003305C))
1080
#define TIMER3_TBPS_R (*((volatile uint32_t *)0x40033060))
1081
#define TIMER3_TAPV_R (*((volatile uint32_t *)0x40033064))
1082
#define TIMER3_TBPV_R (*((volatile uint32_t *)0x40033068))
1083
#define TIMER3_PP_R (*((volatile uint32_t *)0x40033FC0))
1084
1085
//*****************************************************************************
1086
//
1087
// Timer registers (TIMER4)
1088
//
1089
//*****************************************************************************
1090
#define TIMER4_CFG_R (*((volatile uint32_t *)0x40034000))
1091
#define TIMER4_TAMR_R (*((volatile uint32_t *)0x40034004))
1092
#define TIMER4_TBMR_R (*((volatile uint32_t *)0x40034008))
1093
#define TIMER4_CTL_R (*((volatile uint32_t *)0x4003400C))
1094
#define TIMER4_SYNC_R (*((volatile uint32_t *)0x40034010))
1095
#define TIMER4_IMR_R (*((volatile uint32_t *)0x40034018))
1096
#define TIMER4_RIS_R (*((volatile uint32_t *)0x4003401C))
1097
#define TIMER4_MIS_R (*((volatile uint32_t *)0x40034020))
1098
#define TIMER4_ICR_R (*((volatile uint32_t *)0x40034024))
1099
#define TIMER4_TAILR_R (*((volatile uint32_t *)0x40034028))
1100
#define TIMER4_TBILR_R (*((volatile uint32_t *)0x4003402C))
1101
#define TIMER4_TAMATCHR_R (*((volatile uint32_t *)0x40034030))
1102
#define TIMER4_TBMATCHR_R (*((volatile uint32_t *)0x40034034))
1103
#define TIMER4_TAPR_R (*((volatile uint32_t *)0x40034038))
1104
#define TIMER4_TBPR_R (*((volatile uint32_t *)0x4003403C))
1105
#define TIMER4_TAPMR_R (*((volatile uint32_t *)0x40034040))
1106
#define TIMER4_TBPMR_R (*((volatile uint32_t *)0x40034044))
1107
#define TIMER4_TAR_R (*((volatile uint32_t *)0x40034048))
1108
#define TIMER4_TBR_R (*((volatile uint32_t *)0x4003404C))
1109
#define TIMER4_TAV_R (*((volatile uint32_t *)0x40034050))
1110
#define TIMER4_TBV_R (*((volatile uint32_t *)0x40034054))
1111
#define TIMER4_RTCPD_R (*((volatile uint32_t *)0x40034058))
1112
#define TIMER4_TAPS_R (*((volatile uint32_t *)0x4003405C))
1113
#define TIMER4_TBPS_R (*((volatile uint32_t *)0x40034060))
1114
#define TIMER4_TAPV_R (*((volatile uint32_t *)0x40034064))
1115
#define TIMER4_TBPV_R (*((volatile uint32_t *)0x40034068))
1116
#define TIMER4_PP_R (*((volatile uint32_t *)0x40034FC0))
1117
1118
//*****************************************************************************
1119
//
1120
// Timer registers (TIMER5)
1121
//
1122
//*****************************************************************************
1123
#define TIMER5_CFG_R (*((volatile uint32_t *)0x40035000))
1124
#define TIMER5_TAMR_R (*((volatile uint32_t *)0x40035004))
1125
#define TIMER5_TBMR_R (*((volatile uint32_t *)0x40035008))
1126
#define TIMER5_CTL_R (*((volatile uint32_t *)0x4003500C))
1127
#define TIMER5_SYNC_R (*((volatile uint32_t *)0x40035010))
1128
#define TIMER5_IMR_R (*((volatile uint32_t *)0x40035018))
1129
#define TIMER5_RIS_R (*((volatile uint32_t *)0x4003501C))
1130
#define TIMER5_MIS_R (*((volatile uint32_t *)0x40035020))
1131
#define TIMER5_ICR_R (*((volatile uint32_t *)0x40035024))
1132
#define TIMER5_TAILR_R (*((volatile uint32_t *)0x40035028))
1133
#define TIMER5_TBILR_R (*((volatile uint32_t *)0x4003502C))
1134
#define TIMER5_TAMATCHR_R (*((volatile uint32_t *)0x40035030))
1135
#define TIMER5_TBMATCHR_R (*((volatile uint32_t *)0x40035034))
1136
#define TIMER5_TAPR_R (*((volatile uint32_t *)0x40035038))
1137
#define TIMER5_TBPR_R (*((volatile uint32_t *)0x4003503C))
1138
#define TIMER5_TAPMR_R (*((volatile uint32_t *)0x40035040))
1139
#define TIMER5_TBPMR_R (*((volatile uint32_t *)0x40035044))
1140
#define TIMER5_TAR_R (*((volatile uint32_t *)0x40035048))
1141
#define TIMER5_TBR_R (*((volatile uint32_t *)0x4003504C))
1142
#define TIMER5_TAV_R (*((volatile uint32_t *)0x40035050))
1143
#define TIMER5_TBV_R (*((volatile uint32_t *)0x40035054))
1144
#define TIMER5_RTCPD_R (*((volatile uint32_t *)0x40035058))
1145
#define TIMER5_TAPS_R (*((volatile uint32_t *)0x4003505C))
1146
#define TIMER5_TBPS_R (*((volatile uint32_t *)0x40035060))
1147
#define TIMER5_TAPV_R (*((volatile uint32_t *)0x40035064))
1148
#define TIMER5_TBPV_R (*((volatile uint32_t *)0x40035068))
1149
#define TIMER5_PP_R (*((volatile uint32_t *)0x40035FC0))
1150
1151
//*****************************************************************************
1152
//
1153
// Timer registers (WTIMER0)
1154
//
1155
//*****************************************************************************
1156
#define WTIMER0_CFG_R (*((volatile uint32_t *)0x40036000))
1157
#define WTIMER0_TAMR_R (*((volatile uint32_t *)0x40036004))
1158
#define WTIMER0_TBMR_R (*((volatile uint32_t *)0x40036008))
1159
#define WTIMER0_CTL_R (*((volatile uint32_t *)0x4003600C))
1160
#define WTIMER0_SYNC_R (*((volatile uint32_t *)0x40036010))
1161
#define WTIMER0_IMR_R (*((volatile uint32_t *)0x40036018))
1162
#define WTIMER0_RIS_R (*((volatile uint32_t *)0x4003601C))
1163
#define WTIMER0_MIS_R (*((volatile uint32_t *)0x40036020))
1164
#define WTIMER0_ICR_R (*((volatile uint32_t *)0x40036024))
1165
#define WTIMER0_TAILR_R (*((volatile uint32_t *)0x40036028))
1166
#define WTIMER0_TBILR_R (*((volatile uint32_t *)0x4003602C))
1167
#define WTIMER0_TAMATCHR_R (*((volatile uint32_t *)0x40036030))
1168
#define WTIMER0_TBMATCHR_R (*((volatile uint32_t *)0x40036034))
1169
#define WTIMER0_TAPR_R (*((volatile uint32_t *)0x40036038))
1170
#define WTIMER0_TBPR_R (*((volatile uint32_t *)0x4003603C))
1171
#define WTIMER0_TAPMR_R (*((volatile uint32_t *)0x40036040))
1172
#define WTIMER0_TBPMR_R (*((volatile uint32_t *)0x40036044))
1173
#define WTIMER0_TAR_R (*((volatile uint32_t *)0x40036048))
1174
#define WTIMER0_TBR_R (*((volatile uint32_t *)0x4003604C))
1175
#define WTIMER0_TAV_R (*((volatile uint32_t *)0x40036050))
1176
#define WTIMER0_TBV_R (*((volatile uint32_t *)0x40036054))
1177
#define WTIMER0_RTCPD_R (*((volatile uint32_t *)0x40036058))
1178
#define WTIMER0_TAPS_R (*((volatile uint32_t *)0x4003605C))
1179
#define WTIMER0_TBPS_R (*((volatile uint32_t *)0x40036060))
1180
#define WTIMER0_TAPV_R (*((volatile uint32_t *)0x40036064))
1181
#define WTIMER0_TBPV_R (*((volatile uint32_t *)0x40036068))
1182
#define WTIMER0_PP_R (*((volatile uint32_t *)0x40036FC0))
1183
1184
//*****************************************************************************
1185
//
1186
// Timer registers (WTIMER1)
1187
//
1188
//*****************************************************************************
1189
#define WTIMER1_CFG_R (*((volatile uint32_t *)0x40037000))
1190
#define WTIMER1_TAMR_R (*((volatile uint32_t *)0x40037004))
1191
#define WTIMER1_TBMR_R (*((volatile uint32_t *)0x40037008))
1192
#define WTIMER1_CTL_R (*((volatile uint32_t *)0x4003700C))
1193
#define WTIMER1_SYNC_R (*((volatile uint32_t *)0x40037010))
1194
#define WTIMER1_IMR_R (*((volatile uint32_t *)0x40037018))
1195
#define WTIMER1_RIS_R (*((volatile uint32_t *)0x4003701C))
1196
#define WTIMER1_MIS_R (*((volatile uint32_t *)0x40037020))
1197
#define WTIMER1_ICR_R (*((volatile uint32_t *)0x40037024))
1198
#define WTIMER1_TAILR_R (*((volatile uint32_t *)0x40037028))
1199
#define WTIMER1_TBILR_R (*((volatile uint32_t *)0x4003702C))
1200
#define WTIMER1_TAMATCHR_R (*((volatile uint32_t *)0x40037030))
1201
#define WTIMER1_TBMATCHR_R (*((volatile uint32_t *)0x40037034))
1202
#define WTIMER1_TAPR_R (*((volatile uint32_t *)0x40037038))
1203
#define WTIMER1_TBPR_R (*((volatile uint32_t *)0x4003703C))
1204
#define WTIMER1_TAPMR_R (*((volatile uint32_t *)0x40037040))
1205
#define WTIMER1_TBPMR_R (*((volatile uint32_t *)0x40037044))
1206
#define WTIMER1_TAR_R (*((volatile uint32_t *)0x40037048))
1207
#define WTIMER1_TBR_R (*((volatile uint32_t *)0x4003704C))
1208
#define WTIMER1_TAV_R (*((volatile uint32_t *)0x40037050))
1209
#define WTIMER1_TBV_R (*((volatile uint32_t *)0x40037054))
1210
#define WTIMER1_RTCPD_R (*((volatile uint32_t *)0x40037058))
1211
#define WTIMER1_TAPS_R (*((volatile uint32_t *)0x4003705C))
1212
#define WTIMER1_TBPS_R (*((volatile uint32_t *)0x40037060))
1213
#define WTIMER1_TAPV_R (*((volatile uint32_t *)0x40037064))
1214
#define WTIMER1_TBPV_R (*((volatile uint32_t *)0x40037068))
1215
#define WTIMER1_PP_R (*((volatile uint32_t *)0x40037FC0))
1216
1217
//*****************************************************************************
1218
//
1219
// ADC registers (ADC0)
1220
//
1221
//*****************************************************************************
1222
#define ADC0_ACTSS_R (*((volatile uint32_t *)0x40038000))
1223
#define ADC0_RIS_R (*((volatile uint32_t *)0x40038004))
1224
#define ADC0_IM_R (*((volatile uint32_t *)0x40038008))
1225
#define ADC0_ISC_R (*((volatile uint32_t *)0x4003800C))
1226
#define ADC0_OSTAT_R (*((volatile uint32_t *)0x40038010))
1227
#define ADC0_EMUX_R (*((volatile uint32_t *)0x40038014))
1228
#define ADC0_USTAT_R (*((volatile uint32_t *)0x40038018))
1229
#define ADC0_TSSEL_R (*((volatile uint32_t *)0x4003801C))
1230
#define ADC0_SSPRI_R (*((volatile uint32_t *)0x40038020))
1231
#define ADC0_SPC_R (*((volatile uint32_t *)0x40038024))
1232
#define ADC0_PSSI_R (*((volatile uint32_t *)0x40038028))
1233
#define ADC0_SAC_R (*((volatile uint32_t *)0x40038030))
1234
#define ADC0_DCISC_R (*((volatile uint32_t *)0x40038034))
1235
#define ADC0_CTL_R (*((volatile uint32_t *)0x40038038))
1236
#define ADC0_SSMUX0_R (*((volatile uint32_t *)0x40038040))
1237
#define ADC0_SSCTL0_R (*((volatile uint32_t *)0x40038044))
1238
#define ADC0_SSFIFO0_R (*((volatile uint32_t *)0x40038048))
1239
#define ADC0_SSFSTAT0_R (*((volatile uint32_t *)0x4003804C))
1240
#define ADC0_SSOP0_R (*((volatile uint32_t *)0x40038050))
1241
#define ADC0_SSDC0_R (*((volatile uint32_t *)0x40038054))
1242
#define ADC0_SSMUX1_R (*((volatile uint32_t *)0x40038060))
1243
#define ADC0_SSCTL1_R (*((volatile uint32_t *)0x40038064))
1244
#define ADC0_SSFIFO1_R (*((volatile uint32_t *)0x40038068))
1245
#define ADC0_SSFSTAT1_R (*((volatile uint32_t *)0x4003806C))
1246
#define ADC0_SSOP1_R (*((volatile uint32_t *)0x40038070))
1247
#define ADC0_SSDC1_R (*((volatile uint32_t *)0x40038074))
1248
#define ADC0_SSMUX2_R (*((volatile uint32_t *)0x40038080))
1249
#define ADC0_SSCTL2_R (*((volatile uint32_t *)0x40038084))
1250
#define ADC0_SSFIFO2_R (*((volatile uint32_t *)0x40038088))
1251
#define ADC0_SSFSTAT2_R (*((volatile uint32_t *)0x4003808C))
1252
#define ADC0_SSOP2_R (*((volatile uint32_t *)0x40038090))
1253
#define ADC0_SSDC2_R (*((volatile uint32_t *)0x40038094))
1254
#define ADC0_SSMUX3_R (*((volatile uint32_t *)0x400380A0))
1255
#define ADC0_SSCTL3_R (*((volatile uint32_t *)0x400380A4))
1256
#define ADC0_SSFIFO3_R (*((volatile uint32_t *)0x400380A8))
1257
#define ADC0_SSFSTAT3_R (*((volatile uint32_t *)0x400380AC))
1258
#define ADC0_SSOP3_R (*((volatile uint32_t *)0x400380B0))
1259
#define ADC0_SSDC3_R (*((volatile uint32_t *)0x400380B4))
1260
#define ADC0_DCRIC_R (*((volatile uint32_t *)0x40038D00))
1261
#define ADC0_DCCTL0_R (*((volatile uint32_t *)0x40038E00))
1262
#define ADC0_DCCTL1_R (*((volatile uint32_t *)0x40038E04))
1263
#define ADC0_DCCTL2_R (*((volatile uint32_t *)0x40038E08))
1264
#define ADC0_DCCTL3_R (*((volatile uint32_t *)0x40038E0C))
1265
#define ADC0_DCCTL4_R (*((volatile uint32_t *)0x40038E10))
1266
#define ADC0_DCCTL5_R (*((volatile uint32_t *)0x40038E14))
1267
#define ADC0_DCCTL6_R (*((volatile uint32_t *)0x40038E18))
1268
#define ADC0_DCCTL7_R (*((volatile uint32_t *)0x40038E1C))
1269
#define ADC0_DCCMP0_R (*((volatile uint32_t *)0x40038E40))
1270
#define ADC0_DCCMP1_R (*((volatile uint32_t *)0x40038E44))
1271
#define ADC0_DCCMP2_R (*((volatile uint32_t *)0x40038E48))
1272
#define ADC0_DCCMP3_R (*((volatile uint32_t *)0x40038E4C))
1273
#define ADC0_DCCMP4_R (*((volatile uint32_t *)0x40038E50))
1274
#define ADC0_DCCMP5_R (*((volatile uint32_t *)0x40038E54))
1275
#define ADC0_DCCMP6_R (*((volatile uint32_t *)0x40038E58))
1276
#define ADC0_DCCMP7_R (*((volatile uint32_t *)0x40038E5C))
1277
#define ADC0_PP_R (*((volatile uint32_t *)0x40038FC0))
1278
#define ADC0_PC_R (*((volatile uint32_t *)0x40038FC4))
1279
#define ADC0_CC_R (*((volatile uint32_t *)0x40038FC8))
1280
1281
//*****************************************************************************
1282
//
1283
// ADC registers (ADC1)
1284
//
1285
//*****************************************************************************
1286
#define ADC1_ACTSS_R (*((volatile uint32_t *)0x40039000))
1287
#define ADC1_RIS_R (*((volatile uint32_t *)0x40039004))
1288
#define ADC1_IM_R (*((volatile uint32_t *)0x40039008))
1289
#define ADC1_ISC_R (*((volatile uint32_t *)0x4003900C))
1290
#define ADC1_OSTAT_R (*((volatile uint32_t *)0x40039010))
1291
#define ADC1_EMUX_R (*((volatile uint32_t *)0x40039014))
1292
#define ADC1_USTAT_R (*((volatile uint32_t *)0x40039018))
1293
#define ADC1_TSSEL_R (*((volatile uint32_t *)0x4003901C))
1294
#define ADC1_SSPRI_R (*((volatile uint32_t *)0x40039020))
1295
#define ADC1_SPC_R (*((volatile uint32_t *)0x40039024))
1296
#define ADC1_PSSI_R (*((volatile uint32_t *)0x40039028))
1297
#define ADC1_SAC_R (*((volatile uint32_t *)0x40039030))
1298
#define ADC1_DCISC_R (*((volatile uint32_t *)0x40039034))
1299
#define ADC1_CTL_R (*((volatile uint32_t *)0x40039038))
1300
#define ADC1_SSMUX0_R (*((volatile uint32_t *)0x40039040))
1301
#define ADC1_SSCTL0_R (*((volatile uint32_t *)0x40039044))
1302
#define ADC1_SSFIFO0_R (*((volatile uint32_t *)0x40039048))
1303
#define ADC1_SSFSTAT0_R (*((volatile uint32_t *)0x4003904C))
1304
#define ADC1_SSOP0_R (*((volatile uint32_t *)0x40039050))
1305
#define ADC1_SSDC0_R (*((volatile uint32_t *)0x40039054))
1306
#define ADC1_SSMUX1_R (*((volatile uint32_t *)0x40039060))
1307
#define ADC1_SSCTL1_R (*((volatile uint32_t *)0x40039064))
1308
#define ADC1_SSFIFO1_R (*((volatile uint32_t *)0x40039068))
1309
#define ADC1_SSFSTAT1_R (*((volatile uint32_t *)0x4003906C))
1310
#define ADC1_SSOP1_R (*((volatile uint32_t *)0x40039070))
1311
#define ADC1_SSDC1_R (*((volatile uint32_t *)0x40039074))
1312
#define ADC1_SSMUX2_R (*((volatile uint32_t *)0x40039080))
1313
#define ADC1_SSCTL2_R (*((volatile uint32_t *)0x40039084))
1314
#define ADC1_SSFIFO2_R (*((volatile uint32_t *)0x40039088))
1315
#define ADC1_SSFSTAT2_R (*((volatile uint32_t *)0x4003908C))
1316
#define ADC1_SSOP2_R (*((volatile uint32_t *)0x40039090))
1317
#define ADC1_SSDC2_R (*((volatile uint32_t *)0x40039094))
1318
#define ADC1_SSMUX3_R (*((volatile uint32_t *)0x400390A0))
1319
#define ADC1_SSCTL3_R (*((volatile uint32_t *)0x400390A4))
1320
#define ADC1_SSFIFO3_R (*((volatile uint32_t *)0x400390A8))
1321
#define ADC1_SSFSTAT3_R (*((volatile uint32_t *)0x400390AC))
1322
#define ADC1_SSOP3_R (*((volatile uint32_t *)0x400390B0))
1323
#define ADC1_SSDC3_R (*((volatile uint32_t *)0x400390B4))
1324
#define ADC1_DCRIC_R (*((volatile uint32_t *)0x40039D00))
1325
#define ADC1_DCCTL0_R (*((volatile uint32_t *)0x40039E00))
1326
#define ADC1_DCCTL1_R (*((volatile uint32_t *)0x40039E04))
1327
#define ADC1_DCCTL2_R (*((volatile uint32_t *)0x40039E08))
1328
#define ADC1_DCCTL3_R (*((volatile uint32_t *)0x40039E0C))
1329
#define ADC1_DCCTL4_R (*((volatile uint32_t *)0x40039E10))
1330
#define ADC1_DCCTL5_R (*((volatile uint32_t *)0x40039E14))
1331
#define ADC1_DCCTL6_R (*((volatile uint32_t *)0x40039E18))
1332
#define ADC1_DCCTL7_R (*((volatile uint32_t *)0x40039E1C))
1333
#define ADC1_DCCMP0_R (*((volatile uint32_t *)0x40039E40))
1334
#define ADC1_DCCMP1_R (*((volatile uint32_t *)0x40039E44))
1335
#define ADC1_DCCMP2_R (*((volatile uint32_t *)0x40039E48))
1336
#define ADC1_DCCMP3_R (*((volatile uint32_t *)0x40039E4C))
1337
#define ADC1_DCCMP4_R (*((volatile uint32_t *)0x40039E50))
1338
#define ADC1_DCCMP5_R (*((volatile uint32_t *)0x40039E54))
1339
#define ADC1_DCCMP6_R (*((volatile uint32_t *)0x40039E58))
1340
#define ADC1_DCCMP7_R (*((volatile uint32_t *)0x40039E5C))
1341
#define ADC1_PP_R (*((volatile uint32_t *)0x40039FC0))
1342
#define ADC1_PC_R (*((volatile uint32_t *)0x40039FC4))
1343
#define ADC1_CC_R (*((volatile uint32_t *)0x40039FC8))
1344
1345
//*****************************************************************************
1346
//
1347
// Comparator registers (COMP)
1348
//
1349
//*****************************************************************************
1350
#define COMP_ACMIS_R (*((volatile uint32_t *)0x4003C000))
1351
#define COMP_ACRIS_R (*((volatile uint32_t *)0x4003C004))
1352
#define COMP_ACINTEN_R (*((volatile uint32_t *)0x4003C008))
1353
#define COMP_ACREFCTL_R (*((volatile uint32_t *)0x4003C010))
1354
#define COMP_ACSTAT0_R (*((volatile uint32_t *)0x4003C020))
1355
#define COMP_ACCTL0_R (*((volatile uint32_t *)0x4003C024))
1356
#define COMP_ACSTAT1_R (*((volatile uint32_t *)0x4003C040))
1357
#define COMP_ACCTL1_R (*((volatile uint32_t *)0x4003C044))
1358
#define COMP_PP_R (*((volatile uint32_t *)0x4003CFC0))
1359
1360
//*****************************************************************************
1361
//
1362
// CAN registers (CAN0)
1363
//
1364
//*****************************************************************************
1365
#define CAN0_CTL_R (*((volatile uint32_t *)0x40040000))
1366
#define CAN0_STS_R (*((volatile uint32_t *)0x40040004))
1367
#define CAN0_ERR_R (*((volatile uint32_t *)0x40040008))
1368
#define CAN0_BIT_R (*((volatile uint32_t *)0x4004000C))
1369
#define CAN0_INT_R (*((volatile uint32_t *)0x40040010))
1370
#define CAN0_TST_R (*((volatile uint32_t *)0x40040014))
1371
#define CAN0_BRPE_R (*((volatile uint32_t *)0x40040018))
1372
#define CAN0_IF1CRQ_R (*((volatile uint32_t *)0x40040020))
1373
#define CAN0_IF1CMSK_R (*((volatile uint32_t *)0x40040024))
1374
#define CAN0_IF1MSK1_R (*((volatile uint32_t *)0x40040028))
1375
#define CAN0_IF1MSK2_R (*((volatile uint32_t *)0x4004002C))
1376
#define CAN0_IF1ARB1_R (*((volatile uint32_t *)0x40040030))
1377
#define CAN0_IF1ARB2_R (*((volatile uint32_t *)0x40040034))
1378
#define CAN0_IF1MCTL_R (*((volatile uint32_t *)0x40040038))
1379
#define CAN0_IF1DA1_R (*((volatile uint32_t *)0x4004003C))
1380
#define CAN0_IF1DA2_R (*((volatile uint32_t *)0x40040040))
1381
#define CAN0_IF1DB1_R (*((volatile uint32_t *)0x40040044))
1382
#define CAN0_IF1DB2_R (*((volatile uint32_t *)0x40040048))
1383
#define CAN0_IF2CRQ_R (*((volatile uint32_t *)0x40040080))
1384
#define CAN0_IF2CMSK_R (*((volatile uint32_t *)0x40040084))
1385
#define CAN0_IF2MSK1_R (*((volatile uint32_t *)0x40040088))
1386
#define CAN0_IF2MSK2_R (*((volatile uint32_t *)0x4004008C))
1387
#define CAN0_IF2ARB1_R (*((volatile uint32_t *)0x40040090))
1388
#define CAN0_IF2ARB2_R (*((volatile uint32_t *)0x40040094))
1389
#define CAN0_IF2MCTL_R (*((volatile uint32_t *)0x40040098))
1390
#define CAN0_IF2DA1_R (*((volatile uint32_t *)0x4004009C))
1391
#define CAN0_IF2DA2_R (*((volatile uint32_t *)0x400400A0))
1392
#define CAN0_IF2DB1_R (*((volatile uint32_t *)0x400400A4))
1393
#define CAN0_IF2DB2_R (*((volatile uint32_t *)0x400400A8))
1394
#define CAN0_TXRQ1_R (*((volatile uint32_t *)0x40040100))
1395
#define CAN0_TXRQ2_R (*((volatile uint32_t *)0x40040104))
1396
#define CAN0_NWDA1_R (*((volatile uint32_t *)0x40040120))
1397
#define CAN0_NWDA2_R (*((volatile uint32_t *)0x40040124))
1398
#define CAN0_MSG1INT_R (*((volatile uint32_t *)0x40040140))
1399
#define CAN0_MSG2INT_R (*((volatile uint32_t *)0x40040144))
1400
#define CAN0_MSG1VAL_R (*((volatile uint32_t *)0x40040160))
1401
#define CAN0_MSG2VAL_R (*((volatile uint32_t *)0x40040164))
1402
1403
//*****************************************************************************
1404
//
1405
// CAN registers (CAN1)
1406
//
1407
//*****************************************************************************
1408
#define CAN1_CTL_R (*((volatile uint32_t *)0x40041000))
1409
#define CAN1_STS_R (*((volatile uint32_t *)0x40041004))
1410
#define CAN1_ERR_R (*((volatile uint32_t *)0x40041008))
1411
#define CAN1_BIT_R (*((volatile uint32_t *)0x4004100C))
1412
#define CAN1_INT_R (*((volatile uint32_t *)0x40041010))
1413
#define CAN1_TST_R (*((volatile uint32_t *)0x40041014))
1414
#define CAN1_BRPE_R (*((volatile uint32_t *)0x40041018))
1415
#define CAN1_IF1CRQ_R (*((volatile uint32_t *)0x40041020))
1416
#define CAN1_IF1CMSK_R (*((volatile uint32_t *)0x40041024))
1417
#define CAN1_IF1MSK1_R (*((volatile uint32_t *)0x40041028))
1418
#define CAN1_IF1MSK2_R (*((volatile uint32_t *)0x4004102C))
1419
#define CAN1_IF1ARB1_R (*((volatile uint32_t *)0x40041030))
1420
#define CAN1_IF1ARB2_R (*((volatile uint32_t *)0x40041034))
1421
#define CAN1_IF1MCTL_R (*((volatile uint32_t *)0x40041038))
1422
#define CAN1_IF1DA1_R (*((volatile uint32_t *)0x4004103C))
1423
#define CAN1_IF1DA2_R (*((volatile uint32_t *)0x40041040))
1424
#define CAN1_IF1DB1_R (*((volatile uint32_t *)0x40041044))
1425
#define CAN1_IF1DB2_R (*((volatile uint32_t *)0x40041048))
1426
#define CAN1_IF2CRQ_R (*((volatile uint32_t *)0x40041080))
1427
#define CAN1_IF2CMSK_R (*((volatile uint32_t *)0x40041084))
1428
#define CAN1_IF2MSK1_R (*((volatile uint32_t *)0x40041088))
1429
#define CAN1_IF2MSK2_R (*((volatile uint32_t *)0x4004108C))
1430
#define CAN1_IF2ARB1_R (*((volatile uint32_t *)0x40041090))
1431
#define CAN1_IF2ARB2_R (*((volatile uint32_t *)0x40041094))
1432
#define CAN1_IF2MCTL_R (*((volatile uint32_t *)0x40041098))
1433
#define CAN1_IF2DA1_R (*((volatile uint32_t *)0x4004109C))
1434
#define CAN1_IF2DA2_R (*((volatile uint32_t *)0x400410A0))
1435
#define CAN1_IF2DB1_R (*((volatile uint32_t *)0x400410A4))
1436
#define CAN1_IF2DB2_R (*((volatile uint32_t *)0x400410A8))
1437
#define CAN1_TXRQ1_R (*((volatile uint32_t *)0x40041100))
1438
#define CAN1_TXRQ2_R (*((volatile uint32_t *)0x40041104))
1439
#define CAN1_NWDA1_R (*((volatile uint32_t *)0x40041120))
1440
#define CAN1_NWDA2_R (*((volatile uint32_t *)0x40041124))
1441
#define CAN1_MSG1INT_R (*((volatile uint32_t *)0x40041140))
1442
#define CAN1_MSG2INT_R (*((volatile uint32_t *)0x40041144))
1443
#define CAN1_MSG1VAL_R (*((volatile uint32_t *)0x40041160))
1444
#define CAN1_MSG2VAL_R (*((volatile uint32_t *)0x40041164))
1445
1446
//*****************************************************************************
1447
//
1448
// Timer registers (WTIMER2)
1449
//
1450
//*****************************************************************************
1451
#define WTIMER2_CFG_R (*((volatile uint32_t *)0x4004C000))
1452
#define WTIMER2_TAMR_R (*((volatile uint32_t *)0x4004C004))
1453
#define WTIMER2_TBMR_R (*((volatile uint32_t *)0x4004C008))
1454
#define WTIMER2_CTL_R (*((volatile uint32_t *)0x4004C00C))
1455
#define WTIMER2_SYNC_R (*((volatile uint32_t *)0x4004C010))
1456
#define WTIMER2_IMR_R (*((volatile uint32_t *)0x4004C018))
1457
#define WTIMER2_RIS_R (*((volatile uint32_t *)0x4004C01C))
1458
#define WTIMER2_MIS_R (*((volatile uint32_t *)0x4004C020))
1459
#define WTIMER2_ICR_R (*((volatile uint32_t *)0x4004C024))
1460
#define WTIMER2_TAILR_R (*((volatile uint32_t *)0x4004C028))
1461
#define WTIMER2_TBILR_R (*((volatile uint32_t *)0x4004C02C))
1462
#define WTIMER2_TAMATCHR_R (*((volatile uint32_t *)0x4004C030))
1463
#define WTIMER2_TBMATCHR_R (*((volatile uint32_t *)0x4004C034))
1464
#define WTIMER2_TAPR_R (*((volatile uint32_t *)0x4004C038))
1465
#define WTIMER2_TBPR_R (*((volatile uint32_t *)0x4004C03C))
1466
#define WTIMER2_TAPMR_R (*((volatile uint32_t *)0x4004C040))
1467
#define WTIMER2_TBPMR_R (*((volatile uint32_t *)0x4004C044))
1468
#define WTIMER2_TAR_R (*((volatile uint32_t *)0x4004C048))
1469
#define WTIMER2_TBR_R (*((volatile uint32_t *)0x4004C04C))
1470
#define WTIMER2_TAV_R (*((volatile uint32_t *)0x4004C050))
1471
#define WTIMER2_TBV_R (*((volatile uint32_t *)0x4004C054))
1472
#define WTIMER2_RTCPD_R (*((volatile uint32_t *)0x4004C058))
1473
#define WTIMER2_TAPS_R (*((volatile uint32_t *)0x4004C05C))
1474
#define WTIMER2_TBPS_R (*((volatile uint32_t *)0x4004C060))
1475
#define WTIMER2_TAPV_R (*((volatile uint32_t *)0x4004C064))
1476
#define WTIMER2_TBPV_R (*((volatile uint32_t *)0x4004C068))
1477
#define WTIMER2_PP_R (*((volatile uint32_t *)0x4004CFC0))
1478
1479
//*****************************************************************************
1480
//
1481
// Timer registers (WTIMER3)
1482
//
1483
//*****************************************************************************
1484
#define WTIMER3_CFG_R (*((volatile uint32_t *)0x4004D000))
1485
#define WTIMER3_TAMR_R (*((volatile uint32_t *)0x4004D004))
1486
#define WTIMER3_TBMR_R (*((volatile uint32_t *)0x4004D008))
1487
#define WTIMER3_CTL_R (*((volatile uint32_t *)0x4004D00C))
1488
#define WTIMER3_SYNC_R (*((volatile uint32_t *)0x4004D010))
1489
#define WTIMER3_IMR_R (*((volatile uint32_t *)0x4004D018))
1490
#define WTIMER3_RIS_R (*((volatile uint32_t *)0x4004D01C))
1491
#define WTIMER3_MIS_R (*((volatile uint32_t *)0x4004D020))
1492
#define WTIMER3_ICR_R (*((volatile uint32_t *)0x4004D024))
1493
#define WTIMER3_TAILR_R (*((volatile uint32_t *)0x4004D028))
1494
#define WTIMER3_TBILR_R (*((volatile uint32_t *)0x4004D02C))
1495
#define WTIMER3_TAMATCHR_R (*((volatile uint32_t *)0x4004D030))
1496
#define WTIMER3_TBMATCHR_R (*((volatile uint32_t *)0x4004D034))
1497
#define WTIMER3_TAPR_R (*((volatile uint32_t *)0x4004D038))
1498
#define WTIMER3_TBPR_R (*((volatile uint32_t *)0x4004D03C))
1499
#define WTIMER3_TAPMR_R (*((volatile uint32_t *)0x4004D040))
1500
#define WTIMER3_TBPMR_R (*((volatile uint32_t *)0x4004D044))
1501
#define WTIMER3_TAR_R (*((volatile uint32_t *)0x4004D048))
1502
#define WTIMER3_TBR_R (*((volatile uint32_t *)0x4004D04C))
1503
#define WTIMER3_TAV_R (*((volatile uint32_t *)0x4004D050))
1504
#define WTIMER3_TBV_R (*((volatile uint32_t *)0x4004D054))
1505
#define WTIMER3_RTCPD_R (*((volatile uint32_t *)0x4004D058))
1506
#define WTIMER3_TAPS_R (*((volatile uint32_t *)0x4004D05C))
1507
#define WTIMER3_TBPS_R (*((volatile uint32_t *)0x4004D060))
1508
#define WTIMER3_TAPV_R (*((volatile uint32_t *)0x4004D064))
1509
#define WTIMER3_TBPV_R (*((volatile uint32_t *)0x4004D068))
1510
#define WTIMER3_PP_R (*((volatile uint32_t *)0x4004DFC0))
1511
1512
//*****************************************************************************
1513
//
1514
// Timer registers (WTIMER4)
1515
//
1516
//*****************************************************************************
1517
#define WTIMER4_CFG_R (*((volatile uint32_t *)0x4004E000))
1518
#define WTIMER4_TAMR_R (*((volatile uint32_t *)0x4004E004))
1519
#define WTIMER4_TBMR_R (*((volatile uint32_t *)0x4004E008))
1520
#define WTIMER4_CTL_R (*((volatile uint32_t *)0x4004E00C))
1521
#define WTIMER4_SYNC_R (*((volatile uint32_t *)0x4004E010))
1522
#define WTIMER4_IMR_R (*((volatile uint32_t *)0x4004E018))
1523
#define WTIMER4_RIS_R (*((volatile uint32_t *)0x4004E01C))
1524
#define WTIMER4_MIS_R (*((volatile uint32_t *)0x4004E020))
1525
#define WTIMER4_ICR_R (*((volatile uint32_t *)0x4004E024))
1526
#define WTIMER4_TAILR_R (*((volatile uint32_t *)0x4004E028))
1527
#define WTIMER4_TBILR_R (*((volatile uint32_t *)0x4004E02C))
1528
#define WTIMER4_TAMATCHR_R (*((volatile uint32_t *)0x4004E030))
1529
#define WTIMER4_TBMATCHR_R (*((volatile uint32_t *)0x4004E034))
1530
#define WTIMER4_TAPR_R (*((volatile uint32_t *)0x4004E038))
1531
#define WTIMER4_TBPR_R (*((volatile uint32_t *)0x4004E03C))
1532
#define WTIMER4_TAPMR_R (*((volatile uint32_t *)0x4004E040))
1533
#define WTIMER4_TBPMR_R (*((volatile uint32_t *)0x4004E044))
1534
#define WTIMER4_TAR_R (*((volatile uint32_t *)0x4004E048))
1535
#define WTIMER4_TBR_R (*((volatile uint32_t *)0x4004E04C))
1536
#define WTIMER4_TAV_R (*((volatile uint32_t *)0x4004E050))
1537
#define WTIMER4_TBV_R (*((volatile uint32_t *)0x4004E054))
1538
#define WTIMER4_RTCPD_R (*((volatile uint32_t *)0x4004E058))
1539
#define WTIMER4_TAPS_R (*((volatile uint32_t *)0x4004E05C))
1540
#define WTIMER4_TBPS_R (*((volatile uint32_t *)0x4004E060))
1541
#define WTIMER4_TAPV_R (*((volatile uint32_t *)0x4004E064))
1542
#define WTIMER4_TBPV_R (*((volatile uint32_t *)0x4004E068))
1543
#define WTIMER4_PP_R (*((volatile uint32_t *)0x4004EFC0))
1544
1545
//*****************************************************************************
1546
//
1547
// Timer registers (WTIMER5)
1548
//
1549
//*****************************************************************************
1550
#define WTIMER5_CFG_R (*((volatile uint32_t *)0x4004F000))
1551
#define WTIMER5_TAMR_R (*((volatile uint32_t *)0x4004F004))
1552
#define WTIMER5_TBMR_R (*((volatile uint32_t *)0x4004F008))
1553
#define WTIMER5_CTL_R (*((volatile uint32_t *)0x4004F00C))
1554
#define WTIMER5_SYNC_R (*((volatile uint32_t *)0x4004F010))
1555
#define WTIMER5_IMR_R (*((volatile uint32_t *)0x4004F018))
1556
#define WTIMER5_RIS_R (*((volatile uint32_t *)0x4004F01C))
1557
#define WTIMER5_MIS_R (*((volatile uint32_t *)0x4004F020))
1558
#define WTIMER5_ICR_R (*((volatile uint32_t *)0x4004F024))
1559
#define WTIMER5_TAILR_R (*((volatile uint32_t *)0x4004F028))
1560
#define WTIMER5_TBILR_R (*((volatile uint32_t *)0x4004F02C))
1561
#define WTIMER5_TAMATCHR_R (*((volatile uint32_t *)0x4004F030))
1562
#define WTIMER5_TBMATCHR_R (*((volatile uint32_t *)0x4004F034))
1563
#define WTIMER5_TAPR_R (*((volatile uint32_t *)0x4004F038))
1564
#define WTIMER5_TBPR_R (*((volatile uint32_t *)0x4004F03C))
1565
#define WTIMER5_TAPMR_R (*((volatile uint32_t *)0x4004F040))
1566
#define WTIMER5_TBPMR_R (*((volatile uint32_t *)0x4004F044))
1567
#define WTIMER5_TAR_R (*((volatile uint32_t *)0x4004F048))
1568
#define WTIMER5_TBR_R (*((volatile uint32_t *)0x4004F04C))
1569
#define WTIMER5_TAV_R (*((volatile uint32_t *)0x4004F050))
1570
#define WTIMER5_TBV_R (*((volatile uint32_t *)0x4004F054))
1571
#define WTIMER5_RTCPD_R (*((volatile uint32_t *)0x4004F058))
1572
#define WTIMER5_TAPS_R (*((volatile uint32_t *)0x4004F05C))
1573
#define WTIMER5_TBPS_R (*((volatile uint32_t *)0x4004F060))
1574
#define WTIMER5_TAPV_R (*((volatile uint32_t *)0x4004F064))
1575
#define WTIMER5_TBPV_R (*((volatile uint32_t *)0x4004F068))
1576
#define WTIMER5_PP_R (*((volatile uint32_t *)0x4004FFC0))
1577
1578
//*****************************************************************************
1579
//
1580
// Univeral Serial Bus registers (USB0)
1581
//
1582
//*****************************************************************************
1583
#define USB0_FADDR_R (*((volatile uint8_t *)0x40050000))
1584
#define USB0_POWER_R (*((volatile uint8_t *)0x40050001))
1585
#define USB0_TXIS_R (*((volatile uint16_t *)0x40050002))
1586
#define USB0_RXIS_R (*((volatile uint16_t *)0x40050004))
1587
#define USB0_TXIE_R (*((volatile uint16_t *)0x40050006))
1588
#define USB0_RXIE_R (*((volatile uint16_t *)0x40050008))
1589
#define USB0_IS_R (*((volatile uint8_t *)0x4005000A))
1590
#define USB0_IE_R (*((volatile uint8_t *)0x4005000B))
1591
#define USB0_FRAME_R (*((volatile uint16_t *)0x4005000C))
1592
#define USB0_EPIDX_R (*((volatile uint8_t *)0x4005000E))
1593
#define USB0_TEST_R (*((volatile uint8_t *)0x4005000F))
1594
#define USB0_FIFO0_R (*((volatile uint32_t *)0x40050020))
1595
#define USB0_FIFO1_R (*((volatile uint32_t *)0x40050024))
1596
#define USB0_FIFO2_R (*((volatile uint32_t *)0x40050028))
1597
#define USB0_FIFO3_R (*((volatile uint32_t *)0x4005002C))
1598
#define USB0_FIFO4_R (*((volatile uint32_t *)0x40050030))
1599
#define USB0_FIFO5_R (*((volatile uint32_t *)0x40050034))
1600
#define USB0_FIFO6_R (*((volatile uint32_t *)0x40050038))
1601
#define USB0_FIFO7_R (*((volatile uint32_t *)0x4005003C))
1602
#define USB0_DEVCTL_R (*((volatile uint8_t *)0x40050060))
1603
#define USB0_TXFIFOSZ_R (*((volatile uint8_t *)0x40050062))
1604
#define USB0_RXFIFOSZ_R (*((volatile uint8_t *)0x40050063))
1605
#define USB0_TXFIFOADD_R (*((volatile uint16_t *)0x40050064))
1606
#define USB0_RXFIFOADD_R (*((volatile uint16_t *)0x40050066))
1607
#define USB0_CONTIM_R (*((volatile uint8_t *)0x4005007A))
1608
#define USB0_VPLEN_R (*((volatile uint8_t *)0x4005007B))
1609
#define USB0_FSEOF_R (*((volatile uint8_t *)0x4005007D))
1610
#define USB0_LSEOF_R (*((volatile uint8_t *)0x4005007E))
1611
#define USB0_TXFUNCADDR0_R (*((volatile uint8_t *)0x40050080))
1612
#define USB0_TXHUBADDR0_R (*((volatile uint8_t *)0x40050082))
1613
#define USB0_TXHUBPORT0_R (*((volatile uint8_t *)0x40050083))
1614
#define USB0_TXFUNCADDR1_R (*((volatile uint8_t *)0x40050088))
1615
#define USB0_TXHUBADDR1_R (*((volatile uint8_t *)0x4005008A))
1616
#define USB0_TXHUBPORT1_R (*((volatile uint8_t *)0x4005008B))
1617
#define USB0_RXFUNCADDR1_R (*((volatile uint8_t *)0x4005008C))
1618
#define USB0_RXHUBADDR1_R (*((volatile uint8_t *)0x4005008E))
1619
#define USB0_RXHUBPORT1_R (*((volatile uint8_t *)0x4005008F))
1620
#define USB0_TXFUNCADDR2_R (*((volatile uint8_t *)0x40050090))
1621
#define USB0_TXHUBADDR2_R (*((volatile uint8_t *)0x40050092))
1622
#define USB0_TXHUBPORT2_R (*((volatile uint8_t *)0x40050093))
1623
#define USB0_RXFUNCADDR2_R (*((volatile uint8_t *)0x40050094))
1624
#define USB0_RXHUBADDR2_R (*((volatile uint8_t *)0x40050096))
1625
#define USB0_RXHUBPORT2_R (*((volatile uint8_t *)0x40050097))
1626
#define USB0_TXFUNCADDR3_R (*((volatile uint8_t *)0x40050098))
1627
#define USB0_TXHUBADDR3_R (*((volatile uint8_t *)0x4005009A))
1628
#define USB0_TXHUBPORT3_R (*((volatile uint8_t *)0x4005009B))
1629
#define USB0_RXFUNCADDR3_R (*((volatile uint8_t *)0x4005009C))
1630
#define USB0_RXHUBADDR3_R (*((volatile uint8_t *)0x4005009E))
1631
#define USB0_RXHUBPORT3_R (*((volatile uint8_t *)0x4005009F))
1632
#define USB0_TXFUNCADDR4_R (*((volatile uint8_t *)0x400500A0))
1633
#define USB0_TXHUBADDR4_R (*((volatile uint8_t *)0x400500A2))
1634
#define USB0_TXHUBPORT4_R (*((volatile uint8_t *)0x400500A3))
1635
#define USB0_RXFUNCADDR4_R (*((volatile uint8_t *)0x400500A4))
1636
#define USB0_RXHUBADDR4_R (*((volatile uint8_t *)0x400500A6))
1637
#define USB0_RXHUBPORT4_R (*((volatile uint8_t *)0x400500A7))
1638
#define USB0_TXFUNCADDR5_R (*((volatile uint8_t *)0x400500A8))
1639
#define USB0_TXHUBADDR5_R (*((volatile uint8_t *)0x400500AA))
1640
#define USB0_TXHUBPORT5_R (*((volatile uint8_t *)0x400500AB))
1641
#define USB0_RXFUNCADDR5_R (*((volatile uint8_t *)0x400500AC))
1642
#define USB0_RXHUBADDR5_R (*((volatile uint8_t *)0x400500AE))
1643
#define USB0_RXHUBPORT5_R (*((volatile uint8_t *)0x400500AF))
1644
#define USB0_TXFUNCADDR6_R (*((volatile uint8_t *)0x400500B0))
1645
#define USB0_TXHUBADDR6_R (*((volatile uint8_t *)0x400500B2))
1646
#define USB0_TXHUBPORT6_R (*((volatile uint8_t *)0x400500B3))
1647
#define USB0_RXFUNCADDR6_R (*((volatile uint8_t *)0x400500B4))
1648
#define USB0_RXHUBADDR6_R (*((volatile uint8_t *)0x400500B6))
1649
#define USB0_RXHUBPORT6_R (*((volatile uint8_t *)0x400500B7))
1650
#define USB0_TXFUNCADDR7_R (*((volatile uint8_t *)0x400500B8))
1651
#define USB0_TXHUBADDR7_R (*((volatile uint8_t *)0x400500BA))
1652
#define USB0_TXHUBPORT7_R (*((volatile uint8_t *)0x400500BB))
1653
#define USB0_RXFUNCADDR7_R (*((volatile uint8_t *)0x400500BC))
1654
#define USB0_RXHUBADDR7_R (*((volatile uint8_t *)0x400500BE))
1655
#define USB0_RXHUBPORT7_R (*((volatile uint8_t *)0x400500BF))
1656
#define USB0_CSRL0_R (*((volatile uint8_t *)0x40050102))
1657
#define USB0_CSRH0_R (*((volatile uint8_t *)0x40050103))
1658
#define USB0_COUNT0_R (*((volatile uint8_t *)0x40050108))
1659
#define USB0_TYPE0_R (*((volatile uint8_t *)0x4005010A))
1660
#define USB0_NAKLMT_R (*((volatile uint8_t *)0x4005010B))
1661
#define USB0_TXMAXP1_R (*((volatile uint16_t *)0x40050110))
1662
#define USB0_TXCSRL1_R (*((volatile uint8_t *)0x40050112))
1663
#define USB0_TXCSRH1_R (*((volatile uint8_t *)0x40050113))
1664
#define USB0_RXMAXP1_R (*((volatile uint16_t *)0x40050114))
1665
#define USB0_RXCSRL1_R (*((volatile uint8_t *)0x40050116))
1666
#define USB0_RXCSRH1_R (*((volatile uint8_t *)0x40050117))
1667
#define USB0_RXCOUNT1_R (*((volatile uint16_t *)0x40050118))
1668
#define USB0_TXTYPE1_R (*((volatile uint8_t *)0x4005011A))
1669
#define USB0_TXINTERVAL1_R (*((volatile uint8_t *)0x4005011B))
1670
#define USB0_RXTYPE1_R (*((volatile uint8_t *)0x4005011C))
1671
#define USB0_RXINTERVAL1_R (*((volatile uint8_t *)0x4005011D))
1672
#define USB0_TXMAXP2_R (*((volatile uint16_t *)0x40050120))
1673
#define USB0_TXCSRL2_R (*((volatile uint8_t *)0x40050122))
1674
#define USB0_TXCSRH2_R (*((volatile uint8_t *)0x40050123))
1675
#define USB0_RXMAXP2_R (*((volatile uint16_t *)0x40050124))
1676
#define USB0_RXCSRL2_R (*((volatile uint8_t *)0x40050126))
1677
#define USB0_RXCSRH2_R (*((volatile uint8_t *)0x40050127))
1678
#define USB0_RXCOUNT2_R (*((volatile uint16_t *)0x40050128))
1679
#define USB0_TXTYPE2_R (*((volatile uint8_t *)0x4005012A))
1680
#define USB0_TXINTERVAL2_R (*((volatile uint8_t *)0x4005012B))
1681
#define USB0_RXTYPE2_R (*((volatile uint8_t *)0x4005012C))
1682
#define USB0_RXINTERVAL2_R (*((volatile uint8_t *)0x4005012D))
1683
#define USB0_TXMAXP3_R (*((volatile uint16_t *)0x40050130))
1684
#define USB0_TXCSRL3_R (*((volatile uint8_t *)0x40050132))
1685
#define USB0_TXCSRH3_R (*((volatile uint8_t *)0x40050133))
1686
#define USB0_RXMAXP3_R (*((volatile uint16_t *)0x40050134))
1687
#define USB0_RXCSRL3_R (*((volatile uint8_t *)0x40050136))
1688
#define USB0_RXCSRH3_R (*((volatile uint8_t *)0x40050137))
1689
#define USB0_RXCOUNT3_R (*((volatile uint16_t *)0x40050138))
1690
#define USB0_TXTYPE3_R (*((volatile uint8_t *)0x4005013A))
1691
#define USB0_TXINTERVAL3_R (*((volatile uint8_t *)0x4005013B))
1692
#define USB0_RXTYPE3_R (*((volatile uint8_t *)0x4005013C))
1693
#define USB0_RXINTERVAL3_R (*((volatile uint8_t *)0x4005013D))
1694
#define USB0_TXMAXP4_R (*((volatile uint16_t *)0x40050140))
1695
#define USB0_TXCSRL4_R (*((volatile uint8_t *)0x40050142))
1696
#define USB0_TXCSRH4_R (*((volatile uint8_t *)0x40050143))
1697
#define USB0_RXMAXP4_R (*((volatile uint16_t *)0x40050144))
1698
#define USB0_RXCSRL4_R (*((volatile uint8_t *)0x40050146))
1699
#define USB0_RXCSRH4_R (*((volatile uint8_t *)0x40050147))
1700
#define USB0_RXCOUNT4_R (*((volatile uint16_t *)0x40050148))
1701
#define USB0_TXTYPE4_R (*((volatile uint8_t *)0x4005014A))
1702
#define USB0_TXINTERVAL4_R (*((volatile uint8_t *)0x4005014B))
1703
#define USB0_RXTYPE4_R (*((volatile uint8_t *)0x4005014C))
1704
#define USB0_RXINTERVAL4_R (*((volatile uint8_t *)0x4005014D))
1705
#define USB0_TXMAXP5_R (*((volatile uint16_t *)0x40050150))
1706
#define USB0_TXCSRL5_R (*((volatile uint8_t *)0x40050152))
1707
#define USB0_TXCSRH5_R (*((volatile uint8_t *)0x40050153))
1708
#define USB0_RXMAXP5_R (*((volatile uint16_t *)0x40050154))
1709
#define USB0_RXCSRL5_R (*((volatile uint8_t *)0x40050156))
1710
#define USB0_RXCSRH5_R (*((volatile uint8_t *)0x40050157))
1711
#define USB0_RXCOUNT5_R (*((volatile uint16_t *)0x40050158))
1712
#define USB0_TXTYPE5_R (*((volatile uint8_t *)0x4005015A))
1713
#define USB0_TXINTERVAL5_R (*((volatile uint8_t *)0x4005015B))
1714
#define USB0_RXTYPE5_R (*((volatile uint8_t *)0x4005015C))
1715
#define USB0_RXINTERVAL5_R (*((volatile uint8_t *)0x4005015D))
1716
#define USB0_TXMAXP6_R (*((volatile uint16_t *)0x40050160))
1717
#define USB0_TXCSRL6_R (*((volatile uint8_t *)0x40050162))
1718
#define USB0_TXCSRH6_R (*((volatile uint8_t *)0x40050163))
1719
#define USB0_RXMAXP6_R (*((volatile uint16_t *)0x40050164))
1720
#define USB0_RXCSRL6_R (*((volatile uint8_t *)0x40050166))
1721
#define USB0_RXCSRH6_R (*((volatile uint8_t *)0x40050167))
1722
#define USB0_RXCOUNT6_R (*((volatile uint16_t *)0x40050168))
1723
#define USB0_TXTYPE6_R (*((volatile uint8_t *)0x4005016A))
1724
#define USB0_TXINTERVAL6_R (*((volatile uint8_t *)0x4005016B))
1725
#define USB0_RXTYPE6_R (*((volatile uint8_t *)0x4005016C))
1726
#define USB0_RXINTERVAL6_R (*((volatile uint8_t *)0x4005016D))
1727
#define USB0_TXMAXP7_R (*((volatile uint16_t *)0x40050170))
1728
#define USB0_TXCSRL7_R (*((volatile uint8_t *)0x40050172))
1729
#define USB0_TXCSRH7_R (*((volatile uint8_t *)0x40050173))
1730
#define USB0_RXMAXP7_R (*((volatile uint16_t *)0x40050174))
1731
#define USB0_RXCSRL7_R (*((volatile uint8_t *)0x40050176))
1732
#define USB0_RXCSRH7_R (*((volatile uint8_t *)0x40050177))
1733
#define USB0_RXCOUNT7_R (*((volatile uint16_t *)0x40050178))
1734
#define USB0_TXTYPE7_R (*((volatile uint8_t *)0x4005017A))
1735
#define USB0_TXINTERVAL7_R (*((volatile uint8_t *)0x4005017B))
1736
#define USB0_RXTYPE7_R (*((volatile uint8_t *)0x4005017C))
1737
#define USB0_RXINTERVAL7_R (*((volatile uint8_t *)0x4005017D))
1738
#define USB0_RQPKTCOUNT1_R (*((volatile uint16_t *)0x40050304))
1739
#define USB0_RQPKTCOUNT2_R (*((volatile uint16_t *)0x40050308))
1740
#define USB0_RQPKTCOUNT3_R (*((volatile uint16_t *)0x4005030C))
1741
#define USB0_RQPKTCOUNT4_R (*((volatile uint16_t *)0x40050310))
1742
#define USB0_RQPKTCOUNT5_R (*((volatile uint16_t *)0x40050314))
1743
#define USB0_RQPKTCOUNT6_R (*((volatile uint16_t *)0x40050318))
1744
#define USB0_RQPKTCOUNT7_R (*((volatile uint16_t *)0x4005031C))
1745
#define USB0_RXDPKTBUFDIS_R (*((volatile uint16_t *)0x40050340))
1746
#define USB0_TXDPKTBUFDIS_R (*((volatile uint16_t *)0x40050342))
1747
#define USB0_EPC_R (*((volatile uint32_t *)0x40050400))
1748
#define USB0_EPCRIS_R (*((volatile uint32_t *)0x40050404))
1749
#define USB0_EPCIM_R (*((volatile uint32_t *)0x40050408))
1750
#define USB0_EPCISC_R (*((volatile uint32_t *)0x4005040C))
1751
#define USB0_DRRIS_R (*((volatile uint32_t *)0x40050410))
1752
#define USB0_DRIM_R (*((volatile uint32_t *)0x40050414))
1753
#define USB0_DRISC_R (*((volatile uint32_t *)0x40050418))
1754
#define USB0_GPCS_R (*((volatile uint32_t *)0x4005041C))
1755
#define USB0_VDC_R (*((volatile uint32_t *)0x40050430))
1756
#define USB0_VDCRIS_R (*((volatile uint32_t *)0x40050434))
1757
#define USB0_VDCIM_R (*((volatile uint32_t *)0x40050438))
1758
#define USB0_VDCISC_R (*((volatile uint32_t *)0x4005043C))
1759
#define USB0_IDVRIS_R (*((volatile uint32_t *)0x40050444))
1760
#define USB0_IDVIM_R (*((volatile uint32_t *)0x40050448))
1761
#define USB0_IDVISC_R (*((volatile uint32_t *)0x4005044C))
1762
#define USB0_DMASEL_R (*((volatile uint32_t *)0x40050450))
1763
#define USB0_PP_R (*((volatile uint32_t *)0x40050FC0))
1764
1765
//*****************************************************************************
1766
//
1767
// GPIO registers (PORTA AHB)
1768
//
1769
//*****************************************************************************
1770
#define GPIO_PORTA_AHB_DATA_BITS_R \
1771
((volatile uint32_t *)0x40058000)
1772
#define GPIO_PORTA_AHB_DATA_R (*((volatile uint32_t *)0x400583FC))
1773
#define GPIO_PORTA_AHB_DIR_R (*((volatile uint32_t *)0x40058400))
1774
#define GPIO_PORTA_AHB_IS_R (*((volatile uint32_t *)0x40058404))
1775
#define GPIO_PORTA_AHB_IBE_R (*((volatile uint32_t *)0x40058408))
1776
#define GPIO_PORTA_AHB_IEV_R (*((volatile uint32_t *)0x4005840C))
1777
#define GPIO_PORTA_AHB_IM_R (*((volatile uint32_t *)0x40058410))
1778
#define GPIO_PORTA_AHB_RIS_R (*((volatile uint32_t *)0x40058414))
1779
#define GPIO_PORTA_AHB_MIS_R (*((volatile uint32_t *)0x40058418))
1780
#define GPIO_PORTA_AHB_ICR_R (*((volatile uint32_t *)0x4005841C))
1781
#define GPIO_PORTA_AHB_AFSEL_R (*((volatile uint32_t *)0x40058420))
1782
#define GPIO_PORTA_AHB_DR2R_R (*((volatile uint32_t *)0x40058500))
1783
#define GPIO_PORTA_AHB_DR4R_R (*((volatile uint32_t *)0x40058504))
1784
#define GPIO_PORTA_AHB_DR8R_R (*((volatile uint32_t *)0x40058508))
1785
#define GPIO_PORTA_AHB_ODR_R (*((volatile uint32_t *)0x4005850C))
1786
#define GPIO_PORTA_AHB_PUR_R (*((volatile uint32_t *)0x40058510))
1787
#define GPIO_PORTA_AHB_PDR_R (*((volatile uint32_t *)0x40058514))
1788
#define GPIO_PORTA_AHB_SLR_R (*((volatile uint32_t *)0x40058518))
1789
#define GPIO_PORTA_AHB_DEN_R (*((volatile uint32_t *)0x4005851C))
1790
#define GPIO_PORTA_AHB_LOCK_R (*((volatile uint32_t *)0x40058520))
1791
#define GPIO_PORTA_AHB_CR_R (*((volatile uint32_t *)0x40058524))
1792
#define GPIO_PORTA_AHB_AMSEL_R (*((volatile uint32_t *)0x40058528))
1793
#define GPIO_PORTA_AHB_PCTL_R (*((volatile uint32_t *)0x4005852C))
1794
#define GPIO_PORTA_AHB_ADCCTL_R (*((volatile uint32_t *)0x40058530))
1795
#define GPIO_PORTA_AHB_DMACTL_R (*((volatile uint32_t *)0x40058534))
1796
1797
//*****************************************************************************
1798
//
1799
// GPIO registers (PORTB AHB)
1800
//
1801
//*****************************************************************************
1802
#define GPIO_PORTB_AHB_DATA_BITS_R \
1803
((volatile uint32_t *)0x40059000)
1804
#define GPIO_PORTB_AHB_DATA_R (*((volatile uint32_t *)0x400593FC))
1805
#define GPIO_PORTB_AHB_DIR_R (*((volatile uint32_t *)0x40059400))
1806
#define GPIO_PORTB_AHB_IS_R (*((volatile uint32_t *)0x40059404))
1807
#define GPIO_PORTB_AHB_IBE_R (*((volatile uint32_t *)0x40059408))
1808
#define GPIO_PORTB_AHB_IEV_R (*((volatile uint32_t *)0x4005940C))
1809
#define GPIO_PORTB_AHB_IM_R (*((volatile uint32_t *)0x40059410))
1810
#define GPIO_PORTB_AHB_RIS_R (*((volatile uint32_t *)0x40059414))
1811
#define GPIO_PORTB_AHB_MIS_R (*((volatile uint32_t *)0x40059418))
1812
#define GPIO_PORTB_AHB_ICR_R (*((volatile uint32_t *)0x4005941C))
1813
#define GPIO_PORTB_AHB_AFSEL_R (*((volatile uint32_t *)0x40059420))
1814
#define GPIO_PORTB_AHB_DR2R_R (*((volatile uint32_t *)0x40059500))
1815
#define GPIO_PORTB_AHB_DR4R_R (*((volatile uint32_t *)0x40059504))
1816
#define GPIO_PORTB_AHB_DR8R_R (*((volatile uint32_t *)0x40059508))
1817
#define GPIO_PORTB_AHB_ODR_R (*((volatile uint32_t *)0x4005950C))
1818
#define GPIO_PORTB_AHB_PUR_R (*((volatile uint32_t *)0x40059510))
1819
#define GPIO_PORTB_AHB_PDR_R (*((volatile uint32_t *)0x40059514))
1820
#define GPIO_PORTB_AHB_SLR_R (*((volatile uint32_t *)0x40059518))
1821
#define GPIO_PORTB_AHB_DEN_R (*((volatile uint32_t *)0x4005951C))
1822
#define GPIO_PORTB_AHB_LOCK_R (*((volatile uint32_t *)0x40059520))
1823
#define GPIO_PORTB_AHB_CR_R (*((volatile uint32_t *)0x40059524))
1824
#define GPIO_PORTB_AHB_AMSEL_R (*((volatile uint32_t *)0x40059528))
1825
#define GPIO_PORTB_AHB_PCTL_R (*((volatile uint32_t *)0x4005952C))
1826
#define GPIO_PORTB_AHB_ADCCTL_R (*((volatile uint32_t *)0x40059530))
1827
#define GPIO_PORTB_AHB_DMACTL_R (*((volatile uint32_t *)0x40059534))
1828
1829
//*****************************************************************************
1830
//
1831
// GPIO registers (PORTC AHB)
1832
//
1833
//*****************************************************************************
1834
#define GPIO_PORTC_AHB_DATA_BITS_R \
1835
((volatile uint32_t *)0x4005A000)
1836
#define GPIO_PORTC_AHB_DATA_R (*((volatile uint32_t *)0x4005A3FC))
1837
#define GPIO_PORTC_AHB_DIR_R (*((volatile uint32_t *)0x4005A400))
1838
#define GPIO_PORTC_AHB_IS_R (*((volatile uint32_t *)0x4005A404))
1839
#define GPIO_PORTC_AHB_IBE_R (*((volatile uint32_t *)0x4005A408))
1840
#define GPIO_PORTC_AHB_IEV_R (*((volatile uint32_t *)0x4005A40C))
1841
#define GPIO_PORTC_AHB_IM_R (*((volatile uint32_t *)0x4005A410))
1842
#define GPIO_PORTC_AHB_RIS_R (*((volatile uint32_t *)0x4005A414))
1843
#define GPIO_PORTC_AHB_MIS_R (*((volatile uint32_t *)0x4005A418))
1844
#define GPIO_PORTC_AHB_ICR_R (*((volatile uint32_t *)0x4005A41C))
1845
#define GPIO_PORTC_AHB_AFSEL_R (*((volatile uint32_t *)0x4005A420))
1846
#define GPIO_PORTC_AHB_DR2R_R (*((volatile uint32_t *)0x4005A500))
1847
#define GPIO_PORTC_AHB_DR4R_R (*((volatile uint32_t *)0x4005A504))
1848
#define GPIO_PORTC_AHB_DR8R_R (*((volatile uint32_t *)0x4005A508))
1849
#define GPIO_PORTC_AHB_ODR_R (*((volatile uint32_t *)0x4005A50C))
1850
#define GPIO_PORTC_AHB_PUR_R (*((volatile uint32_t *)0x4005A510))
1851
#define GPIO_PORTC_AHB_PDR_R (*((volatile uint32_t *)0x4005A514))
1852
#define GPIO_PORTC_AHB_SLR_R (*((volatile uint32_t *)0x4005A518))
1853
#define GPIO_PORTC_AHB_DEN_R (*((volatile uint32_t *)0x4005A51C))
1854
#define GPIO_PORTC_AHB_LOCK_R (*((volatile uint32_t *)0x4005A520))
1855
#define GPIO_PORTC_AHB_CR_R (*((volatile uint32_t *)0x4005A524))
1856
#define GPIO_PORTC_AHB_AMSEL_R (*((volatile uint32_t *)0x4005A528))
1857
#define GPIO_PORTC_AHB_PCTL_R (*((volatile uint32_t *)0x4005A52C))
1858
#define GPIO_PORTC_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005A530))
1859
#define GPIO_PORTC_AHB_DMACTL_R (*((volatile uint32_t *)0x4005A534))
1860
1861
//*****************************************************************************
1862
//
1863
// GPIO registers (PORTD AHB)
1864
//
1865
//*****************************************************************************
1866
#define GPIO_PORTD_AHB_DATA_BITS_R \
1867
((volatile uint32_t *)0x4005B000)
1868
#define GPIO_PORTD_AHB_DATA_R (*((volatile uint32_t *)0x4005B3FC))
1869
#define GPIO_PORTD_AHB_DIR_R (*((volatile uint32_t *)0x4005B400))
1870
#define GPIO_PORTD_AHB_IS_R (*((volatile uint32_t *)0x4005B404))
1871
#define GPIO_PORTD_AHB_IBE_R (*((volatile uint32_t *)0x4005B408))
1872
#define GPIO_PORTD_AHB_IEV_R (*((volatile uint32_t *)0x4005B40C))
1873
#define GPIO_PORTD_AHB_IM_R (*((volatile uint32_t *)0x4005B410))
1874
#define GPIO_PORTD_AHB_RIS_R (*((volatile uint32_t *)0x4005B414))
1875
#define GPIO_PORTD_AHB_MIS_R (*((volatile uint32_t *)0x4005B418))
1876
#define GPIO_PORTD_AHB_ICR_R (*((volatile uint32_t *)0x4005B41C))
1877
#define GPIO_PORTD_AHB_AFSEL_R (*((volatile uint32_t *)0x4005B420))
1878
#define GPIO_PORTD_AHB_DR2R_R (*((volatile uint32_t *)0x4005B500))
1879
#define GPIO_PORTD_AHB_DR4R_R (*((volatile uint32_t *)0x4005B504))
1880
#define GPIO_PORTD_AHB_DR8R_R (*((volatile uint32_t *)0x4005B508))
1881
#define GPIO_PORTD_AHB_ODR_R (*((volatile uint32_t *)0x4005B50C))
1882
#define GPIO_PORTD_AHB_PUR_R (*((volatile uint32_t *)0x4005B510))
1883
#define GPIO_PORTD_AHB_PDR_R (*((volatile uint32_t *)0x4005B514))
1884
#define GPIO_PORTD_AHB_SLR_R (*((volatile uint32_t *)0x4005B518))
1885
#define GPIO_PORTD_AHB_DEN_R (*((volatile uint32_t *)0x4005B51C))
1886
#define GPIO_PORTD_AHB_LOCK_R (*((volatile uint32_t *)0x4005B520))
1887
#define GPIO_PORTD_AHB_CR_R (*((volatile uint32_t *)0x4005B524))
1888
#define GPIO_PORTD_AHB_AMSEL_R (*((volatile uint32_t *)0x4005B528))
1889
#define GPIO_PORTD_AHB_PCTL_R (*((volatile uint32_t *)0x4005B52C))
1890
#define GPIO_PORTD_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005B530))
1891
#define GPIO_PORTD_AHB_DMACTL_R (*((volatile uint32_t *)0x4005B534))
1892
1893
//*****************************************************************************
1894
//
1895
// GPIO registers (PORTE AHB)
1896
//
1897
//*****************************************************************************
1898
#define GPIO_PORTE_AHB_DATA_BITS_R \
1899
((volatile uint32_t *)0x4005C000)
1900
#define GPIO_PORTE_AHB_DATA_R (*((volatile uint32_t *)0x4005C3FC))
1901
#define GPIO_PORTE_AHB_DIR_R (*((volatile uint32_t *)0x4005C400))
1902
#define GPIO_PORTE_AHB_IS_R (*((volatile uint32_t *)0x4005C404))
1903
#define GPIO_PORTE_AHB_IBE_R (*((volatile uint32_t *)0x4005C408))
1904
#define GPIO_PORTE_AHB_IEV_R (*((volatile uint32_t *)0x4005C40C))
1905
#define GPIO_PORTE_AHB_IM_R (*((volatile uint32_t *)0x4005C410))
1906
#define GPIO_PORTE_AHB_RIS_R (*((volatile uint32_t *)0x4005C414))
1907
#define GPIO_PORTE_AHB_MIS_R (*((volatile uint32_t *)0x4005C418))
1908
#define GPIO_PORTE_AHB_ICR_R (*((volatile uint32_t *)0x4005C41C))
1909
#define GPIO_PORTE_AHB_AFSEL_R (*((volatile uint32_t *)0x4005C420))
1910
#define GPIO_PORTE_AHB_DR2R_R (*((volatile uint32_t *)0x4005C500))
1911
#define GPIO_PORTE_AHB_DR4R_R (*((volatile uint32_t *)0x4005C504))
1912
#define GPIO_PORTE_AHB_DR8R_R (*((volatile uint32_t *)0x4005C508))
1913
#define GPIO_PORTE_AHB_ODR_R (*((volatile uint32_t *)0x4005C50C))
1914
#define GPIO_PORTE_AHB_PUR_R (*((volatile uint32_t *)0x4005C510))
1915
#define GPIO_PORTE_AHB_PDR_R (*((volatile uint32_t *)0x4005C514))
1916
#define GPIO_PORTE_AHB_SLR_R (*((volatile uint32_t *)0x4005C518))
1917
#define GPIO_PORTE_AHB_DEN_R (*((volatile uint32_t *)0x4005C51C))
1918
#define GPIO_PORTE_AHB_LOCK_R (*((volatile uint32_t *)0x4005C520))
1919
#define GPIO_PORTE_AHB_CR_R (*((volatile uint32_t *)0x4005C524))
1920
#define GPIO_PORTE_AHB_AMSEL_R (*((volatile uint32_t *)0x4005C528))
1921
#define GPIO_PORTE_AHB_PCTL_R (*((volatile uint32_t *)0x4005C52C))
1922
#define GPIO_PORTE_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005C530))
1923
#define GPIO_PORTE_AHB_DMACTL_R (*((volatile uint32_t *)0x4005C534))
1924
1925
//*****************************************************************************
1926
//
1927
// GPIO registers (PORTF AHB)
1928
//
1929
//*****************************************************************************
1930
#define GPIO_PORTF_AHB_DATA_BITS_R \
1931
((volatile uint32_t *)0x4005D000)
1932
#define GPIO_PORTF_AHB_DATA_R (*((volatile uint32_t *)0x4005D3FC))
1933
#define GPIO_PORTF_AHB_DIR_R (*((volatile uint32_t *)0x4005D400))
1934
#define GPIO_PORTF_AHB_IS_R (*((volatile uint32_t *)0x4005D404))
1935
#define GPIO_PORTF_AHB_IBE_R (*((volatile uint32_t *)0x4005D408))
1936
#define GPIO_PORTF_AHB_IEV_R (*((volatile uint32_t *)0x4005D40C))
1937
#define GPIO_PORTF_AHB_IM_R (*((volatile uint32_t *)0x4005D410))
1938
#define GPIO_PORTF_AHB_RIS_R (*((volatile uint32_t *)0x4005D414))
1939
#define GPIO_PORTF_AHB_MIS_R (*((volatile uint32_t *)0x4005D418))
1940
#define GPIO_PORTF_AHB_ICR_R (*((volatile uint32_t *)0x4005D41C))
1941
#define GPIO_PORTF_AHB_AFSEL_R (*((volatile uint32_t *)0x4005D420))
1942
#define GPIO_PORTF_AHB_DR2R_R (*((volatile uint32_t *)0x4005D500))
1943
#define GPIO_PORTF_AHB_DR4R_R (*((volatile uint32_t *)0x4005D504))
1944
#define GPIO_PORTF_AHB_DR8R_R (*((volatile uint32_t *)0x4005D508))
1945
#define GPIO_PORTF_AHB_ODR_R (*((volatile uint32_t *)0x4005D50C))
1946
#define GPIO_PORTF_AHB_PUR_R (*((volatile uint32_t *)0x4005D510))
1947
#define GPIO_PORTF_AHB_PDR_R (*((volatile uint32_t *)0x4005D514))
1948
#define GPIO_PORTF_AHB_SLR_R (*((volatile uint32_t *)0x4005D518))
1949
#define GPIO_PORTF_AHB_DEN_R (*((volatile uint32_t *)0x4005D51C))
1950
#define GPIO_PORTF_AHB_LOCK_R (*((volatile uint32_t *)0x4005D520))
1951
#define GPIO_PORTF_AHB_CR_R (*((volatile uint32_t *)0x4005D524))
1952
#define GPIO_PORTF_AHB_AMSEL_R (*((volatile uint32_t *)0x4005D528))
1953
#define GPIO_PORTF_AHB_PCTL_R (*((volatile uint32_t *)0x4005D52C))
1954
#define GPIO_PORTF_AHB_ADCCTL_R (*((volatile uint32_t *)0x4005D530))
1955
#define GPIO_PORTF_AHB_DMACTL_R (*((volatile uint32_t *)0x4005D534))
1956
1957
//*****************************************************************************
1958
//
1959
// EEPROM registers (EEPROM)
1960
//
1961
//*****************************************************************************
1962
#define EEPROM_EESIZE_R (*((volatile uint32_t *)0x400AF000))
1963
#define EEPROM_EEBLOCK_R (*((volatile uint32_t *)0x400AF004))
1964
#define EEPROM_EEOFFSET_R (*((volatile uint32_t *)0x400AF008))
1965
#define EEPROM_EERDWR_R (*((volatile uint32_t *)0x400AF010))
1966
#define EEPROM_EERDWRINC_R (*((volatile uint32_t *)0x400AF014))
1967
#define EEPROM_EEDONE_R (*((volatile uint32_t *)0x400AF018))
1968
#define EEPROM_EESUPP_R (*((volatile uint32_t *)0x400AF01C))
1969
#define EEPROM_EEUNLOCK_R (*((volatile uint32_t *)0x400AF020))
1970
#define EEPROM_EEPROT_R (*((volatile uint32_t *)0x400AF030))
1971
#define EEPROM_EEPASS0_R (*((volatile uint32_t *)0x400AF034))
1972
#define EEPROM_EEPASS1_R (*((volatile uint32_t *)0x400AF038))
1973
#define EEPROM_EEPASS2_R (*((volatile uint32_t *)0x400AF03C))
1974
#define EEPROM_EEINT_R (*((volatile uint32_t *)0x400AF040))
1975
#define EEPROM_EEHIDE_R (*((volatile uint32_t *)0x400AF050))
1976
#define EEPROM_EEDBGME_R (*((volatile uint32_t *)0x400AF080))
1977
#define EEPROM_PP_R (*((volatile uint32_t *)0x400AFFC0))
1978
1979
//*****************************************************************************
1980
//
1981
// System Exception Module registers (SYSEXC)
1982
//
1983
//*****************************************************************************
1984
#define SYSEXC_RIS_R (*((volatile uint32_t *)0x400F9000))
1985
#define SYSEXC_IM_R (*((volatile uint32_t *)0x400F9004))
1986
#define SYSEXC_MIS_R (*((volatile uint32_t *)0x400F9008))
1987
#define SYSEXC_IC_R (*((volatile uint32_t *)0x400F900C))
1988
1989
//*****************************************************************************
1990
//
1991
// Hibernation module registers (HIB)
1992
//
1993
//*****************************************************************************
1994
#define HIB_RTCC_R (*((volatile uint32_t *)0x400FC000))
1995
#define HIB_RTCM0_R (*((volatile uint32_t *)0x400FC004))
1996
#define HIB_RTCLD_R (*((volatile uint32_t *)0x400FC00C))
1997
#define HIB_CTL_R (*((volatile uint32_t *)0x400FC010))
1998
#define HIB_IM_R (*((volatile uint32_t *)0x400FC014))
1999
#define HIB_RIS_R (*((volatile uint32_t *)0x400FC018))
2000
#define HIB_MIS_R (*((volatile uint32_t *)0x400FC01C))
2001
#define HIB_IC_R (*((volatile uint32_t *)0x400FC020))
2002
#define HIB_RTCT_R (*((volatile uint32_t *)0x400FC024))
2003
#define HIB_RTCSS_R (*((volatile uint32_t *)0x400FC028))
2004
#define HIB_DATA_R (*((volatile uint32_t *)0x400FC030))
2005
2006
//*****************************************************************************
2007
//
2008
// FLASH registers (FLASH CTRL)
2009
//
2010
//*****************************************************************************
2011
#define FLASH_FMA_R (*((volatile uint32_t *)0x400FD000))
2012
#define FLASH_FMD_R (*((volatile uint32_t *)0x400FD004))
2013
#define FLASH_FMC_R (*((volatile uint32_t *)0x400FD008))
2014
#define FLASH_FCRIS_R (*((volatile uint32_t *)0x400FD00C))
2015
#define FLASH_FCIM_R (*((volatile uint32_t *)0x400FD010))
2016
#define FLASH_FCMISC_R (*((volatile uint32_t *)0x400FD014))
2017
#define FLASH_FMC2_R (*((volatile uint32_t *)0x400FD020))
2018
#define FLASH_FWBVAL_R (*((volatile uint32_t *)0x400FD030))
2019
#define FLASH_FWBN_R (*((volatile uint32_t *)0x400FD100))
2020
#define FLASH_FSIZE_R (*((volatile uint32_t *)0x400FDFC0))
2021
#define FLASH_SSIZE_R (*((volatile uint32_t *)0x400FDFC4))
2022
#define FLASH_ROMSWMAP_R (*((volatile uint32_t *)0x400FDFCC))
2023
#define FLASH_RMCTL_R (*((volatile uint32_t *)0x400FE0F0))
2024
#define FLASH_BOOTCFG_R (*((volatile uint32_t *)0x400FE1D0))
2025
#define FLASH_USERREG0_R (*((volatile uint32_t *)0x400FE1E0))
2026
#define FLASH_USERREG1_R (*((volatile uint32_t *)0x400FE1E4))
2027
#define FLASH_USERREG2_R (*((volatile uint32_t *)0x400FE1E8))
2028
#define FLASH_USERREG3_R (*((volatile uint32_t *)0x400FE1EC))
2029
#define FLASH_FMPRE0_R (*((volatile uint32_t *)0x400FE200))
2030
#define FLASH_FMPRE1_R (*((volatile uint32_t *)0x400FE204))
2031
#define FLASH_FMPRE2_R (*((volatile uint32_t *)0x400FE208))
2032
#define FLASH_FMPRE3_R (*((volatile uint32_t *)0x400FE20C))
2033
#define FLASH_FMPPE0_R (*((volatile uint32_t *)0x400FE400))
2034
#define FLASH_FMPPE1_R (*((volatile uint32_t *)0x400FE404))
2035
#define FLASH_FMPPE2_R (*((volatile uint32_t *)0x400FE408))
2036
#define FLASH_FMPPE3_R (*((volatile uint32_t *)0x400FE40C))
2037
2038
//*****************************************************************************
2039
//
2040
// System Control registers (SYSCTL)
2041
//
2042
//*****************************************************************************
2043
#define SYSCTL_DID0_R (*((volatile uint32_t *)0x400FE000))
2044
#define SYSCTL_DID1_R (*((volatile uint32_t *)0x400FE004))
2045
#define SYSCTL_DC0_R (*((volatile uint32_t *)0x400FE008))
2046
#define SYSCTL_DC1_R (*((volatile uint32_t *)0x400FE010))
2047
#define SYSCTL_DC2_R (*((volatile uint32_t *)0x400FE014))
2048
#define SYSCTL_DC3_R (*((volatile uint32_t *)0x400FE018))
2049
#define SYSCTL_DC4_R (*((volatile uint32_t *)0x400FE01C))
2050
#define SYSCTL_DC5_R (*((volatile uint32_t *)0x400FE020))
2051
#define SYSCTL_DC6_R (*((volatile uint32_t *)0x400FE024))
2052
#define SYSCTL_DC7_R (*((volatile uint32_t *)0x400FE028))
2053
#define SYSCTL_DC8_R (*((volatile uint32_t *)0x400FE02C))
2054
#define SYSCTL_PBORCTL_R (*((volatile uint32_t *)0x400FE030))
2055
#define SYSCTL_SRCR0_R (*((volatile uint32_t *)0x400FE040))
2056
#define SYSCTL_SRCR1_R (*((volatile uint32_t *)0x400FE044))
2057
#define SYSCTL_SRCR2_R (*((volatile uint32_t *)0x400FE048))
2058
#define SYSCTL_RIS_R (*((volatile uint32_t *)0x400FE050))
2059
#define SYSCTL_IMC_R (*((volatile uint32_t *)0x400FE054))
2060
#define SYSCTL_MISC_R (*((volatile uint32_t *)0x400FE058))
2061
#define SYSCTL_RESC_R (*((volatile uint32_t *)0x400FE05C))
2062
#define SYSCTL_RCC_R (*((volatile uint32_t *)0x400FE060))
2063
#define SYSCTL_GPIOHBCTL_R (*((volatile uint32_t *)0x400FE06C))
2064
#define SYSCTL_RCC2_R (*((volatile uint32_t *)0x400FE070))
2065
#define SYSCTL_MOSCCTL_R (*((volatile uint32_t *)0x400FE07C))
2066
#define SYSCTL_RCGC0_R (*((volatile uint32_t *)0x400FE100))
2067
#define SYSCTL_RCGC1_R (*((volatile uint32_t *)0x400FE104))
2068
#define SYSCTL_RCGC2_R (*((volatile uint32_t *)0x400FE108))
2069
#define SYSCTL_SCGC0_R (*((volatile uint32_t *)0x400FE110))
2070
#define SYSCTL_SCGC1_R (*((volatile uint32_t *)0x400FE114))
2071
#define SYSCTL_SCGC2_R (*((volatile uint32_t *)0x400FE118))
2072
#define SYSCTL_DCGC0_R (*((volatile uint32_t *)0x400FE120))
2073
#define SYSCTL_DCGC1_R (*((volatile uint32_t *)0x400FE124))
2074
#define SYSCTL_DCGC2_R (*((volatile uint32_t *)0x400FE128))
2075
#define SYSCTL_DSLPCLKCFG_R (*((volatile uint32_t *)0x400FE144))
2076
#define SYSCTL_SYSPROP_R (*((volatile uint32_t *)0x400FE14C))
2077
#define SYSCTL_PIOSCCAL_R (*((volatile uint32_t *)0x400FE150))
2078
#define SYSCTL_PIOSCSTAT_R (*((volatile uint32_t *)0x400FE154))
2079
#define SYSCTL_PLLFREQ0_R (*((volatile uint32_t *)0x400FE160))
2080
#define SYSCTL_PLLFREQ1_R (*((volatile uint32_t *)0x400FE164))
2081
#define SYSCTL_PLLSTAT_R (*((volatile uint32_t *)0x400FE168))
2082
#define SYSCTL_SLPPWRCFG_R (*((volatile uint32_t *)0x400FE188))
2083
#define SYSCTL_DSLPPWRCFG_R (*((volatile uint32_t *)0x400FE18C))
2084
#define SYSCTL_DC9_R (*((volatile uint32_t *)0x400FE190))
2085
#define SYSCTL_NVMSTAT_R (*((volatile uint32_t *)0x400FE1A0))
2086
#define SYSCTL_LDOSPCTL_R (*((volatile uint32_t *)0x400FE1B4))
2087
#define SYSCTL_LDODPCTL_R (*((volatile uint32_t *)0x400FE1BC))
2088
#define SYSCTL_PPWD_R (*((volatile uint32_t *)0x400FE300))
2089
#define SYSCTL_PPTIMER_R (*((volatile uint32_t *)0x400FE304))
2090
#define SYSCTL_PPGPIO_R (*((volatile uint32_t *)0x400FE308))
2091
#define SYSCTL_PPDMA_R (*((volatile uint32_t *)0x400FE30C))
2092
#define SYSCTL_PPHIB_R (*((volatile uint32_t *)0x400FE314))
2093
#define SYSCTL_PPUART_R (*((volatile uint32_t *)0x400FE318))
2094
#define SYSCTL_PPSSI_R (*((volatile uint32_t *)0x400FE31C))
2095
#define SYSCTL_PPI2C_R (*((volatile uint32_t *)0x400FE320))
2096
#define SYSCTL_PPUSB_R (*((volatile uint32_t *)0x400FE328))
2097
#define SYSCTL_PPCAN_R (*((volatile uint32_t *)0x400FE334))
2098
#define SYSCTL_PPADC_R (*((volatile uint32_t *)0x400FE338))
2099
#define SYSCTL_PPACMP_R (*((volatile uint32_t *)0x400FE33C))
2100
#define SYSCTL_PPPWM_R (*((volatile uint32_t *)0x400FE340))
2101
#define SYSCTL_PPQEI_R (*((volatile uint32_t *)0x400FE344))
2102
#define SYSCTL_PPEEPROM_R (*((volatile uint32_t *)0x400FE358))
2103
#define SYSCTL_PPWTIMER_R (*((volatile uint32_t *)0x400FE35C))
2104
#define SYSCTL_SRWD_R (*((volatile uint32_t *)0x400FE500))
2105
#define SYSCTL_SRTIMER_R (*((volatile uint32_t *)0x400FE504))
2106
#define SYSCTL_SRGPIO_R (*((volatile uint32_t *)0x400FE508))
2107
#define SYSCTL_SRDMA_R (*((volatile uint32_t *)0x400FE50C))
2108
#define SYSCTL_SRHIB_R (*((volatile uint32_t *)0x400FE514))
2109
#define SYSCTL_SRUART_R (*((volatile uint32_t *)0x400FE518))
2110
#define SYSCTL_SRSSI_R (*((volatile uint32_t *)0x400FE51C))
2111
#define SYSCTL_SRI2C_R (*((volatile uint32_t *)0x400FE520))
2112
#define SYSCTL_SRUSB_R (*((volatile uint32_t *)0x400FE528))
2113
#define SYSCTL_SRCAN_R (*((volatile uint32_t *)0x400FE534))
2114
#define SYSCTL_SRADC_R (*((volatile uint32_t *)0x400FE538))
2115
#define SYSCTL_SRACMP_R (*((volatile uint32_t *)0x400FE53C))
2116
#define SYSCTL_SRPWM_R (*((volatile uint32_t *)0x400FE540))
2117
#define SYSCTL_SRQEI_R (*((volatile uint32_t *)0x400FE544))
2118
#define SYSCTL_SREEPROM_R (*((volatile uint32_t *)0x400FE558))
2119
#define SYSCTL_SRWTIMER_R (*((volatile uint32_t *)0x400FE55C))
2120
#define SYSCTL_RCGCWD_R (*((volatile uint32_t *)0x400FE600))
2121
#define SYSCTL_RCGCTIMER_R (*((volatile uint32_t *)0x400FE604))
2122
#define SYSCTL_RCGCGPIO_R (*((volatile uint32_t *)0x400FE608))
2123
#define SYSCTL_RCGCDMA_R (*((volatile uint32_t *)0x400FE60C))
2124
#define SYSCTL_RCGCHIB_R (*((volatile uint32_t *)0x400FE614))
2125
#define SYSCTL_RCGCUART_R (*((volatile uint32_t *)0x400FE618))
2126
#define SYSCTL_RCGCSSI_R (*((volatile uint32_t *)0x400FE61C))
2127
#define SYSCTL_RCGCI2C_R (*((volatile uint32_t *)0x400FE620))
2128
#define SYSCTL_RCGCUSB_R (*((volatile uint32_t *)0x400FE628))
2129
#define SYSCTL_RCGCCAN_R (*((volatile uint32_t *)0x400FE634))
2130
#define SYSCTL_RCGCADC_R (*((volatile uint32_t *)0x400FE638))
2131
#define SYSCTL_RCGCACMP_R (*((volatile uint32_t *)0x400FE63C))
2132
#define SYSCTL_RCGCPWM_R (*((volatile uint32_t *)0x400FE640))
2133
#define SYSCTL_RCGCQEI_R (*((volatile uint32_t *)0x400FE644))
2134
#define SYSCTL_RCGCEEPROM_R (*((volatile uint32_t *)0x400FE658))
2135
#define SYSCTL_RCGCWTIMER_R (*((volatile uint32_t *)0x400FE65C))
2136
#define SYSCTL_SCGCWD_R (*((volatile uint32_t *)0x400FE700))
2137
#define SYSCTL_SCGCTIMER_R (*((volatile uint32_t *)0x400FE704))
2138
#define SYSCTL_SCGCGPIO_R (*((volatile uint32_t *)0x400FE708))
2139
#define SYSCTL_SCGCDMA_R (*((volatile uint32_t *)0x400FE70C))
2140
#define SYSCTL_SCGCHIB_R (*((volatile uint32_t *)0x400FE714))
2141
#define SYSCTL_SCGCUART_R (*((volatile uint32_t *)0x400FE718))
2142
#define SYSCTL_SCGCSSI_R (*((volatile uint32_t *)0x400FE71C))
2143
#define SYSCTL_SCGCI2C_R (*((volatile uint32_t *)0x400FE720))
2144
#define SYSCTL_SCGCUSB_R (*((volatile uint32_t *)0x400FE728))
2145
#define SYSCTL_SCGCCAN_R (*((volatile uint32_t *)0x400FE734))
2146
#define SYSCTL_SCGCADC_R (*((volatile uint32_t *)0x400FE738))
2147
#define SYSCTL_SCGCACMP_R (*((volatile uint32_t *)0x400FE73C))
2148
#define SYSCTL_SCGCPWM_R (*((volatile uint32_t *)0x400FE740))
2149
#define SYSCTL_SCGCQEI_R (*((volatile uint32_t *)0x400FE744))
2150
#define SYSCTL_SCGCEEPROM_R (*((volatile uint32_t *)0x400FE758))
2151
#define SYSCTL_SCGCWTIMER_R (*((volatile uint32_t *)0x400FE75C))
2152
#define SYSCTL_DCGCWD_R (*((volatile uint32_t *)0x400FE800))
2153
#define SYSCTL_DCGCTIMER_R (*((volatile uint32_t *)0x400FE804))
2154
#define SYSCTL_DCGCGPIO_R (*((volatile uint32_t *)0x400FE808))
2155
#define SYSCTL_DCGCDMA_R (*((volatile uint32_t *)0x400FE80C))
2156
#define SYSCTL_DCGCHIB_R (*((volatile uint32_t *)0x400FE814))
2157
#define SYSCTL_DCGCUART_R (*((volatile uint32_t *)0x400FE818))
2158
#define SYSCTL_DCGCSSI_R (*((volatile uint32_t *)0x400FE81C))
2159
#define SYSCTL_DCGCI2C_R (*((volatile uint32_t *)0x400FE820))
2160
#define SYSCTL_DCGCUSB_R (*((volatile uint32_t *)0x400FE828))
2161
#define SYSCTL_DCGCCAN_R (*((volatile uint32_t *)0x400FE834))
2162
#define SYSCTL_DCGCADC_R (*((volatile uint32_t *)0x400FE838))
2163
#define SYSCTL_DCGCACMP_R (*((volatile uint32_t *)0x400FE83C))
2164
#define SYSCTL_DCGCPWM_R (*((volatile uint32_t *)0x400FE840))
2165
#define SYSCTL_DCGCQEI_R (*((volatile uint32_t *)0x400FE844))
2166
#define SYSCTL_DCGCEEPROM_R (*((volatile uint32_t *)0x400FE858))
2167
#define SYSCTL_DCGCWTIMER_R (*((volatile uint32_t *)0x400FE85C))
2168
#define SYSCTL_PRWD_R (*((volatile uint32_t *)0x400FEA00))
2169
#define SYSCTL_PRTIMER_R (*((volatile uint32_t *)0x400FEA04))
2170
#define SYSCTL_PRGPIO_R (*((volatile uint32_t *)0x400FEA08))
2171
#define SYSCTL_PRDMA_R (*((volatile uint32_t *)0x400FEA0C))
2172
#define SYSCTL_PRHIB_R (*((volatile uint32_t *)0x400FEA14))
2173
#define SYSCTL_PRUART_R (*((volatile uint32_t *)0x400FEA18))
2174
#define SYSCTL_PRSSI_R (*((volatile uint32_t *)0x400FEA1C))
2175
#define SYSCTL_PRI2C_R (*((volatile uint32_t *)0x400FEA20))
2176
#define SYSCTL_PRUSB_R (*((volatile uint32_t *)0x400FEA28))
2177
#define SYSCTL_PRCAN_R (*((volatile uint32_t *)0x400FEA34))
2178
#define SYSCTL_PRADC_R (*((volatile uint32_t *)0x400FEA38))
2179
#define SYSCTL_PRACMP_R (*((volatile uint32_t *)0x400FEA3C))
2180
#define SYSCTL_PRPWM_R (*((volatile uint32_t *)0x400FEA40))
2181
#define SYSCTL_PRQEI_R (*((volatile uint32_t *)0x400FEA44))
2182
#define SYSCTL_PREEPROM_R (*((volatile uint32_t *)0x400FEA58))
2183
#define SYSCTL_PRWTIMER_R (*((volatile uint32_t *)0x400FEA5C))
2184
2185
//*****************************************************************************
2186
//
2187
// Micro Direct Memory Access registers (UDMA)
2188
//
2189
//*****************************************************************************
2190
#define UDMA_STAT_R (*((volatile uint32_t *)0x400FF000))
2191
#define UDMA_CFG_R (*((volatile uint32_t *)0x400FF004))
2192
#define UDMA_CTLBASE_R (*((volatile uint32_t *)0x400FF008))
2193
#define UDMA_ALTBASE_R (*((volatile uint32_t *)0x400FF00C))
2194
#define UDMA_WAITSTAT_R (*((volatile uint32_t *)0x400FF010))
2195
#define UDMA_SWREQ_R (*((volatile uint32_t *)0x400FF014))
2196
#define UDMA_USEBURSTSET_R (*((volatile uint32_t *)0x400FF018))
2197
#define UDMA_USEBURSTCLR_R (*((volatile uint32_t *)0x400FF01C))
2198
#define UDMA_REQMASKSET_R (*((volatile uint32_t *)0x400FF020))
2199
#define UDMA_REQMASKCLR_R (*((volatile uint32_t *)0x400FF024))
2200
#define UDMA_ENASET_R (*((volatile uint32_t *)0x400FF028))
2201
#define UDMA_ENACLR_R (*((volatile uint32_t *)0x400FF02C))
2202
#define UDMA_ALTSET_R (*((volatile uint32_t *)0x400FF030))
2203
#define UDMA_ALTCLR_R (*((volatile uint32_t *)0x400FF034))
2204
#define UDMA_PRIOSET_R (*((volatile uint32_t *)0x400FF038))
2205
#define UDMA_PRIOCLR_R (*((volatile uint32_t *)0x400FF03C))
2206
#define UDMA_ERRCLR_R (*((volatile uint32_t *)0x400FF04C))
2207
#define UDMA_CHASGN_R (*((volatile uint32_t *)0x400FF500))
2208
#define UDMA_CHIS_R (*((volatile uint32_t *)0x400FF504))
2209
#define UDMA_CHMAP0_R (*((volatile uint32_t *)0x400FF510))
2210
#define UDMA_CHMAP1_R (*((volatile uint32_t *)0x400FF514))
2211
#define UDMA_CHMAP2_R (*((volatile uint32_t *)0x400FF518))
2212
#define UDMA_CHMAP3_R (*((volatile uint32_t *)0x400FF51C))
2213
2214
//*****************************************************************************
2215
//
2216
// Micro Direct Memory Access (uDMA) offsets (UDMA)
2217
//
2218
//*****************************************************************************
2219
#define UDMA_SRCENDP 0x00000000
// DMA Channel Source Address End
2220
// Pointer
2221
#define UDMA_DSTENDP 0x00000004
// DMA Channel Destination Address
2222
// End Pointer
2223
#define UDMA_CHCTL 0x00000008
// DMA Channel Control Word
2224
2225
//*****************************************************************************
2226
//
2227
// NVIC registers (NVIC)
2228
//
2229
//*****************************************************************************
2230
#define NVIC_ACTLR_R (*((volatile uint32_t *)0xE000E008))
2231
#define NVIC_ST_CTRL_R (*((volatile uint32_t *)0xE000E010))
2232
#define NVIC_ST_RELOAD_R (*((volatile uint32_t *)0xE000E014))
2233
#define NVIC_ST_CURRENT_R (*((volatile uint32_t *)0xE000E018))
2234
#define NVIC_EN0_R (*((volatile uint32_t *)0xE000E100))
2235
#define NVIC_EN1_R (*((volatile uint32_t *)0xE000E104))
2236
#define NVIC_EN2_R (*((volatile uint32_t *)0xE000E108))
2237
#define NVIC_EN3_R (*((volatile uint32_t *)0xE000E10C))
2238
#define NVIC_EN4_R (*((volatile uint32_t *)0xE000E110))
2239
#define NVIC_DIS0_R (*((volatile uint32_t *)0xE000E180))
2240
#define NVIC_DIS1_R (*((volatile uint32_t *)0xE000E184))
2241
#define NVIC_DIS2_R (*((volatile uint32_t *)0xE000E188))
2242
#define NVIC_DIS3_R (*((volatile uint32_t *)0xE000E18C))
2243
#define NVIC_DIS4_R (*((volatile uint32_t *)0xE000E190))
2244
#define NVIC_PEND0_R (*((volatile uint32_t *)0xE000E200))
2245
#define NVIC_PEND1_R (*((volatile uint32_t *)0xE000E204))
2246
#define NVIC_PEND2_R (*((volatile uint32_t *)0xE000E208))
2247
#define NVIC_PEND3_R (*((volatile uint32_t *)0xE000E20C))
2248
#define NVIC_PEND4_R (*((volatile uint32_t *)0xE000E210))
2249
#define NVIC_UNPEND0_R (*((volatile uint32_t *)0xE000E280))
2250
#define NVIC_UNPEND1_R (*((volatile uint32_t *)0xE000E284))
2251
#define NVIC_UNPEND2_R (*((volatile uint32_t *)0xE000E288))
2252
#define NVIC_UNPEND3_R (*((volatile uint32_t *)0xE000E28C))
2253
#define NVIC_UNPEND4_R (*((volatile uint32_t *)0xE000E290))
2254
#define NVIC_ACTIVE0_R (*((volatile uint32_t *)0xE000E300))
2255
#define NVIC_ACTIVE1_R (*((volatile uint32_t *)0xE000E304))
2256
#define NVIC_ACTIVE2_R (*((volatile uint32_t *)0xE000E308))
2257
#define NVIC_ACTIVE3_R (*((volatile uint32_t *)0xE000E30C))
2258
#define NVIC_ACTIVE4_R (*((volatile uint32_t *)0xE000E310))
2259
#define NVIC_PRI0_R (*((volatile uint32_t *)0xE000E400))
2260
#define NVIC_PRI1_R (*((volatile uint32_t *)0xE000E404))
2261
#define NVIC_PRI2_R (*((volatile uint32_t *)0xE000E408))
2262
#define NVIC_PRI3_R (*((volatile uint32_t *)0xE000E40C))
2263
#define NVIC_PRI4_R (*((volatile uint32_t *)0xE000E410))
2264
#define NVIC_PRI5_R (*((volatile uint32_t *)0xE000E414))
2265
#define NVIC_PRI6_R (*((volatile uint32_t *)0xE000E418))
2266
#define NVIC_PRI7_R (*((volatile uint32_t *)0xE000E41C))
2267
#define NVIC_PRI8_R (*((volatile uint32_t *)0xE000E420))
2268
#define NVIC_PRI9_R (*((volatile uint32_t *)0xE000E424))
2269
#define NVIC_PRI10_R (*((volatile uint32_t *)0xE000E428))
2270
#define NVIC_PRI11_R (*((volatile uint32_t *)0xE000E42C))
2271
#define NVIC_PRI12_R (*((volatile uint32_t *)0xE000E430))
2272
#define NVIC_PRI13_R (*((volatile uint32_t *)0xE000E434))
2273
#define NVIC_PRI14_R (*((volatile uint32_t *)0xE000E438))
2274
#define NVIC_PRI15_R (*((volatile uint32_t *)0xE000E43C))
2275
#define NVIC_PRI16_R (*((volatile uint32_t *)0xE000E440))
2276
#define NVIC_PRI17_R (*((volatile uint32_t *)0xE000E444))
2277
#define NVIC_PRI18_R (*((volatile uint32_t *)0xE000E448))
2278
#define NVIC_PRI19_R (*((volatile uint32_t *)0xE000E44C))
2279
#define NVIC_PRI20_R (*((volatile uint32_t *)0xE000E450))
2280
#define NVIC_PRI21_R (*((volatile uint32_t *)0xE000E454))
2281
#define NVIC_PRI22_R (*((volatile uint32_t *)0xE000E458))
2282
#define NVIC_PRI23_R (*((volatile uint32_t *)0xE000E45C))
2283
#define NVIC_PRI24_R (*((volatile uint32_t *)0xE000E460))
2284
#define NVIC_PRI25_R (*((volatile uint32_t *)0xE000E464))
2285
#define NVIC_PRI26_R (*((volatile uint32_t *)0xE000E468))
2286
#define NVIC_PRI27_R (*((volatile uint32_t *)0xE000E46C))
2287
#define NVIC_PRI28_R (*((volatile uint32_t *)0xE000E470))
2288
#define NVIC_PRI29_R (*((volatile uint32_t *)0xE000E474))
2289
#define NVIC_PRI30_R (*((volatile uint32_t *)0xE000E478))
2290
#define NVIC_PRI31_R (*((volatile uint32_t *)0xE000E47C))
2291
#define NVIC_PRI32_R (*((volatile uint32_t *)0xE000E480))
2292
#define NVIC_PRI33_R (*((volatile uint32_t *)0xE000E484))
2293
#define NVIC_PRI34_R (*((volatile uint32_t *)0xE000E488))
2294
#define NVIC_CPUID_R (*((volatile uint32_t *)0xE000ED00))
2295
#define NVIC_INT_CTRL_R (*((volatile uint32_t *)0xE000ED04))
2296
#define NVIC_VTABLE_R (*((volatile uint32_t *)0xE000ED08))
2297
#define NVIC_APINT_R (*((volatile uint32_t *)0xE000ED0C))
2298
#define NVIC_SYS_CTRL_R (*((volatile uint32_t *)0xE000ED10))
2299
#define NVIC_CFG_CTRL_R (*((volatile uint32_t *)0xE000ED14))
2300
#define NVIC_SYS_PRI1_R (*((volatile uint32_t *)0xE000ED18))
2301
#define NVIC_SYS_PRI2_R (*((volatile uint32_t *)0xE000ED1C))
2302
#define NVIC_SYS_PRI3_R (*((volatile uint32_t *)0xE000ED20))
2303
#define NVIC_SYS_HND_CTRL_R (*((volatile uint32_t *)0xE000ED24))
2304
#define NVIC_FAULT_STAT_R (*((volatile uint32_t *)0xE000ED28))
2305
#define NVIC_HFAULT_STAT_R (*((volatile uint32_t *)0xE000ED2C))
2306
#define NVIC_DEBUG_STAT_R (*((volatile uint32_t *)0xE000ED30))
2307
#define NVIC_MM_ADDR_R (*((volatile uint32_t *)0xE000ED34))
2308
#define NVIC_FAULT_ADDR_R (*((volatile uint32_t *)0xE000ED38))
2309
#define NVIC_CPAC_R (*((volatile uint32_t *)0xE000ED88))
2310
#define NVIC_MPU_TYPE_R (*((volatile uint32_t *)0xE000ED90))
2311
#define NVIC_MPU_CTRL_R (*((volatile uint32_t *)0xE000ED94))
2312
#define NVIC_MPU_NUMBER_R (*((volatile uint32_t *)0xE000ED98))
2313
#define NVIC_MPU_BASE_R (*((volatile uint32_t *)0xE000ED9C))
2314
#define NVIC_MPU_ATTR_R (*((volatile uint32_t *)0xE000EDA0))
2315
#define NVIC_MPU_BASE1_R (*((volatile uint32_t *)0xE000EDA4))
2316
#define NVIC_MPU_ATTR1_R (*((volatile uint32_t *)0xE000EDA8))
2317
#define NVIC_MPU_BASE2_R (*((volatile uint32_t *)0xE000EDAC))
2318
#define NVIC_MPU_ATTR2_R (*((volatile uint32_t *)0xE000EDB0))
2319
#define NVIC_MPU_BASE3_R (*((volatile uint32_t *)0xE000EDB4))
2320
#define NVIC_MPU_ATTR3_R (*((volatile uint32_t *)0xE000EDB8))
2321
#define NVIC_DBG_CTRL_R (*((volatile uint32_t *)0xE000EDF0))
2322
#define NVIC_DBG_XFER_R (*((volatile uint32_t *)0xE000EDF4))
2323
#define NVIC_DBG_DATA_R (*((volatile uint32_t *)0xE000EDF8))
2324
#define NVIC_DBG_INT_R (*((volatile uint32_t *)0xE000EDFC))
2325
#define NVIC_SW_TRIG_R (*((volatile uint32_t *)0xE000EF00))
2326
#define NVIC_FPCC_R (*((volatile uint32_t *)0xE000EF34))
2327
#define NVIC_FPCA_R (*((volatile uint32_t *)0xE000EF38))
2328
#define NVIC_FPDSC_R (*((volatile uint32_t *)0xE000EF3C))
2329
2330
//*****************************************************************************
2331
//
2332
// The following are defines for the bit fields in the WDT_O_LOAD register.
2333
//
2334
//*****************************************************************************
2335
#define WDT_LOAD_M 0xFFFFFFFF
// Watchdog Load Value
2336
#define WDT_LOAD_S 0
2337
2338
//*****************************************************************************
2339
//
2340
// The following are defines for the bit fields in the WDT_O_VALUE register.
2341
//
2342
//*****************************************************************************
2343
#define WDT_VALUE_M 0xFFFFFFFF
// Watchdog Value
2344
#define WDT_VALUE_S 0
2345
2346
//*****************************************************************************
2347
//
2348
// The following are defines for the bit fields in the WDT_O_CTL register.
2349
//
2350
//*****************************************************************************
2351
#define WDT_CTL_WRC 0x80000000
// Write Complete
2352
#define WDT_CTL_INTTYPE 0x00000004
// Watchdog Interrupt Type
2353
#define WDT_CTL_RESEN 0x00000002
// Watchdog Reset Enable
2354
#define WDT_CTL_INTEN 0x00000001
// Watchdog Interrupt Enable
2355
2356
//*****************************************************************************
2357
//
2358
// The following are defines for the bit fields in the WDT_O_ICR register.
2359
//
2360
//*****************************************************************************
2361
#define WDT_ICR_M 0xFFFFFFFF
// Watchdog Interrupt Clear
2362
#define WDT_ICR_S 0
2363
2364
//*****************************************************************************
2365
//
2366
// The following are defines for the bit fields in the WDT_O_RIS register.
2367
//
2368
//*****************************************************************************
2369
#define WDT_RIS_WDTRIS 0x00000001
// Watchdog Raw Interrupt Status
2370
2371
//*****************************************************************************
2372
//
2373
// The following are defines for the bit fields in the WDT_O_MIS register.
2374
//
2375
//*****************************************************************************
2376
#define WDT_MIS_WDTMIS 0x00000001
// Watchdog Masked Interrupt Status
2377
2378
//*****************************************************************************
2379
//
2380
// The following are defines for the bit fields in the WDT_O_TEST register.
2381
//
2382
//*****************************************************************************
2383
#define WDT_TEST_STALL 0x00000100
// Watchdog Stall Enable
2384
2385
//*****************************************************************************
2386
//
2387
// The following are defines for the bit fields in the WDT_O_LOCK register.
2388
//
2389
//*****************************************************************************
2390
#define WDT_LOCK_M 0xFFFFFFFF
// Watchdog Lock
2391
#define WDT_LOCK_UNLOCKED 0x00000000
// Unlocked
2392
#define WDT_LOCK_LOCKED 0x00000001
// Locked
2393
#define WDT_LOCK_UNLOCK 0x1ACCE551
// Unlocks the watchdog timer
2394
2395
//*****************************************************************************
2396
//
2397
// The following are defines for the bit fields in the GPIO_O_IM register.
2398
//
2399
//*****************************************************************************
2400
#define GPIO_IM_GPIO_M 0x000000FF
// GPIO Interrupt Mask Enable
2401
#define GPIO_IM_GPIO_S 0
2402
2403
//*****************************************************************************
2404
//
2405
// The following are defines for the bit fields in the GPIO_O_RIS register.
2406
//
2407
//*****************************************************************************
2408
#define GPIO_RIS_GPIO_M 0x000000FF
// GPIO Interrupt Raw Status
2409
#define GPIO_RIS_GPIO_S 0
2410
2411
//*****************************************************************************
2412
//
2413
// The following are defines for the bit fields in the GPIO_O_MIS register.
2414
//
2415
//*****************************************************************************
2416
#define GPIO_MIS_GPIO_M 0x000000FF
// GPIO Masked Interrupt Status
2417
#define GPIO_MIS_GPIO_S 0
2418
2419
//*****************************************************************************
2420
//
2421
// The following are defines for the bit fields in the GPIO_O_ICR register.
2422
//
2423
//*****************************************************************************
2424
#define GPIO_ICR_GPIO_M 0x000000FF
// GPIO Interrupt Clear
2425
#define GPIO_ICR_GPIO_S 0
2426
2427
//*****************************************************************************
2428
//
2429
// The following are defines for the bit fields in the GPIO_O_LOCK register.
2430
//
2431
//*****************************************************************************
2432
#define GPIO_LOCK_M 0xFFFFFFFF
// GPIO Lock
2433
#define GPIO_LOCK_UNLOCKED 0x00000000
// The GPIOCR register is unlocked
2434
// and may be modified
2435
#define GPIO_LOCK_LOCKED 0x00000001
// The GPIOCR register is locked
2436
// and may not be modified
2437
#define GPIO_LOCK_KEY 0x4C4F434B
// Unlocks the GPIO_CR register
2438
2439
//*****************************************************************************
2440
//
2441
// The following are defines for the bit fields in the GPIO_PCTL register for
2442
// port A.
2443
//
2444
//*****************************************************************************
2445
#define GPIO_PCTL_PA7_M 0xF0000000
// PA7 Mask
2446
#define GPIO_PCTL_PA7_I2C1SDA 0x30000000
// I2C1SDA on PA7
2447
#define GPIO_PCTL_PA7_M1PWM3 0x50000000
// M1PWM3 on PA7
2448
#define GPIO_PCTL_PA6_M 0x0F000000
// PA6 Mask
2449
#define GPIO_PCTL_PA6_I2C1SCL 0x03000000
// I2C1SCL on PA6
2450
#define GPIO_PCTL_PA6_M1PWM2 0x05000000
// M1PWM2 on PA6
2451
#define GPIO_PCTL_PA5_M 0x00F00000
// PA5 Mask
2452
#define GPIO_PCTL_PA5_SSI0TX 0x00200000
// SSI0TX on PA5
2453
#define GPIO_PCTL_PA4_M 0x000F0000
// PA4 Mask
2454
#define GPIO_PCTL_PA4_SSI0RX 0x00020000
// SSI0RX on PA4
2455
#define GPIO_PCTL_PA3_M 0x0000F000
// PA3 Mask
2456
#define GPIO_PCTL_PA3_SSI0FSS 0x00002000
// SSI0FSS on PA3
2457
#define GPIO_PCTL_PA2_M 0x00000F00
// PA2 Mask
2458
#define GPIO_PCTL_PA2_SSI0CLK 0x00000200
// SSI0CLK on PA2
2459
#define GPIO_PCTL_PA1_M 0x000000F0
// PA1 Mask
2460
#define GPIO_PCTL_PA1_U0TX 0x00000010
// U0TX on PA1
2461
#define GPIO_PCTL_PA1_CAN1TX 0x00000080
// CAN1TX on PA1
2462
#define GPIO_PCTL_PA0_M 0x0000000F
// PA0 Mask
2463
#define GPIO_PCTL_PA0_U0RX 0x00000001
// U0RX on PA0
2464
#define GPIO_PCTL_PA0_CAN1RX 0x00000008
// CAN1RX on PA0
2465
2466
//*****************************************************************************
2467
//
2468
// The following are defines for the bit fields in the GPIO_PCTL register for
2469
// port B.
2470
//
2471
//*****************************************************************************
2472
#define GPIO_PCTL_PB7_M 0xF0000000
// PB7 Mask
2473
#define GPIO_PCTL_PB7_SSI2TX 0x20000000
// SSI2TX on PB7
2474
#define GPIO_PCTL_PB7_M0PWM1 0x40000000
// M0PWM1 on PB7
2475
#define GPIO_PCTL_PB7_T0CCP1 0x70000000
// T0CCP1 on PB7
2476
#define GPIO_PCTL_PB6_M 0x0F000000
// PB6 Mask
2477
#define GPIO_PCTL_PB6_SSI2RX 0x02000000
// SSI2RX on PB6
2478
#define GPIO_PCTL_PB6_M0PWM0 0x04000000
// M0PWM0 on PB6
2479
#define GPIO_PCTL_PB6_T0CCP0 0x07000000
// T0CCP0 on PB6
2480
#define GPIO_PCTL_PB5_M 0x00F00000
// PB5 Mask
2481
#define GPIO_PCTL_PB5_SSI2FSS 0x00200000
// SSI2FSS on PB5
2482
#define GPIO_PCTL_PB5_M0PWM3 0x00400000
// M0PWM3 on PB5
2483
#define GPIO_PCTL_PB5_T1CCP1 0x00700000
// T1CCP1 on PB5
2484
#define GPIO_PCTL_PB5_CAN0TX 0x00800000
// CAN0TX on PB5
2485
#define GPIO_PCTL_PB4_M 0x000F0000
// PB4 Mask
2486
#define GPIO_PCTL_PB4_SSI2CLK 0x00020000
// SSI2CLK on PB4
2487
#define GPIO_PCTL_PB4_M0PWM2 0x00040000
// M0PWM2 on PB4
2488
#define GPIO_PCTL_PB4_T1CCP0 0x00070000
// T1CCP0 on PB4
2489
#define GPIO_PCTL_PB4_CAN0RX 0x00080000
// CAN0RX on PB4
2490
#define GPIO_PCTL_PB3_M 0x0000F000
// PB3 Mask
2491
#define GPIO_PCTL_PB3_I2C0SDA 0x00003000
// I2C0SDA on PB3
2492
#define GPIO_PCTL_PB3_T3CCP1 0x00007000
// T3CCP1 on PB3
2493
#define GPIO_PCTL_PB2_M 0x00000F00
// PB2 Mask
2494
#define GPIO_PCTL_PB2_I2C0SCL 0x00000300
// I2C0SCL on PB2
2495
#define GPIO_PCTL_PB2_T3CCP0 0x00000700
// T3CCP0 on PB2
2496
#define GPIO_PCTL_PB1_M 0x000000F0
// PB1 Mask
2497
#define GPIO_PCTL_PB1_USB0VBUS 0x00000000
// USB0VBUS on PB1
2498
#define GPIO_PCTL_PB1_U1TX 0x00000010
// U1TX on PB1
2499
#define GPIO_PCTL_PB1_T2CCP1 0x00000070
// T2CCP1 on PB1
2500
#define GPIO_PCTL_PB0_M 0x0000000F
// PB0 Mask
2501
#define GPIO_PCTL_PB0_USB0ID 0x00000000
// USB0ID on PB0
2502
#define GPIO_PCTL_PB0_U1RX 0x00000001
// U1RX on PB0
2503
#define GPIO_PCTL_PB0_T2CCP0 0x00000007
// T2CCP0 on PB0
2504
2505
//*****************************************************************************
2506
//
2507
// The following are defines for the bit fields in the GPIO_PCTL register for
2508
// port C.
2509
//
2510
//*****************************************************************************
2511
#define GPIO_PCTL_PC7_M 0xF0000000
// PC7 Mask
2512
#define GPIO_PCTL_PC7_U3TX 0x10000000
// U3TX on PC7
2513
#define GPIO_PCTL_PC7_WT1CCP1 0x70000000
// WT1CCP1 on PC7
2514
#define GPIO_PCTL_PC7_USB0PFLT 0x80000000
// USB0PFLT on PC7
2515
#define GPIO_PCTL_PC6_M 0x0F000000
// PC6 Mask
2516
#define GPIO_PCTL_PC6_U3RX 0x01000000
// U3RX on PC6
2517
#define GPIO_PCTL_PC6_PHB1 0x06000000
// PHB1 on PC6
2518
#define GPIO_PCTL_PC6_WT1CCP0 0x07000000
// WT1CCP0 on PC6
2519
#define GPIO_PCTL_PC6_USB0EPEN 0x08000000
// USB0EPEN on PC6
2520
#define GPIO_PCTL_PC5_M 0x00F00000
// PC5 Mask
2521
#define GPIO_PCTL_PC5_U4TX 0x00100000
// U4TX on PC5
2522
#define GPIO_PCTL_PC5_U1TX 0x00200000
// U1TX on PC5
2523
#define GPIO_PCTL_PC5_M0PWM7 0x00400000
// M0PWM7 on PC5
2524
#define GPIO_PCTL_PC5_PHA1 0x00600000
// PHA1 on PC5
2525
#define GPIO_PCTL_PC5_WT0CCP1 0x00700000
// WT0CCP1 on PC5
2526
#define GPIO_PCTL_PC5_U1CTS 0x00800000
// U1CTS on PC5
2527
#define GPIO_PCTL_PC4_M 0x000F0000
// PC4 Mask
2528
#define GPIO_PCTL_PC4_U4RX 0x00010000
// U4RX on PC4
2529
#define GPIO_PCTL_PC4_U1RX 0x00020000
// U1RX on PC4
2530
#define GPIO_PCTL_PC4_M0PWM6 0x00040000
// M0PWM6 on PC4
2531
#define GPIO_PCTL_PC4_IDX1 0x00060000
// IDX1 on PC4
2532
#define GPIO_PCTL_PC4_WT0CCP0 0x00070000
// WT0CCP0 on PC4
2533
#define GPIO_PCTL_PC4_U1RTS 0x00080000
// U1RTS on PC4
2534
#define GPIO_PCTL_PC3_M 0x0000F000
// PC3 Mask
2535
#define GPIO_PCTL_PC3_TDO 0x00001000
// TDO on PC3
2536
#define GPIO_PCTL_PC3_T5CCP1 0x00007000
// T5CCP1 on PC3
2537
#define GPIO_PCTL_PC2_M 0x00000F00
// PC2 Mask
2538
#define GPIO_PCTL_PC2_TDI 0x00000100
// TDI on PC2
2539
#define GPIO_PCTL_PC2_T5CCP0 0x00000700
// T5CCP0 on PC2
2540
#define GPIO_PCTL_PC1_M 0x000000F0
// PC1 Mask
2541
#define GPIO_PCTL_PC1_TMS 0x00000010
// TMS on PC1
2542
#define GPIO_PCTL_PC1_T4CCP1 0x00000070
// T4CCP1 on PC1
2543
#define GPIO_PCTL_PC0_M 0x0000000F
// PC0 Mask
2544
#define GPIO_PCTL_PC0_TCK 0x00000001
// TCK on PC0
2545
#define GPIO_PCTL_PC0_T4CCP0 0x00000007
// T4CCP0 on PC0
2546
2547
//*****************************************************************************
2548
//
2549
// The following are defines for the bit fields in the GPIO_PCTL register for
2550
// port D.
2551
//
2552
//*****************************************************************************
2553
#define GPIO_PCTL_PD7_M 0xF0000000
// PD7 Mask
2554
#define GPIO_PCTL_PD7_U2TX 0x10000000
// U2TX on PD7
2555
#define GPIO_PCTL_PD7_PHB0 0x60000000
// PHB0 on PD7
2556
#define GPIO_PCTL_PD7_WT5CCP1 0x70000000
// WT5CCP1 on PD7
2557
#define GPIO_PCTL_PD7_NMI 0x80000000
// NMI on PD7
2558
#define GPIO_PCTL_PD6_M 0x0F000000
// PD6 Mask
2559
#define GPIO_PCTL_PD6_U2RX 0x01000000
// U2RX on PD6
2560
#define GPIO_PCTL_PD6_M0FAULT0 0x04000000
// M0FAULT0 on PD6
2561
#define GPIO_PCTL_PD6_PHA0 0x06000000
// PHA0 on PD6
2562
#define GPIO_PCTL_PD6_WT5CCP0 0x07000000
// WT5CCP0 on PD6
2563
#define GPIO_PCTL_PD5_M 0x00F00000
// PD5 Mask
2564
#define GPIO_PCTL_PD5_USB0DP 0x00000000
// USB0DP on PD5
2565
#define GPIO_PCTL_PD5_U6TX 0x00100000
// U6TX on PD5
2566
#define GPIO_PCTL_PD5_WT4CCP1 0x00700000
// WT4CCP1 on PD5
2567
#define GPIO_PCTL_PD4_M 0x000F0000
// PD4 Mask
2568
#define GPIO_PCTL_PD4_USB0DM 0x00000000
// USB0DM on PD4
2569
#define GPIO_PCTL_PD4_U6RX 0x00010000
// U6RX on PD4
2570
#define GPIO_PCTL_PD4_WT4CCP0 0x00070000
// WT4CCP0 on PD4
2571
#define GPIO_PCTL_PD3_M 0x0000F000
// PD3 Mask
2572
#define GPIO_PCTL_PD3_AIN4 0x00000000
// AIN4 on PD3
2573
#define GPIO_PCTL_PD3_SSI3TX 0x00001000
// SSI3TX on PD3
2574
#define GPIO_PCTL_PD3_SSI1TX 0x00002000
// SSI1TX on PD3
2575
#define GPIO_PCTL_PD3_IDX0 0x00006000
// IDX0 on PD3
2576
#define GPIO_PCTL_PD3_WT3CCP1 0x00007000
// WT3CCP1 on PD3
2577
#define GPIO_PCTL_PD3_USB0PFLT 0x00008000
// USB0PFLT on PD3
2578
#define GPIO_PCTL_PD2_M 0x00000F00
// PD2 Mask
2579
#define GPIO_PCTL_PD2_AIN5 0x00000000
// AIN5 on PD2
2580
#define GPIO_PCTL_PD2_SSI3RX 0x00000100
// SSI3RX on PD2
2581
#define GPIO_PCTL_PD2_SSI1RX 0x00000200
// SSI1RX on PD2
2582
#define GPIO_PCTL_PD2_M0FAULT0 0x00000400
// M0FAULT0 on PD2
2583
#define GPIO_PCTL_PD2_WT3CCP0 0x00000700
// WT3CCP0 on PD2
2584
#define GPIO_PCTL_PD2_USB0EPEN 0x00000800
// USB0EPEN on PD2
2585
#define GPIO_PCTL_PD1_M 0x000000F0
// PD1 Mask
2586
#define GPIO_PCTL_PD1_AIN6 0x00000000
// AIN6 on PD1
2587
#define GPIO_PCTL_PD1_SSI3FSS 0x00000010
// SSI3FSS on PD1
2588
#define GPIO_PCTL_PD1_SSI1FSS 0x00000020
// SSI1FSS on PD1
2589
#define GPIO_PCTL_PD1_I2C3SDA 0x00000030
// I2C3SDA on PD1
2590
#define GPIO_PCTL_PD1_M0PWM7 0x00000040
// M0PWM7 on PD1
2591
#define GPIO_PCTL_PD1_M1PWM1 0x00000050
// M1PWM1 on PD1
2592
#define GPIO_PCTL_PD1_WT2CCP1 0x00000070
// WT2CCP1 on PD1
2593
#define GPIO_PCTL_PD0_M 0x0000000F
// PD0 Mask
2594
#define GPIO_PCTL_PD0_AIN7 0x00000000
// AIN7 on PD0
2595
#define GPIO_PCTL_PD0_SSI3CLK 0x00000001
// SSI3CLK on PD0
2596
#define GPIO_PCTL_PD0_SSI1CLK 0x00000002
// SSI1CLK on PD0
2597
#define GPIO_PCTL_PD0_I2C3SCL 0x00000003
// I2C3SCL on PD0
2598
#define GPIO_PCTL_PD0_M0PWM6 0x00000004
// M0PWM6 on PD0
2599
#define GPIO_PCTL_PD0_M1PWM0 0x00000005
// M1PWM0 on PD0
2600
#define GPIO_PCTL_PD0_WT2CCP0 0x00000007
// WT2CCP0 on PD0
2601
2602
//*****************************************************************************
2603
//
2604
// The following are defines for the bit fields in the GPIO_PCTL register for
2605
// port E.
2606
//
2607
//*****************************************************************************
2608
#define GPIO_PCTL_PE5_M 0x00F00000
// PE5 Mask
2609
#define GPIO_PCTL_PE5_AIN8 0x00000000
// AIN8 on PE5
2610
#define GPIO_PCTL_PE5_U5TX 0x00100000
// U5TX on PE5
2611
#define GPIO_PCTL_PE5_I2C2SDA 0x00300000
// I2C2SDA on PE5
2612
#define GPIO_PCTL_PE5_M0PWM5 0x00400000
// M0PWM5 on PE5
2613
#define GPIO_PCTL_PE5_M1PWM3 0x00500000
// M1PWM3 on PE5
2614
#define GPIO_PCTL_PE5_CAN0TX 0x00800000
// CAN0TX on PE5
2615
#define GPIO_PCTL_PE4_M 0x000F0000
// PE4 Mask
2616
#define GPIO_PCTL_PE4_AIN9 0x00000000
// AIN9 on PE4
2617
#define GPIO_PCTL_PE4_U5RX 0x00010000
// U5RX on PE4
2618
#define GPIO_PCTL_PE4_I2C2SCL 0x00030000
// I2C2SCL on PE4
2619
#define GPIO_PCTL_PE4_M0PWM4 0x00040000
// M0PWM4 on PE4
2620
#define GPIO_PCTL_PE4_M1PWM2 0x00050000
// M1PWM2 on PE4
2621
#define GPIO_PCTL_PE4_CAN0RX 0x00080000
// CAN0RX on PE4
2622
#define GPIO_PCTL_PE3_M 0x0000F000
// PE3 Mask
2623
#define GPIO_PCTL_PE3_AIN0 0x00000000
// AIN0 on PE3
2624
#define GPIO_PCTL_PE2_M 0x00000F00
// PE2 Mask
2625
#define GPIO_PCTL_PE2_AIN1 0x00000000
// AIN1 on PE2
2626
#define GPIO_PCTL_PE1_M 0x000000F0
// PE1 Mask
2627
#define GPIO_PCTL_PE1_AIN2 0x00000000
// AIN2 on PE1
2628
#define GPIO_PCTL_PE1_U7TX 0x00000010
// U7TX on PE1
2629
#define GPIO_PCTL_PE0_M 0x0000000F
// PE0 Mask
2630
#define GPIO_PCTL_PE0_AIN3 0x00000000
// AIN3 on PE0
2631
#define GPIO_PCTL_PE0_U7RX 0x00000001
// U7RX on PE0
2632
2633
//*****************************************************************************
2634
//
2635
// The following are defines for the bit fields in the GPIO_PCTL register for
2636
// port F.
2637
//
2638
//*****************************************************************************
2639
#define GPIO_PCTL_PF4_M 0x000F0000
// PF4 Mask
2640
#define GPIO_PCTL_PF4_M1FAULT0 0x00050000
// M1FAULT0 on PF4
2641
#define GPIO_PCTL_PF4_IDX0 0x00060000
// IDX0 on PF4
2642
#define GPIO_PCTL_PF4_T2CCP0 0x00070000
// T2CCP0 on PF4
2643
#define GPIO_PCTL_PF4_USB0EPEN 0x00080000
// USB0EPEN on PF4
2644
#define GPIO_PCTL_PF3_M 0x0000F000
// PF3 Mask
2645
#define GPIO_PCTL_PF3_SSI1FSS 0x00002000
// SSI1FSS on PF3
2646
#define GPIO_PCTL_PF3_CAN0TX 0x00003000
// CAN0TX on PF3
2647
#define GPIO_PCTL_PF3_M1PWM7 0x00005000
// M1PWM7 on PF3
2648
#define GPIO_PCTL_PF3_T1CCP1 0x00007000
// T1CCP1 on PF3
2649
#define GPIO_PCTL_PF3_TRCLK 0x0000E000
// TRCLK on PF3
2650
#define GPIO_PCTL_PF2_M 0x00000F00
// PF2 Mask
2651
#define GPIO_PCTL_PF2_SSI1CLK 0x00000200
// SSI1CLK on PF2
2652
#define GPIO_PCTL_PF2_M0FAULT0 0x00000400
// M0FAULT0 on PF2
2653
#define GPIO_PCTL_PF2_M1PWM6 0x00000500
// M1PWM6 on PF2
2654
#define GPIO_PCTL_PF2_T1CCP0 0x00000700
// T1CCP0 on PF2
2655
#define GPIO_PCTL_PF2_TRD0 0x00000E00
// TRD0 on PF2
2656
#define GPIO_PCTL_PF1_M 0x000000F0
// PF1 Mask
2657
#define GPIO_PCTL_PF1_U1CTS 0x00000010
// U1CTS on PF1
2658
#define GPIO_PCTL_PF1_SSI1TX 0x00000020
// SSI1TX on PF1
2659
#define GPIO_PCTL_PF1_M1PWM5 0x00000050
// M1PWM5 on PF1
2660
#define GPIO_PCTL_PF1_PHB0 0x00000060
// PHB0 on PF1
2661
#define GPIO_PCTL_PF1_T0CCP1 0x00000070
// T0CCP1 on PF1
2662
#define GPIO_PCTL_PF1_C1O 0x00000090
// C1O on PF1
2663
#define GPIO_PCTL_PF1_TRD1 0x000000E0
// TRD1 on PF1
2664
#define GPIO_PCTL_PF0_M 0x0000000F
// PF0 Mask
2665
#define GPIO_PCTL_PF0_U1RTS 0x00000001
// U1RTS on PF0
2666
#define GPIO_PCTL_PF0_SSI1RX 0x00000002
// SSI1RX on PF0
2667
#define GPIO_PCTL_PF0_CAN0RX 0x00000003
// CAN0RX on PF0
2668
#define GPIO_PCTL_PF0_M1PWM4 0x00000005
// M1PWM4 on PF0
2669
#define GPIO_PCTL_PF0_PHA0 0x00000006
// PHA0 on PF0
2670
#define GPIO_PCTL_PF0_T0CCP0 0x00000007
// T0CCP0 on PF0
2671
#define GPIO_PCTL_PF0_NMI 0x00000008
// NMI on PF0
2672
#define GPIO_PCTL_PF0_C0O 0x00000009
// C0O on PF0
2673
2674
//*****************************************************************************
2675
//
2676
// The following are defines for the bit fields in the SSI_O_CR0 register.
2677
//
2678
//*****************************************************************************
2679
#define SSI_CR0_SCR_M 0x0000FF00
// SSI Serial Clock Rate
2680
#define SSI_CR0_SPH 0x00000080
// SSI Serial Clock Phase
2681
#define SSI_CR0_SPO 0x00000040
// SSI Serial Clock Polarity
2682
#define SSI_CR0_FRF_M 0x00000030
// SSI Frame Format Select
2683
#define SSI_CR0_FRF_MOTO 0x00000000
// Freescale SPI Frame Format
2684
#define SSI_CR0_FRF_TI 0x00000010
// Synchronous Serial Frame Format
2685
#define SSI_CR0_FRF_NMW 0x00000020
// MICROWIRE Frame Format
2686
#define SSI_CR0_DSS_M 0x0000000F
// SSI Data Size Select
2687
#define SSI_CR0_DSS_4 0x00000003
// 4-bit data
2688
#define SSI_CR0_DSS_5 0x00000004
// 5-bit data
2689
#define SSI_CR0_DSS_6 0x00000005
// 6-bit data
2690
#define SSI_CR0_DSS_7 0x00000006
// 7-bit data
2691
#define SSI_CR0_DSS_8 0x00000007
// 8-bit data
2692
#define SSI_CR0_DSS_9 0x00000008
// 9-bit data
2693
#define SSI_CR0_DSS_10 0x00000009
// 10-bit data
2694
#define SSI_CR0_DSS_11 0x0000000A
// 11-bit data
2695
#define SSI_CR0_DSS_12 0x0000000B
// 12-bit data
2696
#define SSI_CR0_DSS_13 0x0000000C
// 13-bit data
2697
#define SSI_CR0_DSS_14 0x0000000D
// 14-bit data
2698
#define SSI_CR0_DSS_15 0x0000000E
// 15-bit data
2699
#define SSI_CR0_DSS_16 0x0000000F
// 16-bit data
2700
#define SSI_CR0_SCR_S 8
2701
2702
//*****************************************************************************
2703
//
2704
// The following are defines for the bit fields in the SSI_O_CR1 register.
2705
//
2706
//*****************************************************************************
2707
#define SSI_CR1_EOT 0x00000010
// End of Transmission
2708
#define SSI_CR1_MS 0x00000004
// SSI Master/Slave Select
2709
#define SSI_CR1_SSE 0x00000002
// SSI Synchronous Serial Port
2710
// Enable
2711
#define SSI_CR1_LBM 0x00000001
// SSI Loopback Mode
2712
2713
//*****************************************************************************
2714
//
2715
// The following are defines for the bit fields in the SSI_O_DR register.
2716
//
2717
//*****************************************************************************
2718
#define SSI_DR_DATA_M 0x0000FFFF
// SSI Receive/Transmit Data
2719
#define SSI_DR_DATA_S 0
2720
2721
//*****************************************************************************
2722
//
2723
// The following are defines for the bit fields in the SSI_O_SR register.
2724
//
2725
//*****************************************************************************
2726
#define SSI_SR_BSY 0x00000010
// SSI Busy Bit
2727
#define SSI_SR_RFF 0x00000008
// SSI Receive FIFO Full
2728
#define SSI_SR_RNE 0x00000004
// SSI Receive FIFO Not Empty
2729
#define SSI_SR_TNF 0x00000002
// SSI Transmit FIFO Not Full
2730
#define SSI_SR_TFE 0x00000001
// SSI Transmit FIFO Empty
2731
2732
//*****************************************************************************
2733
//
2734
// The following are defines for the bit fields in the SSI_O_CPSR register.
2735
//
2736
//*****************************************************************************
2737
#define SSI_CPSR_CPSDVSR_M 0x000000FF
// SSI Clock Prescale Divisor
2738
#define SSI_CPSR_CPSDVSR_S 0
2739
2740
//*****************************************************************************
2741
//
2742
// The following are defines for the bit fields in the SSI_O_IM register.
2743
//
2744
//*****************************************************************************
2745
#define SSI_IM_TXIM 0x00000008
// SSI Transmit FIFO Interrupt Mask
2746
#define SSI_IM_RXIM 0x00000004
// SSI Receive FIFO Interrupt Mask
2747
#define SSI_IM_RTIM 0x00000002
// SSI Receive Time-Out Interrupt
2748
// Mask
2749
#define SSI_IM_RORIM 0x00000001
// SSI Receive Overrun Interrupt
2750
// Mask
2751
2752
//*****************************************************************************
2753
//
2754
// The following are defines for the bit fields in the SSI_O_RIS register.
2755
//
2756
//*****************************************************************************
2757
#define SSI_RIS_TXRIS 0x00000008
// SSI Transmit FIFO Raw Interrupt
2758
// Status
2759
#define SSI_RIS_RXRIS 0x00000004
// SSI Receive FIFO Raw Interrupt
2760
// Status
2761
#define SSI_RIS_RTRIS 0x00000002
// SSI Receive Time-Out Raw
2762
// Interrupt Status
2763
#define SSI_RIS_RORRIS 0x00000001
// SSI Receive Overrun Raw
2764
// Interrupt Status
2765
2766
//*****************************************************************************
2767
//
2768
// The following are defines for the bit fields in the SSI_O_MIS register.
2769
//
2770
//*****************************************************************************
2771
#define SSI_MIS_TXMIS 0x00000008
// SSI Transmit FIFO Masked
2772
// Interrupt Status
2773
#define SSI_MIS_RXMIS 0x00000004
// SSI Receive FIFO Masked
2774
// Interrupt Status
2775
#define SSI_MIS_RTMIS 0x00000002
// SSI Receive Time-Out Masked
2776
// Interrupt Status
2777
#define SSI_MIS_RORMIS 0x00000001
// SSI Receive Overrun Masked
2778
// Interrupt Status
2779
2780
//*****************************************************************************
2781
//
2782
// The following are defines for the bit fields in the SSI_O_ICR register.
2783
//
2784
//*****************************************************************************
2785
#define SSI_ICR_RTIC 0x00000002
// SSI Receive Time-Out Interrupt
2786
// Clear
2787
#define SSI_ICR_RORIC 0x00000001
// SSI Receive Overrun Interrupt
2788
// Clear
2789
2790
//*****************************************************************************
2791
//
2792
// The following are defines for the bit fields in the SSI_O_DMACTL register.
2793
//
2794
//*****************************************************************************
2795
#define SSI_DMACTL_TXDMAE 0x00000002
// Transmit DMA Enable
2796
#define SSI_DMACTL_RXDMAE 0x00000001
// Receive DMA Enable
2797
2798
//*****************************************************************************
2799
//
2800
// The following are defines for the bit fields in the SSI_O_CC register.
2801
//
2802
//*****************************************************************************
2803
#define SSI_CC_CS_M 0x0000000F
// SSI Baud Clock Source
2804
#define SSI_CC_CS_SYSPLL 0x00000000
// System clock (based on clock
2805
// source and divisor factor)
2806
#define SSI_CC_CS_PIOSC 0x00000005
// PIOSC
2807
2808
//*****************************************************************************
2809
//
2810
// The following are defines for the bit fields in the UART_O_DR register.
2811
//
2812
//*****************************************************************************
2813
#define UART_DR_OE 0x00000800
// UART Overrun Error
2814
#define UART_DR_BE 0x00000400
// UART Break Error
2815
#define UART_DR_PE 0x00000200
// UART Parity Error
2816
#define UART_DR_FE 0x00000100
// UART Framing Error
2817
#define UART_DR_DATA_M 0x000000FF
// Data Transmitted or Received
2818
#define UART_DR_DATA_S 0
2819
2820
//*****************************************************************************
2821
//
2822
// The following are defines for the bit fields in the UART_O_RSR register.
2823
//
2824
//*****************************************************************************
2825
#define UART_RSR_OE 0x00000008
// UART Overrun Error
2826
#define UART_RSR_BE 0x00000004
// UART Break Error
2827
#define UART_RSR_PE 0x00000002
// UART Parity Error
2828
#define UART_RSR_FE 0x00000001
// UART Framing Error
2829
2830
//*****************************************************************************
2831
//
2832
// The following are defines for the bit fields in the UART_O_ECR register.
2833
//
2834
//*****************************************************************************
2835
#define UART_ECR_DATA_M 0x000000FF
// Error Clear
2836
#define UART_ECR_DATA_S 0
2837
2838
//*****************************************************************************
2839
//
2840
// The following are defines for the bit fields in the UART_O_FR register.
2841
//
2842
//*****************************************************************************
2843
#define UART_FR_TXFE 0x00000080
// UART Transmit FIFO Empty
2844
#define UART_FR_RXFF 0x00000040
// UART Receive FIFO Full
2845
#define UART_FR_TXFF 0x00000020
// UART Transmit FIFO Full
2846
#define UART_FR_RXFE 0x00000010
// UART Receive FIFO Empty
2847
#define UART_FR_BUSY 0x00000008
// UART Busy
2848
#define UART_FR_CTS 0x00000001
// Clear To Send
2849
2850
//*****************************************************************************
2851
//
2852
// The following are defines for the bit fields in the UART_O_ILPR register.
2853
//
2854
//*****************************************************************************
2855
#define UART_ILPR_ILPDVSR_M 0x000000FF
// IrDA Low-Power Divisor
2856
#define UART_ILPR_ILPDVSR_S 0
2857
2858
//*****************************************************************************
2859
//
2860
// The following are defines for the bit fields in the UART_O_IBRD register.
2861
//
2862
//*****************************************************************************
2863
#define UART_IBRD_DIVINT_M 0x0000FFFF
// Integer Baud-Rate Divisor
2864
#define UART_IBRD_DIVINT_S 0
2865
2866
//*****************************************************************************
2867
//
2868
// The following are defines for the bit fields in the UART_O_FBRD register.
2869
//
2870
//*****************************************************************************
2871
#define UART_FBRD_DIVFRAC_M 0x0000003F
// Fractional Baud-Rate Divisor
2872
#define UART_FBRD_DIVFRAC_S 0
2873
2874
//*****************************************************************************
2875
//
2876
// The following are defines for the bit fields in the UART_O_LCRH register.
2877
//
2878
//*****************************************************************************
2879
#define UART_LCRH_SPS 0x00000080
// UART Stick Parity Select
2880
#define UART_LCRH_WLEN_M 0x00000060
// UART Word Length
2881
#define UART_LCRH_WLEN_5 0x00000000
// 5 bits (default)
2882
#define UART_LCRH_WLEN_6 0x00000020
// 6 bits
2883
#define UART_LCRH_WLEN_7 0x00000040
// 7 bits
2884
#define UART_LCRH_WLEN_8 0x00000060
// 8 bits
2885
#define UART_LCRH_FEN 0x00000010
// UART Enable FIFOs
2886
#define UART_LCRH_STP2 0x00000008
// UART Two Stop Bits Select
2887
#define UART_LCRH_EPS 0x00000004
// UART Even Parity Select
2888
#define UART_LCRH_PEN 0x00000002
// UART Parity Enable
2889
#define UART_LCRH_BRK 0x00000001
// UART Send Break
2890
2891
//*****************************************************************************
2892
//
2893
// The following are defines for the bit fields in the UART_O_CTL register.
2894
//
2895
//*****************************************************************************
2896
#define UART_CTL_CTSEN 0x00008000
// Enable Clear To Send
2897
#define UART_CTL_RTSEN 0x00004000
// Enable Request to Send
2898
#define UART_CTL_RTS 0x00000800
// Request to Send
2899
#define UART_CTL_RXE 0x00000200
// UART Receive Enable
2900
#define UART_CTL_TXE 0x00000100
// UART Transmit Enable
2901
#define UART_CTL_LBE 0x00000080
// UART Loop Back Enable
2902
#define UART_CTL_HSE 0x00000020
// High-Speed Enable
2903
#define UART_CTL_EOT 0x00000010
// End of Transmission
2904
#define UART_CTL_SMART 0x00000008
// ISO 7816 Smart Card Support
2905
#define UART_CTL_SIRLP 0x00000004
// UART SIR Low-Power Mode
2906
#define UART_CTL_SIREN 0x00000002
// UART SIR Enable
2907
#define UART_CTL_UARTEN 0x00000001
// UART Enable
2908
2909
//*****************************************************************************
2910
//
2911
// The following are defines for the bit fields in the UART_O_IFLS register.
2912
//
2913
//*****************************************************************************
2914
#define UART_IFLS_RX_M 0x00000038
// UART Receive Interrupt FIFO
2915
// Level Select
2916
#define UART_IFLS_RX1_8 0x00000000
// RX FIFO >= 1/8 full
2917
#define UART_IFLS_RX2_8 0x00000008
// RX FIFO >= 1/4 full
2918
#define UART_IFLS_RX4_8 0x00000010
// RX FIFO >= 1/2 full (default)
2919
#define UART_IFLS_RX6_8 0x00000018
// RX FIFO >= 3/4 full
2920
#define UART_IFLS_RX7_8 0x00000020
// RX FIFO >= 7/8 full
2921
#define UART_IFLS_TX_M 0x00000007
// UART Transmit Interrupt FIFO
2922
// Level Select
2923
#define UART_IFLS_TX1_8 0x00000000
// TX FIFO <= 1/8 full
2924
#define UART_IFLS_TX2_8 0x00000001
// TX FIFO <= 1/4 full
2925
#define UART_IFLS_TX4_8 0x00000002
// TX FIFO <= 1/2 full (default)
2926
#define UART_IFLS_TX6_8 0x00000003
// TX FIFO <= 3/4 full
2927
#define UART_IFLS_TX7_8 0x00000004
// TX FIFO <= 7/8 full
2928
2929
//*****************************************************************************
2930
//
2931
// The following are defines for the bit fields in the UART_O_IM register.
2932
//
2933
//*****************************************************************************
2934
#define UART_IM_9BITIM 0x00001000
// 9-Bit Mode Interrupt Mask
2935
#define UART_IM_OEIM 0x00000400
// UART Overrun Error Interrupt
2936
// Mask
2937
#define UART_IM_BEIM 0x00000200
// UART Break Error Interrupt Mask
2938
#define UART_IM_PEIM 0x00000100
// UART Parity Error Interrupt Mask
2939
#define UART_IM_FEIM 0x00000080
// UART Framing Error Interrupt
2940
// Mask
2941
#define UART_IM_RTIM 0x00000040
// UART Receive Time-Out Interrupt
2942
// Mask
2943
#define UART_IM_TXIM 0x00000020
// UART Transmit Interrupt Mask
2944
#define UART_IM_RXIM 0x00000010
// UART Receive Interrupt Mask
2945
#define UART_IM_CTSMIM 0x00000002
// UART Clear to Send Modem
2946
// Interrupt Mask
2947
2948
//*****************************************************************************
2949
//
2950
// The following are defines for the bit fields in the UART_O_RIS register.
2951
//
2952
//*****************************************************************************
2953
#define UART_RIS_9BITRIS 0x00001000
// 9-Bit Mode Raw Interrupt Status
2954
#define UART_RIS_OERIS 0x00000400
// UART Overrun Error Raw Interrupt
2955
// Status
2956
#define UART_RIS_BERIS 0x00000200
// UART Break Error Raw Interrupt
2957
// Status
2958
#define UART_RIS_PERIS 0x00000100
// UART Parity Error Raw Interrupt
2959
// Status
2960
#define UART_RIS_FERIS 0x00000080
// UART Framing Error Raw Interrupt
2961
// Status
2962
#define UART_RIS_RTRIS 0x00000040
// UART Receive Time-Out Raw
2963
// Interrupt Status
2964
#define UART_RIS_TXRIS 0x00000020
// UART Transmit Raw Interrupt
2965
// Status
2966
#define UART_RIS_RXRIS 0x00000010
// UART Receive Raw Interrupt
2967
// Status
2968
#define UART_RIS_CTSRIS 0x00000002
// UART Clear to Send Modem Raw
2969
// Interrupt Status
2970
2971
//*****************************************************************************
2972
//
2973
// The following are defines for the bit fields in the UART_O_MIS register.
2974
//
2975
//*****************************************************************************
2976
#define UART_MIS_9BITMIS 0x00001000
// 9-Bit Mode Masked Interrupt
2977
// Status
2978
#define UART_MIS_OEMIS 0x00000400
// UART Overrun Error Masked
2979
// Interrupt Status
2980
#define UART_MIS_BEMIS 0x00000200
// UART Break Error Masked
2981
// Interrupt Status
2982
#define UART_MIS_PEMIS 0x00000100
// UART Parity Error Masked
2983
// Interrupt Status
2984
#define UART_MIS_FEMIS 0x00000080
// UART Framing Error Masked
2985
// Interrupt Status
2986
#define UART_MIS_RTMIS 0x00000040
// UART Receive Time-Out Masked
2987
// Interrupt Status
2988
#define UART_MIS_TXMIS 0x00000020
// UART Transmit Masked Interrupt
2989
// Status
2990
#define UART_MIS_RXMIS 0x00000010
// UART Receive Masked Interrupt
2991
// Status
2992
#define UART_MIS_CTSMIS 0x00000002
// UART Clear to Send Modem Masked
2993
// Interrupt Status
2994
2995
//*****************************************************************************
2996
//
2997
// The following are defines for the bit fields in the UART_O_ICR register.
2998
//
2999
//*****************************************************************************
3000
#define UART_ICR_9BITIC 0x00001000
// 9-Bit Mode Interrupt Clear
3001
#define UART_ICR_OEIC 0x00000400
// Overrun Error Interrupt Clear
3002
#define UART_ICR_BEIC 0x00000200
// Break Error Interrupt Clear
3003
#define UART_ICR_PEIC 0x00000100
// Parity Error Interrupt Clear
3004
#define UART_ICR_FEIC 0x00000080
// Framing Error Interrupt Clear
3005
#define UART_ICR_RTIC 0x00000040
// Receive Time-Out Interrupt Clear
3006
#define UART_ICR_TXIC 0x00000020
// Transmit Interrupt Clear
3007
#define UART_ICR_RXIC 0x00000010
// Receive Interrupt Clear
3008
#define UART_ICR_CTSMIC 0x00000002
// UART Clear to Send Modem
3009
// Interrupt Clear
3010
3011
//*****************************************************************************
3012
//
3013
// The following are defines for the bit fields in the UART_O_DMACTL register.
3014
//
3015
//*****************************************************************************
3016
#define UART_DMACTL_DMAERR 0x00000004
// DMA on Error
3017
#define UART_DMACTL_TXDMAE 0x00000002
// Transmit DMA Enable
3018
#define UART_DMACTL_RXDMAE 0x00000001
// Receive DMA Enable
3019
3020
//*****************************************************************************
3021
//
3022
// The following are defines for the bit fields in the UART_O_9BITADDR
3023
// register.
3024
//
3025
//*****************************************************************************
3026
#define UART_9BITADDR_9BITEN 0x00008000
// Enable 9-Bit Mode
3027
#define UART_9BITADDR_ADDR_M 0x000000FF
// Self Address for 9-Bit Mode
3028
#define UART_9BITADDR_ADDR_S 0
3029
3030
//*****************************************************************************
3031
//
3032
// The following are defines for the bit fields in the UART_O_9BITAMASK
3033
// register.
3034
//
3035
//*****************************************************************************
3036
#define UART_9BITAMASK_MASK_M 0x000000FF
// Self Address Mask for 9-Bit Mode
3037
#define UART_9BITAMASK_MASK_S 0
3038
3039
//*****************************************************************************
3040
//
3041
// The following are defines for the bit fields in the UART_O_PP register.
3042
//
3043
//*****************************************************************************
3044
#define UART_PP_NB 0x00000002
// 9-Bit Support
3045
#define UART_PP_SC 0x00000001
// Smart Card Support
3046
3047
//*****************************************************************************
3048
//
3049
// The following are defines for the bit fields in the UART_O_CC register.
3050
//
3051
//*****************************************************************************
3052
#define UART_CC_CS_M 0x0000000F
// UART Baud Clock Source
3053
#define UART_CC_CS_SYSCLK 0x00000000
// System clock (based on clock
3054
// source and divisor factor)
3055
#define UART_CC_CS_PIOSC 0x00000005
// PIOSC
3056
3057
//*****************************************************************************
3058
//
3059
// The following are defines for the bit fields in the I2C_O_MSA register.
3060
//
3061
//*****************************************************************************
3062
#define I2C_MSA_SA_M 0x000000FE
// I2C Slave Address
3063
#define I2C_MSA_RS 0x00000001
// Receive not send
3064
#define I2C_MSA_SA_S 1
3065
3066
//*****************************************************************************
3067
//
3068
// The following are defines for the bit fields in the I2C_O_MCS register.
3069
//
3070
//*****************************************************************************
3071
#define I2C_MCS_CLKTO 0x00000080
// Clock Timeout Error
3072
#define I2C_MCS_BUSBSY 0x00000040
// Bus Busy
3073
#define I2C_MCS_IDLE 0x00000020
// I2C Idle
3074
#define I2C_MCS_ARBLST 0x00000010
// Arbitration Lost
3075
#define I2C_MCS_HS 0x00000010
// High-Speed Enable
3076
#define I2C_MCS_ACK 0x00000008
// Data Acknowledge Enable
3077
#define I2C_MCS_DATACK 0x00000008
// Acknowledge Data
3078
#define I2C_MCS_ADRACK 0x00000004
// Acknowledge Address
3079
#define I2C_MCS_STOP 0x00000004
// Generate STOP
3080
#define I2C_MCS_ERROR 0x00000002
// Error
3081
#define I2C_MCS_START 0x00000002
// Generate START
3082
#define I2C_MCS_RUN 0x00000001
// I2C Master Enable
3083
#define I2C_MCS_BUSY 0x00000001
// I2C Busy
3084
3085
//*****************************************************************************
3086
//
3087
// The following are defines for the bit fields in the I2C_O_MDR register.
3088
//
3089
//*****************************************************************************
3090
#define I2C_MDR_DATA_M 0x000000FF
// This byte contains the data
3091
// transferred during a transaction
3092
#define I2C_MDR_DATA_S 0
3093
3094
//*****************************************************************************
3095
//
3096
// The following are defines for the bit fields in the I2C_O_MTPR register.
3097
//
3098
//*****************************************************************************
3099
#define I2C_MTPR_HS 0x00000080
// High-Speed Enable
3100
#define I2C_MTPR_TPR_M 0x0000007F
// Timer Period
3101
#define I2C_MTPR_TPR_S 0
3102
3103
//*****************************************************************************
3104
//
3105
// The following are defines for the bit fields in the I2C_O_MIMR register.
3106
//
3107
//*****************************************************************************
3108
#define I2C_MIMR_CLKIM 0x00000002
// Clock Timeout Interrupt Mask
3109
#define I2C_MIMR_IM 0x00000001
// Master Interrupt Mask
3110
3111
//*****************************************************************************
3112
//
3113
// The following are defines for the bit fields in the I2C_O_MRIS register.
3114
//
3115
//*****************************************************************************
3116
#define I2C_MRIS_CLKRIS 0x00000002
// Clock Timeout Raw Interrupt
3117
// Status
3118
#define I2C_MRIS_RIS 0x00000001
// Master Raw Interrupt Status
3119
3120
//*****************************************************************************
3121
//
3122
// The following are defines for the bit fields in the I2C_O_MMIS register.
3123
//
3124
//*****************************************************************************
3125
#define I2C_MMIS_CLKMIS 0x00000002
// Clock Timeout Masked Interrupt
3126
// Status
3127
#define I2C_MMIS_MIS 0x00000001
// Masked Interrupt Status
3128
3129
//*****************************************************************************
3130
//
3131
// The following are defines for the bit fields in the I2C_O_MICR register.
3132
//
3133
//*****************************************************************************
3134
#define I2C_MICR_CLKIC 0x00000002
// Clock Timeout Interrupt Clear
3135
#define I2C_MICR_IC 0x00000001
// Master Interrupt Clear
3136
3137
//*****************************************************************************
3138
//
3139
// The following are defines for the bit fields in the I2C_O_MCR register.
3140
//
3141
//*****************************************************************************
3142
#define I2C_MCR_GFE 0x00000040
// I2C Glitch Filter Enable
3143
#define I2C_MCR_SFE 0x00000020
// I2C Slave Function Enable
3144
#define I2C_MCR_MFE 0x00000010
// I2C Master Function Enable
3145
#define I2C_MCR_LPBK 0x00000001
// I2C Loopback
3146
3147
//*****************************************************************************
3148
//
3149
// The following are defines for the bit fields in the I2C_O_MCLKOCNT register.
3150
//
3151
//*****************************************************************************
3152
#define I2C_MCLKOCNT_CNTL_M 0x000000FF
// I2C Master Count
3153
#define I2C_MCLKOCNT_CNTL_S 0
3154
3155
//*****************************************************************************
3156
//
3157
// The following are defines for the bit fields in the I2C_O_MBMON register.
3158
//
3159
//*****************************************************************************
3160
#define I2C_MBMON_SDA 0x00000002
// I2C SDA Status
3161
#define I2C_MBMON_SCL 0x00000001
// I2C SCL Status
3162
3163
//*****************************************************************************
3164
//
3165
// The following are defines for the bit fields in the I2C_O_MCR2 register.
3166
//
3167
//*****************************************************************************
3168
#define I2C_MCR2_GFPW_M 0x00000070
// I2C Glitch Filter Pulse Width
3169
#define I2C_MCR2_GFPW_BYPASS 0x00000000
// Bypass
3170
#define I2C_MCR2_GFPW_1 0x00000010
// 1 clock
3171
#define I2C_MCR2_GFPW_2 0x00000020
// 2 clocks
3172
#define I2C_MCR2_GFPW_3 0x00000030
// 3 clocks
3173
#define I2C_MCR2_GFPW_4 0x00000040
// 4 clocks
3174
#define I2C_MCR2_GFPW_8 0x00000050
// 8 clocks
3175
#define I2C_MCR2_GFPW_16 0x00000060
// 16 clocks
3176
#define I2C_MCR2_GFPW_31 0x00000070
// 31 clocks
3177
3178
//*****************************************************************************
3179
//
3180
// The following are defines for the bit fields in the I2C_O_SOAR register.
3181
//
3182
//*****************************************************************************
3183
#define I2C_SOAR_OAR_M 0x0000007F
// I2C Slave Own Address
3184
#define I2C_SOAR_OAR_S 0
3185
3186
//*****************************************************************************
3187
//
3188
// The following are defines for the bit fields in the I2C_O_SCSR register.
3189
//
3190
//*****************************************************************************
3191
#define I2C_SCSR_OAR2SEL 0x00000008
// OAR2 Address Matched
3192
#define I2C_SCSR_FBR 0x00000004
// First Byte Received
3193
#define I2C_SCSR_TREQ 0x00000002
// Transmit Request
3194
#define I2C_SCSR_DA 0x00000001
// Device Active
3195
#define I2C_SCSR_RREQ 0x00000001
// Receive Request
3196
3197
//*****************************************************************************
3198
//
3199
// The following are defines for the bit fields in the I2C_O_SDR register.
3200
//
3201
//*****************************************************************************
3202
#define I2C_SDR_DATA_M 0x000000FF
// Data for Transfer
3203
#define I2C_SDR_DATA_S 0
3204
3205
//*****************************************************************************
3206
//
3207
// The following are defines for the bit fields in the I2C_O_SIMR register.
3208
//
3209
//*****************************************************************************
3210
#define I2C_SIMR_STOPIM 0x00000004
// Stop Condition Interrupt Mask
3211
#define I2C_SIMR_STARTIM 0x00000002
// Start Condition Interrupt Mask
3212
#define I2C_SIMR_DATAIM 0x00000001
// Data Interrupt Mask
3213
3214
//*****************************************************************************
3215
//
3216
// The following are defines for the bit fields in the I2C_O_SRIS register.
3217
//
3218
//*****************************************************************************
3219
#define I2C_SRIS_STOPRIS 0x00000004
// Stop Condition Raw Interrupt
3220
// Status
3221
#define I2C_SRIS_STARTRIS 0x00000002
// Start Condition Raw Interrupt
3222
// Status
3223
#define I2C_SRIS_DATARIS 0x00000001
// Data Raw Interrupt Status
3224
3225
//*****************************************************************************
3226
//
3227
// The following are defines for the bit fields in the I2C_O_SMIS register.
3228
//
3229
//*****************************************************************************
3230
#define I2C_SMIS_STOPMIS 0x00000004
// Stop Condition Masked Interrupt
3231
// Status
3232
#define I2C_SMIS_STARTMIS 0x00000002
// Start Condition Masked Interrupt
3233
// Status
3234
#define I2C_SMIS_DATAMIS 0x00000001
// Data Masked Interrupt Status
3235
3236
//*****************************************************************************
3237
//
3238
// The following are defines for the bit fields in the I2C_O_SICR register.
3239
//
3240
//*****************************************************************************
3241
#define I2C_SICR_STOPIC 0x00000004
// Stop Condition Interrupt Clear
3242
#define I2C_SICR_STARTIC 0x00000002
// Start Condition Interrupt Clear
3243
#define I2C_SICR_DATAIC 0x00000001
// Data Interrupt Clear
3244
3245
//*****************************************************************************
3246
//
3247
// The following are defines for the bit fields in the I2C_O_SOAR2 register.
3248
//
3249
//*****************************************************************************
3250
#define I2C_SOAR2_OAR2EN 0x00000080
// I2C Slave Own Address 2 Enable
3251
#define I2C_SOAR2_OAR2_M 0x0000007F
// I2C Slave Own Address 2
3252
#define I2C_SOAR2_OAR2_S 0
3253
3254
//*****************************************************************************
3255
//
3256
// The following are defines for the bit fields in the I2C_O_SACKCTL register.
3257
//
3258
//*****************************************************************************
3259
#define I2C_SACKCTL_ACKOVAL 0x00000002
// I2C Slave ACK Override Value
3260
#define I2C_SACKCTL_ACKOEN 0x00000001
// I2C Slave ACK Override Enable
3261
3262
//*****************************************************************************
3263
//
3264
// The following are defines for the bit fields in the I2C_O_PP register.
3265
//
3266
//*****************************************************************************
3267
#define I2C_PP_HS 0x00000001
// High-Speed Capable
3268
3269
//*****************************************************************************
3270
//
3271
// The following are defines for the bit fields in the I2C_O_PC register.
3272
//
3273
//*****************************************************************************
3274
#define I2C_PC_HS 0x00000001
// High-Speed Capable
3275
3276
//*****************************************************************************
3277
//
3278
// The following are defines for the bit fields in the PWM_O_CTL register.
3279
//
3280
//*****************************************************************************
3281
#define PWM_CTL_GLOBALSYNC3 0x00000008
// Update PWM Generator 3
3282
#define PWM_CTL_GLOBALSYNC2 0x00000004
// Update PWM Generator 2
3283
#define PWM_CTL_GLOBALSYNC1 0x00000002
// Update PWM Generator 1
3284
#define PWM_CTL_GLOBALSYNC0 0x00000001
// Update PWM Generator 0
3285
3286
//*****************************************************************************
3287
//
3288
// The following are defines for the bit fields in the PWM_O_SYNC register.
3289
//
3290
//*****************************************************************************
3291
#define PWM_SYNC_SYNC3 0x00000008
// Reset Generator 3 Counter
3292
#define PWM_SYNC_SYNC2 0x00000004
// Reset Generator 2 Counter
3293
#define PWM_SYNC_SYNC1 0x00000002
// Reset Generator 1 Counter
3294
#define PWM_SYNC_SYNC0 0x00000001
// Reset Generator 0 Counter
3295
3296
//*****************************************************************************
3297
//
3298
// The following are defines for the bit fields in the PWM_O_ENABLE register.
3299
//
3300
//*****************************************************************************
3301
#define PWM_ENABLE_PWM7EN 0x00000080
// MnPWM7 Output Enable
3302
#define PWM_ENABLE_PWM6EN 0x00000040
// MnPWM6 Output Enable
3303
#define PWM_ENABLE_PWM5EN 0x00000020
// MnPWM5 Output Enable
3304
#define PWM_ENABLE_PWM4EN 0x00000010
// MnPWM4 Output Enable
3305
#define PWM_ENABLE_PWM3EN 0x00000008
// MnPWM3 Output Enable
3306
#define PWM_ENABLE_PWM2EN 0x00000004
// MnPWM2 Output Enable
3307
#define PWM_ENABLE_PWM1EN 0x00000002
// MnPWM1 Output Enable
3308
#define PWM_ENABLE_PWM0EN 0x00000001
// MnPWM0 Output Enable
3309
3310
//*****************************************************************************
3311
//
3312
// The following are defines for the bit fields in the PWM_O_INVERT register.
3313
//
3314
//*****************************************************************************
3315
#define PWM_INVERT_PWM7INV 0x00000080
// Invert MnPWM7 Signal
3316
#define PWM_INVERT_PWM6INV 0x00000040
// Invert MnPWM6 Signal
3317
#define PWM_INVERT_PWM5INV 0x00000020
// Invert MnPWM5 Signal
3318
#define PWM_INVERT_PWM4INV 0x00000010
// Invert MnPWM4 Signal
3319
#define PWM_INVERT_PWM3INV 0x00000008
// Invert MnPWM3 Signal
3320
#define PWM_INVERT_PWM2INV 0x00000004
// Invert MnPWM2 Signal
3321
#define PWM_INVERT_PWM1INV 0x00000002
// Invert MnPWM1 Signal
3322
#define PWM_INVERT_PWM0INV 0x00000001
// Invert MnPWM0 Signal
3323
3324
//*****************************************************************************
3325
//
3326
// The following are defines for the bit fields in the PWM_O_FAULT register.
3327
//
3328
//*****************************************************************************
3329
#define PWM_FAULT_FAULT7 0x00000080
// MnPWM7 Fault
3330
#define PWM_FAULT_FAULT6 0x00000040
// MnPWM6 Fault
3331
#define PWM_FAULT_FAULT5 0x00000020
// MnPWM5 Fault
3332
#define PWM_FAULT_FAULT4 0x00000010
// MnPWM4 Fault
3333
#define PWM_FAULT_FAULT3 0x00000008
// MnPWM3 Fault
3334
#define PWM_FAULT_FAULT2 0x00000004
// MnPWM2 Fault
3335
#define PWM_FAULT_FAULT1 0x00000002
// MnPWM1 Fault
3336
#define PWM_FAULT_FAULT0 0x00000001
// MnPWM0 Fault
3337
3338
//*****************************************************************************
3339
//
3340
// The following are defines for the bit fields in the PWM_O_INTEN register.
3341
//
3342
//*****************************************************************************
3343
#define PWM_INTEN_INTFAULT1 0x00020000
// Interrupt Fault 1
3344
#define PWM_INTEN_INTFAULT0 0x00010000
// Interrupt Fault 0
3345
#define PWM_INTEN_INTPWM3 0x00000008
// PWM3 Interrupt Enable
3346
#define PWM_INTEN_INTPWM2 0x00000004
// PWM2 Interrupt Enable
3347
#define PWM_INTEN_INTPWM1 0x00000002
// PWM1 Interrupt Enable
3348
#define PWM_INTEN_INTPWM0 0x00000001
// PWM0 Interrupt Enable
3349
3350
//*****************************************************************************
3351
//
3352
// The following are defines for the bit fields in the PWM_O_RIS register.
3353
//
3354
//*****************************************************************************
3355
#define PWM_RIS_INTFAULT1 0x00020000
// Interrupt Fault PWM 1
3356
#define PWM_RIS_INTFAULT0 0x00010000
// Interrupt Fault PWM 0
3357
#define PWM_RIS_INTPWM3 0x00000008
// PWM3 Interrupt Asserted
3358
#define PWM_RIS_INTPWM2 0x00000004
// PWM2 Interrupt Asserted
3359
#define PWM_RIS_INTPWM1 0x00000002
// PWM1 Interrupt Asserted
3360
#define PWM_RIS_INTPWM0 0x00000001
// PWM0 Interrupt Asserted
3361
3362
//*****************************************************************************
3363
//
3364
// The following are defines for the bit fields in the PWM_O_ISC register.
3365
//
3366
//*****************************************************************************
3367
#define PWM_ISC_INTFAULT1 0x00020000
// FAULT1 Interrupt Asserted
3368
#define PWM_ISC_INTFAULT0 0x00010000
// FAULT0 Interrupt Asserted
3369
#define PWM_ISC_INTPWM3 0x00000008
// PWM3 Interrupt Status
3370
#define PWM_ISC_INTPWM2 0x00000004
// PWM2 Interrupt Status
3371
#define PWM_ISC_INTPWM1 0x00000002
// PWM1 Interrupt Status
3372
#define PWM_ISC_INTPWM0 0x00000001
// PWM0 Interrupt Status
3373
3374
//*****************************************************************************
3375
//
3376
// The following are defines for the bit fields in the PWM_O_STATUS register.
3377
//
3378
//*****************************************************************************
3379
#define PWM_STATUS_FAULT1 0x00000002
// Generator 1 Fault Status
3380
#define PWM_STATUS_FAULT0 0x00000001
// Generator 0 Fault Status
3381
3382
//*****************************************************************************
3383
//
3384
// The following are defines for the bit fields in the PWM_O_FAULTVAL register.
3385
//
3386
//*****************************************************************************
3387
#define PWM_FAULTVAL_PWM7 0x00000080
// MnPWM7 Fault Value
3388
#define PWM_FAULTVAL_PWM6 0x00000040
// MnPWM6 Fault Value
3389
#define PWM_FAULTVAL_PWM5 0x00000020
// MnPWM5 Fault Value
3390
#define PWM_FAULTVAL_PWM4 0x00000010
// MnPWM4 Fault Value
3391
#define PWM_FAULTVAL_PWM3 0x00000008
// MnPWM3 Fault Value
3392
#define PWM_FAULTVAL_PWM2 0x00000004
// MnPWM2 Fault Value
3393
#define PWM_FAULTVAL_PWM1 0x00000002
// MnPWM1 Fault Value
3394
#define PWM_FAULTVAL_PWM0 0x00000001
// MnPWM0 Fault Value
3395
3396
//*****************************************************************************
3397
//
3398
// The following are defines for the bit fields in the PWM_O_ENUPD register.
3399
//
3400
//*****************************************************************************
3401
#define PWM_ENUPD_ENUPD7_M 0x0000C000
// MnPWM7 Enable Update Mode
3402
#define PWM_ENUPD_ENUPD7_IMM 0x00000000
// Immediate
3403
#define PWM_ENUPD_ENUPD7_LSYNC 0x00008000
// Locally Synchronized
3404
#define PWM_ENUPD_ENUPD7_GSYNC 0x0000C000
// Globally Synchronized
3405
#define PWM_ENUPD_ENUPD6_M 0x00003000
// MnPWM6 Enable Update Mode
3406
#define PWM_ENUPD_ENUPD6_IMM 0x00000000
// Immediate
3407
#define PWM_ENUPD_ENUPD6_LSYNC 0x00002000
// Locally Synchronized
3408
#define PWM_ENUPD_ENUPD6_GSYNC 0x00003000
// Globally Synchronized
3409
#define PWM_ENUPD_ENUPD5_M 0x00000C00
// MnPWM5 Enable Update Mode
3410
#define PWM_ENUPD_ENUPD5_IMM 0x00000000
// Immediate
3411
#define PWM_ENUPD_ENUPD5_LSYNC 0x00000800
// Locally Synchronized
3412
#define PWM_ENUPD_ENUPD5_GSYNC 0x00000C00
// Globally Synchronized
3413
#define PWM_ENUPD_ENUPD4_M 0x00000300
// MnPWM4 Enable Update Mode
3414
#define PWM_ENUPD_ENUPD4_IMM 0x00000000
// Immediate
3415
#define PWM_ENUPD_ENUPD4_LSYNC 0x00000200
// Locally Synchronized
3416
#define PWM_ENUPD_ENUPD4_GSYNC 0x00000300
// Globally Synchronized
3417
#define PWM_ENUPD_ENUPD3_M 0x000000C0
// MnPWM3 Enable Update Mode
3418
#define PWM_ENUPD_ENUPD3_IMM 0x00000000
// Immediate
3419
#define PWM_ENUPD_ENUPD3_LSYNC 0x00000080
// Locally Synchronized
3420
#define PWM_ENUPD_ENUPD3_GSYNC 0x000000C0
// Globally Synchronized
3421
#define PWM_ENUPD_ENUPD2_M 0x00000030
// MnPWM2 Enable Update Mode
3422
#define PWM_ENUPD_ENUPD2_IMM 0x00000000
// Immediate
3423
#define PWM_ENUPD_ENUPD2_LSYNC 0x00000020
// Locally Synchronized
3424
#define PWM_ENUPD_ENUPD2_GSYNC 0x00000030
// Globally Synchronized
3425
#define PWM_ENUPD_ENUPD1_M 0x0000000C
// MnPWM1 Enable Update Mode
3426
#define PWM_ENUPD_ENUPD1_IMM 0x00000000
// Immediate
3427
#define PWM_ENUPD_ENUPD1_LSYNC 0x00000008
// Locally Synchronized
3428
#define PWM_ENUPD_ENUPD1_GSYNC 0x0000000C
// Globally Synchronized
3429
#define PWM_ENUPD_ENUPD0_M 0x00000003
// MnPWM0 Enable Update Mode
3430
#define PWM_ENUPD_ENUPD0_IMM 0x00000000
// Immediate
3431
#define PWM_ENUPD_ENUPD0_LSYNC 0x00000002
// Locally Synchronized
3432
#define PWM_ENUPD_ENUPD0_GSYNC 0x00000003
// Globally Synchronized
3433
3434
//*****************************************************************************
3435
//
3436
// The following are defines for the bit fields in the PWM_O_0_CTL register.
3437
//
3438
//*****************************************************************************
3439
#define PWM_0_CTL_LATCH 0x00040000
// Latch Fault Input
3440
#define PWM_0_CTL_MINFLTPER 0x00020000
// Minimum Fault Period
3441
#define PWM_0_CTL_FLTSRC 0x00010000
// Fault Condition Source
3442
#define PWM_0_CTL_DBFALLUPD_M 0x0000C000
// PWMnDBFALL Update Mode
3443
#define PWM_0_CTL_DBFALLUPD_I 0x00000000
// Immediate
3444
#define PWM_0_CTL_DBFALLUPD_LS 0x00008000
// Locally Synchronized
3445
#define PWM_0_CTL_DBFALLUPD_GS 0x0000C000
// Globally Synchronized
3446
#define PWM_0_CTL_DBRISEUPD_M 0x00003000
// PWMnDBRISE Update Mode
3447
#define PWM_0_CTL_DBRISEUPD_I 0x00000000
// Immediate
3448
#define PWM_0_CTL_DBRISEUPD_LS 0x00002000
// Locally Synchronized
3449
#define PWM_0_CTL_DBRISEUPD_GS 0x00003000
// Globally Synchronized
3450
#define PWM_0_CTL_DBCTLUPD_M 0x00000C00
// PWMnDBCTL Update Mode
3451
#define PWM_0_CTL_DBCTLUPD_I 0x00000000
// Immediate
3452
#define PWM_0_CTL_DBCTLUPD_LS 0x00000800
// Locally Synchronized
3453
#define PWM_0_CTL_DBCTLUPD_GS 0x00000C00
// Globally Synchronized
3454
#define PWM_0_CTL_GENBUPD_M 0x00000300
// PWMnGENB Update Mode
3455
#define PWM_0_CTL_GENBUPD_I 0x00000000
// Immediate
3456
#define PWM_0_CTL_GENBUPD_LS 0x00000200
// Locally Synchronized
3457
#define PWM_0_CTL_GENBUPD_GS 0x00000300
// Globally Synchronized
3458
#define PWM_0_CTL_GENAUPD_M 0x000000C0
// PWMnGENA Update Mode
3459
#define PWM_0_CTL_GENAUPD_I 0x00000000
// Immediate
3460
#define PWM_0_CTL_GENAUPD_LS 0x00000080
// Locally Synchronized
3461
#define PWM_0_CTL_GENAUPD_GS 0x000000C0
// Globally Synchronized
3462
#define PWM_0_CTL_CMPBUPD 0x00000020
// Comparator B Update Mode
3463
#define PWM_0_CTL_CMPAUPD 0x00000010
// Comparator A Update Mode
3464
#define PWM_0_CTL_LOADUPD 0x00000008
// Load Register Update Mode
3465
#define PWM_0_CTL_DEBUG 0x00000004
// Debug Mode
3466
#define PWM_0_CTL_MODE 0x00000002
// Counter Mode
3467
#define PWM_0_CTL_ENABLE 0x00000001
// PWM Block Enable
3468
3469
//*****************************************************************************
3470
//
3471
// The following are defines for the bit fields in the PWM_O_0_INTEN register.
3472
//
3473
//*****************************************************************************
3474
#define PWM_0_INTEN_TRCMPBD 0x00002000
// Trigger for Counter=PWMnCMPB
3475
// Down
3476
#define PWM_0_INTEN_TRCMPBU 0x00001000
// Trigger for Counter=PWMnCMPB Up
3477
#define PWM_0_INTEN_TRCMPAD 0x00000800
// Trigger for Counter=PWMnCMPA
3478
// Down
3479
#define PWM_0_INTEN_TRCMPAU 0x00000400
// Trigger for Counter=PWMnCMPA Up
3480
#define PWM_0_INTEN_TRCNTLOAD 0x00000200
// Trigger for Counter=PWMnLOAD
3481
#define PWM_0_INTEN_TRCNTZERO 0x00000100
// Trigger for Counter=0
3482
#define PWM_0_INTEN_INTCMPBD 0x00000020
// Interrupt for Counter=PWMnCMPB
3483
// Down
3484
#define PWM_0_INTEN_INTCMPBU 0x00000010
// Interrupt for Counter=PWMnCMPB
3485
// Up
3486
#define PWM_0_INTEN_INTCMPAD 0x00000008
// Interrupt for Counter=PWMnCMPA
3487
// Down
3488
#define PWM_0_INTEN_INTCMPAU 0x00000004
// Interrupt for Counter=PWMnCMPA
3489
// Up
3490
#define PWM_0_INTEN_INTCNTLOAD 0x00000002
// Interrupt for Counter=PWMnLOAD
3491
#define PWM_0_INTEN_INTCNTZERO 0x00000001
// Interrupt for Counter=0
3492
3493
//*****************************************************************************
3494
//
3495
// The following are defines for the bit fields in the PWM_O_0_RIS register.
3496
//
3497
//*****************************************************************************
3498
#define PWM_0_RIS_INTCMPBD 0x00000020
// Comparator B Down Interrupt
3499
// Status
3500
#define PWM_0_RIS_INTCMPBU 0x00000010
// Comparator B Up Interrupt Status
3501
#define PWM_0_RIS_INTCMPAD 0x00000008
// Comparator A Down Interrupt
3502
// Status
3503
#define PWM_0_RIS_INTCMPAU 0x00000004
// Comparator A Up Interrupt Status
3504
#define PWM_0_RIS_INTCNTLOAD 0x00000002
// Counter=Load Interrupt Status
3505
#define PWM_0_RIS_INTCNTZERO 0x00000001
// Counter=0 Interrupt Status
3506
3507
//*****************************************************************************
3508
//
3509
// The following are defines for the bit fields in the PWM_O_0_ISC register.
3510
//
3511
//*****************************************************************************
3512
#define PWM_0_ISC_INTCMPBD 0x00000020
// Comparator B Down Interrupt
3513
#define PWM_0_ISC_INTCMPBU 0x00000010
// Comparator B Up Interrupt
3514
#define PWM_0_ISC_INTCMPAD 0x00000008
// Comparator A Down Interrupt
3515
#define PWM_0_ISC_INTCMPAU 0x00000004
// Comparator A Up Interrupt
3516
#define PWM_0_ISC_INTCNTLOAD 0x00000002
// Counter=Load Interrupt
3517
#define PWM_0_ISC_INTCNTZERO 0x00000001
// Counter=0 Interrupt
3518
3519
//*****************************************************************************
3520
//
3521
// The following are defines for the bit fields in the PWM_O_0_LOAD register.
3522
//
3523
//*****************************************************************************
3524
#define PWM_0_LOAD_M 0x0000FFFF
// Counter Load Value
3525
#define PWM_0_LOAD_S 0
3526
3527
//*****************************************************************************
3528
//
3529
// The following are defines for the bit fields in the PWM_O_0_COUNT register.
3530
//
3531
//*****************************************************************************
3532
#define PWM_0_COUNT_M 0x0000FFFF
// Counter Value
3533
#define PWM_0_COUNT_S 0
3534
3535
//*****************************************************************************
3536
//
3537
// The following are defines for the bit fields in the PWM_O_0_CMPA register.
3538
//
3539
//*****************************************************************************
3540
#define PWM_0_CMPA_M 0x0000FFFF
// Comparator A Value
3541
#define PWM_0_CMPA_S 0
3542
3543
//*****************************************************************************
3544
//
3545
// The following are defines for the bit fields in the PWM_O_0_CMPB register.
3546
//
3547
//*****************************************************************************
3548
#define PWM_0_CMPB_M 0x0000FFFF
// Comparator B Value
3549
#define PWM_0_CMPB_S 0
3550
3551
//*****************************************************************************
3552
//
3553
// The following are defines for the bit fields in the PWM_O_0_GENA register.
3554
//
3555
//*****************************************************************************
3556
#define PWM_0_GENA_ACTCMPBD_M 0x00000C00
// Action for Comparator B Down
3557
#define PWM_0_GENA_ACTCMPBD_NONE \
3558
0x00000000
// Do nothing
3559
#define PWM_0_GENA_ACTCMPBD_INV 0x00000400
// Invert pwmA
3560
#define PWM_0_GENA_ACTCMPBD_ZERO \
3561
0x00000800
// Drive pwmA Low
3562
#define PWM_0_GENA_ACTCMPBD_ONE 0x00000C00
// Drive pwmA High
3563
#define PWM_0_GENA_ACTCMPBU_M 0x00000300
// Action for Comparator B Up
3564
#define PWM_0_GENA_ACTCMPBU_NONE \
3565
0x00000000
// Do nothing
3566
#define PWM_0_GENA_ACTCMPBU_INV 0x00000100
// Invert pwmA
3567
#define PWM_0_GENA_ACTCMPBU_ZERO \
3568
0x00000200
// Drive pwmA Low
3569
#define PWM_0_GENA_ACTCMPBU_ONE 0x00000300
// Drive pwmA High
3570
#define PWM_0_GENA_ACTCMPAD_M 0x000000C0
// Action for Comparator A Down
3571
#define PWM_0_GENA_ACTCMPAD_NONE \
3572
0x00000000
// Do nothing
3573
#define PWM_0_GENA_ACTCMPAD_INV 0x00000040
// Invert pwmA
3574
#define PWM_0_GENA_ACTCMPAD_ZERO \
3575
0x00000080
// Drive pwmA Low
3576
#define PWM_0_GENA_ACTCMPAD_ONE 0x000000C0
// Drive pwmA High
3577
#define PWM_0_GENA_ACTCMPAU_M 0x00000030
// Action for Comparator A Up
3578
#define PWM_0_GENA_ACTCMPAU_NONE \
3579
0x00000000
// Do nothing
3580
#define PWM_0_GENA_ACTCMPAU_INV 0x00000010
// Invert pwmA
3581
#define PWM_0_GENA_ACTCMPAU_ZERO \
3582
0x00000020
// Drive pwmA Low
3583
#define PWM_0_GENA_ACTCMPAU_ONE 0x00000030
// Drive pwmA High
3584
#define PWM_0_GENA_ACTLOAD_M 0x0000000C
// Action for Counter=LOAD
3585
#define PWM_0_GENA_ACTLOAD_NONE 0x00000000
// Do nothing
3586
#define PWM_0_GENA_ACTLOAD_INV 0x00000004
// Invert pwmA
3587
#define PWM_0_GENA_ACTLOAD_ZERO 0x00000008
// Drive pwmA Low
3588
#define PWM_0_GENA_ACTLOAD_ONE 0x0000000C
// Drive pwmA High
3589
#define PWM_0_GENA_ACTZERO_M 0x00000003
// Action for Counter=0
3590
#define PWM_0_GENA_ACTZERO_NONE 0x00000000
// Do nothing
3591
#define PWM_0_GENA_ACTZERO_INV 0x00000001
// Invert pwmA
3592
#define PWM_0_GENA_ACTZERO_ZERO 0x00000002
// Drive pwmA Low
3593
#define PWM_0_GENA_ACTZERO_ONE 0x00000003
// Drive pwmA High
3594
3595
//*****************************************************************************
3596
//
3597
// The following are defines for the bit fields in the PWM_O_0_GENB register.
3598
//
3599
//*****************************************************************************
3600
#define PWM_0_GENB_ACTCMPBD_M 0x00000C00
// Action for Comparator B Down
3601
#define PWM_0_GENB_ACTCMPBD_NONE \
3602
0x00000000
// Do nothing
3603
#define PWM_0_GENB_ACTCMPBD_INV 0x00000400
// Invert pwmB
3604
#define PWM_0_GENB_ACTCMPBD_ZERO \
3605
0x00000800
// Drive pwmB Low
3606
#define PWM_0_GENB_ACTCMPBD_ONE 0x00000C00
// Drive pwmB High
3607
#define PWM_0_GENB_ACTCMPBU_M 0x00000300
// Action for Comparator B Up
3608
#define PWM_0_GENB_ACTCMPBU_NONE \
3609
0x00000000
// Do nothing
3610
#define PWM_0_GENB_ACTCMPBU_INV 0x00000100
// Invert pwmB
3611
#define PWM_0_GENB_ACTCMPBU_ZERO \
3612
0x00000200
// Drive pwmB Low
3613
#define PWM_0_GENB_ACTCMPBU_ONE 0x00000300
// Drive pwmB High
3614
#define PWM_0_GENB_ACTCMPAD_M 0x000000C0
// Action for Comparator A Down
3615
#define PWM_0_GENB_ACTCMPAD_NONE \
3616
0x00000000
// Do nothing
3617
#define PWM_0_GENB_ACTCMPAD_INV 0x00000040
// Invert pwmB
3618
#define PWM_0_GENB_ACTCMPAD_ZERO \
3619
0x00000080
// Drive pwmB Low
3620
#define PWM_0_GENB_ACTCMPAD_ONE 0x000000C0
// Drive pwmB High
3621
#define PWM_0_GENB_ACTCMPAU_M 0x00000030
// Action for Comparator A Up
3622
#define PWM_0_GENB_ACTCMPAU_NONE \
3623
0x00000000
// Do nothing
3624
#define PWM_0_GENB_ACTCMPAU_INV 0x00000010
// Invert pwmB
3625
#define PWM_0_GENB_ACTCMPAU_ZERO \
3626
0x00000020
// Drive pwmB Low
3627
#define PWM_0_GENB_ACTCMPAU_ONE 0x00000030
// Drive pwmB High
3628
#define PWM_0_GENB_ACTLOAD_M 0x0000000C
// Action for Counter=LOAD
3629
#define PWM_0_GENB_ACTLOAD_NONE 0x00000000
// Do nothing
3630
#define PWM_0_GENB_ACTLOAD_INV 0x00000004
// Invert pwmB
3631
#define PWM_0_GENB_ACTLOAD_ZERO 0x00000008
// Drive pwmB Low
3632
#define PWM_0_GENB_ACTLOAD_ONE 0x0000000C
// Drive pwmB High
3633
#define PWM_0_GENB_ACTZERO_M 0x00000003
// Action for Counter=0
3634
#define PWM_0_GENB_ACTZERO_NONE 0x00000000
// Do nothing
3635
#define PWM_0_GENB_ACTZERO_INV 0x00000001
// Invert pwmB
3636
#define PWM_0_GENB_ACTZERO_ZERO 0x00000002
// Drive pwmB Low
3637
#define PWM_0_GENB_ACTZERO_ONE 0x00000003
// Drive pwmB High
3638
3639
//*****************************************************************************
3640
//
3641
// The following are defines for the bit fields in the PWM_O_0_DBCTL register.
3642
//
3643
//*****************************************************************************
3644
#define PWM_0_DBCTL_ENABLE 0x00000001
// Dead-Band Generator Enable
3645
3646
//*****************************************************************************
3647
//
3648
// The following are defines for the bit fields in the PWM_O_0_DBRISE register.
3649
//
3650
//*****************************************************************************
3651
#define PWM_0_DBRISE_DELAY_M 0x00000FFF
// Dead-Band Rise Delay
3652
#define PWM_0_DBRISE_DELAY_S 0
3653
3654
//*****************************************************************************
3655
//
3656
// The following are defines for the bit fields in the PWM_O_0_DBFALL register.
3657
//
3658
//*****************************************************************************
3659
#define PWM_0_DBFALL_DELAY_M 0x00000FFF
// Dead-Band Fall Delay
3660
#define PWM_0_DBFALL_DELAY_S 0
3661
3662
//*****************************************************************************
3663
//
3664
// The following are defines for the bit fields in the PWM_O_0_FLTSRC0
3665
// register.
3666
//
3667
//*****************************************************************************
3668
#define PWM_0_FLTSRC0_FAULT1 0x00000002
// Fault1 Input
3669
#define PWM_0_FLTSRC0_FAULT0 0x00000001
// Fault0 Input
3670
3671
//*****************************************************************************
3672
//
3673
// The following are defines for the bit fields in the PWM_O_0_FLTSRC1
3674
// register.
3675
//
3676
//*****************************************************************************
3677
#define PWM_0_FLTSRC1_DCMP7 0x00000080
// Digital Comparator 7
3678
#define PWM_0_FLTSRC1_DCMP6 0x00000040
// Digital Comparator 6
3679
#define PWM_0_FLTSRC1_DCMP5 0x00000020
// Digital Comparator 5
3680
#define PWM_0_FLTSRC1_DCMP4 0x00000010
// Digital Comparator 4
3681
#define PWM_0_FLTSRC1_DCMP3 0x00000008
// Digital Comparator 3
3682
#define PWM_0_FLTSRC1_DCMP2 0x00000004
// Digital Comparator 2
3683
#define PWM_0_FLTSRC1_DCMP1 0x00000002
// Digital Comparator 1
3684
#define PWM_0_FLTSRC1_DCMP0 0x00000001
// Digital Comparator 0
3685
3686
//*****************************************************************************
3687
//
3688
// The following are defines for the bit fields in the PWM_O_0_MINFLTPER
3689
// register.
3690
//
3691
//*****************************************************************************
3692
#define PWM_0_MINFLTPER_M 0x0000FFFF
// Minimum Fault Period
3693
#define PWM_0_MINFLTPER_S 0
3694
3695
//*****************************************************************************
3696
//
3697
// The following are defines for the bit fields in the PWM_O_1_CTL register.
3698
//
3699
//*****************************************************************************
3700
#define PWM_1_CTL_LATCH 0x00040000
// Latch Fault Input
3701
#define PWM_1_CTL_MINFLTPER 0x00020000
// Minimum Fault Period
3702
#define PWM_1_CTL_FLTSRC 0x00010000
// Fault Condition Source
3703
#define PWM_1_CTL_DBFALLUPD_M 0x0000C000
// PWMnDBFALL Update Mode
3704
#define PWM_1_CTL_DBFALLUPD_I 0x00000000
// Immediate
3705
#define PWM_1_CTL_DBFALLUPD_LS 0x00008000
// Locally Synchronized
3706
#define PWM_1_CTL_DBFALLUPD_GS 0x0000C000
// Globally Synchronized
3707
#define PWM_1_CTL_DBRISEUPD_M 0x00003000
// PWMnDBRISE Update Mode
3708
#define PWM_1_CTL_DBRISEUPD_I 0x00000000
// Immediate
3709
#define PWM_1_CTL_DBRISEUPD_LS 0x00002000
// Locally Synchronized
3710
#define PWM_1_CTL_DBRISEUPD_GS 0x00003000
// Globally Synchronized
3711
#define PWM_1_CTL_DBCTLUPD_M 0x00000C00
// PWMnDBCTL Update Mode
3712
#define PWM_1_CTL_DBCTLUPD_I 0x00000000
// Immediate
3713
#define PWM_1_CTL_DBCTLUPD_LS 0x00000800
// Locally Synchronized
3714
#define PWM_1_CTL_DBCTLUPD_GS 0x00000C00
// Globally Synchronized
3715
#define PWM_1_CTL_GENBUPD_M 0x00000300
// PWMnGENB Update Mode
3716
#define PWM_1_CTL_GENBUPD_I 0x00000000
// Immediate
3717
#define PWM_1_CTL_GENBUPD_LS 0x00000200
// Locally Synchronized
3718
#define PWM_1_CTL_GENBUPD_GS 0x00000300
// Globally Synchronized
3719
#define PWM_1_CTL_GENAUPD_M 0x000000C0
// PWMnGENA Update Mode
3720
#define PWM_1_CTL_GENAUPD_I 0x00000000
// Immediate
3721
#define PWM_1_CTL_GENAUPD_LS 0x00000080
// Locally Synchronized
3722
#define PWM_1_CTL_GENAUPD_GS 0x000000C0
// Globally Synchronized
3723
#define PWM_1_CTL_CMPBUPD 0x00000020
// Comparator B Update Mode
3724
#define PWM_1_CTL_CMPAUPD 0x00000010
// Comparator A Update Mode
3725
#define PWM_1_CTL_LOADUPD 0x00000008
// Load Register Update Mode
3726
#define PWM_1_CTL_DEBUG 0x00000004
// Debug Mode
3727
#define PWM_1_CTL_MODE 0x00000002
// Counter Mode
3728
#define PWM_1_CTL_ENABLE 0x00000001
// PWM Block Enable
3729
3730
//*****************************************************************************
3731
//
3732
// The following are defines for the bit fields in the PWM_O_1_INTEN register.
3733
//
3734
//*****************************************************************************
3735
#define PWM_1_INTEN_TRCMPBD 0x00002000
// Trigger for Counter=PWMnCMPB
3736
// Down
3737
#define PWM_1_INTEN_TRCMPBU 0x00001000
// Trigger for Counter=PWMnCMPB Up
3738
#define PWM_1_INTEN_TRCMPAD 0x00000800
// Trigger for Counter=PWMnCMPA
3739
// Down
3740
#define PWM_1_INTEN_TRCMPAU 0x00000400
// Trigger for Counter=PWMnCMPA Up
3741
#define PWM_1_INTEN_TRCNTLOAD 0x00000200
// Trigger for Counter=PWMnLOAD
3742
#define PWM_1_INTEN_TRCNTZERO 0x00000100
// Trigger for Counter=0
3743
#define PWM_1_INTEN_INTCMPBD 0x00000020
// Interrupt for Counter=PWMnCMPB
3744
// Down
3745
#define PWM_1_INTEN_INTCMPBU 0x00000010
// Interrupt for Counter=PWMnCMPB
3746
// Up
3747
#define PWM_1_INTEN_INTCMPAD 0x00000008
// Interrupt for Counter=PWMnCMPA
3748
// Down
3749
#define PWM_1_INTEN_INTCMPAU 0x00000004
// Interrupt for Counter=PWMnCMPA
3750
// Up
3751
#define PWM_1_INTEN_INTCNTLOAD 0x00000002
// Interrupt for Counter=PWMnLOAD
3752
#define PWM_1_INTEN_INTCNTZERO 0x00000001
// Interrupt for Counter=0
3753
3754
//*****************************************************************************
3755
//
3756
// The following are defines for the bit fields in the PWM_O_1_RIS register.
3757
//
3758
//*****************************************************************************
3759
#define PWM_1_RIS_INTCMPBD 0x00000020
// Comparator B Down Interrupt
3760
// Status
3761
#define PWM_1_RIS_INTCMPBU 0x00000010
// Comparator B Up Interrupt Status
3762
#define PWM_1_RIS_INTCMPAD 0x00000008
// Comparator A Down Interrupt
3763
// Status
3764
#define PWM_1_RIS_INTCMPAU 0x00000004
// Comparator A Up Interrupt Status
3765
#define PWM_1_RIS_INTCNTLOAD 0x00000002
// Counter=Load Interrupt Status
3766
#define PWM_1_RIS_INTCNTZERO 0x00000001
// Counter=0 Interrupt Status
3767
3768
//*****************************************************************************
3769
//
3770
// The following are defines for the bit fields in the PWM_O_1_ISC register.
3771
//
3772
//*****************************************************************************
3773
#define PWM_1_ISC_INTCMPBD 0x00000020
// Comparator B Down Interrupt
3774
#define PWM_1_ISC_INTCMPBU 0x00000010
// Comparator B Up Interrupt
3775
#define PWM_1_ISC_INTCMPAD 0x00000008
// Comparator A Down Interrupt
3776
#define PWM_1_ISC_INTCMPAU 0x00000004
// Comparator A Up Interrupt
3777
#define PWM_1_ISC_INTCNTLOAD 0x00000002
// Counter=Load Interrupt
3778
#define PWM_1_ISC_INTCNTZERO 0x00000001
// Counter=0 Interrupt
3779
3780
//*****************************************************************************
3781
//
3782
// The following are defines for the bit fields in the PWM_O_1_LOAD register.
3783
//
3784
//*****************************************************************************
3785
#define PWM_1_LOAD_LOAD_M 0x0000FFFF
// Counter Load Value
3786
#define PWM_1_LOAD_LOAD_S 0
3787
3788
//*****************************************************************************
3789
//
3790
// The following are defines for the bit fields in the PWM_O_1_COUNT register.
3791
//
3792
//*****************************************************************************
3793
#define PWM_1_COUNT_COUNT_M 0x0000FFFF
// Counter Value
3794
#define PWM_1_COUNT_COUNT_S 0
3795
3796
//*****************************************************************************
3797
//
3798
// The following are defines for the bit fields in the PWM_O_1_CMPA register.
3799
//
3800
//*****************************************************************************
3801
#define PWM_1_CMPA_COMPA_M 0x0000FFFF
// Comparator A Value
3802
#define PWM_1_CMPA_COMPA_S 0
3803
3804
//*****************************************************************************
3805
//
3806
// The following are defines for the bit fields in the PWM_O_1_CMPB register.
3807
//
3808
//*****************************************************************************
3809
#define PWM_1_CMPB_COMPB_M 0x0000FFFF
// Comparator B Value
3810
#define PWM_1_CMPB_COMPB_S 0
3811
3812
//*****************************************************************************
3813
//
3814
// The following are defines for the bit fields in the PWM_O_1_GENA register.
3815
//
3816
//*****************************************************************************
3817
#define PWM_1_GENA_ACTCMPBD_M 0x00000C00
// Action for Comparator B Down
3818
#define PWM_1_GENA_ACTCMPBD_NONE \
3819
0x00000000
// Do nothing
3820
#define PWM_1_GENA_ACTCMPBD_INV 0x00000400
// Invert pwmA
3821
#define PWM_1_GENA_ACTCMPBD_ZERO \
3822
0x00000800
// Drive pwmA Low
3823
#define PWM_1_GENA_ACTCMPBD_ONE 0x00000C00
// Drive pwmA High
3824
#define PWM_1_GENA_ACTCMPBU_M 0x00000300
// Action for Comparator B Up
3825
#define PWM_1_GENA_ACTCMPBU_NONE \
3826
0x00000000
// Do nothing
3827
#define PWM_1_GENA_ACTCMPBU_INV 0x00000100
// Invert pwmA
3828
#define PWM_1_GENA_ACTCMPBU_ZERO \
3829
0x00000200
// Drive pwmA Low
3830
#define PWM_1_GENA_ACTCMPBU_ONE 0x00000300
// Drive pwmA High
3831
#define PWM_1_GENA_ACTCMPAD_M 0x000000C0
// Action for Comparator A Down
3832
#define PWM_1_GENA_ACTCMPAD_NONE \
3833
0x00000000
// Do nothing
3834
#define PWM_1_GENA_ACTCMPAD_INV 0x00000040
// Invert pwmA
3835
#define PWM_1_GENA_ACTCMPAD_ZERO \
3836
0x00000080
// Drive pwmA Low
3837
#define PWM_1_GENA_ACTCMPAD_ONE 0x000000C0
// Drive pwmA High
3838
#define PWM_1_GENA_ACTCMPAU_M 0x00000030
// Action for Comparator A Up
3839
#define PWM_1_GENA_ACTCMPAU_NONE \
3840
0x00000000
// Do nothing
3841
#define PWM_1_GENA_ACTCMPAU_INV 0x00000010
// Invert pwmA
3842
#define PWM_1_GENA_ACTCMPAU_ZERO \
3843
0x00000020
// Drive pwmA Low
3844
#define PWM_1_GENA_ACTCMPAU_ONE 0x00000030
// Drive pwmA High
3845
#define PWM_1_GENA_ACTLOAD_M 0x0000000C
// Action for Counter=LOAD
3846
#define PWM_1_GENA_ACTLOAD_NONE 0x00000000
// Do nothing
3847
#define PWM_1_GENA_ACTLOAD_INV 0x00000004
// Invert pwmA
3848
#define PWM_1_GENA_ACTLOAD_ZERO 0x00000008
// Drive pwmA Low
3849
#define PWM_1_GENA_ACTLOAD_ONE 0x0000000C
// Drive pwmA High
3850
#define PWM_1_GENA_ACTZERO_M 0x00000003
// Action for Counter=0
3851
#define PWM_1_GENA_ACTZERO_NONE 0x00000000
// Do nothing
3852
#define PWM_1_GENA_ACTZERO_INV 0x00000001
// Invert pwmA
3853
#define PWM_1_GENA_ACTZERO_ZERO 0x00000002
// Drive pwmA Low
3854
#define PWM_1_GENA_ACTZERO_ONE 0x00000003
// Drive pwmA High
3855
3856
//*****************************************************************************
3857
//
3858
// The following are defines for the bit fields in the PWM_O_1_GENB register.
3859
//
3860
//*****************************************************************************
3861
#define PWM_1_GENB_ACTCMPBD_M 0x00000C00
// Action for Comparator B Down
3862
#define PWM_1_GENB_ACTCMPBD_NONE \
3863
0x00000000
// Do nothing
3864
#define PWM_1_GENB_ACTCMPBD_INV 0x00000400
// Invert pwmB
3865
#define PWM_1_GENB_ACTCMPBD_ZERO \
3866
0x00000800
// Drive pwmB Low
3867
#define PWM_1_GENB_ACTCMPBD_ONE 0x00000C00
// Drive pwmB High
3868
#define PWM_1_GENB_ACTCMPBU_M 0x00000300
// Action for Comparator B Up
3869
#define PWM_1_GENB_ACTCMPBU_NONE \
3870
0x00000000
// Do nothing
3871
#define PWM_1_GENB_ACTCMPBU_INV 0x00000100
// Invert pwmB
3872
#define PWM_1_GENB_ACTCMPBU_ZERO \
3873
0x00000200
// Drive pwmB Low
3874
#define PWM_1_GENB_ACTCMPBU_ONE 0x00000300
// Drive pwmB High
3875
#define PWM_1_GENB_ACTCMPAD_M 0x000000C0
// Action for Comparator A Down
3876
#define PWM_1_GENB_ACTCMPAD_NONE \
3877
0x00000000
// Do nothing
3878
#define PWM_1_GENB_ACTCMPAD_INV 0x00000040
// Invert pwmB
3879
#define PWM_1_GENB_ACTCMPAD_ZERO \
3880
0x00000080
// Drive pwmB Low
3881
#define PWM_1_GENB_ACTCMPAD_ONE 0x000000C0
// Drive pwmB High
3882
#define PWM_1_GENB_ACTCMPAU_M 0x00000030
// Action for Comparator A Up
3883
#define PWM_1_GENB_ACTCMPAU_NONE \
3884
0x00000000
// Do nothing
3885
#define PWM_1_GENB_ACTCMPAU_INV 0x00000010
// Invert pwmB
3886
#define PWM_1_GENB_ACTCMPAU_ZERO \
3887
0x00000020
// Drive pwmB Low
3888
#define PWM_1_GENB_ACTCMPAU_ONE 0x00000030
// Drive pwmB High
3889
#define PWM_1_GENB_ACTLOAD_M 0x0000000C
// Action for Counter=LOAD
3890
#define PWM_1_GENB_ACTLOAD_NONE 0x00000000
// Do nothing
3891
#define PWM_1_GENB_ACTLOAD_INV 0x00000004
// Invert pwmB
3892
#define PWM_1_GENB_ACTLOAD_ZERO 0x00000008
// Drive pwmB Low
3893
#define PWM_1_GENB_ACTLOAD_ONE 0x0000000C
// Drive pwmB High
3894
#define PWM_1_GENB_ACTZERO_M 0x00000003
// Action for Counter=0
3895
#define PWM_1_GENB_ACTZERO_NONE 0x00000000
// Do nothing
3896
#define PWM_1_GENB_ACTZERO_INV 0x00000001
// Invert pwmB
3897
#define PWM_1_GENB_ACTZERO_ZERO 0x00000002
// Drive pwmB Low
3898
#define PWM_1_GENB_ACTZERO_ONE 0x00000003
// Drive pwmB High
3899
3900
//*****************************************************************************
3901
//
3902
// The following are defines for the bit fields in the PWM_O_1_DBCTL register.
3903
//
3904
//*****************************************************************************
3905
#define PWM_1_DBCTL_ENABLE 0x00000001
// Dead-Band Generator Enable
3906
3907
//*****************************************************************************
3908
//
3909
// The following are defines for the bit fields in the PWM_O_1_DBRISE register.
3910
//
3911
//*****************************************************************************
3912
#define PWM_1_DBRISE_RISEDELAY_M \
3913
0x00000FFF
// Dead-Band Rise Delay
3914
#define PWM_1_DBRISE_RISEDELAY_S \
3915
0
3916
3917
//*****************************************************************************
3918
//
3919
// The following are defines for the bit fields in the PWM_O_1_DBFALL register.
3920
//
3921
//*****************************************************************************
3922
#define PWM_1_DBFALL_FALLDELAY_M \
3923
0x00000FFF
// Dead-Band Fall Delay
3924
#define PWM_1_DBFALL_FALLDELAY_S \
3925
0
3926
3927
//*****************************************************************************
3928
//
3929
// The following are defines for the bit fields in the PWM_O_1_FLTSRC0
3930
// register.
3931
//
3932
//*****************************************************************************
3933
#define PWM_1_FLTSRC0_FAULT1 0x00000002
// Fault1 Input
3934
#define PWM_1_FLTSRC0_FAULT0 0x00000001
// Fault0 Input
3935
3936
//*****************************************************************************
3937
//
3938
// The following are defines for the bit fields in the PWM_O_1_FLTSRC1
3939
// register.
3940
//
3941
//*****************************************************************************
3942
#define PWM_1_FLTSRC1_DCMP7 0x00000080
// Digital Comparator 7
3943
#define PWM_1_FLTSRC1_DCMP6 0x00000040
// Digital Comparator 6
3944
#define PWM_1_FLTSRC1_DCMP5 0x00000020
// Digital Comparator 5
3945
#define PWM_1_FLTSRC1_DCMP4 0x00000010
// Digital Comparator 4
3946
#define PWM_1_FLTSRC1_DCMP3 0x00000008
// Digital Comparator 3
3947
#define PWM_1_FLTSRC1_DCMP2 0x00000004
// Digital Comparator 2
3948
#define PWM_1_FLTSRC1_DCMP1 0x00000002
// Digital Comparator 1
3949
#define PWM_1_FLTSRC1_DCMP0 0x00000001
// Digital Comparator 0
3950
3951
//*****************************************************************************
3952
//
3953
// The following are defines for the bit fields in the PWM_O_1_MINFLTPER
3954
// register.
3955
//
3956
//*****************************************************************************
3957
#define PWM_1_MINFLTPER_MFP_M 0x0000FFFF
// Minimum Fault Period
3958
#define PWM_1_MINFLTPER_MFP_S 0
3959
3960
//*****************************************************************************
3961
//
3962
// The following are defines for the bit fields in the PWM_O_2_CTL register.
3963
//
3964
//*****************************************************************************
3965
#define PWM_2_CTL_LATCH 0x00040000
// Latch Fault Input
3966
#define PWM_2_CTL_MINFLTPER 0x00020000
// Minimum Fault Period
3967
#define PWM_2_CTL_FLTSRC 0x00010000
// Fault Condition Source
3968
#define PWM_2_CTL_DBFALLUPD_M 0x0000C000
// PWMnDBFALL Update Mode
3969
#define PWM_2_CTL_DBFALLUPD_I 0x00000000
// Immediate
3970
#define PWM_2_CTL_DBFALLUPD_LS 0x00008000
// Locally Synchronized
3971
#define PWM_2_CTL_DBFALLUPD_GS 0x0000C000
// Globally Synchronized
3972
#define PWM_2_CTL_DBRISEUPD_M 0x00003000
// PWMnDBRISE Update Mode
3973
#define PWM_2_CTL_DBRISEUPD_I 0x00000000
// Immediate
3974
#define PWM_2_CTL_DBRISEUPD_LS 0x00002000
// Locally Synchronized
3975
#define PWM_2_CTL_DBRISEUPD_GS 0x00003000
// Globally Synchronized
3976
#define PWM_2_CTL_DBCTLUPD_M 0x00000C00
// PWMnDBCTL Update Mode
3977
#define PWM_2_CTL_DBCTLUPD_I 0x00000000
// Immediate
3978
#define PWM_2_CTL_DBCTLUPD_LS 0x00000800
// Locally Synchronized
3979
#define PWM_2_CTL_DBCTLUPD_GS 0x00000C00
// Globally Synchronized
3980
#define PWM_2_CTL_GENBUPD_M 0x00000300
// PWMnGENB Update Mode
3981
#define PWM_2_CTL_GENBUPD_I 0x00000000
// Immediate
3982
#define PWM_2_CTL_GENBUPD_LS 0x00000200
// Locally Synchronized
3983
#define PWM_2_CTL_GENBUPD_GS 0x00000300
// Globally Synchronized
3984
#define PWM_2_CTL_GENAUPD_M 0x000000C0
// PWMnGENA Update Mode
3985
#define PWM_2_CTL_GENAUPD_I 0x00000000
// Immediate
3986
#define PWM_2_CTL_GENAUPD_LS 0x00000080
// Locally Synchronized
3987
#define PWM_2_CTL_GENAUPD_GS 0x000000C0
// Globally Synchronized
3988
#define PWM_2_CTL_CMPBUPD 0x00000020
// Comparator B Update Mode
3989
#define PWM_2_CTL_CMPAUPD 0x00000010
// Comparator A Update Mode
3990
#define PWM_2_CTL_LOADUPD 0x00000008
// Load Register Update Mode
3991
#define PWM_2_CTL_DEBUG 0x00000004
// Debug Mode
3992
#define PWM_2_CTL_MODE 0x00000002
// Counter Mode
3993
#define PWM_2_CTL_ENABLE 0x00000001
// PWM Block Enable
3994
3995
//*****************************************************************************
3996
//
3997
// The following are defines for the bit fields in the PWM_O_2_INTEN register.
3998
//
3999
//*****************************************************************************
4000
#define PWM_2_INTEN_TRCMPBD 0x00002000
// Trigger for Counter=PWMnCMPB
4001
// Down
4002
#define PWM_2_INTEN_TRCMPBU 0x00001000
// Trigger for Counter=PWMnCMPB Up
4003
#define PWM_2_INTEN_TRCMPAD 0x00000800
// Trigger for Counter=PWMnCMPA
4004
// Down
4005
#define PWM_2_INTEN_TRCMPAU 0x00000400
// Trigger for Counter=PWMnCMPA Up
4006
#define PWM_2_INTEN_TRCNTLOAD 0x00000200
// Trigger for Counter=PWMnLOAD
4007
#define PWM_2_INTEN_TRCNTZERO 0x00000100
// Trigger for Counter=0
4008
#define PWM_2_INTEN_INTCMPBD 0x00000020
// Interrupt for Counter=PWMnCMPB
4009
// Down
4010
#define PWM_2_INTEN_INTCMPBU 0x00000010
// Interrupt for Counter=PWMnCMPB
4011
// Up
4012
#define PWM_2_INTEN_INTCMPAD 0x00000008
// Interrupt for Counter=PWMnCMPA
4013
// Down
4014
#define PWM_2_INTEN_INTCMPAU 0x00000004
// Interrupt for Counter=PWMnCMPA
4015
// Up
4016
#define PWM_2_INTEN_INTCNTLOAD 0x00000002
// Interrupt for Counter=PWMnLOAD
4017
#define PWM_2_INTEN_INTCNTZERO 0x00000001
// Interrupt for Counter=0
4018
4019
//*****************************************************************************
4020
//
4021
// The following are defines for the bit fields in the PWM_O_2_RIS register.
4022
//
4023
//*****************************************************************************
4024
#define PWM_2_RIS_INTCMPBD 0x00000020
// Comparator B Down Interrupt
4025
// Status
4026
#define PWM_2_RIS_INTCMPBU 0x00000010
// Comparator B Up Interrupt Status
4027
#define PWM_2_RIS_INTCMPAD 0x00000008
// Comparator A Down Interrupt
4028
// Status
4029
#define PWM_2_RIS_INTCMPAU 0x00000004
// Comparator A Up Interrupt Status
4030
#define PWM_2_RIS_INTCNTLOAD 0x00000002
// Counter=Load Interrupt Status
4031
#define PWM_2_RIS_INTCNTZERO 0x00000001
// Counter=0 Interrupt Status
4032
4033
//*****************************************************************************
4034
//
4035
// The following are defines for the bit fields in the PWM_O_2_ISC register.
4036
//
4037
//*****************************************************************************
4038
#define PWM_2_ISC_INTCMPBD 0x00000020
// Comparator B Down Interrupt
4039
#define PWM_2_ISC_INTCMPBU 0x00000010
// Comparator B Up Interrupt
4040
#define PWM_2_ISC_INTCMPAD 0x00000008
// Comparator A Down Interrupt
4041
#define PWM_2_ISC_INTCMPAU 0x00000004
// Comparator A Up Interrupt
4042
#define PWM_2_ISC_INTCNTLOAD 0x00000002
// Counter=Load Interrupt
4043
#define PWM_2_ISC_INTCNTZERO 0x00000001
// Counter=0 Interrupt
4044
4045
//*****************************************************************************
4046
//
4047
// The following are defines for the bit fields in the PWM_O_2_LOAD register.
4048
//
4049
//*****************************************************************************
4050
#define PWM_2_LOAD_LOAD_M 0x0000FFFF
// Counter Load Value
4051
#define PWM_2_LOAD_LOAD_S 0
4052
4053
//*****************************************************************************
4054
//
4055
// The following are defines for the bit fields in the PWM_O_2_COUNT register.
4056
//
4057
//*****************************************************************************
4058
#define PWM_2_COUNT_COUNT_M 0x0000FFFF
// Counter Value
4059
#define PWM_2_COUNT_COUNT_S 0
4060
4061
//*****************************************************************************
4062
//
4063
// The following are defines for the bit fields in the PWM_O_2_CMPA register.
4064
//
4065
//*****************************************************************************
4066
#define PWM_2_CMPA_COMPA_M 0x0000FFFF
// Comparator A Value
4067
#define PWM_2_CMPA_COMPA_S 0
4068
4069
//*****************************************************************************
4070
//
4071
// The following are defines for the bit fields in the PWM_O_2_CMPB register.
4072
//
4073
//*****************************************************************************
4074
#define PWM_2_CMPB_COMPB_M 0x0000FFFF
// Comparator B Value
4075
#define PWM_2_CMPB_COMPB_S 0
4076
4077
//*****************************************************************************
4078
//
4079
// The following are defines for the bit fields in the PWM_O_2_GENA register.
4080
//
4081
//*****************************************************************************
4082
#define PWM_2_GENA_ACTCMPBD_M 0x00000C00
// Action for Comparator B Down
4083
#define PWM_2_GENA_ACTCMPBD_NONE \
4084
0x00000000
// Do nothing
4085
#define PWM_2_GENA_ACTCMPBD_INV 0x00000400
// Invert pwmA
4086
#define PWM_2_GENA_ACTCMPBD_ZERO \
4087
0x00000800
// Drive pwmA Low
4088
#define PWM_2_GENA_ACTCMPBD_ONE 0x00000C00
// Drive pwmA High
4089
#define PWM_2_GENA_ACTCMPBU_M 0x00000300
// Action for Comparator B Up
4090
#define PWM_2_GENA_ACTCMPBU_NONE \
4091
0x00000000
// Do nothing
4092
#define PWM_2_GENA_ACTCMPBU_INV 0x00000100
// Invert pwmA
4093
#define PWM_2_GENA_ACTCMPBU_ZERO \
4094
0x00000200
// Drive pwmA Low
4095
#define PWM_2_GENA_ACTCMPBU_ONE 0x00000300
// Drive pwmA High
4096
#define PWM_2_GENA_ACTCMPAD_M 0x000000C0
// Action for Comparator A Down
4097
#define PWM_2_GENA_ACTCMPAD_NONE \
4098
0x00000000
// Do nothing
4099
#define PWM_2_GENA_ACTCMPAD_INV 0x00000040
// Invert pwmA
4100
#define PWM_2_GENA_ACTCMPAD_ZERO \
4101
0x00000080
// Drive pwmA Low
4102
#define PWM_2_GENA_ACTCMPAD_ONE 0x000000C0
// Drive pwmA High
4103
#define PWM_2_GENA_ACTCMPAU_M 0x00000030
// Action for Comparator A Up
4104
#define PWM_2_GENA_ACTCMPAU_NONE \
4105
0x00000000
// Do nothing
4106
#define PWM_2_GENA_ACTCMPAU_INV 0x00000010
// Invert pwmA
4107
#define PWM_2_GENA_ACTCMPAU_ZERO \
4108
0x00000020
// Drive pwmA Low
4109
#define PWM_2_GENA_ACTCMPAU_ONE 0x00000030
// Drive pwmA High
4110
#define PWM_2_GENA_ACTLOAD_M 0x0000000C
// Action for Counter=LOAD
4111
#define PWM_2_GENA_ACTLOAD_NONE 0x00000000
// Do nothing
4112
#define PWM_2_GENA_ACTLOAD_INV 0x00000004
// Invert pwmA
4113
#define PWM_2_GENA_ACTLOAD_ZERO 0x00000008
// Drive pwmA Low
4114
#define PWM_2_GENA_ACTLOAD_ONE 0x0000000C
// Drive pwmA High
4115
#define PWM_2_GENA_ACTZERO_M 0x00000003
// Action for Counter=0
4116
#define PWM_2_GENA_ACTZERO_NONE 0x00000000
// Do nothing
4117
#define PWM_2_GENA_ACTZERO_INV 0x00000001
// Invert pwmA
4118
#define PWM_2_GENA_ACTZERO_ZERO 0x00000002
// Drive pwmA Low
4119
#define PWM_2_GENA_ACTZERO_ONE 0x00000003
// Drive pwmA High
4120
4121
//*****************************************************************************
4122
//
4123
// The following are defines for the bit fields in the PWM_O_2_GENB register.
4124
//
4125
//*****************************************************************************
4126
#define PWM_2_GENB_ACTCMPBD_M 0x00000C00
// Action for Comparator B Down
4127
#define PWM_2_GENB_ACTCMPBD_NONE \
4128
0x00000000
// Do nothing
4129
#define PWM_2_GENB_ACTCMPBD_INV 0x00000400
// Invert pwmB
4130
#define PWM_2_GENB_ACTCMPBD_ZERO \
4131
0x00000800
// Drive pwmB Low
4132
#define PWM_2_GENB_ACTCMPBD_ONE 0x00000C00
// Drive pwmB High
4133
#define PWM_2_GENB_ACTCMPBU_M 0x00000300
// Action for Comparator B Up
4134
#define PWM_2_GENB_ACTCMPBU_NONE \
4135
0x00000000
// Do nothing
4136
#define PWM_2_GENB_ACTCMPBU_INV 0x00000100
// Invert pwmB
4137
#define PWM_2_GENB_ACTCMPBU_ZERO \
4138
0x00000200
// Drive pwmB Low
4139
#define PWM_2_GENB_ACTCMPBU_ONE 0x00000300
// Drive pwmB High
4140
#define PWM_2_GENB_ACTCMPAD_M 0x000000C0
// Action for Comparator A Down
4141
#define PWM_2_GENB_ACTCMPAD_NONE \
4142
0x00000000
// Do nothing
4143
#define PWM_2_GENB_ACTCMPAD_INV 0x00000040
// Invert pwmB
4144
#define PWM_2_GENB_ACTCMPAD_ZERO \
4145
0x00000080
// Drive pwmB Low
4146
#define PWM_2_GENB_ACTCMPAD_ONE 0x000000C0
// Drive pwmB High
4147
#define PWM_2_GENB_ACTCMPAU_M 0x00000030
// Action for Comparator A Up
4148
#define PWM_2_GENB_ACTCMPAU_NONE \
4149
0x00000000
// Do nothing
4150
#define PWM_2_GENB_ACTCMPAU_INV 0x00000010
// Invert pwmB
4151
#define PWM_2_GENB_ACTCMPAU_ZERO \
4152
0x00000020
// Drive pwmB Low
4153
#define PWM_2_GENB_ACTCMPAU_ONE 0x00000030
// Drive pwmB High
4154
#define PWM_2_GENB_ACTLOAD_M 0x0000000C
// Action for Counter=LOAD
4155
#define PWM_2_GENB_ACTLOAD_NONE 0x00000000
// Do nothing
4156
#define PWM_2_GENB_ACTLOAD_INV 0x00000004
// Invert pwmB
4157
#define PWM_2_GENB_ACTLOAD_ZERO 0x00000008
// Drive pwmB Low
4158
#define PWM_2_GENB_ACTLOAD_ONE 0x0000000C
// Drive pwmB High
4159
#define PWM_2_GENB_ACTZERO_M 0x00000003
// Action for Counter=0
4160
#define PWM_2_GENB_ACTZERO_NONE 0x00000000
// Do nothing
4161
#define PWM_2_GENB_ACTZERO_INV 0x00000001
// Invert pwmB
4162
#define PWM_2_GENB_ACTZERO_ZERO 0x00000002
// Drive pwmB Low
4163
#define PWM_2_GENB_ACTZERO_ONE 0x00000003
// Drive pwmB High
4164
4165
//*****************************************************************************
4166
//
4167
// The following are defines for the bit fields in the PWM_O_2_DBCTL register.
4168
//
4169
//*****************************************************************************
4170
#define PWM_2_DBCTL_ENABLE 0x00000001
// Dead-Band Generator Enable
4171
4172
//*****************************************************************************
4173
//
4174
// The following are defines for the bit fields in the PWM_O_2_DBRISE register.
4175
//
4176
//*****************************************************************************
4177
#define PWM_2_DBRISE_RISEDELAY_M \
4178
0x00000FFF
// Dead-Band Rise Delay
4179
#define PWM_2_DBRISE_RISEDELAY_S \
4180
0
4181
4182
//*****************************************************************************
4183
//
4184
// The following are defines for the bit fields in the PWM_O_2_DBFALL register.
4185
//
4186
//*****************************************************************************
4187
#define PWM_2_DBFALL_FALLDELAY_M \
4188
0x00000FFF
// Dead-Band Fall Delay
4189
#define PWM_2_DBFALL_FALLDELAY_S \
4190
0
4191
4192
//*****************************************************************************
4193
//
4194
// The following are defines for the bit fields in the PWM_O_2_FLTSRC0
4195
// register.
4196
//
4197
//*****************************************************************************
4198
#define PWM_2_FLTSRC0_FAULT1 0x00000002
// Fault1 Input
4199
#define PWM_2_FLTSRC0_FAULT0 0x00000001
// Fault0 Input
4200
4201
//*****************************************************************************
4202
//
4203
// The following are defines for the bit fields in the PWM_O_2_FLTSRC1
4204
// register.
4205
//
4206
//*****************************************************************************
4207
#define PWM_2_FLTSRC1_DCMP7 0x00000080
// Digital Comparator 7
4208
#define PWM_2_FLTSRC1_DCMP6 0x00000040
// Digital Comparator 6
4209
#define PWM_2_FLTSRC1_DCMP5 0x00000020
// Digital Comparator 5
4210
#define PWM_2_FLTSRC1_DCMP4 0x00000010
// Digital Comparator 4
4211
#define PWM_2_FLTSRC1_DCMP3 0x00000008
// Digital Comparator 3
4212
#define PWM_2_FLTSRC1_DCMP2 0x00000004
// Digital Comparator 2
4213
#define PWM_2_FLTSRC1_DCMP1 0x00000002
// Digital Comparator 1
4214
#define PWM_2_FLTSRC1_DCMP0 0x00000001
// Digital Comparator 0
4215
4216
//*****************************************************************************
4217
//
4218
// The following are defines for the bit fields in the PWM_O_2_MINFLTPER
4219
// register.
4220
//
4221
//*****************************************************************************
4222
#define PWM_2_MINFLTPER_MFP_M 0x0000FFFF
// Minimum Fault Period
4223
#define PWM_2_MINFLTPER_MFP_S 0
4224
4225
//*****************************************************************************
4226
//
4227
// The following are defines for the bit fields in the PWM_O_3_CTL register.
4228
//
4229
//*****************************************************************************
4230
#define PWM_3_CTL_LATCH 0x00040000
// Latch Fault Input
4231
#define PWM_3_CTL_MINFLTPER 0x00020000
// Minimum Fault Period
4232
#define PWM_3_CTL_FLTSRC 0x00010000
// Fault Condition Source
4233
#define PWM_3_CTL_DBFALLUPD_M 0x0000C000
// PWMnDBFALL Update Mode
4234
#define PWM_3_CTL_DBFALLUPD_I 0x00000000
// Immediate
4235
#define PWM_3_CTL_DBFALLUPD_LS 0x00008000
// Locally Synchronized
4236
#define PWM_3_CTL_DBFALLUPD_GS 0x0000C000
// Globally Synchronized
4237
#define PWM_3_CTL_DBRISEUPD_M 0x00003000
// PWMnDBRISE Update Mode
4238
#define PWM_3_CTL_DBRISEUPD_I 0x00000000
// Immediate
4239
#define PWM_3_CTL_DBRISEUPD_LS 0x00002000
// Locally Synchronized
4240
#define PWM_3_CTL_DBRISEUPD_GS 0x00003000
// Globally Synchronized
4241
#define PWM_3_CTL_DBCTLUPD_M 0x00000C00
// PWMnDBCTL Update Mode
4242
#define PWM_3_CTL_DBCTLUPD_I 0x00000000
// Immediate
4243
#define PWM_3_CTL_DBCTLUPD_LS 0x00000800
// Locally Synchronized
4244
#define PWM_3_CTL_DBCTLUPD_GS 0x00000C00
// Globally Synchronized
4245
#define PWM_3_CTL_GENBUPD_M 0x00000300
// PWMnGENB Update Mode
4246
#define PWM_3_CTL_GENBUPD_I 0x00000000
// Immediate
4247
#define PWM_3_CTL_GENBUPD_LS 0x00000200
// Locally Synchronized
4248
#define PWM_3_CTL_GENBUPD_GS 0x00000300
// Globally Synchronized
4249
#define PWM_3_CTL_GENAUPD_M 0x000000C0
// PWMnGENA Update Mode
4250
#define PWM_3_CTL_GENAUPD_I 0x00000000
// Immediate
4251
#define PWM_3_CTL_GENAUPD_LS 0x00000080
// Locally Synchronized
4252
#define PWM_3_CTL_GENAUPD_GS 0x000000C0
// Globally Synchronized
4253
#define PWM_3_CTL_CMPBUPD 0x00000020
// Comparator B Update Mode
4254
#define PWM_3_CTL_CMPAUPD 0x00000010
// Comparator A Update Mode
4255
#define PWM_3_CTL_LOADUPD 0x00000008
// Load Register Update Mode
4256
#define PWM_3_CTL_DEBUG 0x00000004
// Debug Mode
4257
#define PWM_3_CTL_MODE 0x00000002
// Counter Mode
4258
#define PWM_3_CTL_ENABLE 0x00000001
// PWM Block Enable
4259
4260
//*****************************************************************************
4261
//
4262
// The following are defines for the bit fields in the PWM_O_3_INTEN register.
4263
//
4264
//*****************************************************************************
4265
#define PWM_3_INTEN_TRCMPBD 0x00002000
// Trigger for Counter=PWMnCMPB
4266
// Down
4267
#define PWM_3_INTEN_TRCMPBU 0x00001000
// Trigger for Counter=PWMnCMPB Up
4268
#define PWM_3_INTEN_TRCMPAD 0x00000800
// Trigger for Counter=PWMnCMPA
4269
// Down
4270
#define PWM_3_INTEN_TRCMPAU 0x00000400
// Trigger for Counter=PWMnCMPA Up
4271
#define PWM_3_INTEN_TRCNTLOAD 0x00000200
// Trigger for Counter=PWMnLOAD
4272
#define PWM_3_INTEN_TRCNTZERO 0x00000100
// Trigger for Counter=0
4273
#define PWM_3_INTEN_INTCMPBD 0x00000020
// Interrupt for Counter=PWMnCMPB
4274
// Down
4275
#define PWM_3_INTEN_INTCMPBU 0x00000010
// Interrupt for Counter=PWMnCMPB
4276
// Up
4277
#define PWM_3_INTEN_INTCMPAD 0x00000008
// Interrupt for Counter=PWMnCMPA
4278
// Down
4279
#define PWM_3_INTEN_INTCMPAU 0x00000004
// Interrupt for Counter=PWMnCMPA
4280
// Up
4281
#define PWM_3_INTEN_INTCNTLOAD 0x00000002
// Interrupt for Counter=PWMnLOAD
4282
#define PWM_3_INTEN_INTCNTZERO 0x00000001
// Interrupt for Counter=0
4283
4284
//*****************************************************************************
4285
//
4286
// The following are defines for the bit fields in the PWM_O_3_RIS register.
4287
//
4288
//*****************************************************************************
4289
#define PWM_3_RIS_INTCMPBD 0x00000020
// Comparator B Down Interrupt
4290
// Status
4291
#define PWM_3_RIS_INTCMPBU 0x00000010
// Comparator B Up Interrupt Status
4292
#define PWM_3_RIS_INTCMPAD 0x00000008
// Comparator A Down Interrupt
4293
// Status
4294
#define PWM_3_RIS_INTCMPAU 0x00000004
// Comparator A Up Interrupt Status
4295
#define PWM_3_RIS_INTCNTLOAD 0x00000002
// Counter=Load Interrupt Status
4296
#define PWM_3_RIS_INTCNTZERO 0x00000001
// Counter=0 Interrupt Status
4297
4298
//*****************************************************************************
4299
//
4300
// The following are defines for the bit fields in the PWM_O_3_ISC register.
4301
//
4302
//*****************************************************************************
4303
#define PWM_3_ISC_INTCMPBD 0x00000020
// Comparator B Down Interrupt
4304
#define PWM_3_ISC_INTCMPBU 0x00000010
// Comparator B Up Interrupt
4305
#define PWM_3_ISC_INTCMPAD 0x00000008
// Comparator A Down Interrupt
4306
#define PWM_3_ISC_INTCMPAU 0x00000004
// Comparator A Up Interrupt
4307
#define PWM_3_ISC_INTCNTLOAD 0x00000002
// Counter=Load Interrupt
4308
#define PWM_3_ISC_INTCNTZERO 0x00000001
// Counter=0 Interrupt
4309
4310
//*****************************************************************************
4311
//
4312
// The following are defines for the bit fields in the PWM_O_3_LOAD register.
4313
//
4314
//*****************************************************************************
4315
#define PWM_3_LOAD_LOAD_M 0x0000FFFF
// Counter Load Value
4316
#define PWM_3_LOAD_LOAD_S 0
4317
4318
//*****************************************************************************
4319
//
4320
// The following are defines for the bit fields in the PWM_O_3_COUNT register.
4321
//
4322
//*****************************************************************************
4323
#define PWM_3_COUNT_COUNT_M 0x0000FFFF
// Counter Value
4324
#define PWM_3_COUNT_COUNT_S 0
4325
4326
//*****************************************************************************
4327
//
4328
// The following are defines for the bit fields in the PWM_O_3_CMPA register.
4329
//
4330
//*****************************************************************************
4331
#define PWM_3_CMPA_COMPA_M 0x0000FFFF
// Comparator A Value
4332
#define PWM_3_CMPA_COMPA_S 0
4333
4334
//*****************************************************************************
4335
//
4336
// The following are defines for the bit fields in the PWM_O_3_CMPB register.
4337
//
4338
//*****************************************************************************
4339
#define PWM_3_CMPB_COMPB_M 0x0000FFFF
// Comparator B Value
4340
#define PWM_3_CMPB_COMPB_S 0
4341
4342
//*****************************************************************************
4343
//
4344
// The following are defines for the bit fields in the PWM_O_3_GENA register.
4345
//
4346
//*****************************************************************************
4347
#define PWM_3_GENA_ACTCMPBD_M 0x00000C00
// Action for Comparator B Down
4348
#define PWM_3_GENA_ACTCMPBD_NONE \
4349
0x00000000
// Do nothing
4350
#define PWM_3_GENA_ACTCMPBD_INV 0x00000400
// Invert pwmA
4351
#define PWM_3_GENA_ACTCMPBD_ZERO \
4352
0x00000800
// Drive pwmA Low
4353
#define PWM_3_GENA_ACTCMPBD_ONE 0x00000C00
// Drive pwmA High
4354
#define PWM_3_GENA_ACTCMPBU_M 0x00000300
// Action for Comparator B Up
4355
#define PWM_3_GENA_ACTCMPBU_NONE \
4356
0x00000000
// Do nothing
4357
#define PWM_3_GENA_ACTCMPBU_INV 0x00000100
// Invert pwmA
4358
#define PWM_3_GENA_ACTCMPBU_ZERO \
4359
0x00000200
// Drive pwmA Low
4360
#define PWM_3_GENA_ACTCMPBU_ONE 0x00000300
// Drive pwmA High
4361
#define PWM_3_GENA_ACTCMPAD_M 0x000000C0
// Action for Comparator A Down
4362
#define PWM_3_GENA_ACTCMPAD_NONE \
4363
0x00000000
// Do nothing
4364
#define PWM_3_GENA_ACTCMPAD_INV 0x00000040
// Invert pwmA
4365
#define PWM_3_GENA_ACTCMPAD_ZERO \
4366
0x00000080
// Drive pwmA Low
4367
#define PWM_3_GENA_ACTCMPAD_ONE 0x000000C0
// Drive pwmA High
4368
#define PWM_3_GENA_ACTCMPAU_M 0x00000030
// Action for Comparator A Up
4369
#define PWM_3_GENA_ACTCMPAU_NONE \
4370
0x00000000
// Do nothing
4371
#define PWM_3_GENA_ACTCMPAU_INV 0x00000010
// Invert pwmA
4372
#define PWM_3_GENA_ACTCMPAU_ZERO \
4373
0x00000020
// Drive pwmA Low
4374
#define PWM_3_GENA_ACTCMPAU_ONE 0x00000030
// Drive pwmA High
4375
#define PWM_3_GENA_ACTLOAD_M 0x0000000C
// Action for Counter=LOAD
4376
#define PWM_3_GENA_ACTLOAD_NONE 0x00000000
// Do nothing
4377
#define PWM_3_GENA_ACTLOAD_INV 0x00000004
// Invert pwmA
4378
#define PWM_3_GENA_ACTLOAD_ZERO 0x00000008
// Drive pwmA Low
4379
#define PWM_3_GENA_ACTLOAD_ONE 0x0000000C
// Drive pwmA High
4380
#define PWM_3_GENA_ACTZERO_M 0x00000003
// Action for Counter=0
4381
#define PWM_3_GENA_ACTZERO_NONE 0x00000000
// Do nothing
4382
#define PWM_3_GENA_ACTZERO_INV 0x00000001
// Invert pwmA
4383
#define PWM_3_GENA_ACTZERO_ZERO 0x00000002
// Drive pwmA Low
4384
#define PWM_3_GENA_ACTZERO_ONE 0x00000003
// Drive pwmA High
4385
4386
//*****************************************************************************
4387
//
4388
// The following are defines for the bit fields in the PWM_O_3_GENB register.
4389
//
4390
//*****************************************************************************
4391
#define PWM_3_GENB_ACTCMPBD_M 0x00000C00
// Action for Comparator B Down
4392
#define PWM_3_GENB_ACTCMPBD_NONE \
4393
0x00000000
// Do nothing
4394
#define PWM_3_GENB_ACTCMPBD_INV 0x00000400
// Invert pwmB
4395
#define PWM_3_GENB_ACTCMPBD_ZERO \
4396
0x00000800
// Drive pwmB Low
4397
#define PWM_3_GENB_ACTCMPBD_ONE 0x00000C00
// Drive pwmB High
4398
#define PWM_3_GENB_ACTCMPBU_M 0x00000300
// Action for Comparator B Up
4399
#define PWM_3_GENB_ACTCMPBU_NONE \
4400
0x00000000
// Do nothing
4401
#define PWM_3_GENB_ACTCMPBU_INV 0x00000100
// Invert pwmB
4402
#define PWM_3_GENB_ACTCMPBU_ZERO \
4403
0x00000200
// Drive pwmB Low
4404
#define PWM_3_GENB_ACTCMPBU_ONE 0x00000300
// Drive pwmB High
4405
#define PWM_3_GENB_ACTCMPAD_M 0x000000C0
// Action for Comparator A Down
4406
#define PWM_3_GENB_ACTCMPAD_NONE \
4407
0x00000000
// Do nothing
4408
#define PWM_3_GENB_ACTCMPAD_INV 0x00000040
// Invert pwmB
4409
#define PWM_3_GENB_ACTCMPAD_ZERO \
4410
0x00000080
// Drive pwmB Low
4411
#define PWM_3_GENB_ACTCMPAD_ONE 0x000000C0
// Drive pwmB High
4412
#define PWM_3_GENB_ACTCMPAU_M 0x00000030
// Action for Comparator A Up
4413
#define PWM_3_GENB_ACTCMPAU_NONE \
4414
0x00000000
// Do nothing
4415
#define PWM_3_GENB_ACTCMPAU_INV 0x00000010
// Invert pwmB
4416
#define PWM_3_GENB_ACTCMPAU_ZERO \
4417
0x00000020
// Drive pwmB Low
4418
#define PWM_3_GENB_ACTCMPAU_ONE 0x00000030
// Drive pwmB High
4419
#define PWM_3_GENB_ACTLOAD_M 0x0000000C
// Action for Counter=LOAD
4420
#define PWM_3_GENB_ACTLOAD_NONE 0x00000000
// Do nothing
4421
#define PWM_3_GENB_ACTLOAD_INV 0x00000004
// Invert pwmB
4422
#define PWM_3_GENB_ACTLOAD_ZERO 0x00000008
// Drive pwmB Low
4423
#define PWM_3_GENB_ACTLOAD_ONE 0x0000000C
// Drive pwmB High
4424
#define PWM_3_GENB_ACTZERO_M 0x00000003
// Action for Counter=0
4425
#define PWM_3_GENB_ACTZERO_NONE 0x00000000
// Do nothing
4426
#define PWM_3_GENB_ACTZERO_INV 0x00000001
// Invert pwmB
4427
#define PWM_3_GENB_ACTZERO_ZERO 0x00000002
// Drive pwmB Low
4428
#define PWM_3_GENB_ACTZERO_ONE 0x00000003
// Drive pwmB High
4429
4430
//*****************************************************************************
4431
//
4432
// The following are defines for the bit fields in the PWM_O_3_DBCTL register.
4433
//
4434
//*****************************************************************************
4435
#define PWM_3_DBCTL_ENABLE 0x00000001
// Dead-Band Generator Enable
4436
4437
//*****************************************************************************
4438
//
4439
// The following are defines for the bit fields in the PWM_O_3_DBRISE register.
4440
//
4441
//*****************************************************************************
4442
#define PWM_3_DBRISE_RISEDELAY_M \
4443
0x00000FFF
// Dead-Band Rise Delay
4444
#define PWM_3_DBRISE_RISEDELAY_S \
4445
0
4446
4447
//*****************************************************************************
4448
//
4449
// The following are defines for the bit fields in the PWM_O_3_DBFALL register.
4450
//
4451
//*****************************************************************************
4452
#define PWM_3_DBFALL_FALLDELAY_M \
4453
0x00000FFF
// Dead-Band Fall Delay
4454
#define PWM_3_DBFALL_FALLDELAY_S \
4455
0
4456
4457
//*****************************************************************************
4458
//
4459
// The following are defines for the bit fields in the PWM_O_3_FLTSRC0
4460
// register.
4461
//
4462
//*****************************************************************************
4463
#define PWM_3_FLTSRC0_FAULT1 0x00000002
// Fault1 Input
4464
#define PWM_3_FLTSRC0_FAULT0 0x00000001
// Fault0 Input
4465
4466
//*****************************************************************************
4467
//
4468
// The following are defines for the bit fields in the PWM_O_3_FLTSRC1
4469
// register.
4470
//
4471
//*****************************************************************************
4472
#define PWM_3_FLTSRC1_DCMP7 0x00000080
// Digital Comparator 7
4473
#define PWM_3_FLTSRC1_DCMP6 0x00000040
// Digital Comparator 6
4474
#define PWM_3_FLTSRC1_DCMP5 0x00000020
// Digital Comparator 5
4475
#define PWM_3_FLTSRC1_DCMP4 0x00000010
// Digital Comparator 4
4476
#define PWM_3_FLTSRC1_DCMP3 0x00000008
// Digital Comparator 3
4477
#define PWM_3_FLTSRC1_DCMP2 0x00000004
// Digital Comparator 2
4478
#define PWM_3_FLTSRC1_DCMP1 0x00000002
// Digital Comparator 1
4479
#define PWM_3_FLTSRC1_DCMP0 0x00000001
// Digital Comparator 0
4480
4481
//*****************************************************************************
4482
//
4483
// The following are defines for the bit fields in the PWM_O_3_MINFLTPER
4484
// register.
4485
//
4486
//*****************************************************************************
4487
#define PWM_3_MINFLTPER_MFP_M 0x0000FFFF
// Minimum Fault Period
4488
#define PWM_3_MINFLTPER_MFP_S 0
4489
4490
//*****************************************************************************
4491
//
4492
// The following are defines for the bit fields in the PWM_O_0_FLTSEN register.
4493
//
4494
//*****************************************************************************
4495
#define PWM_0_FLTSEN_FAULT1 0x00000002
// Fault1 Sense
4496
#define PWM_0_FLTSEN_FAULT0 0x00000001
// Fault0 Sense
4497
4498
//*****************************************************************************
4499
//
4500
// The following are defines for the bit fields in the PWM_O_0_FLTSTAT0
4501
// register.
4502
//
4503
//*****************************************************************************
4504
#define PWM_0_FLTSTAT0_FAULT1 0x00000002
// Fault Input 1
4505
#define PWM_0_FLTSTAT0_FAULT0 0x00000001
// Fault Input 0
4506
4507
//*****************************************************************************
4508
//
4509
// The following are defines for the bit fields in the PWM_O_0_FLTSTAT1
4510
// register.
4511
//
4512
//*****************************************************************************
4513
#define PWM_0_FLTSTAT1_DCMP7 0x00000080
// Digital Comparator 7 Trigger
4514
#define PWM_0_FLTSTAT1_DCMP6 0x00000040
// Digital Comparator 6 Trigger
4515
#define PWM_0_FLTSTAT1_DCMP5 0x00000020
// Digital Comparator 5 Trigger
4516
#define PWM_0_FLTSTAT1_DCMP4 0x00000010
// Digital Comparator 4 Trigger
4517
#define PWM_0_FLTSTAT1_DCMP3 0x00000008
// Digital Comparator 3 Trigger
4518
#define PWM_0_FLTSTAT1_DCMP2 0x00000004
// Digital Comparator 2 Trigger
4519
#define PWM_0_FLTSTAT1_DCMP1 0x00000002
// Digital Comparator 1 Trigger
4520
#define PWM_0_FLTSTAT1_DCMP0 0x00000001
// Digital Comparator 0 Trigger
4521
4522
//*****************************************************************************
4523
//
4524
// The following are defines for the bit fields in the PWM_O_1_FLTSEN register.
4525
//
4526
//*****************************************************************************
4527
#define PWM_1_FLTSEN_FAULT1 0x00000002
// Fault1 Sense
4528
#define PWM_1_FLTSEN_FAULT0 0x00000001
// Fault0 Sense
4529
4530
//*****************************************************************************
4531
//
4532
// The following are defines for the bit fields in the PWM_O_1_FLTSTAT0
4533
// register.
4534
//
4535
//*****************************************************************************
4536
#define PWM_1_FLTSTAT0_FAULT1 0x00000002
// Fault Input 1
4537
#define PWM_1_FLTSTAT0_FAULT0 0x00000001
// Fault Input 0
4538
4539
//*****************************************************************************
4540
//
4541
// The following are defines for the bit fields in the PWM_O_1_FLTSTAT1
4542
// register.
4543
//
4544
//*****************************************************************************
4545
#define PWM_1_FLTSTAT1_DCMP7 0x00000080
// Digital Comparator 7 Trigger
4546
#define PWM_1_FLTSTAT1_DCMP6 0x00000040
// Digital Comparator 6 Trigger
4547
#define PWM_1_FLTSTAT1_DCMP5 0x00000020
// Digital Comparator 5 Trigger
4548
#define PWM_1_FLTSTAT1_DCMP4 0x00000010
// Digital Comparator 4 Trigger
4549
#define PWM_1_FLTSTAT1_DCMP3 0x00000008
// Digital Comparator 3 Trigger
4550
#define PWM_1_FLTSTAT1_DCMP2 0x00000004
// Digital Comparator 2 Trigger
4551
#define PWM_1_FLTSTAT1_DCMP1 0x00000002
// Digital Comparator 1 Trigger
4552
#define PWM_1_FLTSTAT1_DCMP0 0x00000001
// Digital Comparator 0 Trigger
4553
4554
//*****************************************************************************
4555
//
4556
// The following are defines for the bit fields in the PWM_O_2_FLTSTAT0
4557
// register.
4558
//
4559
//*****************************************************************************
4560
#define PWM_2_FLTSTAT0_FAULT1 0x00000002
// Fault Input 1
4561
#define PWM_2_FLTSTAT0_FAULT0 0x00000001
// Fault Input 0
4562
4563
//*****************************************************************************
4564
//
4565
// The following are defines for the bit fields in the PWM_O_2_FLTSTAT1
4566
// register.
4567
//
4568
//*****************************************************************************
4569
#define PWM_2_FLTSTAT1_DCMP7 0x00000080
// Digital Comparator 7 Trigger
4570
#define PWM_2_FLTSTAT1_DCMP6 0x00000040
// Digital Comparator 6 Trigger
4571
#define PWM_2_FLTSTAT1_DCMP5 0x00000020
// Digital Comparator 5 Trigger
4572
#define PWM_2_FLTSTAT1_DCMP4 0x00000010
// Digital Comparator 4 Trigger
4573
#define PWM_2_FLTSTAT1_DCMP3 0x00000008
// Digital Comparator 3 Trigger
4574
#define PWM_2_FLTSTAT1_DCMP2 0x00000004
// Digital Comparator 2 Trigger
4575
#define PWM_2_FLTSTAT1_DCMP1 0x00000002
// Digital Comparator 1 Trigger
4576
#define PWM_2_FLTSTAT1_DCMP0 0x00000001
// Digital Comparator 0 Trigger
4577
4578
//*****************************************************************************
4579
//
4580
// The following are defines for the bit fields in the PWM_O_3_FLTSTAT0
4581
// register.
4582
//
4583
//*****************************************************************************
4584
#define PWM_3_FLTSTAT0_FAULT1 0x00000002
// Fault Input 1
4585
#define PWM_3_FLTSTAT0_FAULT0 0x00000001
// Fault Input 0
4586
4587
//*****************************************************************************
4588
//
4589
// The following are defines for the bit fields in the PWM_O_3_FLTSTAT1
4590
// register.
4591
//
4592
//*****************************************************************************
4593
#define PWM_3_FLTSTAT1_DCMP7 0x00000080
// Digital Comparator 7 Trigger
4594
#define PWM_3_FLTSTAT1_DCMP6 0x00000040
// Digital Comparator 6 Trigger
4595
#define PWM_3_FLTSTAT1_DCMP5 0x00000020
// Digital Comparator 5 Trigger
4596
#define PWM_3_FLTSTAT1_DCMP4 0x00000010
// Digital Comparator 4 Trigger
4597
#define PWM_3_FLTSTAT1_DCMP3 0x00000008
// Digital Comparator 3 Trigger
4598
#define PWM_3_FLTSTAT1_DCMP2 0x00000004
// Digital Comparator 2 Trigger
4599
#define PWM_3_FLTSTAT1_DCMP1 0x00000002
// Digital Comparator 1 Trigger
4600
#define PWM_3_FLTSTAT1_DCMP0 0x00000001
// Digital Comparator 0 Trigger
4601
4602
//*****************************************************************************
4603
//
4604
// The following are defines for the bit fields in the PWM_O_PP register.
4605
//
4606
//*****************************************************************************
4607
#define PWM_PP_ONE 0x00000400
// One-Shot Mode
4608
#define PWM_PP_EFAULT 0x00000200
// Extended Fault
4609
#define PWM_PP_ESYNC 0x00000100
// Extended Synchronization
4610
#define PWM_PP_FCNT_M 0x000000F0
// Fault Inputs (per PWM unit)
4611
#define PWM_PP_GCNT_M 0x0000000F
// Generators
4612
#define PWM_PP_FCNT_S 4
4613
#define PWM_PP_GCNT_S 0
4614
4615
//*****************************************************************************
4616
//
4617
// The following are defines for the bit fields in the QEI_O_CTL register.
4618
//
4619
//*****************************************************************************
4620
#define QEI_CTL_FILTCNT_M 0x000F0000
// Input Filter Prescale Count
4621
#define QEI_CTL_FILTEN 0x00002000
// Enable Input Filter
4622
#define QEI_CTL_STALLEN 0x00001000
// Stall QEI
4623
#define QEI_CTL_INVI 0x00000800
// Invert Index Pulse
4624
#define QEI_CTL_INVB 0x00000400
// Invert PhB
4625
#define QEI_CTL_INVA 0x00000200
// Invert PhA
4626
#define QEI_CTL_VELDIV_M 0x000001C0
// Predivide Velocity
4627
#define QEI_CTL_VELDIV_1 0x00000000
// QEI clock /1
4628
#define QEI_CTL_VELDIV_2 0x00000040
// QEI clock /2
4629
#define QEI_CTL_VELDIV_4 0x00000080
// QEI clock /4
4630
#define QEI_CTL_VELDIV_8 0x000000C0
// QEI clock /8
4631
#define QEI_CTL_VELDIV_16 0x00000100
// QEI clock /16
4632
#define QEI_CTL_VELDIV_32 0x00000140
// QEI clock /32
4633
#define QEI_CTL_VELDIV_64 0x00000180
// QEI clock /64
4634
#define QEI_CTL_VELDIV_128 0x000001C0
// QEI clock /128
4635
#define QEI_CTL_VELEN 0x00000020
// Capture Velocity
4636
#define QEI_CTL_RESMODE 0x00000010
// Reset Mode
4637
#define QEI_CTL_CAPMODE 0x00000008
// Capture Mode
4638
#define QEI_CTL_SIGMODE 0x00000004
// Signal Mode
4639
#define QEI_CTL_SWAP 0x00000002
// Swap Signals
4640
#define QEI_CTL_ENABLE 0x00000001
// Enable QEI
4641
#define QEI_CTL_FILTCNT_S 16
4642
4643
//*****************************************************************************
4644
//
4645
// The following are defines for the bit fields in the QEI_O_STAT register.
4646
//
4647
//*****************************************************************************
4648
#define QEI_STAT_DIRECTION 0x00000002
// Direction of Rotation
4649
#define QEI_STAT_ERROR 0x00000001
// Error Detected
4650
4651
//*****************************************************************************
4652
//
4653
// The following are defines for the bit fields in the QEI_O_POS register.
4654
//
4655
//*****************************************************************************
4656
#define QEI_POS_M 0xFFFFFFFF
// Current Position Integrator
4657
// Value
4658
#define QEI_POS_S 0
4659
4660
//*****************************************************************************
4661
//
4662
// The following are defines for the bit fields in the QEI_O_MAXPOS register.
4663
//
4664
//*****************************************************************************
4665
#define QEI_MAXPOS_M 0xFFFFFFFF
// Maximum Position Integrator
4666
// Value
4667
#define QEI_MAXPOS_S 0
4668
4669
//*****************************************************************************
4670
//
4671
// The following are defines for the bit fields in the QEI_O_LOAD register.
4672
//
4673
//*****************************************************************************
4674
#define QEI_LOAD_M 0xFFFFFFFF
// Velocity Timer Load Value
4675
#define QEI_LOAD_S 0
4676
4677
//*****************************************************************************
4678
//
4679
// The following are defines for the bit fields in the QEI_O_TIME register.
4680
//
4681
//*****************************************************************************
4682
#define QEI_TIME_M 0xFFFFFFFF
// Velocity Timer Current Value
4683
#define QEI_TIME_S 0
4684
4685
//*****************************************************************************
4686
//
4687
// The following are defines for the bit fields in the QEI_O_COUNT register.
4688
//
4689
//*****************************************************************************
4690
#define QEI_COUNT_M 0xFFFFFFFF
// Velocity Pulse Count
4691
#define QEI_COUNT_S 0
4692
4693
//*****************************************************************************
4694
//
4695
// The following are defines for the bit fields in the QEI_O_SPEED register.
4696
//
4697
//*****************************************************************************
4698
#define QEI_SPEED_M 0xFFFFFFFF
// Velocity
4699
#define QEI_SPEED_S 0
4700
4701
//*****************************************************************************
4702
//
4703
// The following are defines for the bit fields in the QEI_O_INTEN register.
4704
//
4705
//*****************************************************************************
4706
#define QEI_INTEN_ERROR 0x00000008
// Phase Error Interrupt Enable
4707
#define QEI_INTEN_DIR 0x00000004
// Direction Change Interrupt
4708
// Enable
4709
#define QEI_INTEN_TIMER 0x00000002
// Timer Expires Interrupt Enable
4710
#define QEI_INTEN_INDEX 0x00000001
// Index Pulse Detected Interrupt
4711
// Enable
4712
4713
//*****************************************************************************
4714
//
4715
// The following are defines for the bit fields in the QEI_O_RIS register.
4716
//
4717
//*****************************************************************************
4718
#define QEI_RIS_ERROR 0x00000008
// Phase Error Detected
4719
#define QEI_RIS_DIR 0x00000004
// Direction Change Detected
4720
#define QEI_RIS_TIMER 0x00000002
// Velocity Timer Expired
4721
#define QEI_RIS_INDEX 0x00000001
// Index Pulse Asserted
4722
4723
//*****************************************************************************
4724
//
4725
// The following are defines for the bit fields in the QEI_O_ISC register.
4726
//
4727
//*****************************************************************************
4728
#define QEI_ISC_ERROR 0x00000008
// Phase Error Interrupt
4729
#define QEI_ISC_DIR 0x00000004
// Direction Change Interrupt
4730
#define QEI_ISC_TIMER 0x00000002
// Velocity Timer Expired Interrupt
4731
#define QEI_ISC_INDEX 0x00000001
// Index Pulse Interrupt
4732
4733
//*****************************************************************************
4734
//
4735
// The following are defines for the bit fields in the TIMER_O_CFG register.
4736
//
4737
//*****************************************************************************
4738
#define TIMER_CFG_M 0x00000007
// GPTM Configuration
4739
#define TIMER_CFG_32_BIT_TIMER 0x00000000
// For a 16/32-bit timer, this
4740
// value selects the 32-bit timer
4741
// configuration
4742
#define TIMER_CFG_32_BIT_RTC 0x00000001
// For a 16/32-bit timer, this
4743
// value selects the 32-bit
4744
// real-time clock (RTC) counter
4745
// configuration
4746
#define TIMER_CFG_16_BIT 0x00000004
// For a 16/32-bit timer, this
4747
// value selects the 16-bit timer
4748
// configuration
4749
4750
//*****************************************************************************
4751
//
4752
// The following are defines for the bit fields in the TIMER_O_TAMR register.
4753
//
4754
//*****************************************************************************
4755
#define TIMER_TAMR_TAPLO 0x00000800
// GPTM Timer A PWM Legacy
4756
// Operation
4757
#define TIMER_TAMR_TAMRSU 0x00000400
// GPTM Timer A Match Register
4758
// Update
4759
#define TIMER_TAMR_TAPWMIE 0x00000200
// GPTM Timer A PWM Interrupt
4760
// Enable
4761
#define TIMER_TAMR_TAILD 0x00000100
// GPTM Timer A Interval Load Write
4762
#define TIMER_TAMR_TASNAPS 0x00000080
// GPTM Timer A Snap-Shot Mode
4763
#define TIMER_TAMR_TAWOT 0x00000040
// GPTM Timer A Wait-on-Trigger
4764
#define TIMER_TAMR_TAMIE 0x00000020
// GPTM Timer A Match Interrupt
4765
// Enable
4766
#define TIMER_TAMR_TACDIR 0x00000010
// GPTM Timer A Count Direction
4767
#define TIMER_TAMR_TAAMS 0x00000008
// GPTM Timer A Alternate Mode
4768
// Select
4769
#define TIMER_TAMR_TACMR 0x00000004
// GPTM Timer A Capture Mode
4770
#define TIMER_TAMR_TAMR_M 0x00000003
// GPTM Timer A Mode
4771
#define TIMER_TAMR_TAMR_1_SHOT 0x00000001
// One-Shot Timer mode
4772
#define TIMER_TAMR_TAMR_PERIOD 0x00000002
// Periodic Timer mode
4773
#define TIMER_TAMR_TAMR_CAP 0x00000003
// Capture mode
4774
4775
//*****************************************************************************
4776
//
4777
// The following are defines for the bit fields in the TIMER_O_TBMR register.
4778
//
4779
//*****************************************************************************
4780
#define TIMER_TBMR_TBPLO 0x00000800
// GPTM Timer B PWM Legacy
4781
// Operation
4782
#define TIMER_TBMR_TBMRSU 0x00000400
// GPTM Timer B Match Register
4783
// Update
4784
#define TIMER_TBMR_TBPWMIE 0x00000200
// GPTM Timer B PWM Interrupt
4785
// Enable
4786
#define TIMER_TBMR_TBILD 0x00000100
// GPTM Timer B Interval Load Write
4787
#define TIMER_TBMR_TBSNAPS 0x00000080
// GPTM Timer B Snap-Shot Mode
4788
#define TIMER_TBMR_TBWOT 0x00000040
// GPTM Timer B Wait-on-Trigger
4789
#define TIMER_TBMR_TBMIE 0x00000020
// GPTM Timer B Match Interrupt
4790
// Enable
4791
#define TIMER_TBMR_TBCDIR 0x00000010
// GPTM Timer B Count Direction
4792
#define TIMER_TBMR_TBAMS 0x00000008
// GPTM Timer B Alternate Mode
4793
// Select
4794
#define TIMER_TBMR_TBCMR 0x00000004
// GPTM Timer B Capture Mode
4795
#define TIMER_TBMR_TBMR_M 0x00000003
// GPTM Timer B Mode
4796
#define TIMER_TBMR_TBMR_1_SHOT 0x00000001
// One-Shot Timer mode
4797
#define TIMER_TBMR_TBMR_PERIOD 0x00000002
// Periodic Timer mode
4798
#define TIMER_TBMR_TBMR_CAP 0x00000003
// Capture mode
4799
4800
//*****************************************************************************
4801
//
4802
// The following are defines for the bit fields in the TIMER_O_CTL register.
4803
//
4804
//*****************************************************************************
4805
#define TIMER_CTL_TBPWML 0x00004000
// GPTM Timer B PWM Output Level
4806
#define TIMER_CTL_TBOTE 0x00002000
// GPTM Timer B Output Trigger
4807
// Enable
4808
#define TIMER_CTL_TBEVENT_M 0x00000C00
// GPTM Timer B Event Mode
4809
#define TIMER_CTL_TBEVENT_POS 0x00000000
// Positive edge
4810
#define TIMER_CTL_TBEVENT_NEG 0x00000400
// Negative edge
4811
#define TIMER_CTL_TBEVENT_BOTH 0x00000C00
// Both edges
4812
#define TIMER_CTL_TBSTALL 0x00000200
// GPTM Timer B Stall Enable
4813
#define TIMER_CTL_TBEN 0x00000100
// GPTM Timer B Enable
4814
#define TIMER_CTL_TAPWML 0x00000040
// GPTM Timer A PWM Output Level
4815
#define TIMER_CTL_TAOTE 0x00000020
// GPTM Timer A Output Trigger
4816
// Enable
4817
#define TIMER_CTL_RTCEN 0x00000010
// GPTM RTC Stall Enable
4818
#define TIMER_CTL_TAEVENT_M 0x0000000C
// GPTM Timer A Event Mode
4819
#define TIMER_CTL_TAEVENT_POS 0x00000000
// Positive edge
4820
#define TIMER_CTL_TAEVENT_NEG 0x00000004
// Negative edge
4821
#define TIMER_CTL_TAEVENT_BOTH 0x0000000C
// Both edges
4822
#define TIMER_CTL_TASTALL 0x00000002
// GPTM Timer A Stall Enable
4823
#define TIMER_CTL_TAEN 0x00000001
// GPTM Timer A Enable
4824
4825
//*****************************************************************************
4826
//
4827
// The following are defines for the bit fields in the TIMER_O_SYNC register.
4828
//
4829
//*****************************************************************************
4830
#define TIMER_SYNC_SYNCWT5_M 0x00C00000
// Synchronize GPTM 32/64-Bit Timer
4831
// 5
4832
#define TIMER_SYNC_SYNCWT5_NONE 0x00000000
// GPTM 32/64-Bit Timer 5 is not
4833
// affected
4834
#define TIMER_SYNC_SYNCWT5_TA 0x00400000
// A timeout event for Timer A of
4835
// GPTM 32/64-Bit Timer 5 is
4836
// triggered
4837
#define TIMER_SYNC_SYNCWT5_TB 0x00800000
// A timeout event for Timer B of
4838
// GPTM 32/64-Bit Timer 5 is
4839
// triggered
4840
#define TIMER_SYNC_SYNCWT5_TATB 0x00C00000
// A timeout event for both Timer A
4841
// and Timer B of GPTM 32/64-Bit
4842
// Timer 5 is triggered
4843
#define TIMER_SYNC_SYNCWT4_M 0x00300000
// Synchronize GPTM 32/64-Bit Timer
4844
// 4
4845
#define TIMER_SYNC_SYNCWT4_NONE 0x00000000
// GPTM 32/64-Bit Timer 4 is not
4846
// affected
4847
#define TIMER_SYNC_SYNCWT4_TA 0x00100000
// A timeout event for Timer A of
4848
// GPTM 32/64-Bit Timer 4 is
4849
// triggered
4850
#define TIMER_SYNC_SYNCWT4_TB 0x00200000
// A timeout event for Timer B of
4851
// GPTM 32/64-Bit Timer 4 is
4852
// triggered
4853
#define TIMER_SYNC_SYNCWT4_TATB 0x00300000
// A timeout event for both Timer A
4854
// and Timer B of GPTM 32/64-Bit
4855
// Timer 4 is triggered
4856
#define TIMER_SYNC_SYNCWT3_M 0x000C0000
// Synchronize GPTM 32/64-Bit Timer
4857
// 3
4858
#define TIMER_SYNC_SYNCWT3_NONE 0x00000000
// GPTM 32/64-Bit Timer 3 is not
4859
// affected
4860
#define TIMER_SYNC_SYNCWT3_TA 0x00040000
// A timeout event for Timer A of
4861
// GPTM 32/64-Bit Timer 3 is
4862
// triggered
4863
#define TIMER_SYNC_SYNCWT3_TB 0x00080000
// A timeout event for Timer B of
4864
// GPTM 32/64-Bit Timer 3 is
4865
// triggered
4866
#define TIMER_SYNC_SYNCWT3_TATB 0x000C0000
// A timeout event for both Timer A
4867
// and Timer B of GPTM 32/64-Bit
4868
// Timer 3 is triggered
4869
#define TIMER_SYNC_SYNCWT2_M 0x00030000
// Synchronize GPTM 32/64-Bit Timer
4870
// 2
4871
#define TIMER_SYNC_SYNCWT2_NONE 0x00000000
// GPTM 32/64-Bit Timer 2 is not
4872
// affected
4873
#define TIMER_SYNC_SYNCWT2_TA 0x00010000
// A timeout event for Timer A of
4874
// GPTM 32/64-Bit Timer 2 is
4875
// triggered
4876
#define TIMER_SYNC_SYNCWT2_TB 0x00020000
// A timeout event for Timer B of
4877
// GPTM 32/64-Bit Timer 2 is
4878
// triggered
4879
#define TIMER_SYNC_SYNCWT2_TATB 0x00030000
// A timeout event for both Timer A
4880
// and Timer B of GPTM 32/64-Bit
4881
// Timer 2 is triggered
4882
#define TIMER_SYNC_SYNCWT1_M 0x0000C000
// Synchronize GPTM 32/64-Bit Timer
4883
// 1
4884
#define TIMER_SYNC_SYNCWT1_NONE 0x00000000
// GPTM 32/64-Bit Timer 1 is not
4885
// affected
4886
#define TIMER_SYNC_SYNCWT1_TA 0x00004000
// A timeout event for Timer A of
4887
// GPTM 32/64-Bit Timer 1 is
4888
// triggered
4889
#define TIMER_SYNC_SYNCWT1_TB 0x00008000
// A timeout event for Timer B of
4890
// GPTM 32/64-Bit Timer 1 is
4891
// triggered
4892
#define TIMER_SYNC_SYNCWT1_TATB 0x0000C000
// A timeout event for both Timer A
4893
// and Timer B of GPTM 32/64-Bit
4894
// Timer 1 is triggered
4895
#define TIMER_SYNC_SYNCWT0_M 0x00003000
// Synchronize GPTM 32/64-Bit Timer
4896
// 0
4897
#define TIMER_SYNC_SYNCWT0_NONE 0x00000000
// GPTM 32/64-Bit Timer 0 is not
4898
// affected
4899
#define TIMER_SYNC_SYNCWT0_TA 0x00001000
// A timeout event for Timer A of
4900
// GPTM 32/64-Bit Timer 0 is
4901
// triggered
4902
#define TIMER_SYNC_SYNCWT0_TB 0x00002000
// A timeout event for Timer B of
4903
// GPTM 32/64-Bit Timer 0 is
4904
// triggered
4905
#define TIMER_SYNC_SYNCWT0_TATB 0x00003000
// A timeout event for both Timer A
4906
// and Timer B of GPTM 32/64-Bit
4907
// Timer 0 is triggered
4908
#define TIMER_SYNC_SYNCT5_M 0x00000C00
// Synchronize GPTM Timer 5
4909
#define TIMER_SYNC_SYNCT5_NONE 0x00000000
// GPTM5 is not affected
4910
#define TIMER_SYNC_SYNCT5_TA 0x00000400
// A timeout event for Timer A of
4911
// GPTM5 is triggered
4912
#define TIMER_SYNC_SYNCT5_TB 0x00000800
// A timeout event for Timer B of
4913
// GPTM5 is triggered
4914
#define TIMER_SYNC_SYNCT5_TATB 0x00000C00
// A timeout event for both Timer A
4915
// and Timer B of GPTM5 is
4916
// triggered
4917
#define TIMER_SYNC_SYNCT4_M 0x00000300
// Synchronize GPTM Timer 4
4918
#define TIMER_SYNC_SYNCT4_NONE 0x00000000
// GPTM4 is not affected
4919
#define TIMER_SYNC_SYNCT4_TA 0x00000100
// A timeout event for Timer A of
4920
// GPTM4 is triggered
4921
#define TIMER_SYNC_SYNCT4_TB 0x00000200
// A timeout event for Timer B of
4922
// GPTM4 is triggered
4923
#define TIMER_SYNC_SYNCT4_TATB 0x00000300
// A timeout event for both Timer A
4924
// and Timer B of GPTM4 is
4925
// triggered
4926
#define TIMER_SYNC_SYNCT3_M 0x000000C0
// Synchronize GPTM Timer 3
4927
#define TIMER_SYNC_SYNCT3_NONE 0x00000000
// GPTM3 is not affected
4928
#define TIMER_SYNC_SYNCT3_TA 0x00000040
// A timeout event for Timer A of
4929
// GPTM3 is triggered
4930
#define TIMER_SYNC_SYNCT3_TB 0x00000080
// A timeout event for Timer B of
4931
// GPTM3 is triggered
4932
#define TIMER_SYNC_SYNCT3_TATB 0x000000C0
// A timeout event for both Timer A
4933
// and Timer B of GPTM3 is
4934
// triggered
4935
#define TIMER_SYNC_SYNCT2_M 0x00000030
// Synchronize GPTM Timer 2
4936
#define TIMER_SYNC_SYNCT2_NONE 0x00000000
// GPTM2 is not affected
4937
#define TIMER_SYNC_SYNCT2_TA 0x00000010
// A timeout event for Timer A of
4938
// GPTM2 is triggered
4939
#define TIMER_SYNC_SYNCT2_TB 0x00000020
// A timeout event for Timer B of
4940
// GPTM2 is triggered
4941
#define TIMER_SYNC_SYNCT2_TATB 0x00000030
// A timeout event for both Timer A
4942
// and Timer B of GPTM2 is
4943
// triggered
4944
#define TIMER_SYNC_SYNCT1_M 0x0000000C
// Synchronize GPTM Timer 1
4945
#define TIMER_SYNC_SYNCT1_NONE 0x00000000
// GPTM1 is not affected
4946
#define TIMER_SYNC_SYNCT1_TA 0x00000004
// A timeout event for Timer A of
4947
// GPTM1 is triggered
4948
#define TIMER_SYNC_SYNCT1_TB 0x00000008
// A timeout event for Timer B of
4949
// GPTM1 is triggered
4950
#define TIMER_SYNC_SYNCT1_TATB 0x0000000C
// A timeout event for both Timer A
4951
// and Timer B of GPTM1 is
4952
// triggered
4953
#define TIMER_SYNC_SYNCT0_M 0x00000003
// Synchronize GPTM Timer 0
4954
#define TIMER_SYNC_SYNCT0_NONE 0x00000000
// GPTM0 is not affected
4955
#define TIMER_SYNC_SYNCT0_TA 0x00000001
// A timeout event for Timer A of
4956
// GPTM0 is triggered
4957
#define TIMER_SYNC_SYNCT0_TB 0x00000002
// A timeout event for Timer B of
4958
// GPTM0 is triggered
4959
#define TIMER_SYNC_SYNCT0_TATB 0x00000003
// A timeout event for both Timer A
4960
// and Timer B of GPTM0 is
4961
// triggered
4962
4963
//*****************************************************************************
4964
//
4965
// The following are defines for the bit fields in the TIMER_O_IMR register.
4966
//
4967
//*****************************************************************************
4968
#define TIMER_IMR_WUEIM 0x00010000
// 32/64-Bit Wide GPTM Write Update
4969
// Error Interrupt Mask
4970
#define TIMER_IMR_TBMIM 0x00000800
// GPTM Timer B Match Interrupt
4971
// Mask
4972
#define TIMER_IMR_CBEIM 0x00000400
// GPTM Timer B Capture Mode Event
4973
// Interrupt Mask
4974
#define TIMER_IMR_CBMIM 0x00000200
// GPTM Timer B Capture Mode Match
4975
// Interrupt Mask
4976
#define TIMER_IMR_TBTOIM 0x00000100
// GPTM Timer B Time-Out Interrupt
4977
// Mask
4978
#define TIMER_IMR_TAMIM 0x00000010
// GPTM Timer A Match Interrupt
4979
// Mask
4980
#define TIMER_IMR_RTCIM 0x00000008
// GPTM RTC Interrupt Mask
4981
#define TIMER_IMR_CAEIM 0x00000004
// GPTM Timer A Capture Mode Event
4982
// Interrupt Mask
4983
#define TIMER_IMR_CAMIM 0x00000002
// GPTM Timer A Capture Mode Match
4984
// Interrupt Mask
4985
#define TIMER_IMR_TATOIM 0x00000001
// GPTM Timer A Time-Out Interrupt
4986
// Mask
4987
4988
//*****************************************************************************
4989
//
4990
// The following are defines for the bit fields in the TIMER_O_RIS register.
4991
//
4992
//*****************************************************************************
4993
#define TIMER_RIS_WUERIS 0x00010000
// 32/64-Bit Wide GPTM Write Update
4994
// Error Raw Interrupt Status
4995
#define TIMER_RIS_TBMRIS 0x00000800
// GPTM Timer B Match Raw Interrupt
4996
#define TIMER_RIS_CBERIS 0x00000400
// GPTM Timer B Capture Mode Event
4997
// Raw Interrupt
4998
#define TIMER_RIS_CBMRIS 0x00000200
// GPTM Timer B Capture Mode Match
4999
// Raw Interrupt
5000
#define TIMER_RIS_TBTORIS 0x00000100
// GPTM Timer B Time-Out Raw
5001
// Interrupt
5002
#define TIMER_RIS_TAMRIS 0x00000010
// GPTM Timer A Match Raw Interrupt
5003
#define TIMER_RIS_RTCRIS 0x00000008
// GPTM RTC Raw Interrupt
5004
#define TIMER_RIS_CAERIS 0x00000004
// GPTM Timer A Capture Mode Event
5005
// Raw Interrupt
5006
#define TIMER_RIS_CAMRIS 0x00000002
// GPTM Timer A Capture Mode Match
5007
// Raw Interrupt
5008
#define TIMER_RIS_TATORIS 0x00000001
// GPTM Timer A Time-Out Raw
5009
// Interrupt
5010
5011
//*****************************************************************************
5012
//
5013
// The following are defines for the bit fields in the TIMER_O_MIS register.
5014
//
5015
//*****************************************************************************
5016
#define TIMER_MIS_WUEMIS 0x00010000
// 32/64-Bit Wide GPTM Write Update
5017
// Error Masked Interrupt Status
5018
#define TIMER_MIS_TBMMIS 0x00000800
// GPTM Timer B Match Masked
5019
// Interrupt
5020
#define TIMER_MIS_CBEMIS 0x00000400
// GPTM Timer B Capture Mode Event
5021
// Masked Interrupt
5022
#define TIMER_MIS_CBMMIS 0x00000200
// GPTM Timer B Capture Mode Match
5023
// Masked Interrupt
5024
#define TIMER_MIS_TBTOMIS 0x00000100
// GPTM Timer B Time-Out Masked
5025
// Interrupt
5026
#define TIMER_MIS_TAMMIS 0x00000010
// GPTM Timer A Match Masked
5027
// Interrupt
5028
#define TIMER_MIS_RTCMIS 0x00000008
// GPTM RTC Masked Interrupt
5029
#define TIMER_MIS_CAEMIS 0x00000004
// GPTM Timer A Capture Mode Event
5030
// Masked Interrupt
5031
#define TIMER_MIS_CAMMIS 0x00000002
// GPTM Timer A Capture Mode Match
5032
// Masked Interrupt
5033
#define TIMER_MIS_TATOMIS 0x00000001
// GPTM Timer A Time-Out Masked
5034
// Interrupt
5035
5036
//*****************************************************************************
5037
//
5038
// The following are defines for the bit fields in the TIMER_O_ICR register.
5039
//
5040
//*****************************************************************************
5041
#define TIMER_ICR_WUECINT 0x00010000
// 32/64-Bit Wide GPTM Write Update
5042
// Error Interrupt Clear
5043
#define TIMER_ICR_TBMCINT 0x00000800
// GPTM Timer B Match Interrupt
5044
// Clear
5045
#define TIMER_ICR_CBECINT 0x00000400
// GPTM Timer B Capture Mode Event
5046
// Interrupt Clear
5047
#define TIMER_ICR_CBMCINT 0x00000200
// GPTM Timer B Capture Mode Match
5048
// Interrupt Clear
5049
#define TIMER_ICR_TBTOCINT 0x00000100
// GPTM Timer B Time-Out Interrupt
5050
// Clear
5051
#define TIMER_ICR_TAMCINT 0x00000010
// GPTM Timer A Match Interrupt
5052
// Clear
5053
#define TIMER_ICR_RTCCINT 0x00000008
// GPTM RTC Interrupt Clear
5054
#define TIMER_ICR_CAECINT 0x00000004
// GPTM Timer A Capture Mode Event
5055
// Interrupt Clear
5056
#define TIMER_ICR_CAMCINT 0x00000002
// GPTM Timer A Capture Mode Match
5057
// Interrupt Clear
5058
#define TIMER_ICR_TATOCINT 0x00000001
// GPTM Timer A Time-Out Raw
5059
// Interrupt
5060
5061
//*****************************************************************************
5062
//
5063
// The following are defines for the bit fields in the TIMER_O_TAILR register.
5064
//
5065
//*****************************************************************************
5066
#define TIMER_TAILR_M 0xFFFFFFFF
// GPTM Timer A Interval Load
5067
// Register
5068
#define TIMER_TAILR_S 0
5069
5070
//*****************************************************************************
5071
//
5072
// The following are defines for the bit fields in the TIMER_O_TBILR register.
5073
//
5074
//*****************************************************************************
5075
#define TIMER_TBILR_M 0xFFFFFFFF
// GPTM Timer B Interval Load
5076
// Register
5077
#define TIMER_TBILR_S 0
5078
5079
//*****************************************************************************
5080
//
5081
// The following are defines for the bit fields in the TIMER_O_TAMATCHR
5082
// register.
5083
//
5084
//*****************************************************************************
5085
#define TIMER_TAMATCHR_TAMR_M 0xFFFFFFFF
// GPTM Timer A Match Register
5086
#define TIMER_TAMATCHR_TAMR_S 0
5087
5088
//*****************************************************************************
5089
//
5090
// The following are defines for the bit fields in the TIMER_O_TBMATCHR
5091
// register.
5092
//
5093
//*****************************************************************************
5094
#define TIMER_TBMATCHR_TBMR_M 0xFFFFFFFF
// GPTM Timer B Match Register
5095
#define TIMER_TBMATCHR_TBMR_S 0
5096
5097
//*****************************************************************************
5098
//
5099
// The following are defines for the bit fields in the TIMER_O_TAPR register.
5100
//
5101
//*****************************************************************************
5102
#define TIMER_TAPR_TAPSRH_M 0x0000FF00
// GPTM Timer A Prescale High Byte
5103
#define TIMER_TAPR_TAPSR_M 0x000000FF
// GPTM Timer A Prescale
5104
#define TIMER_TAPR_TAPSRH_S 8
5105
#define TIMER_TAPR_TAPSR_S 0
5106
5107
//*****************************************************************************
5108
//
5109
// The following are defines for the bit fields in the TIMER_O_TBPR register.
5110
//
5111
//*****************************************************************************
5112
#define TIMER_TBPR_TBPSRH_M 0x0000FF00
// GPTM Timer B Prescale High Byte
5113
#define TIMER_TBPR_TBPSR_M 0x000000FF
// GPTM Timer B Prescale
5114
#define TIMER_TBPR_TBPSRH_S 8
5115
#define TIMER_TBPR_TBPSR_S 0
5116
5117
//*****************************************************************************
5118
//
5119
// The following are defines for the bit fields in the TIMER_O_TAPMR register.
5120
//
5121
//*****************************************************************************
5122
#define TIMER_TAPMR_TAPSMRH_M 0x0000FF00
// GPTM Timer A Prescale Match High
5123
// Byte
5124
#define TIMER_TAPMR_TAPSMR_M 0x000000FF
// GPTM TimerA Prescale Match
5125
#define TIMER_TAPMR_TAPSMRH_S 8
5126
#define TIMER_TAPMR_TAPSMR_S 0
5127
5128
//*****************************************************************************
5129
//
5130
// The following are defines for the bit fields in the TIMER_O_TBPMR register.
5131
//
5132
//*****************************************************************************
5133
#define TIMER_TBPMR_TBPSMRH_M 0x0000FF00
// GPTM Timer B Prescale Match High
5134
// Byte
5135
#define TIMER_TBPMR_TBPSMR_M 0x000000FF
// GPTM TimerB Prescale Match
5136
#define TIMER_TBPMR_TBPSMRH_S 8
5137
#define TIMER_TBPMR_TBPSMR_S 0
5138
5139
//*****************************************************************************
5140
//
5141
// The following are defines for the bit fields in the TIMER_O_TAR register.
5142
//
5143
//*****************************************************************************
5144
#define TIMER_TAR_M 0xFFFFFFFF
// GPTM Timer A Register
5145
#define TIMER_TAR_S 0
5146
5147
//*****************************************************************************
5148
//
5149
// The following are defines for the bit fields in the TIMER_O_TBR register.
5150
//
5151
//*****************************************************************************
5152
#define TIMER_TBR_M 0xFFFFFFFF
// GPTM Timer B Register
5153
#define TIMER_TBR_S 0
5154
5155
//*****************************************************************************
5156
//
5157
// The following are defines for the bit fields in the TIMER_O_TAV register.
5158
//
5159
//*****************************************************************************
5160
#define TIMER_TAV_M 0xFFFFFFFF
// GPTM Timer A Value
5161
#define TIMER_TAV_S 0
5162
5163
//*****************************************************************************
5164
//
5165
// The following are defines for the bit fields in the TIMER_O_TBV register.
5166
//
5167
//*****************************************************************************
5168
#define TIMER_TBV_M 0xFFFFFFFF
// GPTM Timer B Value
5169
#define TIMER_TBV_S 0
5170
5171
//*****************************************************************************
5172
//
5173
// The following are defines for the bit fields in the TIMER_O_RTCPD register.
5174
//
5175
//*****************************************************************************
5176
#define TIMER_RTCPD_RTCPD_M 0x0000FFFF
// RTC Predivide Counter Value
5177
#define TIMER_RTCPD_RTCPD_S 0
5178
5179
//*****************************************************************************
5180
//
5181
// The following are defines for the bit fields in the TIMER_O_TAPS register.
5182
//
5183
//*****************************************************************************
5184
#define TIMER_TAPS_PSS_M 0x0000FFFF
// GPTM Timer A Prescaler Snapshot
5185
#define TIMER_TAPS_PSS_S 0
5186
5187
//*****************************************************************************
5188
//
5189
// The following are defines for the bit fields in the TIMER_O_TBPS register.
5190
//
5191
//*****************************************************************************
5192
#define TIMER_TBPS_PSS_M 0x0000FFFF
// GPTM Timer A Prescaler Value
5193
#define TIMER_TBPS_PSS_S 0
5194
5195
//*****************************************************************************
5196
//
5197
// The following are defines for the bit fields in the TIMER_O_TAPV register.
5198
//
5199
//*****************************************************************************
5200
#define TIMER_TAPV_PSV_M 0x0000FFFF
// GPTM Timer A Prescaler Value
5201
#define TIMER_TAPV_PSV_S 0
5202
5203
//*****************************************************************************
5204
//
5205
// The following are defines for the bit fields in the TIMER_O_TBPV register.
5206
//
5207
//*****************************************************************************
5208
#define TIMER_TBPV_PSV_M 0x0000FFFF
// GPTM Timer B Prescaler Value
5209
#define TIMER_TBPV_PSV_S 0
5210
5211
//*****************************************************************************
5212
//
5213
// The following are defines for the bit fields in the TIMER_O_PP register.
5214
//
5215
//*****************************************************************************
5216
#define TIMER_PP_SIZE_M 0x0000000F
// Count Size
5217
#define TIMER_PP_SIZE_16 0x00000000
// Timer A and Timer B counters are
5218
// 16 bits each with an 8-bit
5219
// prescale counter
5220
#define TIMER_PP_SIZE_32 0x00000001
// Timer A and Timer B counters are
5221
// 32 bits each with a 16-bit
5222
// prescale counter
5223
5224
//*****************************************************************************
5225
//
5226
// The following are defines for the bit fields in the ADC_O_ACTSS register.
5227
//
5228
//*****************************************************************************
5229
#define ADC_ACTSS_BUSY 0x00010000
// ADC Busy
5230
#define ADC_ACTSS_ASEN3 0x00000008
// ADC SS3 Enable
5231
#define ADC_ACTSS_ASEN2 0x00000004
// ADC SS2 Enable
5232
#define ADC_ACTSS_ASEN1 0x00000002
// ADC SS1 Enable
5233
#define ADC_ACTSS_ASEN0 0x00000001
// ADC SS0 Enable
5234
5235
//*****************************************************************************
5236
//
5237
// The following are defines for the bit fields in the ADC_O_RIS register.
5238
//
5239
//*****************************************************************************
5240
#define ADC_RIS_INRDC 0x00010000
// Digital Comparator Raw Interrupt
5241
// Status
5242
#define ADC_RIS_INR3 0x00000008
// SS3 Raw Interrupt Status
5243
#define ADC_RIS_INR2 0x00000004
// SS2 Raw Interrupt Status
5244
#define ADC_RIS_INR1 0x00000002
// SS1 Raw Interrupt Status
5245
#define ADC_RIS_INR0 0x00000001
// SS0 Raw Interrupt Status
5246
5247
//*****************************************************************************
5248
//
5249
// The following are defines for the bit fields in the ADC_O_IM register.
5250
//
5251
//*****************************************************************************
5252
#define ADC_IM_DCONSS3 0x00080000
// Digital Comparator Interrupt on
5253
// SS3
5254
#define ADC_IM_DCONSS2 0x00040000
// Digital Comparator Interrupt on
5255
// SS2
5256
#define ADC_IM_DCONSS1 0x00020000
// Digital Comparator Interrupt on
5257
// SS1
5258
#define ADC_IM_DCONSS0 0x00010000
// Digital Comparator Interrupt on
5259
// SS0
5260
#define ADC_IM_MASK3 0x00000008
// SS3 Interrupt Mask
5261
#define ADC_IM_MASK2 0x00000004
// SS2 Interrupt Mask
5262
#define ADC_IM_MASK1 0x00000002
// SS1 Interrupt Mask
5263
#define ADC_IM_MASK0 0x00000001
// SS0 Interrupt Mask
5264
5265
//*****************************************************************************
5266
//
5267
// The following are defines for the bit fields in the ADC_O_ISC register.
5268
//
5269
//*****************************************************************************
5270
#define ADC_ISC_DCINSS3 0x00080000
// Digital Comparator Interrupt
5271
// Status on SS3
5272
#define ADC_ISC_DCINSS2 0x00040000
// Digital Comparator Interrupt
5273
// Status on SS2
5274
#define ADC_ISC_DCINSS1 0x00020000
// Digital Comparator Interrupt
5275
// Status on SS1
5276
#define ADC_ISC_DCINSS0 0x00010000
// Digital Comparator Interrupt
5277
// Status on SS0
5278
#define ADC_ISC_IN3 0x00000008
// SS3 Interrupt Status and Clear
5279
#define ADC_ISC_IN2 0x00000004
// SS2 Interrupt Status and Clear
5280
#define ADC_ISC_IN1 0x00000002
// SS1 Interrupt Status and Clear
5281
#define ADC_ISC_IN0 0x00000001
// SS0 Interrupt Status and Clear
5282
5283
//*****************************************************************************
5284
//
5285
// The following are defines for the bit fields in the ADC_O_OSTAT register.
5286
//
5287
//*****************************************************************************
5288
#define ADC_OSTAT_OV3 0x00000008
// SS3 FIFO Overflow
5289
#define ADC_OSTAT_OV2 0x00000004
// SS2 FIFO Overflow
5290
#define ADC_OSTAT_OV1 0x00000002
// SS1 FIFO Overflow
5291
#define ADC_OSTAT_OV0 0x00000001
// SS0 FIFO Overflow
5292
5293
//*****************************************************************************
5294
//
5295
// The following are defines for the bit fields in the ADC_O_EMUX register.
5296
//
5297
//*****************************************************************************
5298
#define ADC_EMUX_EM3_M 0x0000F000
// SS3 Trigger Select
5299
#define ADC_EMUX_EM3_PROCESSOR 0x00000000
// Processor (default)
5300
#define ADC_EMUX_EM3_COMP0 0x00001000
// Analog Comparator 0
5301
#define ADC_EMUX_EM3_COMP1 0x00002000
// Analog Comparator 1
5302
#define ADC_EMUX_EM3_EXTERNAL 0x00004000
// External (GPIO Pins)
5303
#define ADC_EMUX_EM3_TIMER 0x00005000
// Timer
5304
#define ADC_EMUX_EM3_PWM0 0x00006000
// PWM generator 0
5305
#define ADC_EMUX_EM3_PWM1 0x00007000
// PWM generator 1
5306
#define ADC_EMUX_EM3_PWM2 0x00008000
// PWM generator 2
5307
#define ADC_EMUX_EM3_PWM3 0x00009000
// PWM generator 3
5308
#define ADC_EMUX_EM3_ALWAYS 0x0000F000
// Always (continuously sample)
5309
#define ADC_EMUX_EM2_M 0x00000F00
// SS2 Trigger Select
5310
#define ADC_EMUX_EM2_PROCESSOR 0x00000000
// Processor (default)
5311
#define ADC_EMUX_EM2_COMP0 0x00000100
// Analog Comparator 0
5312
#define ADC_EMUX_EM2_COMP1 0x00000200
// Analog Comparator 1
5313
#define ADC_EMUX_EM2_EXTERNAL 0x00000400
// External (GPIO Pins)
5314
#define ADC_EMUX_EM2_TIMER 0x00000500
// Timer
5315
#define ADC_EMUX_EM2_PWM0 0x00000600
// PWM generator 0
5316
#define ADC_EMUX_EM2_PWM1 0x00000700
// PWM generator 1
5317
#define ADC_EMUX_EM2_PWM2 0x00000800
// PWM generator 2
5318
#define ADC_EMUX_EM2_PWM3 0x00000900
// PWM generator 3
5319
#define ADC_EMUX_EM2_ALWAYS 0x00000F00
// Always (continuously sample)
5320
#define ADC_EMUX_EM1_M 0x000000F0
// SS1 Trigger Select
5321
#define ADC_EMUX_EM1_PROCESSOR 0x00000000
// Processor (default)
5322
#define ADC_EMUX_EM1_COMP0 0x00000010
// Analog Comparator 0
5323
#define ADC_EMUX_EM1_COMP1 0x00000020
// Analog Comparator 1
5324
#define ADC_EMUX_EM1_EXTERNAL 0x00000040
// External (GPIO Pins)
5325
#define ADC_EMUX_EM1_TIMER 0x00000050
// Timer
5326
#define ADC_EMUX_EM1_PWM0 0x00000060
// PWM generator 0
5327
#define ADC_EMUX_EM1_PWM1 0x00000070
// PWM generator 1
5328
#define ADC_EMUX_EM1_PWM2 0x00000080
// PWM generator 2
5329
#define ADC_EMUX_EM1_PWM3 0x00000090
// PWM generator 3
5330
#define ADC_EMUX_EM1_ALWAYS 0x000000F0
// Always (continuously sample)
5331
#define ADC_EMUX_EM0_M 0x0000000F
// SS0 Trigger Select
5332
#define ADC_EMUX_EM0_PROCESSOR 0x00000000
// Processor (default)
5333
#define ADC_EMUX_EM0_COMP0 0x00000001
// Analog Comparator 0
5334
#define ADC_EMUX_EM0_COMP1 0x00000002
// Analog Comparator 1
5335
#define ADC_EMUX_EM0_EXTERNAL 0x00000004
// External (GPIO Pins)
5336
#define ADC_EMUX_EM0_TIMER 0x00000005
// Timer
5337
#define ADC_EMUX_EM0_PWM0 0x00000006
// PWM generator 0
5338
#define ADC_EMUX_EM0_PWM1 0x00000007
// PWM generator 1
5339
#define ADC_EMUX_EM0_PWM2 0x00000008
// PWM generator 2
5340
#define ADC_EMUX_EM0_PWM3 0x00000009
// PWM generator 3
5341
#define ADC_EMUX_EM0_ALWAYS 0x0000000F
// Always (continuously sample)
5342
5343
//*****************************************************************************
5344
//
5345
// The following are defines for the bit fields in the ADC_O_USTAT register.
5346
//
5347
//*****************************************************************************
5348
#define ADC_USTAT_UV3 0x00000008
// SS3 FIFO Underflow
5349
#define ADC_USTAT_UV2 0x00000004
// SS2 FIFO Underflow
5350
#define ADC_USTAT_UV1 0x00000002
// SS1 FIFO Underflow
5351
#define ADC_USTAT_UV0 0x00000001
// SS0 FIFO Underflow
5352
5353
//*****************************************************************************
5354
//
5355
// The following are defines for the bit fields in the ADC_O_TSSEL register.
5356
//
5357
//*****************************************************************************
5358
#define ADC_TSSEL_PS3_M 0x30000000
// Generator 3 PWM Module Trigger
5359
// Select
5360
#define ADC_TSSEL_PS3_0 0x00000000
// Use Generator 3 (and its
5361
// trigger) in PWM module 0
5362
#define ADC_TSSEL_PS3_1 0x10000000
// Use Generator 3 (and its
5363
// trigger) in PWM module 1
5364
#define ADC_TSSEL_PS2_M 0x00300000
// Generator 2 PWM Module Trigger
5365
// Select
5366
#define ADC_TSSEL_PS2_0 0x00000000
// Use Generator 2 (and its
5367
// trigger) in PWM module 0
5368
#define ADC_TSSEL_PS2_1 0x00100000
// Use Generator 2 (and its
5369
// trigger) in PWM module 1
5370
#define ADC_TSSEL_PS1_M 0x00003000
// Generator 1 PWM Module Trigger
5371
// Select
5372
#define ADC_TSSEL_PS1_0 0x00000000
// Use Generator 1 (and its
5373
// trigger) in PWM module 0
5374
#define ADC_TSSEL_PS1_1 0x00001000
// Use Generator 1 (and its
5375
// trigger) in PWM module 1
5376
#define ADC_TSSEL_PS0_M 0x00000030
// Generator 0 PWM Module Trigger
5377
// Select
5378
#define ADC_TSSEL_PS0_0 0x00000000
// Use Generator 0 (and its
5379
// trigger) in PWM module 0
5380
#define ADC_TSSEL_PS0_1 0x00000010
// Use Generator 0 (and its
5381
// trigger) in PWM module 1
5382
5383
//*****************************************************************************
5384
//
5385
// The following are defines for the bit fields in the ADC_O_SSPRI register.
5386
//
5387
//*****************************************************************************
5388
#define ADC_SSPRI_SS3_M 0x00003000
// SS3 Priority
5389
#define ADC_SSPRI_SS2_M 0x00000300
// SS2 Priority
5390
#define ADC_SSPRI_SS1_M 0x00000030
// SS1 Priority
5391
#define ADC_SSPRI_SS0_M 0x00000003
// SS0 Priority
5392
5393
//*****************************************************************************
5394
//
5395
// The following are defines for the bit fields in the ADC_O_SPC register.
5396
//
5397
//*****************************************************************************
5398
#define ADC_SPC_PHASE_M 0x0000000F
// Phase Difference
5399
#define ADC_SPC_PHASE_0 0x00000000
// ADC sample lags by 0.0
5400
#define ADC_SPC_PHASE_22_5 0x00000001
// ADC sample lags by 22.5
5401
#define ADC_SPC_PHASE_45 0x00000002
// ADC sample lags by 45.0
5402
#define ADC_SPC_PHASE_67_5 0x00000003
// ADC sample lags by 67.5
5403
#define ADC_SPC_PHASE_90 0x00000004
// ADC sample lags by 90.0
5404
#define ADC_SPC_PHASE_112_5 0x00000005
// ADC sample lags by 112.5
5405
#define ADC_SPC_PHASE_135 0x00000006
// ADC sample lags by 135.0
5406
#define ADC_SPC_PHASE_157_5 0x00000007
// ADC sample lags by 157.5
5407
#define ADC_SPC_PHASE_180 0x00000008
// ADC sample lags by 180.0
5408
#define ADC_SPC_PHASE_202_5 0x00000009
// ADC sample lags by 202.5
5409
#define ADC_SPC_PHASE_225 0x0000000A
// ADC sample lags by 225.0
5410
#define ADC_SPC_PHASE_247_5 0x0000000B
// ADC sample lags by 247.5
5411
#define ADC_SPC_PHASE_270 0x0000000C
// ADC sample lags by 270.0
5412
#define ADC_SPC_PHASE_292_5 0x0000000D
// ADC sample lags by 292.5
5413
#define ADC_SPC_PHASE_315 0x0000000E
// ADC sample lags by 315.0
5414
#define ADC_SPC_PHASE_337_5 0x0000000F
// ADC sample lags by 337.5
5415
5416
//*****************************************************************************
5417
//
5418
// The following are defines for the bit fields in the ADC_O_PSSI register.
5419
//
5420
//*****************************************************************************
5421
#define ADC_PSSI_GSYNC 0x80000000
// Global Synchronize
5422
#define ADC_PSSI_SYNCWAIT 0x08000000
// Synchronize Wait
5423
#define ADC_PSSI_SS3 0x00000008
// SS3 Initiate
5424
#define ADC_PSSI_SS2 0x00000004
// SS2 Initiate
5425
#define ADC_PSSI_SS1 0x00000002
// SS1 Initiate
5426
#define ADC_PSSI_SS0 0x00000001
// SS0 Initiate
5427
5428
//*****************************************************************************
5429
//
5430
// The following are defines for the bit fields in the ADC_O_SAC register.
5431
//
5432
//*****************************************************************************
5433
#define ADC_SAC_AVG_M 0x00000007
// Hardware Averaging Control
5434
#define ADC_SAC_AVG_OFF 0x00000000
// No hardware oversampling
5435
#define ADC_SAC_AVG_2X 0x00000001
// 2x hardware oversampling
5436
#define ADC_SAC_AVG_4X 0x00000002
// 4x hardware oversampling
5437
#define ADC_SAC_AVG_8X 0x00000003
// 8x hardware oversampling
5438
#define ADC_SAC_AVG_16X 0x00000004
// 16x hardware oversampling
5439
#define ADC_SAC_AVG_32X 0x00000005
// 32x hardware oversampling
5440
#define ADC_SAC_AVG_64X 0x00000006
// 64x hardware oversampling
5441
5442
//*****************************************************************************
5443
//
5444
// The following are defines for the bit fields in the ADC_O_DCISC register.
5445
//
5446
//*****************************************************************************
5447
#define ADC_DCISC_DCINT7 0x00000080
// Digital Comparator 7 Interrupt
5448
// Status and Clear
5449
#define ADC_DCISC_DCINT6 0x00000040
// Digital Comparator 6 Interrupt
5450
// Status and Clear
5451
#define ADC_DCISC_DCINT5 0x00000020
// Digital Comparator 5 Interrupt
5452
// Status and Clear
5453
#define ADC_DCISC_DCINT4 0x00000010
// Digital Comparator 4 Interrupt
5454
// Status and Clear
5455
#define ADC_DCISC_DCINT3 0x00000008
// Digital Comparator 3 Interrupt
5456
// Status and Clear
5457
#define ADC_DCISC_DCINT2 0x00000004
// Digital Comparator 2 Interrupt
5458
// Status and Clear
5459
#define ADC_DCISC_DCINT1 0x00000002
// Digital Comparator 1 Interrupt
5460
// Status and Clear
5461
#define ADC_DCISC_DCINT0 0x00000001
// Digital Comparator 0 Interrupt
5462
// Status and Clear
5463
5464
//*****************************************************************************
5465
//
5466
// The following are defines for the bit fields in the ADC_O_CTL register.
5467
//
5468
//*****************************************************************************
5469
#define ADC_CTL_DITHER 0x00000040
// Dither Mode Enable
5470
#define ADC_CTL_VREF_M 0x00000001
// Voltage Reference Select
5471
#define ADC_CTL_VREF_INTERNAL 0x00000000
// VDDA and GNDA are the voltage
5472
// references
5473
5474
//*****************************************************************************
5475
//
5476
// The following are defines for the bit fields in the ADC_O_SSMUX0 register.
5477
//
5478
//*****************************************************************************
5479
#define ADC_SSMUX0_MUX7_M 0xF0000000
// 8th Sample Input Select
5480
#define ADC_SSMUX0_MUX6_M 0x0F000000
// 7th Sample Input Select
5481
#define ADC_SSMUX0_MUX5_M 0x00F00000
// 6th Sample Input Select
5482
#define ADC_SSMUX0_MUX4_M 0x000F0000
// 5th Sample Input Select
5483
#define ADC_SSMUX0_MUX3_M 0x0000F000
// 4th Sample Input Select
5484
#define ADC_SSMUX0_MUX2_M 0x00000F00
// 3rd Sample Input Select
5485
#define ADC_SSMUX0_MUX1_M 0x000000F0
// 2nd Sample Input Select
5486
#define ADC_SSMUX0_MUX0_M 0x0000000F
// 1st Sample Input Select
5487
#define ADC_SSMUX0_MUX7_S 28
5488
#define ADC_SSMUX0_MUX6_S 24
5489
#define ADC_SSMUX0_MUX5_S 20
5490
#define ADC_SSMUX0_MUX4_S 16
5491
#define ADC_SSMUX0_MUX3_S 12
5492
#define ADC_SSMUX0_MUX2_S 8
5493
#define ADC_SSMUX0_MUX1_S 4
5494
#define ADC_SSMUX0_MUX0_S 0
5495
5496
//*****************************************************************************
5497
//
5498
// The following are defines for the bit fields in the ADC_O_SSCTL0 register.
5499
//
5500
//*****************************************************************************
5501
#define ADC_SSCTL0_TS7 0x80000000
// 8th Sample Temp Sensor Select
5502
#define ADC_SSCTL0_IE7 0x40000000
// 8th Sample Interrupt Enable
5503
#define ADC_SSCTL0_END7 0x20000000
// 8th Sample is End of Sequence
5504
#define ADC_SSCTL0_D7 0x10000000
// 8th Sample Differential Input
5505
// Select
5506
#define ADC_SSCTL0_TS6 0x08000000
// 7th Sample Temp Sensor Select
5507
#define ADC_SSCTL0_IE6 0x04000000
// 7th Sample Interrupt Enable
5508
#define ADC_SSCTL0_END6 0x02000000
// 7th Sample is End of Sequence
5509
#define ADC_SSCTL0_D6 0x01000000
// 7th Sample Differential Input
5510
// Select
5511
#define ADC_SSCTL0_TS5 0x00800000
// 6th Sample Temp Sensor Select
5512
#define ADC_SSCTL0_IE5 0x00400000
// 6th Sample Interrupt Enable
5513
#define ADC_SSCTL0_END5 0x00200000
// 6th Sample is End of Sequence
5514
#define ADC_SSCTL0_D5 0x00100000
// 6th Sample Differential Input
5515
// Select
5516
#define ADC_SSCTL0_TS4 0x00080000
// 5th Sample Temp Sensor Select
5517
#define ADC_SSCTL0_IE4 0x00040000
// 5th Sample Interrupt Enable
5518
#define ADC_SSCTL0_END4 0x00020000
// 5th Sample is End of Sequence
5519
#define ADC_SSCTL0_D4 0x00010000
// 5th Sample Differential Input
5520
// Select
5521
#define ADC_SSCTL0_TS3 0x00008000
// 4th Sample Temp Sensor Select
5522
#define ADC_SSCTL0_IE3 0x00004000
// 4th Sample Interrupt Enable
5523
#define ADC_SSCTL0_END3 0x00002000
// 4th Sample is End of Sequence
5524
#define ADC_SSCTL0_D3 0x00001000
// 4th Sample Differential Input
5525
// Select
5526
#define ADC_SSCTL0_TS2 0x00000800
// 3rd Sample Temp Sensor Select
5527
#define ADC_SSCTL0_IE2 0x00000400
// 3rd Sample Interrupt Enable
5528
#define ADC_SSCTL0_END2 0x00000200
// 3rd Sample is End of Sequence
5529
#define ADC_SSCTL0_D2 0x00000100
// 3rd Sample Differential Input
5530
// Select
5531
#define ADC_SSCTL0_TS1 0x00000080
// 2nd Sample Temp Sensor Select
5532
#define ADC_SSCTL0_IE1 0x00000040
// 2nd Sample Interrupt Enable
5533
#define ADC_SSCTL0_END1 0x00000020
// 2nd Sample is End of Sequence
5534
#define ADC_SSCTL0_D1 0x00000010
// 2nd Sample Differential Input
5535
// Select
5536
#define ADC_SSCTL0_TS0 0x00000008
// 1st Sample Temp Sensor Select
5537
#define ADC_SSCTL0_IE0 0x00000004
// 1st Sample Interrupt Enable
5538
#define ADC_SSCTL0_END0 0x00000002
// 1st Sample is End of Sequence
5539
#define ADC_SSCTL0_D0 0x00000001
// 1st Sample Differential Input
5540
// Select
5541
5542
//*****************************************************************************
5543
//
5544
// The following are defines for the bit fields in the ADC_O_SSFIFO0 register.
5545
//
5546
//*****************************************************************************
5547
#define ADC_SSFIFO0_DATA_M 0x00000FFF
// Conversion Result Data
5548
#define ADC_SSFIFO0_DATA_S 0
5549
5550
//*****************************************************************************
5551
//
5552
// The following are defines for the bit fields in the ADC_O_SSFSTAT0 register.
5553
//
5554
//*****************************************************************************
5555
#define ADC_SSFSTAT0_FULL 0x00001000
// FIFO Full
5556
#define ADC_SSFSTAT0_EMPTY 0x00000100
// FIFO Empty
5557
#define ADC_SSFSTAT0_HPTR_M 0x000000F0
// FIFO Head Pointer
5558
#define ADC_SSFSTAT0_TPTR_M 0x0000000F
// FIFO Tail Pointer
5559
#define ADC_SSFSTAT0_HPTR_S 4
5560
#define ADC_SSFSTAT0_TPTR_S 0
5561
5562
//*****************************************************************************
5563
//
5564
// The following are defines for the bit fields in the ADC_O_SSOP0 register.
5565
//
5566
//*****************************************************************************
5567
#define ADC_SSOP0_S7DCOP 0x10000000
// Sample 7 Digital Comparator
5568
// Operation
5569
#define ADC_SSOP0_S6DCOP 0x01000000
// Sample 6 Digital Comparator
5570
// Operation
5571
#define ADC_SSOP0_S5DCOP 0x00100000
// Sample 5 Digital Comparator
5572
// Operation
5573
#define ADC_SSOP0_S4DCOP 0x00010000
// Sample 4 Digital Comparator
5574
// Operation
5575
#define ADC_SSOP0_S3DCOP 0x00001000
// Sample 3 Digital Comparator
5576
// Operation
5577
#define ADC_SSOP0_S2DCOP 0x00000100
// Sample 2 Digital Comparator
5578
// Operation
5579
#define ADC_SSOP0_S1DCOP 0x00000010
// Sample 1 Digital Comparator
5580
// Operation
5581
#define ADC_SSOP0_S0DCOP 0x00000001
// Sample 0 Digital Comparator
5582
// Operation
5583
5584
//*****************************************************************************
5585
//
5586
// The following are defines for the bit fields in the ADC_O_SSDC0 register.
5587
//
5588
//*****************************************************************************
5589
#define ADC_SSDC0_S7DCSEL_M 0xF0000000
// Sample 7 Digital Comparator
5590
// Select
5591
#define ADC_SSDC0_S6DCSEL_M 0x0F000000
// Sample 6 Digital Comparator
5592
// Select
5593
#define ADC_SSDC0_S5DCSEL_M 0x00F00000
// Sample 5 Digital Comparator
5594
// Select
5595
#define ADC_SSDC0_S4DCSEL_M 0x000F0000
// Sample 4 Digital Comparator
5596
// Select
5597
#define ADC_SSDC0_S3DCSEL_M 0x0000F000
// Sample 3 Digital Comparator
5598
// Select
5599
#define ADC_SSDC0_S2DCSEL_M 0x00000F00
// Sample 2 Digital Comparator
5600
// Select
5601
#define ADC_SSDC0_S1DCSEL_M 0x000000F0
// Sample 1 Digital Comparator
5602
// Select
5603
#define ADC_SSDC0_S0DCSEL_M 0x0000000F
// Sample 0 Digital Comparator
5604
// Select
5605
#define ADC_SSDC0_S6DCSEL_S 24
5606
#define ADC_SSDC0_S5DCSEL_S 20
5607
#define ADC_SSDC0_S4DCSEL_S 16
5608
#define ADC_SSDC0_S3DCSEL_S 12
5609
#define ADC_SSDC0_S2DCSEL_S 8
5610
#define ADC_SSDC0_S1DCSEL_S 4
5611
#define ADC_SSDC0_S0DCSEL_S 0
5612
5613
//*****************************************************************************
5614
//
5615
// The following are defines for the bit fields in the ADC_O_SSMUX1 register.
5616
//
5617
//*****************************************************************************
5618
#define ADC_SSMUX1_MUX3_M 0x0000F000
// 4th Sample Input Select
5619
#define ADC_SSMUX1_MUX2_M 0x00000F00
// 3rd Sample Input Select
5620
#define ADC_SSMUX1_MUX1_M 0x000000F0
// 2nd Sample Input Select
5621
#define ADC_SSMUX1_MUX0_M 0x0000000F
// 1st Sample Input Select
5622
#define ADC_SSMUX1_MUX3_S 12
5623
#define ADC_SSMUX1_MUX2_S 8
5624
#define ADC_SSMUX1_MUX1_S 4
5625
#define ADC_SSMUX1_MUX0_S 0
5626
5627
//*****************************************************************************
5628
//
5629
// The following are defines for the bit fields in the ADC_O_SSCTL1 register.
5630
//
5631
//*****************************************************************************
5632
#define ADC_SSCTL1_TS3 0x00008000
// 4th Sample Temp Sensor Select
5633
#define ADC_SSCTL1_IE3 0x00004000
// 4th Sample Interrupt Enable
5634
#define ADC_SSCTL1_END3 0x00002000
// 4th Sample is End of Sequence
5635
#define ADC_SSCTL1_D3 0x00001000
// 4th Sample Differential Input
5636
// Select
5637
#define ADC_SSCTL1_TS2 0x00000800
// 3rd Sample Temp Sensor Select
5638
#define ADC_SSCTL1_IE2 0x00000400
// 3rd Sample Interrupt Enable
5639
#define ADC_SSCTL1_END2 0x00000200
// 3rd Sample is End of Sequence
5640
#define ADC_SSCTL1_D2 0x00000100
// 3rd Sample Differential Input
5641
// Select
5642
#define ADC_SSCTL1_TS1 0x00000080
// 2nd Sample Temp Sensor Select
5643
#define ADC_SSCTL1_IE1 0x00000040
// 2nd Sample Interrupt Enable
5644
#define ADC_SSCTL1_END1 0x00000020
// 2nd Sample is End of Sequence
5645
#define ADC_SSCTL1_D1 0x00000010
// 2nd Sample Differential Input
5646
// Select
5647
#define ADC_SSCTL1_TS0 0x00000008
// 1st Sample Temp Sensor Select
5648
#define ADC_SSCTL1_IE0 0x00000004
// 1st Sample Interrupt Enable
5649
#define ADC_SSCTL1_END0 0x00000002
// 1st Sample is End of Sequence
5650
#define ADC_SSCTL1_D0 0x00000001
// 1st Sample Differential Input
5651
// Select
5652
5653
//*****************************************************************************
5654
//
5655
// The following are defines for the bit fields in the ADC_O_SSFIFO1 register.
5656
//
5657
//*****************************************************************************
5658
#define ADC_SSFIFO1_DATA_M 0x00000FFF
// Conversion Result Data
5659
#define ADC_SSFIFO1_DATA_S 0
5660
5661
//*****************************************************************************
5662
//
5663
// The following are defines for the bit fields in the ADC_O_SSFSTAT1 register.
5664
//
5665
//*****************************************************************************
5666
#define ADC_SSFSTAT1_FULL 0x00001000
// FIFO Full
5667
#define ADC_SSFSTAT1_EMPTY 0x00000100
// FIFO Empty
5668
#define ADC_SSFSTAT1_HPTR_M 0x000000F0
// FIFO Head Pointer
5669
#define ADC_SSFSTAT1_TPTR_M 0x0000000F
// FIFO Tail Pointer
5670
#define ADC_SSFSTAT1_HPTR_S 4
5671
#define ADC_SSFSTAT1_TPTR_S 0
5672
5673
//*****************************************************************************
5674
//
5675
// The following are defines for the bit fields in the ADC_O_SSOP1 register.
5676
//
5677
//*****************************************************************************
5678
#define ADC_SSOP1_S3DCOP 0x00001000
// Sample 3 Digital Comparator
5679
// Operation
5680
#define ADC_SSOP1_S2DCOP 0x00000100
// Sample 2 Digital Comparator
5681
// Operation
5682
#define ADC_SSOP1_S1DCOP 0x00000010
// Sample 1 Digital Comparator
5683
// Operation
5684
#define ADC_SSOP1_S0DCOP 0x00000001
// Sample 0 Digital Comparator
5685
// Operation
5686
5687
//*****************************************************************************
5688
//
5689
// The following are defines for the bit fields in the ADC_O_SSDC1 register.
5690
//
5691
//*****************************************************************************
5692
#define ADC_SSDC1_S3DCSEL_M 0x0000F000
// Sample 3 Digital Comparator
5693
// Select
5694
#define ADC_SSDC1_S2DCSEL_M 0x00000F00
// Sample 2 Digital Comparator
5695
// Select
5696
#define ADC_SSDC1_S1DCSEL_M 0x000000F0
// Sample 1 Digital Comparator
5697
// Select
5698
#define ADC_SSDC1_S0DCSEL_M 0x0000000F
// Sample 0 Digital Comparator
5699
// Select
5700
#define ADC_SSDC1_S2DCSEL_S 8
5701
#define ADC_SSDC1_S1DCSEL_S 4
5702
#define ADC_SSDC1_S0DCSEL_S 0
5703
5704
//*****************************************************************************
5705
//
5706
// The following are defines for the bit fields in the ADC_O_SSMUX2 register.
5707
//
5708
//*****************************************************************************
5709
#define ADC_SSMUX2_MUX3_M 0x0000F000
// 4th Sample Input Select
5710
#define ADC_SSMUX2_MUX2_M 0x00000F00
// 3rd Sample Input Select
5711
#define ADC_SSMUX2_MUX1_M 0x000000F0
// 2nd Sample Input Select
5712
#define ADC_SSMUX2_MUX0_M 0x0000000F
// 1st Sample Input Select
5713
#define ADC_SSMUX2_MUX3_S 12
5714
#define ADC_SSMUX2_MUX2_S 8
5715
#define ADC_SSMUX2_MUX1_S 4
5716
#define ADC_SSMUX2_MUX0_S 0
5717
5718
//*****************************************************************************
5719
//
5720
// The following are defines for the bit fields in the ADC_O_SSCTL2 register.
5721
//
5722
//*****************************************************************************
5723
#define ADC_SSCTL2_TS3 0x00008000
// 4th Sample Temp Sensor Select
5724
#define ADC_SSCTL2_IE3 0x00004000
// 4th Sample Interrupt Enable
5725
#define ADC_SSCTL2_END3 0x00002000
// 4th Sample is End of Sequence
5726
#define ADC_SSCTL2_D3 0x00001000
// 4th Sample Differential Input
5727
// Select
5728
#define ADC_SSCTL2_TS2 0x00000800
// 3rd Sample Temp Sensor Select
5729
#define ADC_SSCTL2_IE2 0x00000400
// 3rd Sample Interrupt Enable
5730
#define ADC_SSCTL2_END2 0x00000200
// 3rd Sample is End of Sequence
5731
#define ADC_SSCTL2_D2 0x00000100
// 3rd Sample Differential Input
5732
// Select
5733
#define ADC_SSCTL2_TS1 0x00000080
// 2nd Sample Temp Sensor Select
5734
#define ADC_SSCTL2_IE1 0x00000040
// 2nd Sample Interrupt Enable
5735
#define ADC_SSCTL2_END1 0x00000020
// 2nd Sample is End of Sequence
5736
#define ADC_SSCTL2_D1 0x00000010
// 2nd Sample Differential Input
5737
// Select
5738
#define ADC_SSCTL2_TS0 0x00000008
// 1st Sample Temp Sensor Select
5739
#define ADC_SSCTL2_IE0 0x00000004
// 1st Sample Interrupt Enable
5740
#define ADC_SSCTL2_END0 0x00000002
// 1st Sample is End of Sequence
5741
#define ADC_SSCTL2_D0 0x00000001
// 1st Sample Differential Input
5742
// Select
5743
5744
//*****************************************************************************
5745
//
5746
// The following are defines for the bit fields in the ADC_O_SSFIFO2 register.
5747
//
5748
//*****************************************************************************
5749
#define ADC_SSFIFO2_DATA_M 0x00000FFF
// Conversion Result Data
5750
#define ADC_SSFIFO2_DATA_S 0
5751
5752
//*****************************************************************************
5753
//
5754
// The following are defines for the bit fields in the ADC_O_SSFSTAT2 register.
5755
//
5756
//*****************************************************************************
5757
#define ADC_SSFSTAT2_FULL 0x00001000
// FIFO Full
5758
#define ADC_SSFSTAT2_EMPTY 0x00000100
// FIFO Empty
5759
#define ADC_SSFSTAT2_HPTR_M 0x000000F0
// FIFO Head Pointer
5760
#define ADC_SSFSTAT2_TPTR_M 0x0000000F
// FIFO Tail Pointer
5761
#define ADC_SSFSTAT2_HPTR_S 4
5762
#define ADC_SSFSTAT2_TPTR_S 0
5763
5764
//*****************************************************************************
5765
//
5766
// The following are defines for the bit fields in the ADC_O_SSOP2 register.
5767
//
5768
//*****************************************************************************
5769
#define ADC_SSOP2_S3DCOP 0x00001000
// Sample 3 Digital Comparator
5770
// Operation
5771
#define ADC_SSOP2_S2DCOP 0x00000100
// Sample 2 Digital Comparator
5772
// Operation
5773
#define ADC_SSOP2_S1DCOP 0x00000010
// Sample 1 Digital Comparator
5774
// Operation
5775
#define ADC_SSOP2_S0DCOP 0x00000001
// Sample 0 Digital Comparator
5776
// Operation
5777
5778
//*****************************************************************************
5779
//
5780
// The following are defines for the bit fields in the ADC_O_SSDC2 register.
5781
//
5782
//*****************************************************************************
5783
#define ADC_SSDC2_S3DCSEL_M 0x0000F000
// Sample 3 Digital Comparator
5784
// Select
5785
#define ADC_SSDC2_S2DCSEL_M 0x00000F00
// Sample 2 Digital Comparator
5786
// Select
5787
#define ADC_SSDC2_S1DCSEL_M 0x000000F0
// Sample 1 Digital Comparator
5788
// Select
5789
#define ADC_SSDC2_S0DCSEL_M 0x0000000F
// Sample 0 Digital Comparator
5790
// Select
5791
#define ADC_SSDC2_S2DCSEL_S 8
5792
#define ADC_SSDC2_S1DCSEL_S 4
5793
#define ADC_SSDC2_S0DCSEL_S 0
5794
5795
//*****************************************************************************
5796
//
5797
// The following are defines for the bit fields in the ADC_O_SSMUX3 register.
5798
//
5799
//*****************************************************************************
5800
#define ADC_SSMUX3_MUX0_M 0x0000000F
// 1st Sample Input Select
5801
#define ADC_SSMUX3_MUX0_S 0
5802
5803
//*****************************************************************************
5804
//
5805
// The following are defines for the bit fields in the ADC_O_SSCTL3 register.
5806
//
5807
//*****************************************************************************
5808
#define ADC_SSCTL3_TS0 0x00000008
// 1st Sample Temp Sensor Select
5809
#define ADC_SSCTL3_IE0 0x00000004
// Sample Interrupt Enable
5810
#define ADC_SSCTL3_END0 0x00000002
// End of Sequence
5811
#define ADC_SSCTL3_D0 0x00000001
// Sample Differential Input Select
5812
5813
//*****************************************************************************
5814
//
5815
// The following are defines for the bit fields in the ADC_O_SSFIFO3 register.
5816
//
5817
//*****************************************************************************
5818
#define ADC_SSFIFO3_DATA_M 0x00000FFF
// Conversion Result Data
5819
#define ADC_SSFIFO3_DATA_S 0
5820
5821
//*****************************************************************************
5822
//
5823
// The following are defines for the bit fields in the ADC_O_SSFSTAT3 register.
5824
//
5825
//*****************************************************************************
5826
#define ADC_SSFSTAT3_FULL 0x00001000
// FIFO Full
5827
#define ADC_SSFSTAT3_EMPTY 0x00000100
// FIFO Empty
5828
#define ADC_SSFSTAT3_HPTR_M 0x000000F0
// FIFO Head Pointer
5829
#define ADC_SSFSTAT3_TPTR_M 0x0000000F
// FIFO Tail Pointer
5830
#define ADC_SSFSTAT3_HPTR_S 4
5831
#define ADC_SSFSTAT3_TPTR_S 0
5832
5833
//*****************************************************************************
5834
//
5835
// The following are defines for the bit fields in the ADC_O_SSOP3 register.
5836
//
5837
//*****************************************************************************
5838
#define ADC_SSOP3_S0DCOP 0x00000001
// Sample 0 Digital Comparator
5839
// Operation
5840
5841
//*****************************************************************************
5842
//
5843
// The following are defines for the bit fields in the ADC_O_SSDC3 register.
5844
//
5845
//*****************************************************************************
5846
#define ADC_SSDC3_S0DCSEL_M 0x0000000F
// Sample 0 Digital Comparator
5847
// Select
5848
5849
//*****************************************************************************
5850
//
5851
// The following are defines for the bit fields in the ADC_O_DCRIC register.
5852
//
5853
//*****************************************************************************
5854
#define ADC_DCRIC_DCTRIG7 0x00800000
// Digital Comparator Trigger 7
5855
#define ADC_DCRIC_DCTRIG6 0x00400000
// Digital Comparator Trigger 6
5856
#define ADC_DCRIC_DCTRIG5 0x00200000
// Digital Comparator Trigger 5
5857
#define ADC_DCRIC_DCTRIG4 0x00100000
// Digital Comparator Trigger 4
5858
#define ADC_DCRIC_DCTRIG3 0x00080000
// Digital Comparator Trigger 3
5859
#define ADC_DCRIC_DCTRIG2 0x00040000
// Digital Comparator Trigger 2
5860
#define ADC_DCRIC_DCTRIG1 0x00020000
// Digital Comparator Trigger 1
5861
#define ADC_DCRIC_DCTRIG0 0x00010000
// Digital Comparator Trigger 0
5862
#define ADC_DCRIC_DCINT7 0x00000080
// Digital Comparator Interrupt 7
5863
#define ADC_DCRIC_DCINT6 0x00000040
// Digital Comparator Interrupt 6
5864
#define ADC_DCRIC_DCINT5 0x00000020
// Digital Comparator Interrupt 5
5865
#define ADC_DCRIC_DCINT4 0x00000010
// Digital Comparator Interrupt 4
5866
#define ADC_DCRIC_DCINT3 0x00000008
// Digital Comparator Interrupt 3
5867
#define ADC_DCRIC_DCINT2 0x00000004
// Digital Comparator Interrupt 2
5868
#define ADC_DCRIC_DCINT1 0x00000002
// Digital Comparator Interrupt 1
5869
#define ADC_DCRIC_DCINT0 0x00000001
// Digital Comparator Interrupt 0
5870
5871
//*****************************************************************************
5872
//
5873
// The following are defines for the bit fields in the ADC_O_DCCTL0 register.
5874
//
5875
//*****************************************************************************
5876
#define ADC_DCCTL0_CTE 0x00001000
// Comparison Trigger Enable
5877
#define ADC_DCCTL0_CTC_M 0x00000C00
// Comparison Trigger Condition
5878
#define ADC_DCCTL0_CTC_LOW 0x00000000
// Low Band
5879
#define ADC_DCCTL0_CTC_MID 0x00000400
// Mid Band
5880
#define ADC_DCCTL0_CTC_HIGH 0x00000C00
// High Band
5881
#define ADC_DCCTL0_CTM_M 0x00000300
// Comparison Trigger Mode
5882
#define ADC_DCCTL0_CTM_ALWAYS 0x00000000
// Always
5883
#define ADC_DCCTL0_CTM_ONCE 0x00000100
// Once
5884
#define ADC_DCCTL0_CTM_HALWAYS 0x00000200
// Hysteresis Always
5885
#define ADC_DCCTL0_CTM_HONCE 0x00000300
// Hysteresis Once
5886
#define ADC_DCCTL0_CIE 0x00000010
// Comparison Interrupt Enable
5887
#define ADC_DCCTL0_CIC_M 0x0000000C
// Comparison Interrupt Condition
5888
#define ADC_DCCTL0_CIC_LOW 0x00000000
// Low Band
5889
#define ADC_DCCTL0_CIC_MID 0x00000004
// Mid Band
5890
#define ADC_DCCTL0_CIC_HIGH 0x0000000C
// High Band
5891
#define ADC_DCCTL0_CIM_M 0x00000003
// Comparison Interrupt Mode
5892
#define ADC_DCCTL0_CIM_ALWAYS 0x00000000
// Always
5893
#define ADC_DCCTL0_CIM_ONCE 0x00000001
// Once
5894
#define ADC_DCCTL0_CIM_HALWAYS 0x00000002
// Hysteresis Always
5895
#define ADC_DCCTL0_CIM_HONCE 0x00000003
// Hysteresis Once
5896
5897
//*****************************************************************************
5898
//
5899
// The following are defines for the bit fields in the ADC_O_DCCTL1 register.
5900
//
5901
//*****************************************************************************
5902
#define ADC_DCCTL1_CTE 0x00001000
// Comparison Trigger Enable
5903
#define ADC_DCCTL1_CTC_M 0x00000C00
// Comparison Trigger Condition
5904
#define ADC_DCCTL1_CTC_LOW 0x00000000
// Low Band
5905
#define ADC_DCCTL1_CTC_MID 0x00000400
// Mid Band
5906
#define ADC_DCCTL1_CTC_HIGH 0x00000C00
// High Band
5907
#define ADC_DCCTL1_CTM_M 0x00000300
// Comparison Trigger Mode
5908
#define ADC_DCCTL1_CTM_ALWAYS 0x00000000
// Always
5909
#define ADC_DCCTL1_CTM_ONCE 0x00000100
// Once
5910
#define ADC_DCCTL1_CTM_HALWAYS 0x00000200
// Hysteresis Always
5911
#define ADC_DCCTL1_CTM_HONCE 0x00000300
// Hysteresis Once
5912
#define ADC_DCCTL1_CIE 0x00000010
// Comparison Interrupt Enable
5913
#define ADC_DCCTL1_CIC_M 0x0000000C
// Comparison Interrupt Condition
5914
#define ADC_DCCTL1_CIC_LOW 0x00000000
// Low Band
5915
#define ADC_DCCTL1_CIC_MID 0x00000004
// Mid Band
5916
#define ADC_DCCTL1_CIC_HIGH 0x0000000C
// High Band
5917
#define ADC_DCCTL1_CIM_M 0x00000003
// Comparison Interrupt Mode
5918
#define ADC_DCCTL1_CIM_ALWAYS 0x00000000
// Always
5919
#define ADC_DCCTL1_CIM_ONCE 0x00000001
// Once
5920
#define ADC_DCCTL1_CIM_HALWAYS 0x00000002
// Hysteresis Always
5921
#define ADC_DCCTL1_CIM_HONCE 0x00000003
// Hysteresis Once
5922
5923
//*****************************************************************************
5924
//
5925
// The following are defines for the bit fields in the ADC_O_DCCTL2 register.
5926
//
5927
//*****************************************************************************
5928
#define ADC_DCCTL2_CTE 0x00001000
// Comparison Trigger Enable
5929
#define ADC_DCCTL2_CTC_M 0x00000C00
// Comparison Trigger Condition
5930
#define ADC_DCCTL2_CTC_LOW 0x00000000
// Low Band
5931
#define ADC_DCCTL2_CTC_MID 0x00000400
// Mid Band
5932
#define ADC_DCCTL2_CTC_HIGH 0x00000C00
// High Band
5933
#define ADC_DCCTL2_CTM_M 0x00000300
// Comparison Trigger Mode
5934
#define ADC_DCCTL2_CTM_ALWAYS 0x00000000
// Always
5935
#define ADC_DCCTL2_CTM_ONCE 0x00000100
// Once
5936
#define ADC_DCCTL2_CTM_HALWAYS 0x00000200
// Hysteresis Always
5937
#define ADC_DCCTL2_CTM_HONCE 0x00000300
// Hysteresis Once
5938
#define ADC_DCCTL2_CIE 0x00000010
// Comparison Interrupt Enable
5939
#define ADC_DCCTL2_CIC_M 0x0000000C
// Comparison Interrupt Condition
5940
#define ADC_DCCTL2_CIC_LOW 0x00000000
// Low Band
5941
#define ADC_DCCTL2_CIC_MID 0x00000004
// Mid Band
5942
#define ADC_DCCTL2_CIC_HIGH 0x0000000C
// High Band
5943
#define ADC_DCCTL2_CIM_M 0x00000003
// Comparison Interrupt Mode
5944
#define ADC_DCCTL2_CIM_ALWAYS 0x00000000
// Always
5945
#define ADC_DCCTL2_CIM_ONCE 0x00000001
// Once
5946
#define ADC_DCCTL2_CIM_HALWAYS 0x00000002
// Hysteresis Always
5947
#define ADC_DCCTL2_CIM_HONCE 0x00000003
// Hysteresis Once
5948
5949
//*****************************************************************************
5950
//
5951
// The following are defines for the bit fields in the ADC_O_DCCTL3 register.
5952
//
5953
//*****************************************************************************
5954
#define ADC_DCCTL3_CTE 0x00001000
// Comparison Trigger Enable
5955
#define ADC_DCCTL3_CTC_M 0x00000C00
// Comparison Trigger Condition
5956
#define ADC_DCCTL3_CTC_LOW 0x00000000
// Low Band
5957
#define ADC_DCCTL3_CTC_MID 0x00000400
// Mid Band
5958
#define ADC_DCCTL3_CTC_HIGH 0x00000C00
// High Band
5959
#define ADC_DCCTL3_CTM_M 0x00000300
// Comparison Trigger Mode
5960
#define ADC_DCCTL3_CTM_ALWAYS 0x00000000
// Always
5961
#define ADC_DCCTL3_CTM_ONCE 0x00000100
// Once
5962
#define ADC_DCCTL3_CTM_HALWAYS 0x00000200
// Hysteresis Always
5963
#define ADC_DCCTL3_CTM_HONCE 0x00000300
// Hysteresis Once
5964
#define ADC_DCCTL3_CIE 0x00000010
// Comparison Interrupt Enable
5965
#define ADC_DCCTL3_CIC_M 0x0000000C
// Comparison Interrupt Condition
5966
#define ADC_DCCTL3_CIC_LOW 0x00000000
// Low Band
5967
#define ADC_DCCTL3_CIC_MID 0x00000004
// Mid Band
5968
#define ADC_DCCTL3_CIC_HIGH 0x0000000C
// High Band
5969
#define ADC_DCCTL3_CIM_M 0x00000003
// Comparison Interrupt Mode
5970
#define ADC_DCCTL3_CIM_ALWAYS 0x00000000
// Always
5971
#define ADC_DCCTL3_CIM_ONCE 0x00000001
// Once
5972
#define ADC_DCCTL3_CIM_HALWAYS 0x00000002
// Hysteresis Always
5973
#define ADC_DCCTL3_CIM_HONCE 0x00000003
// Hysteresis Once
5974
5975
//*****************************************************************************
5976
//
5977
// The following are defines for the bit fields in the ADC_O_DCCTL4 register.
5978
//
5979
//*****************************************************************************
5980
#define ADC_DCCTL4_CTE 0x00001000
// Comparison Trigger Enable
5981
#define ADC_DCCTL4_CTC_M 0x00000C00
// Comparison Trigger Condition
5982
#define ADC_DCCTL4_CTC_LOW 0x00000000
// Low Band
5983
#define ADC_DCCTL4_CTC_MID 0x00000400
// Mid Band
5984
#define ADC_DCCTL4_CTC_HIGH 0x00000C00
// High Band
5985
#define ADC_DCCTL4_CTM_M 0x00000300
// Comparison Trigger Mode
5986
#define ADC_DCCTL4_CTM_ALWAYS 0x00000000
// Always
5987
#define ADC_DCCTL4_CTM_ONCE 0x00000100
// Once
5988
#define ADC_DCCTL4_CTM_HALWAYS 0x00000200
// Hysteresis Always
5989
#define ADC_DCCTL4_CTM_HONCE 0x00000300
// Hysteresis Once
5990
#define ADC_DCCTL4_CIE 0x00000010
// Comparison Interrupt Enable
5991
#define ADC_DCCTL4_CIC_M 0x0000000C
// Comparison Interrupt Condition
5992
#define ADC_DCCTL4_CIC_LOW 0x00000000
// Low Band
5993
#define ADC_DCCTL4_CIC_MID 0x00000004
// Mid Band
5994
#define ADC_DCCTL4_CIC_HIGH 0x0000000C
// High Band
5995
#define ADC_DCCTL4_CIM_M 0x00000003
// Comparison Interrupt Mode
5996
#define ADC_DCCTL4_CIM_ALWAYS 0x00000000
// Always
5997
#define ADC_DCCTL4_CIM_ONCE 0x00000001
// Once
5998
#define ADC_DCCTL4_CIM_HALWAYS 0x00000002
// Hysteresis Always
5999
#define ADC_DCCTL4_CIM_HONCE 0x00000003
// Hysteresis Once
6000
6001
//*****************************************************************************
6002
//
6003
// The following are defines for the bit fields in the ADC_O_DCCTL5 register.
6004
//
6005
//*****************************************************************************
6006
#define ADC_DCCTL5_CTE 0x00001000
// Comparison Trigger Enable
6007
#define ADC_DCCTL5_CTC_M 0x00000C00
// Comparison Trigger Condition
6008
#define ADC_DCCTL5_CTC_LOW 0x00000000
// Low Band
6009
#define ADC_DCCTL5_CTC_MID 0x00000400
// Mid Band
6010
#define ADC_DCCTL5_CTC_HIGH 0x00000C00
// High Band
6011
#define ADC_DCCTL5_CTM_M 0x00000300
// Comparison Trigger Mode
6012
#define ADC_DCCTL5_CTM_ALWAYS 0x00000000
// Always
6013
#define ADC_DCCTL5_CTM_ONCE 0x00000100
// Once
6014
#define ADC_DCCTL5_CTM_HALWAYS 0x00000200
// Hysteresis Always
6015
#define ADC_DCCTL5_CTM_HONCE 0x00000300
// Hysteresis Once
6016
#define ADC_DCCTL5_CIE 0x00000010
// Comparison Interrupt Enable
6017
#define ADC_DCCTL5_CIC_M 0x0000000C
// Comparison Interrupt Condition
6018
#define ADC_DCCTL5_CIC_LOW 0x00000000
// Low Band
6019
#define ADC_DCCTL5_CIC_MID 0x00000004
// Mid Band
6020
#define ADC_DCCTL5_CIC_HIGH 0x0000000C
// High Band
6021
#define ADC_DCCTL5_CIM_M 0x00000003
// Comparison Interrupt Mode
6022
#define ADC_DCCTL5_CIM_ALWAYS 0x00000000
// Always
6023
#define ADC_DCCTL5_CIM_ONCE 0x00000001
// Once
6024
#define ADC_DCCTL5_CIM_HALWAYS 0x00000002
// Hysteresis Always
6025
#define ADC_DCCTL5_CIM_HONCE 0x00000003
// Hysteresis Once
6026
6027
//*****************************************************************************
6028
//
6029
// The following are defines for the bit fields in the ADC_O_DCCTL6 register.
6030
//
6031
//*****************************************************************************
6032
#define ADC_DCCTL6_CTE 0x00001000
// Comparison Trigger Enable
6033
#define ADC_DCCTL6_CTC_M 0x00000C00
// Comparison Trigger Condition
6034
#define ADC_DCCTL6_CTC_LOW 0x00000000
// Low Band
6035
#define ADC_DCCTL6_CTC_MID 0x00000400
// Mid Band
6036
#define ADC_DCCTL6_CTC_HIGH 0x00000C00
// High Band
6037
#define ADC_DCCTL6_CTM_M 0x00000300
// Comparison Trigger Mode
6038
#define ADC_DCCTL6_CTM_ALWAYS 0x00000000
// Always
6039
#define ADC_DCCTL6_CTM_ONCE 0x00000100
// Once
6040
#define ADC_DCCTL6_CTM_HALWAYS 0x00000200
// Hysteresis Always
6041
#define ADC_DCCTL6_CTM_HONCE 0x00000300
// Hysteresis Once
6042
#define ADC_DCCTL6_CIE 0x00000010
// Comparison Interrupt Enable
6043
#define ADC_DCCTL6_CIC_M 0x0000000C
// Comparison Interrupt Condition
6044
#define ADC_DCCTL6_CIC_LOW 0x00000000
// Low Band
6045
#define ADC_DCCTL6_CIC_MID 0x00000004
// Mid Band
6046
#define ADC_DCCTL6_CIC_HIGH 0x0000000C
// High Band
6047
#define ADC_DCCTL6_CIM_M 0x00000003
// Comparison Interrupt Mode
6048
#define ADC_DCCTL6_CIM_ALWAYS 0x00000000
// Always
6049
#define ADC_DCCTL6_CIM_ONCE 0x00000001
// Once
6050
#define ADC_DCCTL6_CIM_HALWAYS 0x00000002
// Hysteresis Always
6051
#define ADC_DCCTL6_CIM_HONCE 0x00000003
// Hysteresis Once
6052
6053
//*****************************************************************************
6054
//
6055
// The following are defines for the bit fields in the ADC_O_DCCTL7 register.
6056
//
6057
//*****************************************************************************
6058
#define ADC_DCCTL7_CTE 0x00001000
// Comparison Trigger Enable
6059
#define ADC_DCCTL7_CTC_M 0x00000C00
// Comparison Trigger Condition
6060
#define ADC_DCCTL7_CTC_LOW 0x00000000
// Low Band
6061
#define ADC_DCCTL7_CTC_MID 0x00000400
// Mid Band
6062
#define ADC_DCCTL7_CTC_HIGH 0x00000C00
// High Band
6063
#define ADC_DCCTL7_CTM_M 0x00000300
// Comparison Trigger Mode
6064
#define ADC_DCCTL7_CTM_ALWAYS 0x00000000
// Always
6065
#define ADC_DCCTL7_CTM_ONCE 0x00000100
// Once
6066
#define ADC_DCCTL7_CTM_HALWAYS 0x00000200
// Hysteresis Always
6067
#define ADC_DCCTL7_CTM_HONCE 0x00000300
// Hysteresis Once
6068
#define ADC_DCCTL7_CIE 0x00000010
// Comparison Interrupt Enable
6069
#define ADC_DCCTL7_CIC_M 0x0000000C
// Comparison Interrupt Condition
6070
#define ADC_DCCTL7_CIC_LOW 0x00000000
// Low Band
6071
#define ADC_DCCTL7_CIC_MID 0x00000004
// Mid Band
6072
#define ADC_DCCTL7_CIC_HIGH 0x0000000C
// High Band
6073
#define ADC_DCCTL7_CIM_M 0x00000003
// Comparison Interrupt Mode
6074
#define ADC_DCCTL7_CIM_ALWAYS 0x00000000
// Always
6075
#define ADC_DCCTL7_CIM_ONCE 0x00000001
// Once
6076
#define ADC_DCCTL7_CIM_HALWAYS 0x00000002
// Hysteresis Always
6077
#define ADC_DCCTL7_CIM_HONCE 0x00000003
// Hysteresis Once
6078
6079
//*****************************************************************************
6080
//
6081
// The following are defines for the bit fields in the ADC_O_DCCMP0 register.
6082
//
6083
//*****************************************************************************
6084
#define ADC_DCCMP0_COMP1_M 0x0FFF0000
// Compare 1
6085
#define ADC_DCCMP0_COMP0_M 0x00000FFF
// Compare 0
6086
#define ADC_DCCMP0_COMP1_S 16
6087
#define ADC_DCCMP0_COMP0_S 0
6088
6089
//*****************************************************************************
6090
//
6091
// The following are defines for the bit fields in the ADC_O_DCCMP1 register.
6092
//
6093
//*****************************************************************************
6094
#define ADC_DCCMP1_COMP1_M 0x0FFF0000
// Compare 1
6095
#define ADC_DCCMP1_COMP0_M 0x00000FFF
// Compare 0
6096
#define ADC_DCCMP1_COMP1_S 16
6097
#define ADC_DCCMP1_COMP0_S 0
6098
6099
//*****************************************************************************
6100
//
6101
// The following are defines for the bit fields in the ADC_O_DCCMP2 register.
6102
//
6103
//*****************************************************************************
6104
#define ADC_DCCMP2_COMP1_M 0x0FFF0000
// Compare 1
6105
#define ADC_DCCMP2_COMP0_M 0x00000FFF
// Compare 0
6106
#define ADC_DCCMP2_COMP1_S 16
6107
#define ADC_DCCMP2_COMP0_S 0
6108
6109
//*****************************************************************************
6110
//
6111
// The following are defines for the bit fields in the ADC_O_DCCMP3 register.
6112
//
6113
//*****************************************************************************
6114
#define ADC_DCCMP3_COMP1_M 0x0FFF0000
// Compare 1
6115
#define ADC_DCCMP3_COMP0_M 0x00000FFF
// Compare 0
6116
#define ADC_DCCMP3_COMP1_S 16
6117
#define ADC_DCCMP3_COMP0_S 0
6118
6119
//*****************************************************************************
6120
//
6121
// The following are defines for the bit fields in the ADC_O_DCCMP4 register.
6122
//
6123
//*****************************************************************************
6124
#define ADC_DCCMP4_COMP1_M 0x0FFF0000
// Compare 1
6125
#define ADC_DCCMP4_COMP0_M 0x00000FFF
// Compare 0
6126
#define ADC_DCCMP4_COMP1_S 16
6127
#define ADC_DCCMP4_COMP0_S 0
6128
6129
//*****************************************************************************
6130
//
6131
// The following are defines for the bit fields in the ADC_O_DCCMP5 register.
6132
//
6133
//*****************************************************************************
6134
#define ADC_DCCMP5_COMP1_M 0x0FFF0000
// Compare 1
6135
#define ADC_DCCMP5_COMP0_M 0x00000FFF
// Compare 0
6136
#define ADC_DCCMP5_COMP1_S 16
6137
#define ADC_DCCMP5_COMP0_S 0
6138
6139
//*****************************************************************************
6140
//
6141
// The following are defines for the bit fields in the ADC_O_DCCMP6 register.
6142
//
6143
//*****************************************************************************
6144
#define ADC_DCCMP6_COMP1_M 0x0FFF0000
// Compare 1
6145
#define ADC_DCCMP6_COMP0_M 0x00000FFF
// Compare 0
6146
#define ADC_DCCMP6_COMP1_S 16
6147
#define ADC_DCCMP6_COMP0_S 0
6148
6149
//*****************************************************************************
6150
//
6151
// The following are defines for the bit fields in the ADC_O_DCCMP7 register.
6152
//
6153
//*****************************************************************************
6154
#define ADC_DCCMP7_COMP1_M 0x0FFF0000
// Compare 1
6155
#define ADC_DCCMP7_COMP0_M 0x00000FFF
// Compare 0
6156
#define ADC_DCCMP7_COMP1_S 16
6157
#define ADC_DCCMP7_COMP0_S 0
6158
6159
//*****************************************************************************
6160
//
6161
// The following are defines for the bit fields in the ADC_O_PP register.
6162
//
6163
//*****************************************************************************
6164
#define ADC_PP_TS 0x00800000
// Temperature Sensor
6165
#define ADC_PP_RSL_M 0x007C0000
// Resolution
6166
#define ADC_PP_TYPE_M 0x00030000
// ADC Architecture
6167
#define ADC_PP_TYPE_SAR 0x00000000
// SAR
6168
#define ADC_PP_DC_M 0x0000FC00
// Digital Comparator Count
6169
#define ADC_PP_CH_M 0x000003F0
// ADC Channel Count
6170
#define ADC_PP_MSR_M 0x0000000F
// Maximum ADC Sample Rate
6171
#define ADC_PP_MSR_125K 0x00000001
// 125 ksps
6172
#define ADC_PP_MSR_250K 0x00000003
// 250 ksps
6173
#define ADC_PP_MSR_500K 0x00000005
// 500 ksps
6174
#define ADC_PP_MSR_1M 0x00000007
// 1 Msps
6175
#define ADC_PP_RSL_S 18
6176
#define ADC_PP_DC_S 10
6177
#define ADC_PP_CH_S 4
6178
6179
//*****************************************************************************
6180
//
6181
// The following are defines for the bit fields in the ADC_O_PC register.
6182
//
6183
//*****************************************************************************
6184
#define ADC_PC_SR_M 0x0000000F
// ADC Sample Rate
6185
#define ADC_PC_SR_125K 0x00000001
// 125 ksps
6186
#define ADC_PC_SR_250K 0x00000003
// 250 ksps
6187
#define ADC_PC_SR_500K 0x00000005
// 500 ksps
6188
#define ADC_PC_SR_1M 0x00000007
// 1 Msps
6189
6190
//*****************************************************************************
6191
//
6192
// The following are defines for the bit fields in the ADC_O_CC register.
6193
//
6194
//*****************************************************************************
6195
#define ADC_CC_CS_M 0x0000000F
// ADC Clock Source
6196
#define ADC_CC_CS_SYSPLL 0x00000000
// PLL VCO divided by CLKDIV
6197
#define ADC_CC_CS_PIOSC 0x00000001
// PIOSC
6198
6199
//*****************************************************************************
6200
//
6201
// The following are defines for the bit fields in the COMP_O_ACMIS register.
6202
//
6203
//*****************************************************************************
6204
#define COMP_ACMIS_IN1 0x00000002
// Comparator 1 Masked Interrupt
6205
// Status
6206
#define COMP_ACMIS_IN0 0x00000001
// Comparator 0 Masked Interrupt
6207
// Status
6208
6209
//*****************************************************************************
6210
//
6211
// The following are defines for the bit fields in the COMP_O_ACRIS register.
6212
//
6213
//*****************************************************************************
6214
#define COMP_ACRIS_IN1 0x00000002
// Comparator 1 Interrupt Status
6215
#define COMP_ACRIS_IN0 0x00000001
// Comparator 0 Interrupt Status
6216
6217
//*****************************************************************************
6218
//
6219
// The following are defines for the bit fields in the COMP_O_ACINTEN register.
6220
//
6221
//*****************************************************************************
6222
#define COMP_ACINTEN_IN1 0x00000002
// Comparator 1 Interrupt Enable
6223
#define COMP_ACINTEN_IN0 0x00000001
// Comparator 0 Interrupt Enable
6224
6225
//*****************************************************************************
6226
//
6227
// The following are defines for the bit fields in the COMP_O_ACREFCTL
6228
// register.
6229
//
6230
//*****************************************************************************
6231
#define COMP_ACREFCTL_EN 0x00000200
// Resistor Ladder Enable
6232
#define COMP_ACREFCTL_RNG 0x00000100
// Resistor Ladder Range
6233
#define COMP_ACREFCTL_VREF_M 0x0000000F
// Resistor Ladder Voltage Ref
6234
#define COMP_ACREFCTL_VREF_S 0
6235
6236
//*****************************************************************************
6237
//
6238
// The following are defines for the bit fields in the COMP_O_ACSTAT0 register.
6239
//
6240
//*****************************************************************************
6241
#define COMP_ACSTAT0_OVAL 0x00000002
// Comparator Output Value
6242
6243
//*****************************************************************************
6244
//
6245
// The following are defines for the bit fields in the COMP_O_ACCTL0 register.
6246
//
6247
//*****************************************************************************
6248
#define COMP_ACCTL0_TOEN 0x00000800
// Trigger Output Enable
6249
#define COMP_ACCTL0_ASRCP_M 0x00000600
// Analog Source Positive
6250
#define COMP_ACCTL0_ASRCP_PIN 0x00000000
// Pin value of Cn+
6251
#define COMP_ACCTL0_ASRCP_PIN0 0x00000200
// Pin value of C0+
6252
#define COMP_ACCTL0_ASRCP_REF 0x00000400
// Internal voltage reference
6253
#define COMP_ACCTL0_TSLVAL 0x00000080
// Trigger Sense Level Value
6254
#define COMP_ACCTL0_TSEN_M 0x00000060
// Trigger Sense
6255
#define COMP_ACCTL0_TSEN_LEVEL 0x00000000
// Level sense, see TSLVAL
6256
#define COMP_ACCTL0_TSEN_FALL 0x00000020
// Falling edge
6257
#define COMP_ACCTL0_TSEN_RISE 0x00000040
// Rising edge
6258
#define COMP_ACCTL0_TSEN_BOTH 0x00000060
// Either edge
6259
#define COMP_ACCTL0_ISLVAL 0x00000010
// Interrupt Sense Level Value
6260
#define COMP_ACCTL0_ISEN_M 0x0000000C
// Interrupt Sense
6261
#define COMP_ACCTL0_ISEN_LEVEL 0x00000000
// Level sense, see ISLVAL
6262
#define COMP_ACCTL0_ISEN_FALL 0x00000004
// Falling edge
6263
#define COMP_ACCTL0_ISEN_RISE 0x00000008
// Rising edge
6264
#define COMP_ACCTL0_ISEN_BOTH 0x0000000C
// Either edge
6265
#define COMP_ACCTL0_CINV 0x00000002
// Comparator Output Invert
6266
6267
//*****************************************************************************
6268
//
6269
// The following are defines for the bit fields in the COMP_O_ACSTAT1 register.
6270
//
6271
//*****************************************************************************
6272
#define COMP_ACSTAT1_OVAL 0x00000002
// Comparator Output Value
6273
6274
//*****************************************************************************
6275
//
6276
// The following are defines for the bit fields in the COMP_O_ACCTL1 register.
6277
//
6278
//*****************************************************************************
6279
#define COMP_ACCTL1_TOEN 0x00000800
// Trigger Output Enable
6280
#define COMP_ACCTL1_ASRCP_M 0x00000600
// Analog Source Positive
6281
#define COMP_ACCTL1_ASRCP_PIN 0x00000000
// Pin value of Cn+
6282
#define COMP_ACCTL1_ASRCP_PIN0 0x00000200
// Pin value of C0+
6283
#define COMP_ACCTL1_ASRCP_REF 0x00000400
// Internal voltage reference
6284
#define COMP_ACCTL1_TSLVAL 0x00000080
// Trigger Sense Level Value
6285
#define COMP_ACCTL1_TSEN_M 0x00000060
// Trigger Sense
6286
#define COMP_ACCTL1_TSEN_LEVEL 0x00000000
// Level sense, see TSLVAL
6287
#define COMP_ACCTL1_TSEN_FALL 0x00000020
// Falling edge
6288
#define COMP_ACCTL1_TSEN_RISE 0x00000040
// Rising edge
6289
#define COMP_ACCTL1_TSEN_BOTH 0x00000060
// Either edge
6290
#define COMP_ACCTL1_ISLVAL 0x00000010
// Interrupt Sense Level Value
6291
#define COMP_ACCTL1_ISEN_M 0x0000000C
// Interrupt Sense
6292
#define COMP_ACCTL1_ISEN_LEVEL 0x00000000
// Level sense, see ISLVAL
6293
#define COMP_ACCTL1_ISEN_FALL 0x00000004
// Falling edge
6294
#define COMP_ACCTL1_ISEN_RISE 0x00000008
// Rising edge
6295
#define COMP_ACCTL1_ISEN_BOTH 0x0000000C
// Either edge
6296
#define COMP_ACCTL1_CINV 0x00000002
// Comparator Output Invert
6297
6298
//*****************************************************************************
6299
//
6300
// The following are defines for the bit fields in the COMP_O_PP register.
6301
//
6302
//*****************************************************************************
6303
#define COMP_PP_C1O 0x00020000
// Comparator Output 1 Present
6304
#define COMP_PP_C0O 0x00010000
// Comparator Output 0 Present
6305
#define COMP_PP_CMP1 0x00000002
// Comparator 1 Present
6306
#define COMP_PP_CMP0 0x00000001
// Comparator 0 Present
6307
6308
//*****************************************************************************
6309
//
6310
// The following are defines for the bit fields in the CAN_O_CTL register.
6311
//
6312
//*****************************************************************************
6313
#define CAN_CTL_TEST 0x00000080
// Test Mode Enable
6314
#define CAN_CTL_CCE 0x00000040
// Configuration Change Enable
6315
#define CAN_CTL_DAR 0x00000020
// Disable Automatic-Retransmission
6316
#define CAN_CTL_EIE 0x00000008
// Error Interrupt Enable
6317
#define CAN_CTL_SIE 0x00000004
// Status Interrupt Enable
6318
#define CAN_CTL_IE 0x00000002
// CAN Interrupt Enable
6319
#define CAN_CTL_INIT 0x00000001
// Initialization
6320
6321
//*****************************************************************************
6322
//
6323
// The following are defines for the bit fields in the CAN_O_STS register.
6324
//
6325
//*****************************************************************************
6326
#define CAN_STS_BOFF 0x00000080
// Bus-Off Status
6327
#define CAN_STS_EWARN 0x00000040
// Warning Status
6328
#define CAN_STS_EPASS 0x00000020
// Error Passive
6329
#define CAN_STS_RXOK 0x00000010
// Received a Message Successfully
6330
#define CAN_STS_TXOK 0x00000008
// Transmitted a Message
6331
// Successfully
6332
#define CAN_STS_LEC_M 0x00000007
// Last Error Code
6333
#define CAN_STS_LEC_NONE 0x00000000
// No Error
6334
#define CAN_STS_LEC_STUFF 0x00000001
// Stuff Error
6335
#define CAN_STS_LEC_FORM 0x00000002
// Format Error
6336
#define CAN_STS_LEC_ACK 0x00000003
// ACK Error
6337
#define CAN_STS_LEC_BIT1 0x00000004
// Bit 1 Error
6338
#define CAN_STS_LEC_BIT0 0x00000005
// Bit 0 Error
6339
#define CAN_STS_LEC_CRC 0x00000006
// CRC Error
6340
#define CAN_STS_LEC_NOEVENT 0x00000007
// No Event
6341
6342
//*****************************************************************************
6343
//
6344
// The following are defines for the bit fields in the CAN_O_ERR register.
6345
//
6346
//*****************************************************************************
6347
#define CAN_ERR_RP 0x00008000
// Received Error Passive
6348
#define CAN_ERR_REC_M 0x00007F00
// Receive Error Counter
6349
#define CAN_ERR_TEC_M 0x000000FF
// Transmit Error Counter
6350
#define CAN_ERR_REC_S 8
6351
#define CAN_ERR_TEC_S 0
6352
6353
//*****************************************************************************
6354
//
6355
// The following are defines for the bit fields in the CAN_O_BIT register.
6356
//
6357
//*****************************************************************************
6358
#define CAN_BIT_TSEG2_M 0x00007000
// Time Segment after Sample Point
6359
#define CAN_BIT_TSEG1_M 0x00000F00
// Time Segment Before Sample Point
6360
#define CAN_BIT_SJW_M 0x000000C0
// (Re)Synchronization Jump Width
6361
#define CAN_BIT_BRP_M 0x0000003F
// Baud Rate Prescaler
6362
#define CAN_BIT_TSEG2_S 12
6363
#define CAN_BIT_TSEG1_S 8
6364
#define CAN_BIT_SJW_S 6
6365
#define CAN_BIT_BRP_S 0
6366
6367
//*****************************************************************************
6368
//
6369
// The following are defines for the bit fields in the CAN_O_INT register.
6370
//
6371
//*****************************************************************************
6372
#define CAN_INT_INTID_M 0x0000FFFF
// Interrupt Identifier
6373
#define CAN_INT_INTID_NONE 0x00000000
// No interrupt pending
6374
#define CAN_INT_INTID_STATUS 0x00008000
// Status Interrupt
6375
6376
//*****************************************************************************
6377
//
6378
// The following are defines for the bit fields in the CAN_O_TST register.
6379
//
6380
//*****************************************************************************
6381
#define CAN_TST_RX 0x00000080
// Receive Observation
6382
#define CAN_TST_TX_M 0x00000060
// Transmit Control
6383
#define CAN_TST_TX_CANCTL 0x00000000
// CAN Module Control
6384
#define CAN_TST_TX_SAMPLE 0x00000020
// Sample Point
6385
#define CAN_TST_TX_DOMINANT 0x00000040
// Driven Low
6386
#define CAN_TST_TX_RECESSIVE 0x00000060
// Driven High
6387
#define CAN_TST_LBACK 0x00000010
// Loopback Mode
6388
#define CAN_TST_SILENT 0x00000008
// Silent Mode
6389
#define CAN_TST_BASIC 0x00000004
// Basic Mode
6390
6391
//*****************************************************************************
6392
//
6393
// The following are defines for the bit fields in the CAN_O_BRPE register.
6394
//
6395
//*****************************************************************************
6396
#define CAN_BRPE_BRPE_M 0x0000000F
// Baud Rate Prescaler Extension
6397
#define CAN_BRPE_BRPE_S 0
6398
6399
//*****************************************************************************
6400
//
6401
// The following are defines for the bit fields in the CAN_O_IF1CRQ register.
6402
//
6403
//*****************************************************************************
6404
#define CAN_IF1CRQ_BUSY 0x00008000
// Busy Flag
6405
#define CAN_IF1CRQ_MNUM_M 0x0000003F
// Message Number
6406
#define CAN_IF1CRQ_MNUM_S 0
6407
6408
//*****************************************************************************
6409
//
6410
// The following are defines for the bit fields in the CAN_O_IF1CMSK register.
6411
//
6412
//*****************************************************************************
6413
#define CAN_IF1CMSK_WRNRD 0x00000080
// Write, Not Read
6414
#define CAN_IF1CMSK_MASK 0x00000040
// Access Mask Bits
6415
#define CAN_IF1CMSK_ARB 0x00000020
// Access Arbitration Bits
6416
#define CAN_IF1CMSK_CONTROL 0x00000010
// Access Control Bits
6417
#define CAN_IF1CMSK_CLRINTPND 0x00000008
// Clear Interrupt Pending Bit
6418
#define CAN_IF1CMSK_NEWDAT 0x00000004
// Access New Data
6419
#define CAN_IF1CMSK_TXRQST 0x00000004
// Access Transmission Request
6420
#define CAN_IF1CMSK_DATAA 0x00000002
// Access Data Byte 0 to 3
6421
#define CAN_IF1CMSK_DATAB 0x00000001
// Access Data Byte 4 to 7
6422
6423
//*****************************************************************************
6424
//
6425
// The following are defines for the bit fields in the CAN_O_IF1MSK1 register.
6426
//
6427
//*****************************************************************************
6428
#define CAN_IF1MSK1_IDMSK_M 0x0000FFFF
// Identifier Mask
6429
#define CAN_IF1MSK1_IDMSK_S 0
6430
6431
//*****************************************************************************
6432
//
6433
// The following are defines for the bit fields in the CAN_O_IF1MSK2 register.
6434
//
6435
//*****************************************************************************
6436
#define CAN_IF1MSK2_MXTD 0x00008000
// Mask Extended Identifier
6437
#define CAN_IF1MSK2_MDIR 0x00004000
// Mask Message Direction
6438
#define CAN_IF1MSK2_IDMSK_M 0x00001FFF
// Identifier Mask
6439
#define CAN_IF1MSK2_IDMSK_S 0
6440
6441
//*****************************************************************************
6442
//
6443
// The following are defines for the bit fields in the CAN_O_IF1ARB1 register.
6444
//
6445
//*****************************************************************************
6446
#define CAN_IF1ARB1_ID_M 0x0000FFFF
// Message Identifier
6447
#define CAN_IF1ARB1_ID_S 0
6448
6449
//*****************************************************************************
6450
//
6451
// The following are defines for the bit fields in the CAN_O_IF1ARB2 register.
6452
//
6453
//*****************************************************************************
6454
#define CAN_IF1ARB2_MSGVAL 0x00008000
// Message Valid
6455
#define CAN_IF1ARB2_XTD 0x00004000
// Extended Identifier
6456
#define CAN_IF1ARB2_DIR 0x00002000
// Message Direction
6457
#define CAN_IF1ARB2_ID_M 0x00001FFF
// Message Identifier
6458
#define CAN_IF1ARB2_ID_S 0
6459
6460
//*****************************************************************************
6461
//
6462
// The following are defines for the bit fields in the CAN_O_IF1MCTL register.
6463
//
6464
//*****************************************************************************
6465
#define CAN_IF1MCTL_NEWDAT 0x00008000
// New Data
6466
#define CAN_IF1MCTL_MSGLST 0x00004000
// Message Lost
6467
#define CAN_IF1MCTL_INTPND 0x00002000
// Interrupt Pending
6468
#define CAN_IF1MCTL_UMASK 0x00001000
// Use Acceptance Mask
6469
#define CAN_IF1MCTL_TXIE 0x00000800
// Transmit Interrupt Enable
6470
#define CAN_IF1MCTL_RXIE 0x00000400
// Receive Interrupt Enable
6471
#define CAN_IF1MCTL_RMTEN 0x00000200
// Remote Enable
6472
#define CAN_IF1MCTL_TXRQST 0x00000100
// Transmit Request
6473
#define CAN_IF1MCTL_EOB 0x00000080
// End of Buffer
6474
#define CAN_IF1MCTL_DLC_M 0x0000000F
// Data Length Code
6475
#define CAN_IF1MCTL_DLC_S 0
6476
6477
//*****************************************************************************
6478
//
6479
// The following are defines for the bit fields in the CAN_O_IF1DA1 register.
6480
//
6481
//*****************************************************************************
6482
#define CAN_IF1DA1_DATA_M 0x0000FFFF
// Data
6483
#define CAN_IF1DA1_DATA_S 0
6484
6485
//*****************************************************************************
6486
//
6487
// The following are defines for the bit fields in the CAN_O_IF1DA2 register.
6488
//
6489
//*****************************************************************************
6490
#define CAN_IF1DA2_DATA_M 0x0000FFFF
// Data
6491
#define CAN_IF1DA2_DATA_S 0
6492
6493
//*****************************************************************************
6494
//
6495
// The following are defines for the bit fields in the CAN_O_IF1DB1 register.
6496
//
6497
//*****************************************************************************
6498
#define CAN_IF1DB1_DATA_M 0x0000FFFF
// Data
6499
#define CAN_IF1DB1_DATA_S 0
6500
6501
//*****************************************************************************
6502
//
6503
// The following are defines for the bit fields in the CAN_O_IF1DB2 register.
6504
//
6505
//*****************************************************************************
6506
#define CAN_IF1DB2_DATA_M 0x0000FFFF
// Data
6507
#define CAN_IF1DB2_DATA_S 0
6508
6509
//*****************************************************************************
6510
//
6511
// The following are defines for the bit fields in the CAN_O_IF2CRQ register.
6512
//
6513
//*****************************************************************************
6514
#define CAN_IF2CRQ_BUSY 0x00008000
// Busy Flag
6515
#define CAN_IF2CRQ_MNUM_M 0x0000003F
// Message Number
6516
#define CAN_IF2CRQ_MNUM_S 0
6517
6518
//*****************************************************************************
6519
//
6520
// The following are defines for the bit fields in the CAN_O_IF2CMSK register.
6521
//
6522
//*****************************************************************************
6523
#define CAN_IF2CMSK_WRNRD 0x00000080
// Write, Not Read
6524
#define CAN_IF2CMSK_MASK 0x00000040
// Access Mask Bits
6525
#define CAN_IF2CMSK_ARB 0x00000020
// Access Arbitration Bits
6526
#define CAN_IF2CMSK_CONTROL 0x00000010
// Access Control Bits
6527
#define CAN_IF2CMSK_CLRINTPND 0x00000008
// Clear Interrupt Pending Bit
6528
#define CAN_IF2CMSK_NEWDAT 0x00000004
// Access New Data
6529
#define CAN_IF2CMSK_TXRQST 0x00000004
// Access Transmission Request
6530
#define CAN_IF2CMSK_DATAA 0x00000002
// Access Data Byte 0 to 3
6531
#define CAN_IF2CMSK_DATAB 0x00000001
// Access Data Byte 4 to 7
6532
6533
//*****************************************************************************
6534
//
6535
// The following are defines for the bit fields in the CAN_O_IF2MSK1 register.
6536
//
6537
//*****************************************************************************
6538
#define CAN_IF2MSK1_IDMSK_M 0x0000FFFF
// Identifier Mask
6539
#define CAN_IF2MSK1_IDMSK_S 0
6540
6541
//*****************************************************************************
6542
//
6543
// The following are defines for the bit fields in the CAN_O_IF2MSK2 register.
6544
//
6545
//*****************************************************************************
6546
#define CAN_IF2MSK2_MXTD 0x00008000
// Mask Extended Identifier
6547
#define CAN_IF2MSK2_MDIR 0x00004000
// Mask Message Direction
6548
#define CAN_IF2MSK2_IDMSK_M 0x00001FFF
// Identifier Mask
6549
#define CAN_IF2MSK2_IDMSK_S 0
6550
6551
//*****************************************************************************
6552
//
6553
// The following are defines for the bit fields in the CAN_O_IF2ARB1 register.
6554
//
6555
//*****************************************************************************
6556
#define CAN_IF2ARB1_ID_M 0x0000FFFF
// Message Identifier
6557
#define CAN_IF2ARB1_ID_S 0
6558
6559
//*****************************************************************************
6560
//
6561
// The following are defines for the bit fields in the CAN_O_IF2ARB2 register.
6562
//
6563
//*****************************************************************************
6564
#define CAN_IF2ARB2_MSGVAL 0x00008000
// Message Valid
6565
#define CAN_IF2ARB2_XTD 0x00004000
// Extended Identifier
6566
#define CAN_IF2ARB2_DIR 0x00002000
// Message Direction
6567
#define CAN_IF2ARB2_ID_M 0x00001FFF
// Message Identifier
6568
#define CAN_IF2ARB2_ID_S 0
6569
6570
//*****************************************************************************
6571
//
6572
// The following are defines for the bit fields in the CAN_O_IF2MCTL register.
6573
//
6574
//*****************************************************************************
6575
#define CAN_IF2MCTL_NEWDAT 0x00008000
// New Data
6576
#define CAN_IF2MCTL_MSGLST 0x00004000
// Message Lost
6577
#define CAN_IF2MCTL_INTPND 0x00002000
// Interrupt Pending
6578
#define CAN_IF2MCTL_UMASK 0x00001000
// Use Acceptance Mask
6579
#define CAN_IF2MCTL_TXIE 0x00000800
// Transmit Interrupt Enable
6580
#define CAN_IF2MCTL_RXIE 0x00000400
// Receive Interrupt Enable
6581
#define CAN_IF2MCTL_RMTEN 0x00000200
// Remote Enable
6582
#define CAN_IF2MCTL_TXRQST 0x00000100
// Transmit Request
6583
#define CAN_IF2MCTL_EOB 0x00000080
// End of Buffer
6584
#define CAN_IF2MCTL_DLC_M 0x0000000F
// Data Length Code
6585
#define CAN_IF2MCTL_DLC_S 0
6586
6587
//*****************************************************************************
6588
//
6589
// The following are defines for the bit fields in the CAN_O_IF2DA1 register.
6590
//
6591
//*****************************************************************************
6592
#define CAN_IF2DA1_DATA_M 0x0000FFFF
// Data
6593
#define CAN_IF2DA1_DATA_S 0
6594
6595
//*****************************************************************************
6596
//
6597
// The following are defines for the bit fields in the CAN_O_IF2DA2 register.
6598
//
6599
//*****************************************************************************
6600
#define CAN_IF2DA2_DATA_M 0x0000FFFF
// Data
6601
#define CAN_IF2DA2_DATA_S 0
6602
6603
//*****************************************************************************
6604
//
6605
// The following are defines for the bit fields in the CAN_O_IF2DB1 register.
6606
//
6607
//*****************************************************************************
6608
#define CAN_IF2DB1_DATA_M 0x0000FFFF
// Data
6609
#define CAN_IF2DB1_DATA_S 0
6610
6611
//*****************************************************************************
6612
//
6613
// The following are defines for the bit fields in the CAN_O_IF2DB2 register.
6614
//
6615
//*****************************************************************************
6616
#define CAN_IF2DB2_DATA_M 0x0000FFFF
// Data
6617
#define CAN_IF2DB2_DATA_S 0
6618
6619
//*****************************************************************************
6620
//
6621
// The following are defines for the bit fields in the CAN_O_TXRQ1 register.
6622
//
6623
//*****************************************************************************
6624
#define CAN_TXRQ1_TXRQST_M 0x0000FFFF
// Transmission Request Bits
6625
#define CAN_TXRQ1_TXRQST_S 0
6626
6627
//*****************************************************************************
6628
//
6629
// The following are defines for the bit fields in the CAN_O_TXRQ2 register.
6630
//
6631
//*****************************************************************************
6632
#define CAN_TXRQ2_TXRQST_M 0x0000FFFF
// Transmission Request Bits
6633
#define CAN_TXRQ2_TXRQST_S 0
6634
6635
//*****************************************************************************
6636
//
6637
// The following are defines for the bit fields in the CAN_O_NWDA1 register.
6638
//
6639
//*****************************************************************************
6640
#define CAN_NWDA1_NEWDAT_M 0x0000FFFF
// New Data Bits
6641
#define CAN_NWDA1_NEWDAT_S 0
6642
6643
//*****************************************************************************
6644
//
6645
// The following are defines for the bit fields in the CAN_O_NWDA2 register.
6646
//
6647
//*****************************************************************************
6648
#define CAN_NWDA2_NEWDAT_M 0x0000FFFF
// New Data Bits
6649
#define CAN_NWDA2_NEWDAT_S 0
6650
6651
//*****************************************************************************
6652
//
6653
// The following are defines for the bit fields in the CAN_O_MSG1INT register.
6654
//
6655
//*****************************************************************************
6656
#define CAN_MSG1INT_INTPND_M 0x0000FFFF
// Interrupt Pending Bits
6657
#define CAN_MSG1INT_INTPND_S 0
6658
6659
//*****************************************************************************
6660
//
6661
// The following are defines for the bit fields in the CAN_O_MSG2INT register.
6662
//
6663
//*****************************************************************************
6664
#define CAN_MSG2INT_INTPND_M 0x0000FFFF
// Interrupt Pending Bits
6665
#define CAN_MSG2INT_INTPND_S 0
6666
6667
//*****************************************************************************
6668
//
6669
// The following are defines for the bit fields in the CAN_O_MSG1VAL register.
6670
//
6671
//*****************************************************************************
6672
#define CAN_MSG1VAL_MSGVAL_M 0x0000FFFF
// Message Valid Bits
6673
#define CAN_MSG1VAL_MSGVAL_S 0
6674
6675
//*****************************************************************************
6676
//
6677
// The following are defines for the bit fields in the CAN_O_MSG2VAL register.
6678
//
6679
//*****************************************************************************
6680
#define CAN_MSG2VAL_MSGVAL_M 0x0000FFFF
// Message Valid Bits
6681
#define CAN_MSG2VAL_MSGVAL_S 0
6682
6683
//*****************************************************************************
6684
//
6685
// The following are defines for the bit fields in the USB_O_FADDR register.
6686
//
6687
//*****************************************************************************
6688
#define USB_FADDR_M 0x0000007F
// Function Address
6689
#define USB_FADDR_S 0
6690
6691
//*****************************************************************************
6692
//
6693
// The following are defines for the bit fields in the USB_O_POWER register.
6694
//
6695
//*****************************************************************************
6696
#define USB_POWER_ISOUP 0x00000080
// Isochronous Update
6697
#define USB_POWER_SOFTCONN 0x00000040
// Soft Connect/Disconnect
6698
#define USB_POWER_RESET 0x00000008
// RESET Signaling
6699
#define USB_POWER_RESUME 0x00000004
// RESUME Signaling
6700
#define USB_POWER_SUSPEND 0x00000002
// SUSPEND Mode
6701
#define USB_POWER_PWRDNPHY 0x00000001
// Power Down PHY
6702
6703
//*****************************************************************************
6704
//
6705
// The following are defines for the bit fields in the USB_O_TXIS register.
6706
//
6707
//*****************************************************************************
6708
#define USB_TXIS_EP7 0x00000080
// TX Endpoint 7 Interrupt
6709
#define USB_TXIS_EP6 0x00000040
// TX Endpoint 6 Interrupt
6710
#define USB_TXIS_EP5 0x00000020
// TX Endpoint 5 Interrupt
6711
#define USB_TXIS_EP4 0x00000010
// TX Endpoint 4 Interrupt
6712
#define USB_TXIS_EP3 0x00000008
// TX Endpoint 3 Interrupt
6713
#define USB_TXIS_EP2 0x00000004
// TX Endpoint 2 Interrupt
6714
#define USB_TXIS_EP1 0x00000002
// TX Endpoint 1 Interrupt
6715
#define USB_TXIS_EP0 0x00000001
// TX and RX Endpoint 0 Interrupt
6716
6717
//*****************************************************************************
6718
//
6719
// The following are defines for the bit fields in the USB_O_RXIS register.
6720
//
6721
//*****************************************************************************
6722
#define USB_RXIS_EP7 0x00000080
// RX Endpoint 7 Interrupt
6723
#define USB_RXIS_EP6 0x00000040
// RX Endpoint 6 Interrupt
6724
#define USB_RXIS_EP5 0x00000020
// RX Endpoint 5 Interrupt
6725
#define USB_RXIS_EP4 0x00000010
// RX Endpoint 4 Interrupt
6726
#define USB_RXIS_EP3 0x00000008
// RX Endpoint 3 Interrupt
6727
#define USB_RXIS_EP2 0x00000004
// RX Endpoint 2 Interrupt
6728
#define USB_RXIS_EP1 0x00000002
// RX Endpoint 1 Interrupt
6729
6730
//*****************************************************************************
6731
//
6732
// The following are defines for the bit fields in the USB_O_TXIE register.
6733
//
6734
//*****************************************************************************
6735
#define USB_TXIE_EP7 0x00000080
// TX Endpoint 7 Interrupt Enable
6736
#define USB_TXIE_EP6 0x00000040
// TX Endpoint 6 Interrupt Enable
6737
#define USB_TXIE_EP5 0x00000020
// TX Endpoint 5 Interrupt Enable
6738
#define USB_TXIE_EP4 0x00000010
// TX Endpoint 4 Interrupt Enable
6739
#define USB_TXIE_EP3 0x00000008
// TX Endpoint 3 Interrupt Enable
6740
#define USB_TXIE_EP2 0x00000004
// TX Endpoint 2 Interrupt Enable
6741
#define USB_TXIE_EP1 0x00000002
// TX Endpoint 1 Interrupt Enable
6742
#define USB_TXIE_EP0 0x00000001
// TX and RX Endpoint 0 Interrupt
6743
// Enable
6744
6745
//*****************************************************************************
6746
//
6747
// The following are defines for the bit fields in the USB_O_RXIE register.
6748
//
6749
//*****************************************************************************
6750
#define USB_RXIE_EP7 0x00000080
// RX Endpoint 7 Interrupt Enable
6751
#define USB_RXIE_EP6 0x00000040
// RX Endpoint 6 Interrupt Enable
6752
#define USB_RXIE_EP5 0x00000020
// RX Endpoint 5 Interrupt Enable
6753
#define USB_RXIE_EP4 0x00000010
// RX Endpoint 4 Interrupt Enable
6754
#define USB_RXIE_EP3 0x00000008
// RX Endpoint 3 Interrupt Enable
6755
#define USB_RXIE_EP2 0x00000004
// RX Endpoint 2 Interrupt Enable
6756
#define USB_RXIE_EP1 0x00000002
// RX Endpoint 1 Interrupt Enable
6757
6758
//*****************************************************************************
6759
//
6760
// The following are defines for the bit fields in the USB_O_IS register.
6761
//
6762
//*****************************************************************************
6763
#define USB_IS_VBUSERR 0x00000080
// VBUS Error (OTG only)
6764
#define USB_IS_SESREQ 0x00000040
// SESSION REQUEST (OTG only)
6765
#define USB_IS_DISCON 0x00000020
// Session Disconnect (OTG only)
6766
#define USB_IS_CONN 0x00000010
// Session Connect
6767
#define USB_IS_SOF 0x00000008
// Start of Frame
6768
#define USB_IS_BABBLE 0x00000004
// Babble Detected
6769
#define USB_IS_RESET 0x00000004
// RESET Signaling Detected
6770
#define USB_IS_RESUME 0x00000002
// RESUME Signaling Detected
6771
#define USB_IS_SUSPEND 0x00000001
// SUSPEND Signaling Detected
6772
6773
//*****************************************************************************
6774
//
6775
// The following are defines for the bit fields in the USB_O_IE register.
6776
//
6777
//*****************************************************************************
6778
#define USB_IE_VBUSERR 0x00000080
// Enable VBUS Error Interrupt (OTG
6779
// only)
6780
#define USB_IE_SESREQ 0x00000040
// Enable Session Request (OTG
6781
// only)
6782
#define USB_IE_DISCON 0x00000020
// Enable Disconnect Interrupt
6783
#define USB_IE_CONN 0x00000010
// Enable Connect Interrupt
6784
#define USB_IE_SOF 0x00000008
// Enable Start-of-Frame Interrupt
6785
#define USB_IE_BABBLE 0x00000004
// Enable Babble Interrupt
6786
#define USB_IE_RESET 0x00000004
// Enable RESET Interrupt
6787
#define USB_IE_RESUME 0x00000002
// Enable RESUME Interrupt
6788
#define USB_IE_SUSPND 0x00000001
// Enable SUSPEND Interrupt
6789
6790
//*****************************************************************************
6791
//
6792
// The following are defines for the bit fields in the USB_O_FRAME register.
6793
//
6794
//*****************************************************************************
6795
#define USB_FRAME_M 0x000007FF
// Frame Number
6796
#define USB_FRAME_S 0
6797
6798
//*****************************************************************************
6799
//
6800
// The following are defines for the bit fields in the USB_O_EPIDX register.
6801
//
6802
//*****************************************************************************
6803
#define USB_EPIDX_EPIDX_M 0x0000000F
// Endpoint Index
6804
#define USB_EPIDX_EPIDX_S 0
6805
6806
//*****************************************************************************
6807
//
6808
// The following are defines for the bit fields in the USB_O_TEST register.
6809
//
6810
//*****************************************************************************
6811
#define USB_TEST_FORCEH 0x00000080
// Force Host Mode
6812
#define USB_TEST_FIFOACC 0x00000040
// FIFO Access
6813
#define USB_TEST_FORCEFS 0x00000020
// Force Full-Speed Mode
6814
6815
//*****************************************************************************
6816
//
6817
// The following are defines for the bit fields in the USB_O_FIFO0 register.
6818
//
6819
//*****************************************************************************
6820
#define USB_FIFO0_EPDATA_M 0xFFFFFFFF
// Endpoint Data
6821
#define USB_FIFO0_EPDATA_S 0
6822
6823
//*****************************************************************************
6824
//
6825
// The following are defines for the bit fields in the USB_O_FIFO1 register.
6826
//
6827
//*****************************************************************************
6828
#define USB_FIFO1_EPDATA_M 0xFFFFFFFF
// Endpoint Data
6829
#define USB_FIFO1_EPDATA_S 0
6830
6831
//*****************************************************************************
6832
//
6833
// The following are defines for the bit fields in the USB_O_FIFO2 register.
6834
//
6835
//*****************************************************************************
6836
#define USB_FIFO2_EPDATA_M 0xFFFFFFFF
// Endpoint Data
6837
#define USB_FIFO2_EPDATA_S 0
6838
6839
//*****************************************************************************
6840
//
6841
// The following are defines for the bit fields in the USB_O_FIFO3 register.
6842
//
6843
//*****************************************************************************
6844
#define USB_FIFO3_EPDATA_M 0xFFFFFFFF
// Endpoint Data
6845
#define USB_FIFO3_EPDATA_S 0
6846
6847
//*****************************************************************************
6848
//
6849
// The following are defines for the bit fields in the USB_O_FIFO4 register.
6850
//
6851
//*****************************************************************************
6852
#define USB_FIFO4_EPDATA_M 0xFFFFFFFF
// Endpoint Data
6853
#define USB_FIFO4_EPDATA_S 0
6854
6855
//*****************************************************************************
6856
//
6857
// The following are defines for the bit fields in the USB_O_FIFO5 register.
6858
//
6859
//*****************************************************************************
6860
#define USB_FIFO5_EPDATA_M 0xFFFFFFFF
// Endpoint Data
6861
#define USB_FIFO5_EPDATA_S 0
6862
6863
//*****************************************************************************
6864
//
6865
// The following are defines for the bit fields in the USB_O_FIFO6 register.
6866
//
6867
//*****************************************************************************
6868
#define USB_FIFO6_EPDATA_M 0xFFFFFFFF
// Endpoint Data
6869
#define USB_FIFO6_EPDATA_S 0
6870
6871
//*****************************************************************************
6872
//
6873
// The following are defines for the bit fields in the USB_O_FIFO7 register.
6874
//
6875
//*****************************************************************************
6876
#define USB_FIFO7_EPDATA_M 0xFFFFFFFF
// Endpoint Data
6877
#define USB_FIFO7_EPDATA_S 0
6878
6879
//*****************************************************************************
6880
//
6881
// The following are defines for the bit fields in the USB_O_DEVCTL register.
6882
//
6883
//*****************************************************************************
6884
#define USB_DEVCTL_DEV 0x00000080
// Device Mode (OTG only)
6885
#define USB_DEVCTL_FSDEV 0x00000040
// Full-Speed Device Detected
6886
#define USB_DEVCTL_LSDEV 0x00000020
// Low-Speed Device Detected
6887
#define USB_DEVCTL_VBUS_M 0x00000018
// VBUS Level (OTG only)
6888
#define USB_DEVCTL_VBUS_NONE 0x00000000
// Below SessionEnd
6889
#define USB_DEVCTL_VBUS_SEND 0x00000008
// Above SessionEnd, below AValid
6890
#define USB_DEVCTL_VBUS_AVALID 0x00000010
// Above AValid, below VBUSValid
6891
#define USB_DEVCTL_VBUS_VALID 0x00000018
// Above VBUSValid
6892
#define USB_DEVCTL_HOST 0x00000004
// Host Mode
6893
#define USB_DEVCTL_HOSTREQ 0x00000002
// Host Request (OTG only)
6894
#define USB_DEVCTL_SESSION 0x00000001
// Session Start/End (OTG only)
6895
6896
//*****************************************************************************
6897
//
6898
// The following are defines for the bit fields in the USB_O_TXFIFOSZ register.
6899
//
6900
//*****************************************************************************
6901
#define USB_TXFIFOSZ_DPB 0x00000010
// Double Packet Buffer Support
6902
#define USB_TXFIFOSZ_SIZE_M 0x0000000F
// Max Packet Size
6903
#define USB_TXFIFOSZ_SIZE_8 0x00000000
// 8
6904
#define USB_TXFIFOSZ_SIZE_16 0x00000001
// 16
6905
#define USB_TXFIFOSZ_SIZE_32 0x00000002
// 32
6906
#define USB_TXFIFOSZ_SIZE_64 0x00000003
// 64
6907
#define USB_TXFIFOSZ_SIZE_128 0x00000004
// 128
6908
#define USB_TXFIFOSZ_SIZE_256 0x00000005
// 256
6909
#define USB_TXFIFOSZ_SIZE_512 0x00000006
// 512
6910
#define USB_TXFIFOSZ_SIZE_1024 0x00000007
// 1024
6911
#define USB_TXFIFOSZ_SIZE_2048 0x00000008
// 2048
6912
6913
//*****************************************************************************
6914
//
6915
// The following are defines for the bit fields in the USB_O_RXFIFOSZ register.
6916
//
6917
//*****************************************************************************
6918
#define USB_RXFIFOSZ_DPB 0x00000010
// Double Packet Buffer Support
6919
#define USB_RXFIFOSZ_SIZE_M 0x0000000F
// Max Packet Size
6920
#define USB_RXFIFOSZ_SIZE_8 0x00000000
// 8
6921
#define USB_RXFIFOSZ_SIZE_16 0x00000001
// 16
6922
#define USB_RXFIFOSZ_SIZE_32 0x00000002
// 32
6923
#define USB_RXFIFOSZ_SIZE_64 0x00000003
// 64
6924
#define USB_RXFIFOSZ_SIZE_128 0x00000004
// 128
6925
#define USB_RXFIFOSZ_SIZE_256 0x00000005
// 256
6926
#define USB_RXFIFOSZ_SIZE_512 0x00000006
// 512
6927
#define USB_RXFIFOSZ_SIZE_1024 0x00000007
// 1024
6928
#define USB_RXFIFOSZ_SIZE_2048 0x00000008
// 2048
6929
6930
//*****************************************************************************
6931
//
6932
// The following are defines for the bit fields in the USB_O_TXFIFOADD
6933
// register.
6934
//
6935
//*****************************************************************************
6936
#define USB_TXFIFOADD_ADDR_M 0x000001FF
// Transmit/Receive Start Address
6937
#define USB_TXFIFOADD_ADDR_S 0
6938
6939
//*****************************************************************************
6940
//
6941
// The following are defines for the bit fields in the USB_O_RXFIFOADD
6942
// register.
6943
//
6944
//*****************************************************************************
6945
#define USB_RXFIFOADD_ADDR_M 0x000001FF
// Transmit/Receive Start Address
6946
#define USB_RXFIFOADD_ADDR_S 0
6947
6948
//*****************************************************************************
6949
//
6950
// The following are defines for the bit fields in the USB_O_CONTIM register.
6951
//
6952
//*****************************************************************************
6953
#define USB_CONTIM_WTCON_M 0x000000F0
// Connect Wait
6954
#define USB_CONTIM_WTID_M 0x0000000F
// Wait ID
6955
#define USB_CONTIM_WTCON_S 4
6956
#define USB_CONTIM_WTID_S 0
6957
6958
//*****************************************************************************
6959
//
6960
// The following are defines for the bit fields in the USB_O_VPLEN register.
6961
//
6962
//*****************************************************************************
6963
#define USB_VPLEN_VPLEN_M 0x000000FF
// VBUS Pulse Length
6964
#define USB_VPLEN_VPLEN_S 0
6965
6966
//*****************************************************************************
6967
//
6968
// The following are defines for the bit fields in the USB_O_FSEOF register.
6969
//
6970
//*****************************************************************************
6971
#define USB_FSEOF_FSEOFG_M 0x000000FF
// Full-Speed End-of-Frame Gap
6972
#define USB_FSEOF_FSEOFG_S 0
6973
6974
//*****************************************************************************
6975
//
6976
// The following are defines for the bit fields in the USB_O_LSEOF register.
6977
//
6978
//*****************************************************************************
6979
#define USB_LSEOF_LSEOFG_M 0x000000FF
// Low-Speed End-of-Frame Gap
6980
#define USB_LSEOF_LSEOFG_S 0
6981
6982
//*****************************************************************************
6983
//
6984
// The following are defines for the bit fields in the USB_O_TXFUNCADDR0
6985
// register.
6986
//
6987
//*****************************************************************************
6988
#define USB_TXFUNCADDR0_ADDR_M 0x0000007F
// Device Address
6989
#define USB_TXFUNCADDR0_ADDR_S 0
6990
6991
//*****************************************************************************
6992
//
6993
// The following are defines for the bit fields in the USB_O_TXHUBADDR0
6994
// register.
6995
//
6996
//*****************************************************************************
6997
#define USB_TXHUBADDR0_ADDR_M 0x0000007F
// Hub Address
6998
#define USB_TXHUBADDR0_ADDR_S 0
6999
7000
//*****************************************************************************
7001
//
7002
// The following are defines for the bit fields in the USB_O_TXHUBPORT0
7003
// register.
7004
//
7005
//*****************************************************************************
7006
#define USB_TXHUBPORT0_PORT_M 0x0000007F
// Hub Port
7007
#define USB_TXHUBPORT0_PORT_S 0
7008
7009
//*****************************************************************************
7010
//
7011
// The following are defines for the bit fields in the USB_O_TXFUNCADDR1
7012
// register.
7013
//
7014
//*****************************************************************************
7015
#define USB_TXFUNCADDR1_ADDR_M 0x0000007F
// Device Address
7016
#define USB_TXFUNCADDR1_ADDR_S 0
7017
7018
//*****************************************************************************
7019
//
7020
// The following are defines for the bit fields in the USB_O_TXHUBADDR1
7021
// register.
7022
//
7023
//*****************************************************************************
7024
#define USB_TXHUBADDR1_ADDR_M 0x0000007F
// Hub Address
7025
#define USB_TXHUBADDR1_ADDR_S 0
7026
7027
//*****************************************************************************
7028
//
7029
// The following are defines for the bit fields in the USB_O_TXHUBPORT1
7030
// register.
7031
//
7032
//*****************************************************************************
7033
#define USB_TXHUBPORT1_PORT_M 0x0000007F
// Hub Port
7034
#define USB_TXHUBPORT1_PORT_S 0
7035
7036
//*****************************************************************************
7037
//
7038
// The following are defines for the bit fields in the USB_O_RXFUNCADDR1
7039
// register.
7040
//
7041
//*****************************************************************************
7042
#define USB_RXFUNCADDR1_ADDR_M 0x0000007F
// Device Address
7043
#define USB_RXFUNCADDR1_ADDR_S 0
7044
7045
//*****************************************************************************
7046
//
7047
// The following are defines for the bit fields in the USB_O_RXHUBADDR1
7048
// register.
7049
//
7050
//*****************************************************************************
7051
#define USB_RXHUBADDR1_ADDR_M 0x0000007F
// Hub Address
7052
#define USB_RXHUBADDR1_ADDR_S 0
7053
7054
//*****************************************************************************
7055
//
7056
// The following are defines for the bit fields in the USB_O_RXHUBPORT1
7057
// register.
7058
//
7059
//*****************************************************************************
7060
#define USB_RXHUBPORT1_PORT_M 0x0000007F
// Hub Port
7061
#define USB_RXHUBPORT1_PORT_S 0
7062
7063
//*****************************************************************************
7064
//
7065
// The following are defines for the bit fields in the USB_O_TXFUNCADDR2
7066
// register.
7067
//
7068
//*****************************************************************************
7069
#define USB_TXFUNCADDR2_ADDR_M 0x0000007F
// Device Address
7070
#define USB_TXFUNCADDR2_ADDR_S 0
7071
7072
//*****************************************************************************
7073
//
7074
// The following are defines for the bit fields in the USB_O_TXHUBADDR2
7075
// register.
7076
//
7077
//*****************************************************************************
7078
#define USB_TXHUBADDR2_ADDR_M 0x0000007F
// Hub Address
7079
#define USB_TXHUBADDR2_ADDR_S 0
7080
7081
//*****************************************************************************
7082
//
7083
// The following are defines for the bit fields in the USB_O_TXHUBPORT2
7084
// register.
7085
//
7086
//*****************************************************************************
7087
#define USB_TXHUBPORT2_PORT_M 0x0000007F
// Hub Port
7088
#define USB_TXHUBPORT2_PORT_S 0
7089
7090
//*****************************************************************************
7091
//
7092
// The following are defines for the bit fields in the USB_O_RXFUNCADDR2
7093
// register.
7094
//
7095
//*****************************************************************************
7096
#define USB_RXFUNCADDR2_ADDR_M 0x0000007F
// Device Address
7097
#define USB_RXFUNCADDR2_ADDR_S 0
7098
7099
//*****************************************************************************
7100
//
7101
// The following are defines for the bit fields in the USB_O_RXHUBADDR2
7102
// register.
7103
//
7104
//*****************************************************************************
7105
#define USB_RXHUBADDR2_ADDR_M 0x0000007F
// Hub Address
7106
#define USB_RXHUBADDR2_ADDR_S 0
7107
7108
//*****************************************************************************
7109
//
7110
// The following are defines for the bit fields in the USB_O_RXHUBPORT2
7111
// register.
7112
//
7113
//*****************************************************************************
7114
#define USB_RXHUBPORT2_PORT_M 0x0000007F
// Hub Port
7115
#define USB_RXHUBPORT2_PORT_S 0
7116
7117
//*****************************************************************************
7118
//
7119
// The following are defines for the bit fields in the USB_O_TXFUNCADDR3
7120
// register.
7121
//
7122
//*****************************************************************************
7123
#define USB_TXFUNCADDR3_ADDR_M 0x0000007F
// Device Address
7124
#define USB_TXFUNCADDR3_ADDR_S 0
7125
7126
//*****************************************************************************
7127
//
7128
// The following are defines for the bit fields in the USB_O_TXHUBADDR3
7129
// register.
7130
//
7131
//*****************************************************************************
7132
#define USB_TXHUBADDR3_ADDR_M 0x0000007F
// Hub Address
7133
#define USB_TXHUBADDR3_ADDR_S 0
7134
7135
//*****************************************************************************
7136
//
7137
// The following are defines for the bit fields in the USB_O_TXHUBPORT3
7138
// register.
7139
//
7140
//*****************************************************************************
7141
#define USB_TXHUBPORT3_PORT_M 0x0000007F
// Hub Port
7142
#define USB_TXHUBPORT3_PORT_S 0
7143
7144
//*****************************************************************************
7145
//
7146
// The following are defines for the bit fields in the USB_O_RXFUNCADDR3
7147
// register.
7148
//
7149
//*****************************************************************************
7150
#define USB_RXFUNCADDR3_ADDR_M 0x0000007F
// Device Address
7151
#define USB_RXFUNCADDR3_ADDR_S 0
7152
7153
//*****************************************************************************
7154
//
7155
// The following are defines for the bit fields in the USB_O_RXHUBADDR3
7156
// register.
7157
//
7158
//*****************************************************************************
7159
#define USB_RXHUBADDR3_ADDR_M 0x0000007F
// Hub Address
7160
#define USB_RXHUBADDR3_ADDR_S 0
7161
7162
//*****************************************************************************
7163
//
7164
// The following are defines for the bit fields in the USB_O_RXHUBPORT3
7165
// register.
7166
//
7167
//*****************************************************************************
7168
#define USB_RXHUBPORT3_PORT_M 0x0000007F
// Hub Port
7169
#define USB_RXHUBPORT3_PORT_S 0
7170
7171
//*****************************************************************************
7172
//
7173
// The following are defines for the bit fields in the USB_O_TXFUNCADDR4
7174
// register.
7175
//
7176
//*****************************************************************************
7177
#define USB_TXFUNCADDR4_ADDR_M 0x0000007F
// Device Address
7178
#define USB_TXFUNCADDR4_ADDR_S 0
7179
7180
//*****************************************************************************
7181
//
7182
// The following are defines for the bit fields in the USB_O_TXHUBADDR4
7183
// register.
7184
//
7185
//*****************************************************************************
7186
#define USB_TXHUBADDR4_ADDR_M 0x0000007F
// Hub Address
7187
#define USB_TXHUBADDR4_ADDR_S 0
7188
7189
//*****************************************************************************
7190
//
7191
// The following are defines for the bit fields in the USB_O_TXHUBPORT4
7192
// register.
7193
//
7194
//*****************************************************************************
7195
#define USB_TXHUBPORT4_PORT_M 0x0000007F
// Hub Port
7196
#define USB_TXHUBPORT4_PORT_S 0
7197
7198
//*****************************************************************************
7199
//
7200
// The following are defines for the bit fields in the USB_O_RXFUNCADDR4
7201
// register.
7202
//
7203
//*****************************************************************************
7204
#define USB_RXFUNCADDR4_ADDR_M 0x0000007F
// Device Address
7205
#define USB_RXFUNCADDR4_ADDR_S 0
7206
7207
//*****************************************************************************
7208
//
7209
// The following are defines for the bit fields in the USB_O_RXHUBADDR4
7210
// register.
7211
//
7212
//*****************************************************************************
7213
#define USB_RXHUBADDR4_ADDR_M 0x0000007F
// Hub Address
7214
#define USB_RXHUBADDR4_ADDR_S 0
7215
7216
//*****************************************************************************
7217
//
7218
// The following are defines for the bit fields in the USB_O_RXHUBPORT4
7219
// register.
7220
//
7221
//*****************************************************************************
7222
#define USB_RXHUBPORT4_PORT_M 0x0000007F
// Hub Port
7223
#define USB_RXHUBPORT4_PORT_S 0
7224
7225
//*****************************************************************************
7226
//
7227
// The following are defines for the bit fields in the USB_O_TXFUNCADDR5
7228
// register.
7229
//
7230
//*****************************************************************************
7231
#define USB_TXFUNCADDR5_ADDR_M 0x0000007F
// Device Address
7232
#define USB_TXFUNCADDR5_ADDR_S 0
7233
7234
//*****************************************************************************
7235
//
7236
// The following are defines for the bit fields in the USB_O_TXHUBADDR5
7237
// register.
7238
//
7239
//*****************************************************************************
7240
#define USB_TXHUBADDR5_ADDR_M 0x0000007F
// Hub Address
7241
#define USB_TXHUBADDR5_ADDR_S 0
7242
7243
//*****************************************************************************
7244
//
7245
// The following are defines for the bit fields in the USB_O_TXHUBPORT5
7246
// register.
7247
//
7248
//*****************************************************************************
7249
#define USB_TXHUBPORT5_PORT_M 0x0000007F
// Hub Port
7250
#define USB_TXHUBPORT5_PORT_S 0
7251
7252
//*****************************************************************************
7253
//
7254
// The following are defines for the bit fields in the USB_O_RXFUNCADDR5
7255
// register.
7256
//
7257
//*****************************************************************************
7258
#define USB_RXFUNCADDR5_ADDR_M 0x0000007F
// Device Address
7259
#define USB_RXFUNCADDR5_ADDR_S 0
7260
7261
//*****************************************************************************
7262
//
7263
// The following are defines for the bit fields in the USB_O_RXHUBADDR5
7264
// register.
7265
//
7266
//*****************************************************************************
7267
#define USB_RXHUBADDR5_ADDR_M 0x0000007F
// Hub Address
7268
#define USB_RXHUBADDR5_ADDR_S 0
7269
7270
//*****************************************************************************
7271
//
7272
// The following are defines for the bit fields in the USB_O_RXHUBPORT5
7273
// register.
7274
//
7275
//*****************************************************************************
7276
#define USB_RXHUBPORT5_PORT_M 0x0000007F
// Hub Port
7277
#define USB_RXHUBPORT5_PORT_S 0
7278
7279
//*****************************************************************************
7280
//
7281
// The following are defines for the bit fields in the USB_O_TXFUNCADDR6
7282
// register.
7283
//
7284
//*****************************************************************************
7285
#define USB_TXFUNCADDR6_ADDR_M 0x0000007F
// Device Address
7286
#define USB_TXFUNCADDR6_ADDR_S 0
7287
7288
//*****************************************************************************
7289
//
7290
// The following are defines for the bit fields in the USB_O_TXHUBADDR6
7291
// register.
7292
//
7293
//*****************************************************************************
7294
#define USB_TXHUBADDR6_ADDR_M 0x0000007F
// Hub Address
7295
#define USB_TXHUBADDR6_ADDR_S 0
7296
7297
//*****************************************************************************
7298
//
7299
// The following are defines for the bit fields in the USB_O_TXHUBPORT6
7300
// register.
7301
//
7302
//*****************************************************************************
7303
#define USB_TXHUBPORT6_PORT_M 0x0000007F
// Hub Port
7304
#define USB_TXHUBPORT6_PORT_S 0
7305
7306
//*****************************************************************************
7307
//
7308
// The following are defines for the bit fields in the USB_O_RXFUNCADDR6
7309
// register.
7310
//
7311
//*****************************************************************************
7312
#define USB_RXFUNCADDR6_ADDR_M 0x0000007F
// Device Address
7313
#define USB_RXFUNCADDR6_ADDR_S 0
7314
7315
//*****************************************************************************
7316
//
7317
// The following are defines for the bit fields in the USB_O_RXHUBADDR6
7318
// register.
7319
//
7320
//*****************************************************************************
7321
#define USB_RXHUBADDR6_ADDR_M 0x0000007F
// Hub Address
7322
#define USB_RXHUBADDR6_ADDR_S 0
7323
7324
//*****************************************************************************
7325
//
7326
// The following are defines for the bit fields in the USB_O_RXHUBPORT6
7327
// register.
7328
//
7329
//*****************************************************************************
7330
#define USB_RXHUBPORT6_PORT_M 0x0000007F
// Hub Port
7331
#define USB_RXHUBPORT6_PORT_S 0
7332
7333
//*****************************************************************************
7334
//
7335
// The following are defines for the bit fields in the USB_O_TXFUNCADDR7
7336
// register.
7337
//
7338
//*****************************************************************************
7339
#define USB_TXFUNCADDR7_ADDR_M 0x0000007F
// Device Address
7340
#define USB_TXFUNCADDR7_ADDR_S 0
7341
7342
//*****************************************************************************
7343
//
7344
// The following are defines for the bit fields in the USB_O_TXHUBADDR7
7345
// register.
7346
//
7347
//*****************************************************************************
7348
#define USB_TXHUBADDR7_ADDR_M 0x0000007F
// Hub Address
7349
#define USB_TXHUBADDR7_ADDR_S 0
7350
7351
//*****************************************************************************
7352
//
7353
// The following are defines for the bit fields in the USB_O_TXHUBPORT7
7354
// register.
7355
//
7356
//*****************************************************************************
7357
#define USB_TXHUBPORT7_PORT_M 0x0000007F
// Hub Port
7358
#define USB_TXHUBPORT7_PORT_S 0
7359
7360
//*****************************************************************************
7361
//
7362
// The following are defines for the bit fields in the USB_O_RXFUNCADDR7
7363
// register.
7364
//
7365
//*****************************************************************************
7366
#define USB_RXFUNCADDR7_ADDR_M 0x0000007F
// Device Address
7367
#define USB_RXFUNCADDR7_ADDR_S 0
7368
7369
//*****************************************************************************
7370
//
7371
// The following are defines for the bit fields in the USB_O_RXHUBADDR7
7372
// register.
7373
//
7374
//*****************************************************************************
7375
#define USB_RXHUBADDR7_ADDR_M 0x0000007F
// Hub Address
7376
#define USB_RXHUBADDR7_ADDR_S 0
7377
7378
//*****************************************************************************
7379
//
7380
// The following are defines for the bit fields in the USB_O_RXHUBPORT7
7381
// register.
7382
//
7383
//*****************************************************************************
7384
#define USB_RXHUBPORT7_PORT_M 0x0000007F
// Hub Port
7385
#define USB_RXHUBPORT7_PORT_S 0
7386
7387
//*****************************************************************************
7388
//
7389
// The following are defines for the bit fields in the USB_O_CSRL0 register.
7390
//
7391
//*****************************************************************************
7392
#define USB_CSRL0_NAKTO 0x00000080
// NAK Timeout
7393
#define USB_CSRL0_SETENDC 0x00000080
// Setup End Clear
7394
#define USB_CSRL0_STATUS 0x00000040
// STATUS Packet
7395
#define USB_CSRL0_RXRDYC 0x00000040
// RXRDY Clear
7396
#define USB_CSRL0_REQPKT 0x00000020
// Request Packet
7397
#define USB_CSRL0_STALL 0x00000020
// Send Stall
7398
#define USB_CSRL0_SETEND 0x00000010
// Setup End
7399
#define USB_CSRL0_ERROR 0x00000010
// Error
7400
#define USB_CSRL0_DATAEND 0x00000008
// Data End
7401
#define USB_CSRL0_SETUP 0x00000008
// Setup Packet
7402
#define USB_CSRL0_STALLED 0x00000004
// Endpoint Stalled
7403
#define USB_CSRL0_TXRDY 0x00000002
// Transmit Packet Ready
7404
#define USB_CSRL0_RXRDY 0x00000001
// Receive Packet Ready
7405
7406
//*****************************************************************************
7407
//
7408
// The following are defines for the bit fields in the USB_O_CSRH0 register.
7409
//
7410
//*****************************************************************************
7411
#define USB_CSRH0_DTWE 0x00000004
// Data Toggle Write Enable
7412
#define USB_CSRH0_DT 0x00000002
// Data Toggle
7413
#define USB_CSRH0_FLUSH 0x00000001
// Flush FIFO
7414
7415
//*****************************************************************************
7416
//
7417
// The following are defines for the bit fields in the USB_O_COUNT0 register.
7418
//
7419
//*****************************************************************************
7420
#define USB_COUNT0_COUNT_M 0x0000007F
// FIFO Count
7421
#define USB_COUNT0_COUNT_S 0
7422
7423
//*****************************************************************************
7424
//
7425
// The following are defines for the bit fields in the USB_O_TYPE0 register.
7426
//
7427
//*****************************************************************************
7428
#define USB_TYPE0_SPEED_M 0x000000C0
// Operating Speed
7429
#define USB_TYPE0_SPEED_FULL 0x00000080
// Full
7430
#define USB_TYPE0_SPEED_LOW 0x000000C0
// Low
7431
7432
//*****************************************************************************
7433
//
7434
// The following are defines for the bit fields in the USB_O_NAKLMT register.
7435
//
7436
//*****************************************************************************
7437
#define USB_NAKLMT_NAKLMT_M 0x0000001F
// EP0 NAK Limit
7438
#define USB_NAKLMT_NAKLMT_S 0
7439
7440
//*****************************************************************************
7441
//
7442
// The following are defines for the bit fields in the USB_O_TXMAXP1 register.
7443
//
7444
//*****************************************************************************
7445
#define USB_TXMAXP1_MAXLOAD_M 0x000007FF
// Maximum Payload
7446
#define USB_TXMAXP1_MAXLOAD_S 0
7447
7448
//*****************************************************************************
7449
//
7450
// The following are defines for the bit fields in the USB_O_TXCSRL1 register.
7451
//
7452
//*****************************************************************************
7453
#define USB_TXCSRL1_NAKTO 0x00000080
// NAK Timeout
7454
#define USB_TXCSRL1_CLRDT 0x00000040
// Clear Data Toggle
7455
#define USB_TXCSRL1_STALLED 0x00000020
// Endpoint Stalled
7456
#define USB_TXCSRL1_STALL 0x00000010
// Send STALL
7457
#define USB_TXCSRL1_SETUP 0x00000010
// Setup Packet
7458
#define USB_TXCSRL1_FLUSH 0x00000008
// Flush FIFO
7459
#define USB_TXCSRL1_ERROR 0x00000004
// Error
7460
#define USB_TXCSRL1_UNDRN 0x00000004
// Underrun
7461
#define USB_TXCSRL1_FIFONE 0x00000002
// FIFO Not Empty
7462
#define USB_TXCSRL1_TXRDY 0x00000001
// Transmit Packet Ready
7463
7464
//*****************************************************************************
7465
//
7466
// The following are defines for the bit fields in the USB_O_TXCSRH1 register.
7467
//
7468
//*****************************************************************************
7469
#define USB_TXCSRH1_AUTOSET 0x00000080
// Auto Set
7470
#define USB_TXCSRH1_ISO 0x00000040
// Isochronous Transfers
7471
#define USB_TXCSRH1_MODE 0x00000020
// Mode
7472
#define USB_TXCSRH1_DMAEN 0x00000010
// DMA Request Enable
7473
#define USB_TXCSRH1_FDT 0x00000008
// Force Data Toggle
7474
#define USB_TXCSRH1_DMAMOD 0x00000004
// DMA Request Mode
7475
#define USB_TXCSRH1_DTWE 0x00000002
// Data Toggle Write Enable
7476
#define USB_TXCSRH1_DT 0x00000001
// Data Toggle
7477
7478
//*****************************************************************************
7479
//
7480
// The following are defines for the bit fields in the USB_O_RXMAXP1 register.
7481
//
7482
//*****************************************************************************
7483
#define USB_RXMAXP1_MAXLOAD_M 0x000007FF
// Maximum Payload
7484
#define USB_RXMAXP1_MAXLOAD_S 0
7485
7486
//*****************************************************************************
7487
//
7488
// The following are defines for the bit fields in the USB_O_RXCSRL1 register.
7489
//
7490
//*****************************************************************************
7491
#define USB_RXCSRL1_CLRDT 0x00000080
// Clear Data Toggle
7492
#define USB_RXCSRL1_STALLED 0x00000040
// Endpoint Stalled
7493
#define USB_RXCSRL1_STALL 0x00000020
// Send STALL
7494
#define USB_RXCSRL1_REQPKT 0x00000020
// Request Packet
7495
#define USB_RXCSRL1_FLUSH 0x00000010
// Flush FIFO
7496
#define USB_RXCSRL1_DATAERR 0x00000008
// Data Error
7497
#define USB_RXCSRL1_NAKTO 0x00000008
// NAK Timeout
7498
#define USB_RXCSRL1_OVER 0x00000004
// Overrun
7499
#define USB_RXCSRL1_ERROR 0x00000004
// Error
7500
#define USB_RXCSRL1_FULL 0x00000002
// FIFO Full
7501
#define USB_RXCSRL1_RXRDY 0x00000001
// Receive Packet Ready
7502
7503
//*****************************************************************************
7504
//
7505
// The following are defines for the bit fields in the USB_O_RXCSRH1 register.
7506
//
7507
//*****************************************************************************
7508
#define USB_RXCSRH1_AUTOCL 0x00000080
// Auto Clear
7509
#define USB_RXCSRH1_AUTORQ 0x00000040
// Auto Request
7510
#define USB_RXCSRH1_ISO 0x00000040
// Isochronous Transfers
7511
#define USB_RXCSRH1_DMAEN 0x00000020
// DMA Request Enable
7512
#define USB_RXCSRH1_DISNYET 0x00000010
// Disable NYET
7513
#define USB_RXCSRH1_PIDERR 0x00000010
// PID Error
7514
#define USB_RXCSRH1_DMAMOD 0x00000008
// DMA Request Mode
7515
#define USB_RXCSRH1_DTWE 0x00000004
// Data Toggle Write Enable
7516
#define USB_RXCSRH1_DT 0x00000002
// Data Toggle
7517
7518
//*****************************************************************************
7519
//
7520
// The following are defines for the bit fields in the USB_O_RXCOUNT1 register.
7521
//
7522
//*****************************************************************************
7523
#define USB_RXCOUNT1_COUNT_M 0x00001FFF
// Receive Packet Count
7524
#define USB_RXCOUNT1_COUNT_S 0
7525
7526
//*****************************************************************************
7527
//
7528
// The following are defines for the bit fields in the USB_O_TXTYPE1 register.
7529
//
7530
//*****************************************************************************
7531
#define USB_TXTYPE1_SPEED_M 0x000000C0
// Operating Speed
7532
#define USB_TXTYPE1_SPEED_DFLT 0x00000000
// Default
7533
#define USB_TXTYPE1_SPEED_FULL 0x00000080
// Full
7534
#define USB_TXTYPE1_SPEED_LOW 0x000000C0
// Low
7535
#define USB_TXTYPE1_PROTO_M 0x00000030
// Protocol
7536
#define USB_TXTYPE1_PROTO_CTRL 0x00000000
// Control
7537
#define USB_TXTYPE1_PROTO_ISOC 0x00000010
// Isochronous
7538
#define USB_TXTYPE1_PROTO_BULK 0x00000020
// Bulk
7539
#define USB_TXTYPE1_PROTO_INT 0x00000030
// Interrupt
7540
#define USB_TXTYPE1_TEP_M 0x0000000F
// Target Endpoint Number
7541
#define USB_TXTYPE1_TEP_S 0
7542
7543
//*****************************************************************************
7544
//
7545
// The following are defines for the bit fields in the USB_O_TXINTERVAL1
7546
// register.
7547
//
7548
//*****************************************************************************
7549
#define USB_TXINTERVAL1_NAKLMT_M \
7550
0x000000FF
// NAK Limit
7551
#define USB_TXINTERVAL1_TXPOLL_M \
7552
0x000000FF
// TX Polling
7553
#define USB_TXINTERVAL1_TXPOLL_S \
7554
0
7555
#define USB_TXINTERVAL1_NAKLMT_S \
7556
0
7557
7558
//*****************************************************************************
7559
//
7560
// The following are defines for the bit fields in the USB_O_RXTYPE1 register.
7561
//
7562
//*****************************************************************************
7563
#define USB_RXTYPE1_SPEED_M 0x000000C0
// Operating Speed
7564
#define USB_RXTYPE1_SPEED_DFLT 0x00000000
// Default
7565
#define USB_RXTYPE1_SPEED_FULL 0x00000080
// Full
7566
#define USB_RXTYPE1_SPEED_LOW 0x000000C0
// Low
7567
#define USB_RXTYPE1_PROTO_M 0x00000030
// Protocol
7568
#define USB_RXTYPE1_PROTO_CTRL 0x00000000
// Control
7569
#define USB_RXTYPE1_PROTO_ISOC 0x00000010
// Isochronous
7570
#define USB_RXTYPE1_PROTO_BULK 0x00000020
// Bulk
7571
#define USB_RXTYPE1_PROTO_INT 0x00000030
// Interrupt
7572
#define USB_RXTYPE1_TEP_M 0x0000000F
// Target Endpoint Number
7573
#define USB_RXTYPE1_TEP_S 0
7574
7575
//*****************************************************************************
7576
//
7577
// The following are defines for the bit fields in the USB_O_RXINTERVAL1
7578
// register.
7579
//
7580
//*****************************************************************************
7581
#define USB_RXINTERVAL1_TXPOLL_M \
7582
0x000000FF
// RX Polling
7583
#define USB_RXINTERVAL1_NAKLMT_M \
7584
0x000000FF
// NAK Limit
7585
#define USB_RXINTERVAL1_TXPOLL_S \
7586
0
7587
#define USB_RXINTERVAL1_NAKLMT_S \
7588
0
7589
7590
//*****************************************************************************
7591
//
7592
// The following are defines for the bit fields in the USB_O_TXMAXP2 register.
7593
//
7594
//*****************************************************************************
7595
#define USB_TXMAXP2_MAXLOAD_M 0x000007FF
// Maximum Payload
7596
#define USB_TXMAXP2_MAXLOAD_S 0
7597
7598
//*****************************************************************************
7599
//
7600
// The following are defines for the bit fields in the USB_O_TXCSRL2 register.
7601
//
7602
//*****************************************************************************
7603
#define USB_TXCSRL2_NAKTO 0x00000080
// NAK Timeout
7604
#define USB_TXCSRL2_CLRDT 0x00000040
// Clear Data Toggle
7605
#define USB_TXCSRL2_STALLED 0x00000020
// Endpoint Stalled
7606
#define USB_TXCSRL2_SETUP 0x00000010
// Setup Packet
7607
#define USB_TXCSRL2_STALL 0x00000010
// Send STALL
7608
#define USB_TXCSRL2_FLUSH 0x00000008
// Flush FIFO
7609
#define USB_TXCSRL2_ERROR 0x00000004
// Error
7610
#define USB_TXCSRL2_UNDRN 0x00000004
// Underrun
7611
#define USB_TXCSRL2_FIFONE 0x00000002
// FIFO Not Empty
7612
#define USB_TXCSRL2_TXRDY 0x00000001
// Transmit Packet Ready
7613
7614
//*****************************************************************************
7615
//
7616
// The following are defines for the bit fields in the USB_O_TXCSRH2 register.
7617
//
7618
//*****************************************************************************
7619
#define USB_TXCSRH2_AUTOSET 0x00000080
// Auto Set
7620
#define USB_TXCSRH2_ISO 0x00000040
// Isochronous Transfers
7621
#define USB_TXCSRH2_MODE 0x00000020
// Mode
7622
#define USB_TXCSRH2_DMAEN 0x00000010
// DMA Request Enable
7623
#define USB_TXCSRH2_FDT 0x00000008
// Force Data Toggle
7624
#define USB_TXCSRH2_DMAMOD 0x00000004
// DMA Request Mode
7625
#define USB_TXCSRH2_DTWE 0x00000002
// Data Toggle Write Enable
7626
#define USB_TXCSRH2_DT 0x00000001
// Data Toggle
7627
7628
//*****************************************************************************
7629
//
7630
// The following are defines for the bit fields in the USB_O_RXMAXP2 register.
7631
//
7632
//*****************************************************************************
7633
#define USB_RXMAXP2_MAXLOAD_M 0x000007FF
// Maximum Payload
7634
#define USB_RXMAXP2_MAXLOAD_S 0
7635
7636
//*****************************************************************************
7637
//
7638
// The following are defines for the bit fields in the USB_O_RXCSRL2 register.
7639
//
7640
//*****************************************************************************
7641
#define USB_RXCSRL2_CLRDT 0x00000080
// Clear Data Toggle
7642
#define USB_RXCSRL2_STALLED 0x00000040
// Endpoint Stalled
7643
#define USB_RXCSRL2_REQPKT 0x00000020
// Request Packet
7644
#define USB_RXCSRL2_STALL 0x00000020
// Send STALL
7645
#define USB_RXCSRL2_FLUSH 0x00000010
// Flush FIFO
7646
#define USB_RXCSRL2_DATAERR 0x00000008
// Data Error
7647
#define USB_RXCSRL2_NAKTO 0x00000008
// NAK Timeout
7648
#define USB_RXCSRL2_ERROR 0x00000004
// Error
7649
#define USB_RXCSRL2_OVER 0x00000004
// Overrun
7650
#define USB_RXCSRL2_FULL 0x00000002
// FIFO Full
7651
#define USB_RXCSRL2_RXRDY 0x00000001
// Receive Packet Ready
7652
7653
//*****************************************************************************
7654
//
7655
// The following are defines for the bit fields in the USB_O_RXCSRH2 register.
7656
//
7657
//*****************************************************************************
7658
#define USB_RXCSRH2_AUTOCL 0x00000080
// Auto Clear
7659
#define USB_RXCSRH2_AUTORQ 0x00000040
// Auto Request
7660
#define USB_RXCSRH2_ISO 0x00000040
// Isochronous Transfers
7661
#define USB_RXCSRH2_DMAEN 0x00000020
// DMA Request Enable
7662
#define USB_RXCSRH2_DISNYET 0x00000010
// Disable NYET
7663
#define USB_RXCSRH2_PIDERR 0x00000010
// PID Error
7664
#define USB_RXCSRH2_DMAMOD 0x00000008
// DMA Request Mode
7665
#define USB_RXCSRH2_DTWE 0x00000004
// Data Toggle Write Enable
7666
#define USB_RXCSRH2_DT 0x00000002
// Data Toggle
7667
7668
//*****************************************************************************
7669
//
7670
// The following are defines for the bit fields in the USB_O_RXCOUNT2 register.
7671
//
7672
//*****************************************************************************
7673
#define USB_RXCOUNT2_COUNT_M 0x00001FFF
// Receive Packet Count
7674
#define USB_RXCOUNT2_COUNT_S 0
7675
7676
//*****************************************************************************
7677
//
7678
// The following are defines for the bit fields in the USB_O_TXTYPE2 register.
7679
//
7680
//*****************************************************************************
7681
#define USB_TXTYPE2_SPEED_M 0x000000C0
// Operating Speed
7682
#define USB_TXTYPE2_SPEED_DFLT 0x00000000
// Default
7683
#define USB_TXTYPE2_SPEED_FULL 0x00000080
// Full
7684
#define USB_TXTYPE2_SPEED_LOW 0x000000C0
// Low
7685
#define USB_TXTYPE2_PROTO_M 0x00000030
// Protocol
7686
#define USB_TXTYPE2_PROTO_CTRL 0x00000000
// Control
7687
#define USB_TXTYPE2_PROTO_ISOC 0x00000010
// Isochronous
7688
#define USB_TXTYPE2_PROTO_BULK 0x00000020
// Bulk
7689
#define USB_TXTYPE2_PROTO_INT 0x00000030
// Interrupt
7690
#define USB_TXTYPE2_TEP_M 0x0000000F
// Target Endpoint Number
7691
#define USB_TXTYPE2_TEP_S 0
7692
7693
//*****************************************************************************
7694
//
7695
// The following are defines for the bit fields in the USB_O_TXINTERVAL2
7696
// register.
7697
//
7698
//*****************************************************************************
7699
#define USB_TXINTERVAL2_TXPOLL_M \
7700
0x000000FF
// TX Polling
7701
#define USB_TXINTERVAL2_NAKLMT_M \
7702
0x000000FF
// NAK Limit
7703
#define USB_TXINTERVAL2_NAKLMT_S \
7704
0
7705
#define USB_TXINTERVAL2_TXPOLL_S \
7706
0
7707
7708
//*****************************************************************************
7709
//
7710
// The following are defines for the bit fields in the USB_O_RXTYPE2 register.
7711
//
7712
//*****************************************************************************
7713
#define USB_RXTYPE2_SPEED_M 0x000000C0
// Operating Speed
7714
#define USB_RXTYPE2_SPEED_DFLT 0x00000000
// Default
7715
#define USB_RXTYPE2_SPEED_FULL 0x00000080
// Full
7716
#define USB_RXTYPE2_SPEED_LOW 0x000000C0
// Low
7717
#define USB_RXTYPE2_PROTO_M 0x00000030
// Protocol
7718
#define USB_RXTYPE2_PROTO_CTRL 0x00000000
// Control
7719
#define USB_RXTYPE2_PROTO_ISOC 0x00000010
// Isochronous
7720
#define USB_RXTYPE2_PROTO_BULK 0x00000020
// Bulk
7721
#define USB_RXTYPE2_PROTO_INT 0x00000030
// Interrupt
7722
#define USB_RXTYPE2_TEP_M 0x0000000F
// Target Endpoint Number
7723
#define USB_RXTYPE2_TEP_S 0
7724
7725
//*****************************************************************************
7726
//
7727
// The following are defines for the bit fields in the USB_O_RXINTERVAL2
7728
// register.
7729
//
7730
//*****************************************************************************
7731
#define USB_RXINTERVAL2_TXPOLL_M \
7732
0x000000FF
// RX Polling
7733
#define USB_RXINTERVAL2_NAKLMT_M \
7734
0x000000FF
// NAK Limit
7735
#define USB_RXINTERVAL2_TXPOLL_S \
7736
0
7737
#define USB_RXINTERVAL2_NAKLMT_S \
7738
0
7739
7740
//*****************************************************************************
7741
//
7742
// The following are defines for the bit fields in the USB_O_TXMAXP3 register.
7743
//
7744
//*****************************************************************************
7745
#define USB_TXMAXP3_MAXLOAD_M 0x000007FF
// Maximum Payload
7746
#define USB_TXMAXP3_MAXLOAD_S 0
7747
7748
//*****************************************************************************
7749
//
7750
// The following are defines for the bit fields in the USB_O_TXCSRL3 register.
7751
//
7752
//*****************************************************************************
7753
#define USB_TXCSRL3_NAKTO 0x00000080
// NAK Timeout
7754
#define USB_TXCSRL3_CLRDT 0x00000040
// Clear Data Toggle
7755
#define USB_TXCSRL3_STALLED 0x00000020
// Endpoint Stalled
7756
#define USB_TXCSRL3_SETUP 0x00000010
// Setup Packet
7757
#define USB_TXCSRL3_STALL 0x00000010
// Send STALL
7758
#define USB_TXCSRL3_FLUSH 0x00000008
// Flush FIFO
7759
#define USB_TXCSRL3_ERROR 0x00000004
// Error
7760
#define USB_TXCSRL3_UNDRN 0x00000004
// Underrun
7761
#define USB_TXCSRL3_FIFONE 0x00000002
// FIFO Not Empty
7762
#define USB_TXCSRL3_TXRDY 0x00000001
// Transmit Packet Ready
7763
7764
//*****************************************************************************
7765
//
7766
// The following are defines for the bit fields in the USB_O_TXCSRH3 register.
7767
//
7768
//*****************************************************************************
7769
#define USB_TXCSRH3_AUTOSET 0x00000080
// Auto Set
7770
#define USB_TXCSRH3_ISO 0x00000040
// Isochronous Transfers
7771
#define USB_TXCSRH3_MODE 0x00000020
// Mode
7772
#define USB_TXCSRH3_DMAEN 0x00000010
// DMA Request Enable
7773
#define USB_TXCSRH3_FDT 0x00000008
// Force Data Toggle
7774
#define USB_TXCSRH3_DMAMOD 0x00000004
// DMA Request Mode
7775
#define USB_TXCSRH3_DTWE 0x00000002
// Data Toggle Write Enable
7776
#define USB_TXCSRH3_DT 0x00000001
// Data Toggle
7777
7778
//*****************************************************************************
7779
//
7780
// The following are defines for the bit fields in the USB_O_RXMAXP3 register.
7781
//
7782
//*****************************************************************************
7783
#define USB_RXMAXP3_MAXLOAD_M 0x000007FF
// Maximum Payload
7784
#define USB_RXMAXP3_MAXLOAD_S 0
7785
7786
//*****************************************************************************
7787
//
7788
// The following are defines for the bit fields in the USB_O_RXCSRL3 register.
7789
//
7790
//*****************************************************************************
7791
#define USB_RXCSRL3_CLRDT 0x00000080
// Clear Data Toggle
7792
#define USB_RXCSRL3_STALLED 0x00000040
// Endpoint Stalled
7793
#define USB_RXCSRL3_STALL 0x00000020
// Send STALL
7794
#define USB_RXCSRL3_REQPKT 0x00000020
// Request Packet
7795
#define USB_RXCSRL3_FLUSH 0x00000010
// Flush FIFO
7796
#define USB_RXCSRL3_DATAERR 0x00000008
// Data Error
7797
#define USB_RXCSRL3_NAKTO 0x00000008
// NAK Timeout
7798
#define USB_RXCSRL3_ERROR 0x00000004
// Error
7799
#define USB_RXCSRL3_OVER 0x00000004
// Overrun
7800
#define USB_RXCSRL3_FULL 0x00000002
// FIFO Full
7801
#define USB_RXCSRL3_RXRDY 0x00000001
// Receive Packet Ready
7802
7803
//*****************************************************************************
7804
//
7805
// The following are defines for the bit fields in the USB_O_RXCSRH3 register.
7806
//
7807
//*****************************************************************************
7808
#define USB_RXCSRH3_AUTOCL 0x00000080
// Auto Clear
7809
#define USB_RXCSRH3_AUTORQ 0x00000040
// Auto Request
7810
#define USB_RXCSRH3_ISO 0x00000040
// Isochronous Transfers
7811
#define USB_RXCSRH3_DMAEN 0x00000020
// DMA Request Enable
7812
#define USB_RXCSRH3_DISNYET 0x00000010
// Disable NYET
7813
#define USB_RXCSRH3_PIDERR 0x00000010
// PID Error
7814
#define USB_RXCSRH3_DMAMOD 0x00000008
// DMA Request Mode
7815
#define USB_RXCSRH3_DTWE 0x00000004
// Data Toggle Write Enable
7816
#define USB_RXCSRH3_DT 0x00000002
// Data Toggle
7817
7818
//*****************************************************************************
7819
//
7820
// The following are defines for the bit fields in the USB_O_RXCOUNT3 register.
7821
//
7822
//*****************************************************************************
7823
#define USB_RXCOUNT3_COUNT_M 0x00001FFF
// Receive Packet Count
7824
#define USB_RXCOUNT3_COUNT_S 0
7825
7826
//*****************************************************************************
7827
//
7828
// The following are defines for the bit fields in the USB_O_TXTYPE3 register.
7829
//
7830
//*****************************************************************************
7831
#define USB_TXTYPE3_SPEED_M 0x000000C0
// Operating Speed
7832
#define USB_TXTYPE3_SPEED_DFLT 0x00000000
// Default
7833
#define USB_TXTYPE3_SPEED_FULL 0x00000080
// Full
7834
#define USB_TXTYPE3_SPEED_LOW 0x000000C0
// Low
7835
#define USB_TXTYPE3_PROTO_M 0x00000030
// Protocol
7836
#define USB_TXTYPE3_PROTO_CTRL 0x00000000
// Control
7837
#define USB_TXTYPE3_PROTO_ISOC 0x00000010
// Isochronous
7838
#define USB_TXTYPE3_PROTO_BULK 0x00000020
// Bulk
7839
#define USB_TXTYPE3_PROTO_INT 0x00000030
// Interrupt
7840
#define USB_TXTYPE3_TEP_M 0x0000000F
// Target Endpoint Number
7841
#define USB_TXTYPE3_TEP_S 0
7842
7843
//*****************************************************************************
7844
//
7845
// The following are defines for the bit fields in the USB_O_TXINTERVAL3
7846
// register.
7847
//
7848
//*****************************************************************************
7849
#define USB_TXINTERVAL3_TXPOLL_M \
7850
0x000000FF
// TX Polling
7851
#define USB_TXINTERVAL3_NAKLMT_M \
7852
0x000000FF
// NAK Limit
7853
#define USB_TXINTERVAL3_TXPOLL_S \
7854
0
7855
#define USB_TXINTERVAL3_NAKLMT_S \
7856
0
7857
7858
//*****************************************************************************
7859
//
7860
// The following are defines for the bit fields in the USB_O_RXTYPE3 register.
7861
//
7862
//*****************************************************************************
7863
#define USB_RXTYPE3_SPEED_M 0x000000C0
// Operating Speed
7864
#define USB_RXTYPE3_SPEED_DFLT 0x00000000
// Default
7865
#define USB_RXTYPE3_SPEED_FULL 0x00000080
// Full
7866
#define USB_RXTYPE3_SPEED_LOW 0x000000C0
// Low
7867
#define USB_RXTYPE3_PROTO_M 0x00000030
// Protocol
7868
#define USB_RXTYPE3_PROTO_CTRL 0x00000000
// Control
7869
#define USB_RXTYPE3_PROTO_ISOC 0x00000010
// Isochronous
7870
#define USB_RXTYPE3_PROTO_BULK 0x00000020
// Bulk
7871
#define USB_RXTYPE3_PROTO_INT 0x00000030
// Interrupt
7872
#define USB_RXTYPE3_TEP_M 0x0000000F
// Target Endpoint Number
7873
#define USB_RXTYPE3_TEP_S 0
7874
7875
//*****************************************************************************
7876
//
7877
// The following are defines for the bit fields in the USB_O_RXINTERVAL3
7878
// register.
7879
//
7880
//*****************************************************************************
7881
#define USB_RXINTERVAL3_TXPOLL_M \
7882
0x000000FF
// RX Polling
7883
#define USB_RXINTERVAL3_NAKLMT_M \
7884
0x000000FF
// NAK Limit
7885
#define USB_RXINTERVAL3_TXPOLL_S \
7886
0
7887
#define USB_RXINTERVAL3_NAKLMT_S \
7888
0
7889
7890
//*****************************************************************************
7891
//
7892
// The following are defines for the bit fields in the USB_O_TXMAXP4 register.
7893
//
7894
//*****************************************************************************
7895
#define USB_TXMAXP4_MAXLOAD_M 0x000007FF
// Maximum Payload
7896
#define USB_TXMAXP4_MAXLOAD_S 0
7897
7898
//*****************************************************************************
7899
//
7900
// The following are defines for the bit fields in the USB_O_TXCSRL4 register.
7901
//
7902
//*****************************************************************************
7903
#define USB_TXCSRL4_NAKTO 0x00000080
// NAK Timeout
7904
#define USB_TXCSRL4_CLRDT 0x00000040
// Clear Data Toggle
7905
#define USB_TXCSRL4_STALLED 0x00000020
// Endpoint Stalled
7906
#define USB_TXCSRL4_SETUP 0x00000010
// Setup Packet
7907
#define USB_TXCSRL4_STALL 0x00000010
// Send STALL
7908
#define USB_TXCSRL4_FLUSH 0x00000008
// Flush FIFO
7909
#define USB_TXCSRL4_ERROR 0x00000004
// Error
7910
#define USB_TXCSRL4_UNDRN 0x00000004
// Underrun
7911
#define USB_TXCSRL4_FIFONE 0x00000002
// FIFO Not Empty
7912
#define USB_TXCSRL4_TXRDY 0x00000001
// Transmit Packet Ready
7913
7914
//*****************************************************************************
7915
//
7916
// The following are defines for the bit fields in the USB_O_TXCSRH4 register.
7917
//
7918
//*****************************************************************************
7919
#define USB_TXCSRH4_AUTOSET 0x00000080
// Auto Set
7920
#define USB_TXCSRH4_ISO 0x00000040
// Isochronous Transfers
7921
#define USB_TXCSRH4_MODE 0x00000020
// Mode
7922
#define USB_TXCSRH4_DMAEN 0x00000010
// DMA Request Enable
7923
#define USB_TXCSRH4_FDT 0x00000008
// Force Data Toggle
7924
#define USB_TXCSRH4_DMAMOD 0x00000004
// DMA Request Mode
7925
#define USB_TXCSRH4_DTWE 0x00000002
// Data Toggle Write Enable
7926
#define USB_TXCSRH4_DT 0x00000001
// Data Toggle
7927
7928
//*****************************************************************************
7929
//
7930
// The following are defines for the bit fields in the USB_O_RXMAXP4 register.
7931
//
7932
//*****************************************************************************
7933
#define USB_RXMAXP4_MAXLOAD_M 0x000007FF
// Maximum Payload
7934
#define USB_RXMAXP4_MAXLOAD_S 0
7935
7936
//*****************************************************************************
7937
//
7938
// The following are defines for the bit fields in the USB_O_RXCSRL4 register.
7939
//
7940
//*****************************************************************************
7941
#define USB_RXCSRL4_CLRDT 0x00000080
// Clear Data Toggle
7942
#define USB_RXCSRL4_STALLED 0x00000040
// Endpoint Stalled
7943
#define USB_RXCSRL4_STALL 0x00000020
// Send STALL
7944
#define USB_RXCSRL4_REQPKT 0x00000020
// Request Packet
7945
#define USB_RXCSRL4_FLUSH 0x00000010
// Flush FIFO
7946
#define USB_RXCSRL4_NAKTO 0x00000008
// NAK Timeout
7947
#define USB_RXCSRL4_DATAERR 0x00000008
// Data Error
7948
#define USB_RXCSRL4_OVER 0x00000004
// Overrun
7949
#define USB_RXCSRL4_ERROR 0x00000004
// Error
7950
#define USB_RXCSRL4_FULL 0x00000002
// FIFO Full
7951
#define USB_RXCSRL4_RXRDY 0x00000001
// Receive Packet Ready
7952
7953
//*****************************************************************************
7954
//
7955
// The following are defines for the bit fields in the USB_O_RXCSRH4 register.
7956
//
7957
//*****************************************************************************
7958
#define USB_RXCSRH4_AUTOCL 0x00000080
// Auto Clear
7959
#define USB_RXCSRH4_AUTORQ 0x00000040
// Auto Request
7960
#define USB_RXCSRH4_ISO 0x00000040
// Isochronous Transfers
7961
#define USB_RXCSRH4_DMAEN 0x00000020
// DMA Request Enable
7962
#define USB_RXCSRH4_DISNYET 0x00000010
// Disable NYET
7963
#define USB_RXCSRH4_PIDERR 0x00000010
// PID Error
7964
#define USB_RXCSRH4_DMAMOD 0x00000008
// DMA Request Mode
7965
#define USB_RXCSRH4_DTWE 0x00000004
// Data Toggle Write Enable
7966
#define USB_RXCSRH4_DT 0x00000002
// Data Toggle
7967
7968
//*****************************************************************************
7969
//
7970
// The following are defines for the bit fields in the USB_O_RXCOUNT4 register.
7971
//
7972
//*****************************************************************************
7973
#define USB_RXCOUNT4_COUNT_M 0x00001FFF
// Receive Packet Count
7974
#define USB_RXCOUNT4_COUNT_S 0
7975
7976
//*****************************************************************************
7977
//
7978
// The following are defines for the bit fields in the USB_O_TXTYPE4 register.
7979
//
7980
//*****************************************************************************
7981
#define USB_TXTYPE4_SPEED_M 0x000000C0
// Operating Speed
7982
#define USB_TXTYPE4_SPEED_DFLT 0x00000000
// Default
7983
#define USB_TXTYPE4_SPEED_FULL 0x00000080
// Full
7984
#define USB_TXTYPE4_SPEED_LOW 0x000000C0
// Low
7985
#define USB_TXTYPE4_PROTO_M 0x00000030
// Protocol
7986
#define USB_TXTYPE4_PROTO_CTRL 0x00000000
// Control
7987
#define USB_TXTYPE4_PROTO_ISOC 0x00000010
// Isochronous
7988
#define USB_TXTYPE4_PROTO_BULK 0x00000020
// Bulk
7989
#define USB_TXTYPE4_PROTO_INT 0x00000030
// Interrupt
7990
#define USB_TXTYPE4_TEP_M 0x0000000F
// Target Endpoint Number
7991
#define USB_TXTYPE4_TEP_S 0
7992
7993
//*****************************************************************************
7994
//
7995
// The following are defines for the bit fields in the USB_O_TXINTERVAL4
7996
// register.
7997
//
7998
//*****************************************************************************
7999
#define USB_TXINTERVAL4_TXPOLL_M \
8000
0x000000FF
// TX Polling
8001
#define USB_TXINTERVAL4_NAKLMT_M \
8002
0x000000FF
// NAK Limit
8003
#define USB_TXINTERVAL4_NAKLMT_S \
8004
0
8005
#define USB_TXINTERVAL4_TXPOLL_S \
8006
0
8007
8008
//*****************************************************************************
8009
//
8010
// The following are defines for the bit fields in the USB_O_RXTYPE4 register.
8011
//
8012
//*****************************************************************************
8013
#define USB_RXTYPE4_SPEED_M 0x000000C0
// Operating Speed
8014
#define USB_RXTYPE4_SPEED_DFLT 0x00000000
// Default
8015
#define USB_RXTYPE4_SPEED_FULL 0x00000080
// Full
8016
#define USB_RXTYPE4_SPEED_LOW 0x000000C0
// Low
8017
#define USB_RXTYPE4_PROTO_M 0x00000030
// Protocol
8018
#define USB_RXTYPE4_PROTO_CTRL 0x00000000
// Control
8019
#define USB_RXTYPE4_PROTO_ISOC 0x00000010
// Isochronous
8020
#define USB_RXTYPE4_PROTO_BULK 0x00000020
// Bulk
8021
#define USB_RXTYPE4_PROTO_INT 0x00000030
// Interrupt
8022
#define USB_RXTYPE4_TEP_M 0x0000000F
// Target Endpoint Number
8023
#define USB_RXTYPE4_TEP_S 0
8024
8025
//*****************************************************************************
8026
//
8027
// The following are defines for the bit fields in the USB_O_RXINTERVAL4
8028
// register.
8029
//
8030
//*****************************************************************************
8031
#define USB_RXINTERVAL4_TXPOLL_M \
8032
0x000000FF
// RX Polling
8033
#define USB_RXINTERVAL4_NAKLMT_M \
8034
0x000000FF
// NAK Limit
8035
#define USB_RXINTERVAL4_NAKLMT_S \
8036
0
8037
#define USB_RXINTERVAL4_TXPOLL_S \
8038
0
8039
8040
//*****************************************************************************
8041
//
8042
// The following are defines for the bit fields in the USB_O_TXMAXP5 register.
8043
//
8044
//*****************************************************************************
8045
#define USB_TXMAXP5_MAXLOAD_M 0x000007FF
// Maximum Payload
8046
#define USB_TXMAXP5_MAXLOAD_S 0
8047
8048
//*****************************************************************************
8049
//
8050
// The following are defines for the bit fields in the USB_O_TXCSRL5 register.
8051
//
8052
//*****************************************************************************
8053
#define USB_TXCSRL5_NAKTO 0x00000080
// NAK Timeout
8054
#define USB_TXCSRL5_CLRDT 0x00000040
// Clear Data Toggle
8055
#define USB_TXCSRL5_STALLED 0x00000020
// Endpoint Stalled
8056
#define USB_TXCSRL5_SETUP 0x00000010
// Setup Packet
8057
#define USB_TXCSRL5_STALL 0x00000010
// Send STALL
8058
#define USB_TXCSRL5_FLUSH 0x00000008
// Flush FIFO
8059
#define USB_TXCSRL5_ERROR 0x00000004
// Error
8060
#define USB_TXCSRL5_UNDRN 0x00000004
// Underrun
8061
#define USB_TXCSRL5_FIFONE 0x00000002
// FIFO Not Empty
8062
#define USB_TXCSRL5_TXRDY 0x00000001
// Transmit Packet Ready
8063
8064
//*****************************************************************************
8065
//
8066
// The following are defines for the bit fields in the USB_O_TXCSRH5 register.
8067
//
8068
//*****************************************************************************
8069
#define USB_TXCSRH5_AUTOSET 0x00000080
// Auto Set
8070
#define USB_TXCSRH5_ISO 0x00000040
// Isochronous Transfers
8071
#define USB_TXCSRH5_MODE 0x00000020
// Mode
8072
#define USB_TXCSRH5_DMAEN 0x00000010
// DMA Request Enable
8073
#define USB_TXCSRH5_FDT 0x00000008
// Force Data Toggle
8074
#define USB_TXCSRH5_DMAMOD 0x00000004
// DMA Request Mode
8075
#define USB_TXCSRH5_DTWE 0x00000002
// Data Toggle Write Enable
8076
#define USB_TXCSRH5_DT 0x00000001
// Data Toggle
8077
8078
//*****************************************************************************
8079
//
8080
// The following are defines for the bit fields in the USB_O_RXMAXP5 register.
8081
//
8082
//*****************************************************************************
8083
#define USB_RXMAXP5_MAXLOAD_M 0x000007FF
// Maximum Payload
8084
#define USB_RXMAXP5_MAXLOAD_S 0
8085
8086
//*****************************************************************************
8087
//
8088
// The following are defines for the bit fields in the USB_O_RXCSRL5 register.
8089
//
8090
//*****************************************************************************
8091
#define USB_RXCSRL5_CLRDT 0x00000080
// Clear Data Toggle
8092
#define USB_RXCSRL5_STALLED 0x00000040
// Endpoint Stalled
8093
#define USB_RXCSRL5_STALL 0x00000020
// Send STALL
8094
#define USB_RXCSRL5_REQPKT 0x00000020
// Request Packet
8095
#define USB_RXCSRL5_FLUSH 0x00000010
// Flush FIFO
8096
#define USB_RXCSRL5_NAKTO 0x00000008
// NAK Timeout
8097
#define USB_RXCSRL5_DATAERR 0x00000008
// Data Error
8098
#define USB_RXCSRL5_ERROR 0x00000004
// Error
8099
#define USB_RXCSRL5_OVER 0x00000004
// Overrun
8100
#define USB_RXCSRL5_FULL 0x00000002
// FIFO Full
8101
#define USB_RXCSRL5_RXRDY 0x00000001
// Receive Packet Ready
8102
8103
//*****************************************************************************
8104
//
8105
// The following are defines for the bit fields in the USB_O_RXCSRH5 register.
8106
//
8107
//*****************************************************************************
8108
#define USB_RXCSRH5_AUTOCL 0x00000080
// Auto Clear
8109
#define USB_RXCSRH5_AUTORQ 0x00000040
// Auto Request
8110
#define USB_RXCSRH5_ISO 0x00000040
// Isochronous Transfers
8111
#define USB_RXCSRH5_DMAEN 0x00000020
// DMA Request Enable
8112
#define USB_RXCSRH5_DISNYET 0x00000010
// Disable NYET
8113
#define USB_RXCSRH5_PIDERR 0x00000010
// PID Error
8114
#define USB_RXCSRH5_DMAMOD 0x00000008
// DMA Request Mode
8115
#define USB_RXCSRH5_DTWE 0x00000004
// Data Toggle Write Enable
8116
#define USB_RXCSRH5_DT 0x00000002
// Data Toggle
8117
8118
//*****************************************************************************
8119
//
8120
// The following are defines for the bit fields in the USB_O_RXCOUNT5 register.
8121
//
8122
//*****************************************************************************
8123
#define USB_RXCOUNT5_COUNT_M 0x00001FFF
// Receive Packet Count
8124
#define USB_RXCOUNT5_COUNT_S 0
8125
8126
//*****************************************************************************
8127
//
8128
// The following are defines for the bit fields in the USB_O_TXTYPE5 register.
8129
//
8130
//*****************************************************************************
8131
#define USB_TXTYPE5_SPEED_M 0x000000C0
// Operating Speed
8132
#define USB_TXTYPE5_SPEED_DFLT 0x00000000
// Default
8133
#define USB_TXTYPE5_SPEED_FULL 0x00000080
// Full
8134
#define USB_TXTYPE5_SPEED_LOW 0x000000C0
// Low
8135
#define USB_TXTYPE5_PROTO_M 0x00000030
// Protocol
8136
#define USB_TXTYPE5_PROTO_CTRL 0x00000000
// Control
8137
#define USB_TXTYPE5_PROTO_ISOC 0x00000010
// Isochronous
8138
#define USB_TXTYPE5_PROTO_BULK 0x00000020
// Bulk
8139
#define USB_TXTYPE5_PROTO_INT 0x00000030
// Interrupt
8140
#define USB_TXTYPE5_TEP_M 0x0000000F
// Target Endpoint Number
8141
#define USB_TXTYPE5_TEP_S 0
8142
8143
//*****************************************************************************
8144
//
8145
// The following are defines for the bit fields in the USB_O_TXINTERVAL5
8146
// register.
8147
//
8148
//*****************************************************************************
8149
#define USB_TXINTERVAL5_TXPOLL_M \
8150
0x000000FF
// TX Polling
8151
#define USB_TXINTERVAL5_NAKLMT_M \
8152
0x000000FF
// NAK Limit
8153
#define USB_TXINTERVAL5_NAKLMT_S \
8154
0
8155
#define USB_TXINTERVAL5_TXPOLL_S \
8156
0
8157
8158
//*****************************************************************************
8159
//
8160
// The following are defines for the bit fields in the USB_O_RXTYPE5 register.
8161
//
8162
//*****************************************************************************
8163
#define USB_RXTYPE5_SPEED_M 0x000000C0
// Operating Speed
8164
#define USB_RXTYPE5_SPEED_DFLT 0x00000000
// Default
8165
#define USB_RXTYPE5_SPEED_FULL 0x00000080
// Full
8166
#define USB_RXTYPE5_SPEED_LOW 0x000000C0
// Low
8167
#define USB_RXTYPE5_PROTO_M 0x00000030
// Protocol
8168
#define USB_RXTYPE5_PROTO_CTRL 0x00000000
// Control
8169
#define USB_RXTYPE5_PROTO_ISOC 0x00000010
// Isochronous
8170
#define USB_RXTYPE5_PROTO_BULK 0x00000020
// Bulk
8171
#define USB_RXTYPE5_PROTO_INT 0x00000030
// Interrupt
8172
#define USB_RXTYPE5_TEP_M 0x0000000F
// Target Endpoint Number
8173
#define USB_RXTYPE5_TEP_S 0
8174
8175
//*****************************************************************************
8176
//
8177
// The following are defines for the bit fields in the USB_O_RXINTERVAL5
8178
// register.
8179
//
8180
//*****************************************************************************
8181
#define USB_RXINTERVAL5_TXPOLL_M \
8182
0x000000FF
// RX Polling
8183
#define USB_RXINTERVAL5_NAKLMT_M \
8184
0x000000FF
// NAK Limit
8185
#define USB_RXINTERVAL5_TXPOLL_S \
8186
0
8187
#define USB_RXINTERVAL5_NAKLMT_S \
8188
0
8189
8190
//*****************************************************************************
8191
//
8192
// The following are defines for the bit fields in the USB_O_TXMAXP6 register.
8193
//
8194
//*****************************************************************************
8195
#define USB_TXMAXP6_MAXLOAD_M 0x000007FF
// Maximum Payload
8196
#define USB_TXMAXP6_MAXLOAD_S 0
8197
8198
//*****************************************************************************
8199
//
8200
// The following are defines for the bit fields in the USB_O_TXCSRL6 register.
8201
//
8202
//*****************************************************************************
8203
#define USB_TXCSRL6_NAKTO 0x00000080
// NAK Timeout
8204
#define USB_TXCSRL6_CLRDT 0x00000040
// Clear Data Toggle
8205
#define USB_TXCSRL6_STALLED 0x00000020
// Endpoint Stalled
8206
#define USB_TXCSRL6_STALL 0x00000010
// Send STALL
8207
#define USB_TXCSRL6_SETUP 0x00000010
// Setup Packet
8208
#define USB_TXCSRL6_FLUSH 0x00000008
// Flush FIFO
8209
#define USB_TXCSRL6_ERROR 0x00000004
// Error
8210
#define USB_TXCSRL6_UNDRN 0x00000004
// Underrun
8211
#define USB_TXCSRL6_FIFONE 0x00000002
// FIFO Not Empty
8212
#define USB_TXCSRL6_TXRDY 0x00000001
// Transmit Packet Ready
8213
8214
//*****************************************************************************
8215
//
8216
// The following are defines for the bit fields in the USB_O_TXCSRH6 register.
8217
//
8218
//*****************************************************************************
8219
#define USB_TXCSRH6_AUTOSET 0x00000080
// Auto Set
8220
#define USB_TXCSRH6_ISO 0x00000040
// Isochronous Transfers
8221
#define USB_TXCSRH6_MODE 0x00000020
// Mode
8222
#define USB_TXCSRH6_DMAEN 0x00000010
// DMA Request Enable
8223
#define USB_TXCSRH6_FDT 0x00000008
// Force Data Toggle
8224
#define USB_TXCSRH6_DMAMOD 0x00000004
// DMA Request Mode
8225
#define USB_TXCSRH6_DTWE 0x00000002
// Data Toggle Write Enable
8226
#define USB_TXCSRH6_DT 0x00000001
// Data Toggle
8227
8228
//*****************************************************************************
8229
//
8230
// The following are defines for the bit fields in the USB_O_RXMAXP6 register.
8231
//
8232
//*****************************************************************************
8233
#define USB_RXMAXP6_MAXLOAD_M 0x000007FF
// Maximum Payload
8234
#define USB_RXMAXP6_MAXLOAD_S 0
8235
8236
//*****************************************************************************
8237
//
8238
// The following are defines for the bit fields in the USB_O_RXCSRL6 register.
8239
//
8240
//*****************************************************************************
8241
#define USB_RXCSRL6_CLRDT 0x00000080
// Clear Data Toggle
8242
#define USB_RXCSRL6_STALLED 0x00000040
// Endpoint Stalled
8243
#define USB_RXCSRL6_REQPKT 0x00000020
// Request Packet
8244
#define USB_RXCSRL6_STALL 0x00000020
// Send STALL
8245
#define USB_RXCSRL6_FLUSH 0x00000010
// Flush FIFO
8246
#define USB_RXCSRL6_NAKTO 0x00000008
// NAK Timeout
8247
#define USB_RXCSRL6_DATAERR 0x00000008
// Data Error
8248
#define USB_RXCSRL6_ERROR 0x00000004
// Error
8249
#define USB_RXCSRL6_OVER 0x00000004
// Overrun
8250
#define USB_RXCSRL6_FULL 0x00000002
// FIFO Full
8251
#define USB_RXCSRL6_RXRDY 0x00000001
// Receive Packet Ready
8252
8253
//*****************************************************************************
8254
//
8255
// The following are defines for the bit fields in the USB_O_RXCSRH6 register.
8256
//
8257
//*****************************************************************************
8258
#define USB_RXCSRH6_AUTOCL 0x00000080
// Auto Clear
8259
#define USB_RXCSRH6_AUTORQ 0x00000040
// Auto Request
8260
#define USB_RXCSRH6_ISO 0x00000040
// Isochronous Transfers
8261
#define USB_RXCSRH6_DMAEN 0x00000020
// DMA Request Enable
8262
#define USB_RXCSRH6_DISNYET 0x00000010
// Disable NYET
8263
#define USB_RXCSRH6_PIDERR 0x00000010
// PID Error
8264
#define USB_RXCSRH6_DMAMOD 0x00000008
// DMA Request Mode
8265
#define USB_RXCSRH6_DTWE 0x00000004
// Data Toggle Write Enable
8266
#define USB_RXCSRH6_DT 0x00000002
// Data Toggle
8267
8268
//*****************************************************************************
8269
//
8270
// The following are defines for the bit fields in the USB_O_RXCOUNT6 register.
8271
//
8272
//*****************************************************************************
8273
#define USB_RXCOUNT6_COUNT_M 0x00001FFF
// Receive Packet Count
8274
#define USB_RXCOUNT6_COUNT_S 0
8275
8276
//*****************************************************************************
8277
//
8278
// The following are defines for the bit fields in the USB_O_TXTYPE6 register.
8279
//
8280
//*****************************************************************************
8281
#define USB_TXTYPE6_SPEED_M 0x000000C0
// Operating Speed
8282
#define USB_TXTYPE6_SPEED_DFLT 0x00000000
// Default
8283
#define USB_TXTYPE6_SPEED_FULL 0x00000080
// Full
8284
#define USB_TXTYPE6_SPEED_LOW 0x000000C0
// Low
8285
#define USB_TXTYPE6_PROTO_M 0x00000030
// Protocol
8286
#define USB_TXTYPE6_PROTO_CTRL 0x00000000
// Control
8287
#define USB_TXTYPE6_PROTO_ISOC 0x00000010
// Isochronous
8288
#define USB_TXTYPE6_PROTO_BULK 0x00000020
// Bulk
8289
#define USB_TXTYPE6_PROTO_INT 0x00000030
// Interrupt
8290
#define USB_TXTYPE6_TEP_M 0x0000000F
// Target Endpoint Number
8291
#define USB_TXTYPE6_TEP_S 0
8292
8293
//*****************************************************************************
8294
//
8295
// The following are defines for the bit fields in the USB_O_TXINTERVAL6
8296
// register.
8297
//
8298
//*****************************************************************************
8299
#define USB_TXINTERVAL6_TXPOLL_M \
8300
0x000000FF
// TX Polling
8301
#define USB_TXINTERVAL6_NAKLMT_M \
8302
0x000000FF
// NAK Limit
8303
#define USB_TXINTERVAL6_TXPOLL_S \
8304
0
8305
#define USB_TXINTERVAL6_NAKLMT_S \
8306
0
8307
8308
//*****************************************************************************
8309
//
8310
// The following are defines for the bit fields in the USB_O_RXTYPE6 register.
8311
//
8312
//*****************************************************************************
8313
#define USB_RXTYPE6_SPEED_M 0x000000C0
// Operating Speed
8314
#define USB_RXTYPE6_SPEED_DFLT 0x00000000
// Default
8315
#define USB_RXTYPE6_SPEED_FULL 0x00000080
// Full
8316
#define USB_RXTYPE6_SPEED_LOW 0x000000C0
// Low
8317
#define USB_RXTYPE6_PROTO_M 0x00000030
// Protocol
8318
#define USB_RXTYPE6_PROTO_CTRL 0x00000000
// Control
8319
#define USB_RXTYPE6_PROTO_ISOC 0x00000010
// Isochronous
8320
#define USB_RXTYPE6_PROTO_BULK 0x00000020
// Bulk
8321
#define USB_RXTYPE6_PROTO_INT 0x00000030
// Interrupt
8322
#define USB_RXTYPE6_TEP_M 0x0000000F
// Target Endpoint Number
8323
#define USB_RXTYPE6_TEP_S 0
8324
8325
//*****************************************************************************
8326
//
8327
// The following are defines for the bit fields in the USB_O_RXINTERVAL6
8328
// register.
8329
//
8330
//*****************************************************************************
8331
#define USB_RXINTERVAL6_TXPOLL_M \
8332
0x000000FF
// RX Polling
8333
#define USB_RXINTERVAL6_NAKLMT_M \
8334
0x000000FF
// NAK Limit
8335
#define USB_RXINTERVAL6_NAKLMT_S \
8336
0
8337
#define USB_RXINTERVAL6_TXPOLL_S \
8338
0
8339
8340
//*****************************************************************************
8341
//
8342
// The following are defines for the bit fields in the USB_O_TXMAXP7 register.
8343
//
8344
//*****************************************************************************
8345
#define USB_TXMAXP7_MAXLOAD_M 0x000007FF
// Maximum Payload
8346
#define USB_TXMAXP7_MAXLOAD_S 0
8347
8348
//*****************************************************************************
8349
//
8350
// The following are defines for the bit fields in the USB_O_TXCSRL7 register.
8351
//
8352
//*****************************************************************************
8353
#define USB_TXCSRL7_NAKTO 0x00000080
// NAK Timeout
8354
#define USB_TXCSRL7_CLRDT 0x00000040
// Clear Data Toggle
8355
#define USB_TXCSRL7_STALLED 0x00000020
// Endpoint Stalled
8356
#define USB_TXCSRL7_STALL 0x00000010
// Send STALL
8357
#define USB_TXCSRL7_SETUP 0x00000010
// Setup Packet
8358
#define USB_TXCSRL7_FLUSH 0x00000008
// Flush FIFO
8359
#define USB_TXCSRL7_ERROR 0x00000004
// Error
8360
#define USB_TXCSRL7_UNDRN 0x00000004
// Underrun
8361
#define USB_TXCSRL7_FIFONE 0x00000002
// FIFO Not Empty
8362
#define USB_TXCSRL7_TXRDY 0x00000001
// Transmit Packet Ready
8363
8364
//*****************************************************************************
8365
//
8366
// The following are defines for the bit fields in the USB_O_TXCSRH7 register.
8367
//
8368
//*****************************************************************************
8369
#define USB_TXCSRH7_AUTOSET 0x00000080
// Auto Set
8370
#define USB_TXCSRH7_ISO 0x00000040
// Isochronous Transfers
8371
#define USB_TXCSRH7_MODE 0x00000020
// Mode
8372
#define USB_TXCSRH7_DMAEN 0x00000010
// DMA Request Enable
8373
#define USB_TXCSRH7_FDT 0x00000008
// Force Data Toggle
8374
#define USB_TXCSRH7_DMAMOD 0x00000004
// DMA Request Mode
8375
#define USB_TXCSRH7_DTWE 0x00000002
// Data Toggle Write Enable
8376
#define USB_TXCSRH7_DT 0x00000001
// Data Toggle
8377
8378
//*****************************************************************************
8379
//
8380
// The following are defines for the bit fields in the USB_O_RXMAXP7 register.
8381
//
8382
//*****************************************************************************
8383
#define USB_RXMAXP7_MAXLOAD_M 0x000007FF
// Maximum Payload
8384
#define USB_RXMAXP7_MAXLOAD_S 0
8385
8386
//*****************************************************************************
8387
//
8388
// The following are defines for the bit fields in the USB_O_RXCSRL7 register.
8389
//
8390
//*****************************************************************************
8391
#define USB_RXCSRL7_CLRDT 0x00000080
// Clear Data Toggle
8392
#define USB_RXCSRL7_STALLED 0x00000040
// Endpoint Stalled
8393
#define USB_RXCSRL7_REQPKT 0x00000020
// Request Packet
8394
#define USB_RXCSRL7_STALL 0x00000020
// Send STALL
8395
#define USB_RXCSRL7_FLUSH 0x00000010
// Flush FIFO
8396
#define USB_RXCSRL7_DATAERR 0x00000008
// Data Error
8397
#define USB_RXCSRL7_NAKTO 0x00000008
// NAK Timeout
8398
#define USB_RXCSRL7_ERROR 0x00000004
// Error
8399
#define USB_RXCSRL7_OVER 0x00000004
// Overrun
8400
#define USB_RXCSRL7_FULL 0x00000002
// FIFO Full
8401
#define USB_RXCSRL7_RXRDY 0x00000001
// Receive Packet Ready
8402
8403
//*****************************************************************************
8404
//
8405
// The following are defines for the bit fields in the USB_O_RXCSRH7 register.
8406
//
8407
//*****************************************************************************
8408
#define USB_RXCSRH7_AUTOCL 0x00000080
// Auto Clear
8409
#define USB_RXCSRH7_ISO 0x00000040
// Isochronous Transfers
8410
#define USB_RXCSRH7_AUTORQ 0x00000040
// Auto Request
8411
#define USB_RXCSRH7_DMAEN 0x00000020
// DMA Request Enable
8412
#define USB_RXCSRH7_PIDERR 0x00000010
// PID Error
8413
#define USB_RXCSRH7_DISNYET 0x00000010
// Disable NYET
8414
#define USB_RXCSRH7_DMAMOD 0x00000008
// DMA Request Mode
8415
#define USB_RXCSRH7_DTWE 0x00000004
// Data Toggle Write Enable
8416
#define USB_RXCSRH7_DT 0x00000002
// Data Toggle
8417
8418
//*****************************************************************************
8419
//
8420
// The following are defines for the bit fields in the USB_O_RXCOUNT7 register.
8421
//
8422
//*****************************************************************************
8423
#define USB_RXCOUNT7_COUNT_M 0x00001FFF
// Receive Packet Count
8424
#define USB_RXCOUNT7_COUNT_S 0
8425
8426
//*****************************************************************************
8427
//
8428
// The following are defines for the bit fields in the USB_O_TXTYPE7 register.
8429
//
8430
//*****************************************************************************
8431
#define USB_TXTYPE7_SPEED_M 0x000000C0
// Operating Speed
8432
#define USB_TXTYPE7_SPEED_DFLT 0x00000000
// Default
8433
#define USB_TXTYPE7_SPEED_FULL 0x00000080
// Full
8434
#define USB_TXTYPE7_SPEED_LOW 0x000000C0
// Low
8435
#define USB_TXTYPE7_PROTO_M 0x00000030
// Protocol
8436
#define USB_TXTYPE7_PROTO_CTRL 0x00000000
// Control
8437
#define USB_TXTYPE7_PROTO_ISOC 0x00000010
// Isochronous
8438
#define USB_TXTYPE7_PROTO_BULK 0x00000020
// Bulk
8439
#define USB_TXTYPE7_PROTO_INT 0x00000030
// Interrupt
8440
#define USB_TXTYPE7_TEP_M 0x0000000F
// Target Endpoint Number
8441
#define USB_TXTYPE7_TEP_S 0
8442
8443
//*****************************************************************************
8444
//
8445
// The following are defines for the bit fields in the USB_O_TXINTERVAL7
8446
// register.
8447
//
8448
//*****************************************************************************
8449
#define USB_TXINTERVAL7_TXPOLL_M \
8450
0x000000FF
// TX Polling
8451
#define USB_TXINTERVAL7_NAKLMT_M \
8452
0x000000FF
// NAK Limit
8453
#define USB_TXINTERVAL7_NAKLMT_S \
8454
0
8455
#define USB_TXINTERVAL7_TXPOLL_S \
8456
0
8457
8458
//*****************************************************************************
8459
//
8460
// The following are defines for the bit fields in the USB_O_RXTYPE7 register.
8461
//
8462
//*****************************************************************************
8463
#define USB_RXTYPE7_SPEED_M 0x000000C0
// Operating Speed
8464
#define USB_RXTYPE7_SPEED_DFLT 0x00000000
// Default
8465
#define USB_RXTYPE7_SPEED_FULL 0x00000080
// Full
8466
#define USB_RXTYPE7_SPEED_LOW 0x000000C0
// Low
8467
#define USB_RXTYPE7_PROTO_M 0x00000030
// Protocol
8468
#define USB_RXTYPE7_PROTO_CTRL 0x00000000
// Control
8469
#define USB_RXTYPE7_PROTO_ISOC 0x00000010
// Isochronous
8470
#define USB_RXTYPE7_PROTO_BULK 0x00000020
// Bulk
8471
#define USB_RXTYPE7_PROTO_INT 0x00000030
// Interrupt
8472
#define USB_RXTYPE7_TEP_M 0x0000000F
// Target Endpoint Number
8473
#define USB_RXTYPE7_TEP_S 0
8474
8475
//*****************************************************************************
8476
//
8477
// The following are defines for the bit fields in the USB_O_RXINTERVAL7
8478
// register.
8479
//
8480
//*****************************************************************************
8481
#define USB_RXINTERVAL7_TXPOLL_M \
8482
0x000000FF
// RX Polling
8483
#define USB_RXINTERVAL7_NAKLMT_M \
8484
0x000000FF
// NAK Limit
8485
#define USB_RXINTERVAL7_NAKLMT_S \
8486
0
8487
#define USB_RXINTERVAL7_TXPOLL_S \
8488
0
8489
8490
//*****************************************************************************
8491
//
8492
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT1
8493
// register.
8494
//
8495
//*****************************************************************************
8496
#define USB_RQPKTCOUNT1_M 0x0000FFFF
// Block Transfer Packet Count
8497
#define USB_RQPKTCOUNT1_S 0
8498
8499
//*****************************************************************************
8500
//
8501
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT2
8502
// register.
8503
//
8504
//*****************************************************************************
8505
#define USB_RQPKTCOUNT2_M 0x0000FFFF
// Block Transfer Packet Count
8506
#define USB_RQPKTCOUNT2_S 0
8507
8508
//*****************************************************************************
8509
//
8510
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT3
8511
// register.
8512
//
8513
//*****************************************************************************
8514
#define USB_RQPKTCOUNT3_M 0x0000FFFF
// Block Transfer Packet Count
8515
#define USB_RQPKTCOUNT3_S 0
8516
8517
//*****************************************************************************
8518
//
8519
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT4
8520
// register.
8521
//
8522
//*****************************************************************************
8523
#define USB_RQPKTCOUNT4_COUNT_M 0x0000FFFF
// Block Transfer Packet Count
8524
#define USB_RQPKTCOUNT4_COUNT_S 0
8525
8526
//*****************************************************************************
8527
//
8528
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT5
8529
// register.
8530
//
8531
//*****************************************************************************
8532
#define USB_RQPKTCOUNT5_COUNT_M 0x0000FFFF
// Block Transfer Packet Count
8533
#define USB_RQPKTCOUNT5_COUNT_S 0
8534
8535
//*****************************************************************************
8536
//
8537
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT6
8538
// register.
8539
//
8540
//*****************************************************************************
8541
#define USB_RQPKTCOUNT6_COUNT_M 0x0000FFFF
// Block Transfer Packet Count
8542
#define USB_RQPKTCOUNT6_COUNT_S 0
8543
8544
//*****************************************************************************
8545
//
8546
// The following are defines for the bit fields in the USB_O_RQPKTCOUNT7
8547
// register.
8548
//
8549
//*****************************************************************************
8550
#define USB_RQPKTCOUNT7_COUNT_M 0x0000FFFF
// Block Transfer Packet Count
8551
#define USB_RQPKTCOUNT7_COUNT_S 0
8552
8553
//*****************************************************************************
8554
//
8555
// The following are defines for the bit fields in the USB_O_RXDPKTBUFDIS
8556
// register.
8557
//
8558
//*****************************************************************************
8559
#define USB_RXDPKTBUFDIS_EP7 0x00000080
// EP7 RX Double-Packet Buffer
8560
// Disable
8561
#define USB_RXDPKTBUFDIS_EP6 0x00000040
// EP6 RX Double-Packet Buffer
8562
// Disable
8563
#define USB_RXDPKTBUFDIS_EP5 0x00000020
// EP5 RX Double-Packet Buffer
8564
// Disable
8565
#define USB_RXDPKTBUFDIS_EP4 0x00000010
// EP4 RX Double-Packet Buffer
8566
// Disable
8567
#define USB_RXDPKTBUFDIS_EP3 0x00000008
// EP3 RX Double-Packet Buffer
8568
// Disable
8569
#define USB_RXDPKTBUFDIS_EP2 0x00000004
// EP2 RX Double-Packet Buffer
8570
// Disable
8571
#define USB_RXDPKTBUFDIS_EP1 0x00000002
// EP1 RX Double-Packet Buffer
8572
// Disable
8573
8574
//*****************************************************************************
8575
//
8576
// The following are defines for the bit fields in the USB_O_TXDPKTBUFDIS
8577
// register.
8578
//
8579
//*****************************************************************************
8580
#define USB_TXDPKTBUFDIS_EP7 0x00000080
// EP7 TX Double-Packet Buffer
8581
// Disable
8582
#define USB_TXDPKTBUFDIS_EP6 0x00000040
// EP6 TX Double-Packet Buffer
8583
// Disable
8584
#define USB_TXDPKTBUFDIS_EP5 0x00000020
// EP5 TX Double-Packet Buffer
8585
// Disable
8586
#define USB_TXDPKTBUFDIS_EP4 0x00000010
// EP4 TX Double-Packet Buffer
8587
// Disable
8588
#define USB_TXDPKTBUFDIS_EP3 0x00000008
// EP3 TX Double-Packet Buffer
8589
// Disable
8590
#define USB_TXDPKTBUFDIS_EP2 0x00000004
// EP2 TX Double-Packet Buffer
8591
// Disable
8592
#define USB_TXDPKTBUFDIS_EP1 0x00000002
// EP1 TX Double-Packet Buffer
8593
// Disable
8594
8595
//*****************************************************************************
8596
//
8597
// The following are defines for the bit fields in the USB_O_EPC register.
8598
//
8599
//*****************************************************************************
8600
#define USB_EPC_PFLTACT_M 0x00000300
// Power Fault Action
8601
#define USB_EPC_PFLTACT_UNCHG 0x00000000
// Unchanged
8602
#define USB_EPC_PFLTACT_TRIS 0x00000100
// Tristate
8603
#define USB_EPC_PFLTACT_LOW 0x00000200
// Low
8604
#define USB_EPC_PFLTACT_HIGH 0x00000300
// High
8605
#define USB_EPC_PFLTAEN 0x00000040
// Power Fault Action Enable
8606
#define USB_EPC_PFLTSEN_HIGH 0x00000020
// Power Fault Sense
8607
#define USB_EPC_PFLTEN 0x00000010
// Power Fault Input Enable
8608
#define USB_EPC_EPENDE 0x00000004
// EPEN Drive Enable
8609
#define USB_EPC_EPEN_M 0x00000003
// External Power Supply Enable
8610
// Configuration
8611
#define USB_EPC_EPEN_LOW 0x00000000
// Power Enable Active Low
8612
#define USB_EPC_EPEN_HIGH 0x00000001
// Power Enable Active High
8613
#define USB_EPC_EPEN_VBLOW 0x00000002
// Power Enable High if VBUS Low
8614
// (OTG only)
8615
#define USB_EPC_EPEN_VBHIGH 0x00000003
// Power Enable High if VBUS High
8616
// (OTG only)
8617
8618
//*****************************************************************************
8619
//
8620
// The following are defines for the bit fields in the USB_O_EPCRIS register.
8621
//
8622
//*****************************************************************************
8623
#define USB_EPCRIS_PF 0x00000001
// USB Power Fault Interrupt Status
8624
8625
//*****************************************************************************
8626
//
8627
// The following are defines for the bit fields in the USB_O_EPCIM register.
8628
//
8629
//*****************************************************************************
8630
#define USB_EPCIM_PF 0x00000001
// USB Power Fault Interrupt Mask
8631
8632
//*****************************************************************************
8633
//
8634
// The following are defines for the bit fields in the USB_O_EPCISC register.
8635
//
8636
//*****************************************************************************
8637
#define USB_EPCISC_PF 0x00000001
// USB Power Fault Interrupt Status
8638
// and Clear
8639
8640
//*****************************************************************************
8641
//
8642
// The following are defines for the bit fields in the USB_O_DRRIS register.
8643
//
8644
//*****************************************************************************
8645
#define USB_DRRIS_RESUME 0x00000001
// RESUME Interrupt Status
8646
8647
//*****************************************************************************
8648
//
8649
// The following are defines for the bit fields in the USB_O_DRIM register.
8650
//
8651
//*****************************************************************************
8652
#define USB_DRIM_RESUME 0x00000001
// RESUME Interrupt Mask
8653
8654
//*****************************************************************************
8655
//
8656
// The following are defines for the bit fields in the USB_O_DRISC register.
8657
//
8658
//*****************************************************************************
8659
#define USB_DRISC_RESUME 0x00000001
// RESUME Interrupt Status and
8660
// Clear
8661
8662
//*****************************************************************************
8663
//
8664
// The following are defines for the bit fields in the USB_O_GPCS register.
8665
//
8666
//*****************************************************************************
8667
#define USB_GPCS_DEVMODOTG 0x00000002
// Enable Device Mode
8668
#define USB_GPCS_DEVMOD 0x00000001
// Device Mode
8669
8670
//*****************************************************************************
8671
//
8672
// The following are defines for the bit fields in the USB_O_VDC register.
8673
//
8674
//*****************************************************************************
8675
#define USB_VDC_VBDEN 0x00000001
// VBUS Droop Enable
8676
8677
//*****************************************************************************
8678
//
8679
// The following are defines for the bit fields in the USB_O_VDCRIS register.
8680
//
8681
//*****************************************************************************
8682
#define USB_VDCRIS_VD 0x00000001
// VBUS Droop Raw Interrupt Status
8683
8684
//*****************************************************************************
8685
//
8686
// The following are defines for the bit fields in the USB_O_VDCIM register.
8687
//
8688
//*****************************************************************************
8689
#define USB_VDCIM_VD 0x00000001
// VBUS Droop Interrupt Mask
8690
8691
//*****************************************************************************
8692
//
8693
// The following are defines for the bit fields in the USB_O_VDCISC register.
8694
//
8695
//*****************************************************************************
8696
#define USB_VDCISC_VD 0x00000001
// VBUS Droop Interrupt Status and
8697
// Clear
8698
8699
//*****************************************************************************
8700
//
8701
// The following are defines for the bit fields in the USB_O_IDVRIS register.
8702
//
8703
//*****************************************************************************
8704
#define USB_IDVRIS_ID 0x00000001
// ID Valid Detect Raw Interrupt
8705
// Status
8706
8707
//*****************************************************************************
8708
//
8709
// The following are defines for the bit fields in the USB_O_IDVIM register.
8710
//
8711
//*****************************************************************************
8712
#define USB_IDVIM_ID 0x00000001
// ID Valid Detect Interrupt Mask
8713
8714
//*****************************************************************************
8715
//
8716
// The following are defines for the bit fields in the USB_O_IDVISC register.
8717
//
8718
//*****************************************************************************
8719
#define USB_IDVISC_ID 0x00000001
// ID Valid Detect Interrupt Status
8720
// and Clear
8721
8722
//*****************************************************************************
8723
//
8724
// The following are defines for the bit fields in the USB_O_DMASEL register.
8725
//
8726
//*****************************************************************************
8727
#define USB_DMASEL_DMACTX_M 0x00F00000
// DMA C TX Select
8728
#define USB_DMASEL_DMACRX_M 0x000F0000
// DMA C RX Select
8729
#define USB_DMASEL_DMABTX_M 0x0000F000
// DMA B TX Select
8730
#define USB_DMASEL_DMABRX_M 0x00000F00
// DMA B RX Select
8731
#define USB_DMASEL_DMAATX_M 0x000000F0
// DMA A TX Select
8732
#define USB_DMASEL_DMAARX_M 0x0000000F
// DMA A RX Select
8733
#define USB_DMASEL_DMACTX_S 20
8734
#define USB_DMASEL_DMACRX_S 16
8735
#define USB_DMASEL_DMABTX_S 12
8736
#define USB_DMASEL_DMABRX_S 8
8737
#define USB_DMASEL_DMAATX_S 4
8738
#define USB_DMASEL_DMAARX_S 0
8739
8740
//*****************************************************************************
8741
//
8742
// The following are defines for the bit fields in the USB_O_PP register.
8743
//
8744
//*****************************************************************************
8745
#define USB_PP_ECNT_M 0x0000FF00
// Endpoint Count
8746
#define USB_PP_USB_M 0x000000C0
// USB Capability
8747
#define USB_PP_USB_DEVICE 0x00000040
// DEVICE
8748
#define USB_PP_USB_HOSTDEVICE 0x00000080
// HOST
8749
#define USB_PP_USB_OTG 0x000000C0
// OTG
8750
#define USB_PP_PHY 0x00000010
// PHY Present
8751
#define USB_PP_TYPE_M 0x0000000F
// Controller Type
8752
#define USB_PP_TYPE_0 0x00000000
// The first-generation USB
8753
// controller
8754
#define USB_PP_ECNT_S 8
8755
8756
//*****************************************************************************
8757
//
8758
// The following are defines for the bit fields in the EEPROM_EESIZE register.
8759
//
8760
//*****************************************************************************
8761
#define EEPROM_EESIZE_BLKCNT_M 0x07FF0000
// Number of 16-Word Blocks
8762
#define EEPROM_EESIZE_WORDCNT_M 0x0000FFFF
// Number of 32-Bit Words
8763
#define EEPROM_EESIZE_BLKCNT_S 16
8764
#define EEPROM_EESIZE_WORDCNT_S 0
8765
8766
//*****************************************************************************
8767
//
8768
// The following are defines for the bit fields in the EEPROM_EEBLOCK register.
8769
//
8770
//*****************************************************************************
8771
#define EEPROM_EEBLOCK_BLOCK_M 0x0000FFFF
// Current Block
8772
#define EEPROM_EEBLOCK_BLOCK_S 0
8773
8774
//*****************************************************************************
8775
//
8776
// The following are defines for the bit fields in the EEPROM_EEOFFSET
8777
// register.
8778
//
8779
//*****************************************************************************
8780
#define EEPROM_EEOFFSET_OFFSET_M \
8781
0x0000000F
// Current Address Offset
8782
#define EEPROM_EEOFFSET_OFFSET_S \
8783
0
8784
8785
//*****************************************************************************
8786
//
8787
// The following are defines for the bit fields in the EEPROM_EERDWR register.
8788
//
8789
//*****************************************************************************
8790
#define EEPROM_EERDWR_VALUE_M 0xFFFFFFFF
// EEPROM Read or Write Data
8791
#define EEPROM_EERDWR_VALUE_S 0
8792
8793
//*****************************************************************************
8794
//
8795
// The following are defines for the bit fields in the EEPROM_EERDWRINC
8796
// register.
8797
//
8798
//*****************************************************************************
8799
#define EEPROM_EERDWRINC_VALUE_M \
8800
0xFFFFFFFF
// EEPROM Read or Write Data with
8801
// Increment
8802
#define EEPROM_EERDWRINC_VALUE_S \
8803
0
8804
8805
//*****************************************************************************
8806
//
8807
// The following are defines for the bit fields in the EEPROM_EEDONE register.
8808
//
8809
//*****************************************************************************
8810
#define EEPROM_EEDONE_WRBUSY 0x00000020
// Write Busy
8811
#define EEPROM_EEDONE_NOPERM 0x00000010
// Write Without Permission
8812
#define EEPROM_EEDONE_WKCOPY 0x00000008
// Working on a Copy
8813
#define EEPROM_EEDONE_WKERASE 0x00000004
// Working on an Erase
8814
#define EEPROM_EEDONE_WORKING 0x00000001
// EEPROM Working
8815
8816
//*****************************************************************************
8817
//
8818
// The following are defines for the bit fields in the EEPROM_EESUPP register.
8819
//
8820
//*****************************************************************************
8821
#define EEPROM_EESUPP_PRETRY 0x00000008
// Programming Must Be Retried
8822
#define EEPROM_EESUPP_ERETRY 0x00000004
// Erase Must Be Retried
8823
8824
//*****************************************************************************
8825
//
8826
// The following are defines for the bit fields in the EEPROM_EEUNLOCK
8827
// register.
8828
//
8829
//*****************************************************************************
8830
#define EEPROM_EEUNLOCK_UNLOCK_M \
8831
0xFFFFFFFF
// EEPROM Unlock
8832
8833
//*****************************************************************************
8834
//
8835
// The following are defines for the bit fields in the EEPROM_EEPROT register.
8836
//
8837
//*****************************************************************************
8838
#define EEPROM_EEPROT_ACC 0x00000008
// Access Control
8839
#define EEPROM_EEPROT_PROT_M 0x00000007
// Protection Control
8840
#define EEPROM_EEPROT_PROT_RWNPW \
8841
0x00000000
// This setting is the default. If
8842
// there is no password, the block
8843
// is not protected and is readable
8844
// and writable
8845
#define EEPROM_EEPROT_PROT_RWPW 0x00000001
// If there is a password, the
8846
// block is readable or writable
8847
// only when unlocked
8848
#define EEPROM_EEPROT_PROT_RONPW \
8849
0x00000002
// If there is no password, the
8850
// block is readable, not writable
8851
8852
//*****************************************************************************
8853
//
8854
// The following are defines for the bit fields in the EEPROM_EEPASS0 register.
8855
//
8856
//*****************************************************************************
8857
#define EEPROM_EEPASS0_PASS_M 0xFFFFFFFF
// Password
8858
#define EEPROM_EEPASS0_PASS_S 0
8859
8860
//*****************************************************************************
8861
//
8862
// The following are defines for the bit fields in the EEPROM_EEPASS1 register.
8863
//
8864
//*****************************************************************************
8865
#define EEPROM_EEPASS1_PASS_M 0xFFFFFFFF
// Password
8866
#define EEPROM_EEPASS1_PASS_S 0
8867
8868
//*****************************************************************************
8869
//
8870
// The following are defines for the bit fields in the EEPROM_EEPASS2 register.
8871
//
8872
//*****************************************************************************
8873
#define EEPROM_EEPASS2_PASS_M 0xFFFFFFFF
// Password
8874
#define EEPROM_EEPASS2_PASS_S 0
8875
8876
//*****************************************************************************
8877
//
8878
// The following are defines for the bit fields in the EEPROM_EEINT register.
8879
//
8880
//*****************************************************************************
8881
#define EEPROM_EEINT_INT 0x00000001
// Interrupt Enable
8882
8883
//*****************************************************************************
8884
//
8885
// The following are defines for the bit fields in the EEPROM_EEHIDE register.
8886
//
8887
//*****************************************************************************
8888
#define EEPROM_EEHIDE_HN_M 0xFFFFFFFE
// Hide Block
8889
8890
//*****************************************************************************
8891
//
8892
// The following are defines for the bit fields in the EEPROM_EEDBGME register.
8893
//
8894
//*****************************************************************************
8895
#define EEPROM_EEDBGME_KEY_M 0xFFFF0000
// Erase Key
8896
#define EEPROM_EEDBGME_ME 0x00000001
// Mass Erase
8897
#define EEPROM_EEDBGME_KEY_S 16
8898
8899
//*****************************************************************************
8900
//
8901
// The following are defines for the bit fields in the EEPROM_PP register.
8902
//
8903
//*****************************************************************************
8904
#define EEPROM_PP_SIZE_M 0x0000001F
// EEPROM Size
8905
#define EEPROM_PP_SIZE_S 0
8906
8907
//*****************************************************************************
8908
//
8909
// The following are defines for the bit fields in the SYSEXC_RIS register.
8910
//
8911
//*****************************************************************************
8912
#define SYSEXC_RIS_FPIXCRIS 0x00000020
// Floating-Point Inexact Exception
8913
// Raw Interrupt Status
8914
#define SYSEXC_RIS_FPOFCRIS 0x00000010
// Floating-Point Overflow
8915
// Exception Raw Interrupt Status
8916
#define SYSEXC_RIS_FPUFCRIS 0x00000008
// Floating-Point Underflow
8917
// Exception Raw Interrupt Status
8918
#define SYSEXC_RIS_FPIOCRIS 0x00000004
// Floating-Point Invalid Operation
8919
// Raw Interrupt Status
8920
#define SYSEXC_RIS_FPDZCRIS 0x00000002
// Floating-Point Divide By 0
8921
// Exception Raw Interrupt Status
8922
#define SYSEXC_RIS_FPIDCRIS 0x00000001
// Floating-Point Input Denormal
8923
// Exception Raw Interrupt Status
8924
8925
//*****************************************************************************
8926
//
8927
// The following are defines for the bit fields in the SYSEXC_IM register.
8928
//
8929
//*****************************************************************************
8930
#define SYSEXC_IM_FPIXCIM 0x00000020
// Floating-Point Inexact Exception
8931
// Interrupt Mask
8932
#define SYSEXC_IM_FPOFCIM 0x00000010
// Floating-Point Overflow
8933
// Exception Interrupt Mask
8934
#define SYSEXC_IM_FPUFCIM 0x00000008
// Floating-Point Underflow
8935
// Exception Interrupt Mask
8936
#define SYSEXC_IM_FPIOCIM 0x00000004
// Floating-Point Invalid Operation
8937
// Interrupt Mask
8938
#define SYSEXC_IM_FPDZCIM 0x00000002
// Floating-Point Divide By 0
8939
// Exception Interrupt Mask
8940
#define SYSEXC_IM_FPIDCIM 0x00000001
// Floating-Point Input Denormal
8941
// Exception Interrupt Mask
8942
8943
//*****************************************************************************
8944
//
8945
// The following are defines for the bit fields in the SYSEXC_MIS register.
8946
//
8947
//*****************************************************************************
8948
#define SYSEXC_MIS_FPIXCMIS 0x00000020
// Floating-Point Inexact Exception
8949
// Masked Interrupt Status
8950
#define SYSEXC_MIS_FPOFCMIS 0x00000010
// Floating-Point Overflow
8951
// Exception Masked Interrupt
8952
// Status
8953
#define SYSEXC_MIS_FPUFCMIS 0x00000008
// Floating-Point Underflow
8954
// Exception Masked Interrupt
8955
// Status
8956
#define SYSEXC_MIS_FPIOCMIS 0x00000004
// Floating-Point Invalid Operation
8957
// Masked Interrupt Status
8958
#define SYSEXC_MIS_FPDZCMIS 0x00000002
// Floating-Point Divide By 0
8959
// Exception Masked Interrupt
8960
// Status
8961
#define SYSEXC_MIS_FPIDCMIS 0x00000001
// Floating-Point Input Denormal
8962
// Exception Masked Interrupt
8963
// Status
8964
8965
//*****************************************************************************
8966
//
8967
// The following are defines for the bit fields in the SYSEXC_IC register.
8968
//
8969
//*****************************************************************************
8970
#define SYSEXC_IC_FPIXCIC 0x00000020
// Floating-Point Inexact Exception
8971
// Interrupt Clear
8972
#define SYSEXC_IC_FPOFCIC 0x00000010
// Floating-Point Overflow
8973
// Exception Interrupt Clear
8974
#define SYSEXC_IC_FPUFCIC 0x00000008
// Floating-Point Underflow
8975
// Exception Interrupt Clear
8976
#define SYSEXC_IC_FPIOCIC 0x00000004
// Floating-Point Invalid Operation
8977
// Interrupt Clear
8978
#define SYSEXC_IC_FPDZCIC 0x00000002
// Floating-Point Divide By 0
8979
// Exception Interrupt Clear
8980
#define SYSEXC_IC_FPIDCIC 0x00000001
// Floating-Point Input Denormal
8981
// Exception Interrupt Clear
8982
8983
//*****************************************************************************
8984
//
8985
// The following are defines for the bit fields in the HIB_RTCC register.
8986
//
8987
//*****************************************************************************
8988
#define HIB_RTCC_M 0xFFFFFFFF
// RTC Counter
8989
#define HIB_RTCC_S 0
8990
8991
//*****************************************************************************
8992
//
8993
// The following are defines for the bit fields in the HIB_RTCM0 register.
8994
//
8995
//*****************************************************************************
8996
#define HIB_RTCM0_M 0xFFFFFFFF
// RTC Match 0
8997
#define HIB_RTCM0_S 0
8998
8999
//*****************************************************************************
9000
//
9001
// The following are defines for the bit fields in the HIB_RTCLD register.
9002
//
9003
//*****************************************************************************
9004
#define HIB_RTCLD_M 0xFFFFFFFF
// RTC Load
9005
#define HIB_RTCLD_S 0
9006
9007
//*****************************************************************************
9008
//
9009
// The following are defines for the bit fields in the HIB_CTL register.
9010
//
9011
//*****************************************************************************
9012
#define HIB_CTL_WRC 0x80000000
// Write Complete/Capable
9013
#define HIB_CTL_OSCDRV 0x00020000
// Oscillator Drive Capability
9014
#define HIB_CTL_OSCBYP 0x00010000
// Oscillator Bypass
9015
#define HIB_CTL_VBATSEL_M 0x00006000
// Select for Low-Battery
9016
// Comparator
9017
#define HIB_CTL_VBATSEL_1_9V 0x00000000
// 1.9 Volts
9018
#define HIB_CTL_VBATSEL_2_1V 0x00002000
// 2.1 Volts (default)
9019
#define HIB_CTL_VBATSEL_2_3V 0x00004000
// 2.3 Volts
9020
#define HIB_CTL_VBATSEL_2_5V 0x00006000
// 2.5 Volts
9021
#define HIB_CTL_BATCHK 0x00000400
// Check Battery Status
9022
#define HIB_CTL_BATWKEN 0x00000200
// Wake on Low Battery
9023
#define HIB_CTL_VDD3ON 0x00000100
// VDD Powered
9024
#define HIB_CTL_VABORT 0x00000080
// Power Cut Abort Enable
9025
#define HIB_CTL_CLK32EN 0x00000040
// Clocking Enable
9026
#define HIB_CTL_PINWEN 0x00000010
// External Wake Pin Enable
9027
#define HIB_CTL_RTCWEN 0x00000008
// RTC Wake-up Enable
9028
#define HIB_CTL_HIBREQ 0x00000002
// Hibernation Request
9029
#define HIB_CTL_RTCEN 0x00000001
// RTC Timer Enable
9030
9031
//*****************************************************************************
9032
//
9033
// The following are defines for the bit fields in the HIB_IM register.
9034
//
9035
//*****************************************************************************
9036
#define HIB_IM_WC 0x00000010
// External Write Complete/Capable
9037
// Interrupt Mask
9038
#define HIB_IM_EXTW 0x00000008
// External Wake-Up Interrupt Mask
9039
#define HIB_IM_LOWBAT 0x00000004
// Low Battery Voltage Interrupt
9040
// Mask
9041
#define HIB_IM_RTCALT0 0x00000001
// RTC Alert 0 Interrupt Mask
9042
9043
//*****************************************************************************
9044
//
9045
// The following are defines for the bit fields in the HIB_RIS register.
9046
//
9047
//*****************************************************************************
9048
#define HIB_RIS_WC 0x00000010
// Write Complete/Capable Raw
9049
// Interrupt Status
9050
#define HIB_RIS_EXTW 0x00000008
// External Wake-Up Raw Interrupt
9051
// Status
9052
#define HIB_RIS_LOWBAT 0x00000004
// Low Battery Voltage Raw
9053
// Interrupt Status
9054
#define HIB_RIS_RTCALT0 0x00000001
// RTC Alert 0 Raw Interrupt Status
9055
9056
//*****************************************************************************
9057
//
9058
// The following are defines for the bit fields in the HIB_MIS register.
9059
//
9060
//*****************************************************************************
9061
#define HIB_MIS_WC 0x00000010
// Write Complete/Capable Masked
9062
// Interrupt Status
9063
#define HIB_MIS_EXTW 0x00000008
// External Wake-Up Masked
9064
// Interrupt Status
9065
#define HIB_MIS_LOWBAT 0x00000004
// Low Battery Voltage Masked
9066
// Interrupt Status
9067
#define HIB_MIS_RTCALT0 0x00000001
// RTC Alert 0 Masked Interrupt
9068
// Status
9069
9070
//*****************************************************************************
9071
//
9072
// The following are defines for the bit fields in the HIB_IC register.
9073
//
9074
//*****************************************************************************
9075
#define HIB_IC_WC 0x00000010
// Write Complete/Capable Interrupt
9076
// Clear
9077
#define HIB_IC_EXTW 0x00000008
// External Wake-Up Interrupt Clear
9078
#define HIB_IC_LOWBAT 0x00000004
// Low Battery Voltage Interrupt
9079
// Clear
9080
#define HIB_IC_RTCALT0 0x00000001
// RTC Alert0 Masked Interrupt
9081
// Clear
9082
9083
//*****************************************************************************
9084
//
9085
// The following are defines for the bit fields in the HIB_RTCT register.
9086
//
9087
//*****************************************************************************
9088
#define HIB_RTCT_TRIM_M 0x0000FFFF
// RTC Trim Value
9089
#define HIB_RTCT_TRIM_S 0
9090
9091
//*****************************************************************************
9092
//
9093
// The following are defines for the bit fields in the HIB_RTCSS register.
9094
//
9095
//*****************************************************************************
9096
#define HIB_RTCSS_RTCSSM_M 0x7FFF0000
// RTC Sub Seconds Match
9097
#define HIB_RTCSS_RTCSSC_M 0x00007FFF
// RTC Sub Seconds Count
9098
#define HIB_RTCSS_RTCSSM_S 16
9099
#define HIB_RTCSS_RTCSSC_S 0
9100
9101
//*****************************************************************************
9102
//
9103
// The following are defines for the bit fields in the HIB_DATA register.
9104
//
9105
//*****************************************************************************
9106
#define HIB_DATA_RTD_M 0xFFFFFFFF
// Hibernation Module NV Data
9107
#define HIB_DATA_RTD_S 0
9108
9109
//*****************************************************************************
9110
//
9111
// The following are defines for the bit fields in the FLASH_FMA register.
9112
//
9113
//*****************************************************************************
9114
#define FLASH_FMA_OFFSET_M 0x0003FFFF
// Address Offset
9115
#define FLASH_FMA_OFFSET_S 0
9116
9117
//*****************************************************************************
9118
//
9119
// The following are defines for the bit fields in the FLASH_FMD register.
9120
//
9121
//*****************************************************************************
9122
#define FLASH_FMD_DATA_M 0xFFFFFFFF
// Data Value
9123
#define FLASH_FMD_DATA_S 0
9124
9125
//*****************************************************************************
9126
//
9127
// The following are defines for the bit fields in the FLASH_FMC register.
9128
//
9129
//*****************************************************************************
9130
#define FLASH_FMC_WRKEY 0xA4420000
// FLASH write key
9131
#define FLASH_FMC_COMT 0x00000008
// Commit Register Value
9132
#define FLASH_FMC_MERASE 0x00000004
// Mass Erase Flash Memory
9133
#define FLASH_FMC_ERASE 0x00000002
// Erase a Page of Flash Memory
9134
#define FLASH_FMC_WRITE 0x00000001
// Write a Word into Flash Memory
9135
9136
//*****************************************************************************
9137
//
9138
// The following are defines for the bit fields in the FLASH_FCRIS register.
9139
//
9140
//*****************************************************************************
9141
#define FLASH_FCRIS_PROGRIS 0x00002000
// Program Verify Error Raw
9142
// Interrupt Status
9143
#define FLASH_FCRIS_ERRIS 0x00000800
// Erase Verify Error Raw Interrupt
9144
// Status
9145
#define FLASH_FCRIS_INVDRIS 0x00000400
// Invalid Data Raw Interrupt
9146
// Status
9147
#define FLASH_FCRIS_VOLTRIS 0x00000200
// Pump Voltage Raw Interrupt
9148
// Status
9149
#define FLASH_FCRIS_ERIS 0x00000004
// EEPROM Raw Interrupt Status
9150
#define FLASH_FCRIS_PRIS 0x00000002
// Programming Raw Interrupt Status
9151
#define FLASH_FCRIS_ARIS 0x00000001
// Access Raw Interrupt Status
9152
9153
//*****************************************************************************
9154
//
9155
// The following are defines for the bit fields in the FLASH_FCIM register.
9156
//
9157
//*****************************************************************************
9158
#define FLASH_FCIM_PROGMASK 0x00002000
// PROGVER Interrupt Mask
9159
#define FLASH_FCIM_ERMASK 0x00000800
// ERVER Interrupt Mask
9160
#define FLASH_FCIM_INVDMASK 0x00000400
// Invalid Data Interrupt Mask
9161
#define FLASH_FCIM_VOLTMASK 0x00000200
// VOLT Interrupt Mask
9162
#define FLASH_FCIM_EMASK 0x00000004
// EEPROM Interrupt Mask
9163
#define FLASH_FCIM_PMASK 0x00000002
// Programming Interrupt Mask
9164
#define FLASH_FCIM_AMASK 0x00000001
// Access Interrupt Mask
9165
9166
//*****************************************************************************
9167
//
9168
// The following are defines for the bit fields in the FLASH_FCMISC register.
9169
//
9170
//*****************************************************************************
9171
#define FLASH_FCMISC_PROGMISC 0x00002000
// PROGVER Masked Interrupt Status
9172
// and Clear
9173
#define FLASH_FCMISC_ERMISC 0x00000800
// ERVER Masked Interrupt Status
9174
// and Clear
9175
#define FLASH_FCMISC_INVDMISC 0x00000400
// Invalid Data Masked Interrupt
9176
// Status and Clear
9177
#define FLASH_FCMISC_VOLTMISC 0x00000200
// VOLT Masked Interrupt Status and
9178
// Clear
9179
#define FLASH_FCMISC_EMISC 0x00000004
// EEPROM Masked Interrupt Status
9180
// and Clear
9181
#define FLASH_FCMISC_PMISC 0x00000002
// Programming Masked Interrupt
9182
// Status and Clear
9183
#define FLASH_FCMISC_AMISC 0x00000001
// Access Masked Interrupt Status
9184
// and Clear
9185
9186
//*****************************************************************************
9187
//
9188
// The following are defines for the bit fields in the FLASH_FMC2 register.
9189
//
9190
//*****************************************************************************
9191
#define FLASH_FMC2_WRBUF 0x00000001
// Buffered Flash Memory Write
9192
9193
//*****************************************************************************
9194
//
9195
// The following are defines for the bit fields in the FLASH_FWBVAL register.
9196
//
9197
//*****************************************************************************
9198
#define FLASH_FWBVAL_FWB_M 0xFFFFFFFF
// Flash Memory Write Buffer
9199
9200
//*****************************************************************************
9201
//
9202
// The following are defines for the bit fields in the FLASH_FWBN register.
9203
//
9204
//*****************************************************************************
9205
#define FLASH_FWBN_DATA_M 0xFFFFFFFF
// Data
9206
9207
//*****************************************************************************
9208
//
9209
// The following are defines for the bit fields in the FLASH_FSIZE register.
9210
//
9211
//*****************************************************************************
9212
#define FLASH_FSIZE_SIZE_M 0x0000FFFF
// Flash Size
9213
#define FLASH_FSIZE_SIZE_256KB 0x0000007F
// 256 KB of Flash
9214
9215
//*****************************************************************************
9216
//
9217
// The following are defines for the bit fields in the FLASH_SSIZE register.
9218
//
9219
//*****************************************************************************
9220
#define FLASH_SSIZE_SIZE_M 0x0000FFFF
// SRAM Size
9221
#define FLASH_SSIZE_SIZE_32KB 0x0000007F
// 32 KB of SRAM
9222
9223
//*****************************************************************************
9224
//
9225
// The following are defines for the bit fields in the FLASH_ROMSWMAP register.
9226
//
9227
//*****************************************************************************
9228
#define FLASH_ROMSWMAP_SAFERTOS 0x00000001
// SafeRTOS Present
9229
9230
//*****************************************************************************
9231
//
9232
// The following are defines for the bit fields in the FLASH_RMCTL register.
9233
//
9234
//*****************************************************************************
9235
#define FLASH_RMCTL_BA 0x00000001
// Boot Alias
9236
9237
//*****************************************************************************
9238
//
9239
// The following are defines for the bit fields in the FLASH_BOOTCFG register.
9240
//
9241
//*****************************************************************************
9242
#define FLASH_BOOTCFG_NW 0x80000000
// Not Written
9243
#define FLASH_BOOTCFG_PORT_M 0x0000E000
// Boot GPIO Port
9244
#define FLASH_BOOTCFG_PORT_A 0x00000000
// Port A
9245
#define FLASH_BOOTCFG_PORT_B 0x00002000
// Port B
9246
#define FLASH_BOOTCFG_PORT_C 0x00004000
// Port C
9247
#define FLASH_BOOTCFG_PORT_D 0x00006000
// Port D
9248
#define FLASH_BOOTCFG_PORT_E 0x00008000
// Port E
9249
#define FLASH_BOOTCFG_PORT_F 0x0000A000
// Port F
9250
#define FLASH_BOOTCFG_PORT_G 0x0000C000
// Port G
9251
#define FLASH_BOOTCFG_PORT_H 0x0000E000
// Port H
9252
#define FLASH_BOOTCFG_PIN_M 0x00001C00
// Boot GPIO Pin
9253
#define FLASH_BOOTCFG_PIN_0 0x00000000
// Pin 0
9254
#define FLASH_BOOTCFG_PIN_1 0x00000400
// Pin 1
9255
#define FLASH_BOOTCFG_PIN_2 0x00000800
// Pin 2
9256
#define FLASH_BOOTCFG_PIN_3 0x00000C00
// Pin 3
9257
#define FLASH_BOOTCFG_PIN_4 0x00001000
// Pin 4
9258
#define FLASH_BOOTCFG_PIN_5 0x00001400
// Pin 5
9259
#define FLASH_BOOTCFG_PIN_6 0x00001800
// Pin 6
9260
#define FLASH_BOOTCFG_PIN_7 0x00001C00
// Pin 7
9261
#define FLASH_BOOTCFG_POL 0x00000200
// Boot GPIO Polarity
9262
#define FLASH_BOOTCFG_EN 0x00000100
// Boot GPIO Enable
9263
#define FLASH_BOOTCFG_KEY 0x00000010
// KEY Select
9264
#define FLASH_BOOTCFG_DBG1 0x00000002
// Debug Control 1
9265
#define FLASH_BOOTCFG_DBG0 0x00000001
// Debug Control 0
9266
9267
//*****************************************************************************
9268
//
9269
// The following are defines for the bit fields in the FLASH_USERREG0 register.
9270
//
9271
//*****************************************************************************
9272
#define FLASH_USERREG0_DATA_M 0xFFFFFFFF
// User Data
9273
#define FLASH_USERREG0_DATA_S 0
9274
9275
//*****************************************************************************
9276
//
9277
// The following are defines for the bit fields in the FLASH_USERREG1 register.
9278
//
9279
//*****************************************************************************
9280
#define FLASH_USERREG1_DATA_M 0xFFFFFFFF
// User Data
9281
#define FLASH_USERREG1_DATA_S 0
9282
9283
//*****************************************************************************
9284
//
9285
// The following are defines for the bit fields in the FLASH_USERREG2 register.
9286
//
9287
//*****************************************************************************
9288
#define FLASH_USERREG2_DATA_M 0xFFFFFFFF
// User Data
9289
#define FLASH_USERREG2_DATA_S 0
9290
9291
//*****************************************************************************
9292
//
9293
// The following are defines for the bit fields in the FLASH_USERREG3 register.
9294
//
9295
//*****************************************************************************
9296
#define FLASH_USERREG3_DATA_M 0xFFFFFFFF
// User Data
9297
#define FLASH_USERREG3_DATA_S 0
9298
9299
//*****************************************************************************
9300
//
9301
// The following are defines for the bit fields in the SYSCTL_DID0 register.
9302
//
9303
//*****************************************************************************
9304
#define SYSCTL_DID0_VER_M 0x70000000
// DID0 Version
9305
#define SYSCTL_DID0_VER_1 0x10000000
// Second version of the DID0
9306
// register format.
9307
#define SYSCTL_DID0_CLASS_M 0x00FF0000
// Device Class
9308
#define SYSCTL_DID0_CLASS_TM4C123 \
9309
0x00050000
// Tiva TM4C123x and TM4E123x
9310
// microcontrollers
9311
#define SYSCTL_DID0_MAJ_M 0x0000FF00
// Major Revision
9312
#define SYSCTL_DID0_MAJ_REVA 0x00000000
// Revision A (initial device)
9313
#define SYSCTL_DID0_MAJ_REVB 0x00000100
// Revision B (first base layer
9314
// revision)
9315
#define SYSCTL_DID0_MAJ_REVC 0x00000200
// Revision C (second base layer
9316
// revision)
9317
#define SYSCTL_DID0_MIN_M 0x000000FF
// Minor Revision
9318
#define SYSCTL_DID0_MIN_0 0x00000000
// Initial device, or a major
9319
// revision update
9320
#define SYSCTL_DID0_MIN_1 0x00000001
// First metal layer change
9321
#define SYSCTL_DID0_MIN_2 0x00000002
// Second metal layer change
9322
9323
//*****************************************************************************
9324
//
9325
// The following are defines for the bit fields in the SYSCTL_DID1 register.
9326
//
9327
//*****************************************************************************
9328
#define SYSCTL_DID1_VER_M 0xF0000000
// DID1 Version
9329
#define SYSCTL_DID1_VER_1 0x10000000
// fury_ib
9330
#define SYSCTL_DID1_FAM_M 0x0F000000
// Family
9331
#define SYSCTL_DID1_FAM_TIVA 0x00000000
// Tiva family of microcontollers
9332
#define SYSCTL_DID1_PRTNO_M 0x00FF0000
// Part Number
9333
#define SYSCTL_DID1_PRTNO_TM4C123GH6PM \
9334
0x00A10000
// TM4C123GH6PM
9335
#define SYSCTL_DID1_PINCNT_M 0x0000E000
// Package Pin Count
9336
#define SYSCTL_DID1_PINCNT_100 0x00004000
// 100-pin LQFP package
9337
#define SYSCTL_DID1_PINCNT_64 0x00006000
// 64-pin LQFP package
9338
#define SYSCTL_DID1_PINCNT_144 0x00008000
// 144-pin LQFP package
9339
#define SYSCTL_DID1_PINCNT_157 0x0000A000
// 157-pin BGA package
9340
#define SYSCTL_DID1_PINCNT_128 0x0000C000
// 128-pin TQFP package
9341
#define SYSCTL_DID1_TEMP_M 0x000000E0
// Temperature Range
9342
#define SYSCTL_DID1_TEMP_I 0x00000020
// Industrial temperature range
9343
#define SYSCTL_DID1_TEMP_E 0x00000040
// Extended temperature range
9344
#define SYSCTL_DID1_TEMP_IE 0x00000060
// Available in both industrial
9345
// temperature range (-40C to 85C)
9346
// and extended temperature range
9347
// (-40C to 105C) devices. See
9348
#define SYSCTL_DID1_PKG_M 0x00000018
// Package Type
9349
#define SYSCTL_DID1_PKG_QFP 0x00000008
// QFP package
9350
#define SYSCTL_DID1_PKG_BGA 0x00000010
// BGA package
9351
#define SYSCTL_DID1_ROHS 0x00000004
// RoHS-Compliance
9352
#define SYSCTL_DID1_QUAL_M 0x00000003
// Qualification Status
9353
#define SYSCTL_DID1_QUAL_ES 0x00000000
// Engineering Sample (unqualified)
9354
#define SYSCTL_DID1_QUAL_PP 0x00000001
// Pilot Production (unqualified)
9355
#define SYSCTL_DID1_QUAL_FQ 0x00000002
// Fully Qualified
9356
9357
//*****************************************************************************
9358
//
9359
// The following are defines for the bit fields in the SYSCTL_DC0 register.
9360
//
9361
//*****************************************************************************
9362
#define SYSCTL_DC0_SRAMSZ_M 0xFFFF0000
// SRAM Size
9363
#define SYSCTL_DC0_SRAMSZ_2KB 0x00070000
// 2 KB of SRAM
9364
#define SYSCTL_DC0_SRAMSZ_4KB 0x000F0000
// 4 KB of SRAM
9365
#define SYSCTL_DC0_SRAMSZ_6KB 0x00170000
// 6 KB of SRAM
9366
#define SYSCTL_DC0_SRAMSZ_8KB 0x001F0000
// 8 KB of SRAM
9367
#define SYSCTL_DC0_SRAMSZ_12KB 0x002F0000
// 12 KB of SRAM
9368
#define SYSCTL_DC0_SRAMSZ_16KB 0x003F0000
// 16 KB of SRAM
9369
#define SYSCTL_DC0_SRAMSZ_20KB 0x004F0000
// 20 KB of SRAM
9370
#define SYSCTL_DC0_SRAMSZ_24KB 0x005F0000
// 24 KB of SRAM
9371
#define SYSCTL_DC0_SRAMSZ_32KB 0x007F0000
// 32 KB of SRAM
9372
#define SYSCTL_DC0_FLASHSZ_M 0x0000FFFF
// Flash Size
9373
#define SYSCTL_DC0_FLASHSZ_8KB 0x00000003
// 8 KB of Flash
9374
#define SYSCTL_DC0_FLASHSZ_16KB 0x00000007
// 16 KB of Flash
9375
#define SYSCTL_DC0_FLASHSZ_32KB 0x0000000F
// 32 KB of Flash
9376
#define SYSCTL_DC0_FLASHSZ_64KB 0x0000001F
// 64 KB of Flash
9377
#define SYSCTL_DC0_FLASHSZ_96KB 0x0000002F
// 96 KB of Flash
9378
#define SYSCTL_DC0_FLASHSZ_128K 0x0000003F
// 128 KB of Flash
9379
#define SYSCTL_DC0_FLASHSZ_192K 0x0000005F
// 192 KB of Flash
9380
#define SYSCTL_DC0_FLASHSZ_256K 0x0000007F
// 256 KB of Flash
9381
9382
//*****************************************************************************
9383
//
9384
// The following are defines for the bit fields in the SYSCTL_DC1 register.
9385
//
9386
//*****************************************************************************
9387
#define SYSCTL_DC1_WDT1 0x10000000
// Watchdog Timer1 Present
9388
#define SYSCTL_DC1_CAN1 0x02000000
// CAN Module 1 Present
9389
#define SYSCTL_DC1_CAN0 0x01000000
// CAN Module 0 Present
9390
#define SYSCTL_DC1_PWM1 0x00200000
// PWM Module 1 Present
9391
#define SYSCTL_DC1_PWM0 0x00100000
// PWM Module 0 Present
9392
#define SYSCTL_DC1_ADC1 0x00020000
// ADC Module 1 Present
9393
#define SYSCTL_DC1_ADC0 0x00010000
// ADC Module 0 Present
9394
#define SYSCTL_DC1_MINSYSDIV_M 0x0000F000
// System Clock Divider
9395
#define SYSCTL_DC1_MINSYSDIV_80 0x00001000
// Specifies an 80-MHz CPU clock
9396
// with a PLL divider of 2.5
9397
#define SYSCTL_DC1_MINSYSDIV_66 0x00002000
// Specifies a 66-MHz CPU clock
9398
// with a PLL divider of 3
9399
#define SYSCTL_DC1_MINSYSDIV_50 0x00003000
// Specifies a 50-MHz CPU clock
9400
// with a PLL divider of 4
9401
#define SYSCTL_DC1_MINSYSDIV_40 0x00004000
// Specifies a 40-MHz CPU clock
9402
// with a PLL divider of 5
9403
#define SYSCTL_DC1_MINSYSDIV_25 0x00007000
// Specifies a 25-MHz clock with a
9404
// PLL divider of 8
9405
#define SYSCTL_DC1_MINSYSDIV_20 0x00009000
// Specifies a 20-MHz clock with a
9406
// PLL divider of 10
9407
#define SYSCTL_DC1_ADC1SPD_M 0x00000C00
// Max ADC1 Speed
9408
#define SYSCTL_DC1_ADC1SPD_125K 0x00000000
// 125K samples/second
9409
#define SYSCTL_DC1_ADC1SPD_250K 0x00000400
// 250K samples/second
9410
#define SYSCTL_DC1_ADC1SPD_500K 0x00000800
// 500K samples/second
9411
#define SYSCTL_DC1_ADC1SPD_1M 0x00000C00
// 1M samples/second
9412
#define SYSCTL_DC1_ADC0SPD_M 0x00000300
// Max ADC0 Speed
9413
#define SYSCTL_DC1_ADC0SPD_125K 0x00000000
// 125K samples/second
9414
#define SYSCTL_DC1_ADC0SPD_250K 0x00000100
// 250K samples/second
9415
#define SYSCTL_DC1_ADC0SPD_500K 0x00000200
// 500K samples/second
9416
#define SYSCTL_DC1_ADC0SPD_1M 0x00000300
// 1M samples/second
9417
#define SYSCTL_DC1_MPU 0x00000080
// MPU Present
9418
#define SYSCTL_DC1_HIB 0x00000040
// Hibernation Module Present
9419
#define SYSCTL_DC1_TEMP 0x00000020
// Temp Sensor Present
9420
#define SYSCTL_DC1_PLL 0x00000010
// PLL Present
9421
#define SYSCTL_DC1_WDT0 0x00000008
// Watchdog Timer 0 Present
9422
#define SYSCTL_DC1_SWO 0x00000004
// SWO Trace Port Present
9423
#define SYSCTL_DC1_SWD 0x00000002
// SWD Present
9424
#define SYSCTL_DC1_JTAG 0x00000001
// JTAG Present
9425
9426
//*****************************************************************************
9427
//
9428
// The following are defines for the bit fields in the SYSCTL_DC2 register.
9429
//
9430
//*****************************************************************************
9431
#define SYSCTL_DC2_EPI0 0x40000000
// EPI Module 0 Present
9432
#define SYSCTL_DC2_I2S0 0x10000000
// I2S Module 0 Present
9433
#define SYSCTL_DC2_COMP2 0x04000000
// Analog Comparator 2 Present
9434
#define SYSCTL_DC2_COMP1 0x02000000
// Analog Comparator 1 Present
9435
#define SYSCTL_DC2_COMP0 0x01000000
// Analog Comparator 0 Present
9436
#define SYSCTL_DC2_TIMER3 0x00080000
// Timer Module 3 Present
9437
#define SYSCTL_DC2_TIMER2 0x00040000
// Timer Module 2 Present
9438
#define SYSCTL_DC2_TIMER1 0x00020000
// Timer Module 1 Present
9439
#define SYSCTL_DC2_TIMER0 0x00010000
// Timer Module 0 Present
9440
#define SYSCTL_DC2_I2C1HS 0x00008000
// I2C Module 1 Speed
9441
#define SYSCTL_DC2_I2C1 0x00004000
// I2C Module 1 Present
9442
#define SYSCTL_DC2_I2C0HS 0x00002000
// I2C Module 0 Speed
9443
#define SYSCTL_DC2_I2C0 0x00001000
// I2C Module 0 Present
9444
#define SYSCTL_DC2_QEI1 0x00000200
// QEI Module 1 Present
9445
#define SYSCTL_DC2_QEI0 0x00000100
// QEI Module 0 Present
9446
#define SYSCTL_DC2_SSI1 0x00000020
// SSI Module 1 Present
9447
#define SYSCTL_DC2_SSI0 0x00000010
// SSI Module 0 Present
9448
#define SYSCTL_DC2_UART2 0x00000004
// UART Module 2 Present
9449
#define SYSCTL_DC2_UART1 0x00000002
// UART Module 1 Present
9450
#define SYSCTL_DC2_UART0 0x00000001
// UART Module 0 Present
9451
9452
//*****************************************************************************
9453
//
9454
// The following are defines for the bit fields in the SYSCTL_DC3 register.
9455
//
9456
//*****************************************************************************
9457
#define SYSCTL_DC3_32KHZ 0x80000000
// 32KHz Input Clock Available
9458
#define SYSCTL_DC3_CCP5 0x20000000
// T2CCP1 Pin Present
9459
#define SYSCTL_DC3_CCP4 0x10000000
// T2CCP0 Pin Present
9460
#define SYSCTL_DC3_CCP3 0x08000000
// T1CCP1 Pin Present
9461
#define SYSCTL_DC3_CCP2 0x04000000
// T1CCP0 Pin Present
9462
#define SYSCTL_DC3_CCP1 0x02000000
// T0CCP1 Pin Present
9463
#define SYSCTL_DC3_CCP0 0x01000000
// T0CCP0 Pin Present
9464
#define SYSCTL_DC3_ADC0AIN7 0x00800000
// ADC Module 0 AIN7 Pin Present
9465
#define SYSCTL_DC3_ADC0AIN6 0x00400000
// ADC Module 0 AIN6 Pin Present
9466
#define SYSCTL_DC3_ADC0AIN5 0x00200000
// ADC Module 0 AIN5 Pin Present
9467
#define SYSCTL_DC3_ADC0AIN4 0x00100000
// ADC Module 0 AIN4 Pin Present
9468
#define SYSCTL_DC3_ADC0AIN3 0x00080000
// ADC Module 0 AIN3 Pin Present
9469
#define SYSCTL_DC3_ADC0AIN2 0x00040000
// ADC Module 0 AIN2 Pin Present
9470
#define SYSCTL_DC3_ADC0AIN1 0x00020000
// ADC Module 0 AIN1 Pin Present
9471
#define SYSCTL_DC3_ADC0AIN0 0x00010000
// ADC Module 0 AIN0 Pin Present
9472
#define SYSCTL_DC3_PWMFAULT 0x00008000
// PWM Fault Pin Present
9473
#define SYSCTL_DC3_C2O 0x00004000
// C2o Pin Present
9474
#define SYSCTL_DC3_C2PLUS 0x00002000
// C2+ Pin Present
9475
#define SYSCTL_DC3_C2MINUS 0x00001000
// C2- Pin Present
9476
#define SYSCTL_DC3_C1O 0x00000800
// C1o Pin Present
9477
#define SYSCTL_DC3_C1PLUS 0x00000400
// C1+ Pin Present
9478
#define SYSCTL_DC3_C1MINUS 0x00000200
// C1- Pin Present
9479
#define SYSCTL_DC3_C0O 0x00000100
// C0o Pin Present
9480
#define SYSCTL_DC3_C0PLUS 0x00000080
// C0+ Pin Present
9481
#define SYSCTL_DC3_C0MINUS 0x00000040
// C0- Pin Present
9482
#define SYSCTL_DC3_PWM5 0x00000020
// PWM5 Pin Present
9483
#define SYSCTL_DC3_PWM4 0x00000010
// PWM4 Pin Present
9484
#define SYSCTL_DC3_PWM3 0x00000008
// PWM3 Pin Present
9485
#define SYSCTL_DC3_PWM2 0x00000004
// PWM2 Pin Present
9486
#define SYSCTL_DC3_PWM1 0x00000002
// PWM1 Pin Present
9487
#define SYSCTL_DC3_PWM0 0x00000001
// PWM0 Pin Present
9488
9489
//*****************************************************************************
9490
//
9491
// The following are defines for the bit fields in the SYSCTL_DC4 register.
9492
//
9493
//*****************************************************************************
9494
#define SYSCTL_DC4_EPHY0 0x40000000
// Ethernet PHY Layer 0 Present
9495
#define SYSCTL_DC4_EMAC0 0x10000000
// Ethernet MAC Layer 0 Present
9496
#define SYSCTL_DC4_E1588 0x01000000
// 1588 Capable
9497
#define SYSCTL_DC4_PICAL 0x00040000
// PIOSC Calibrate
9498
#define SYSCTL_DC4_CCP7 0x00008000
// T3CCP1 Pin Present
9499
#define SYSCTL_DC4_CCP6 0x00004000
// T3CCP0 Pin Present
9500
#define SYSCTL_DC4_UDMA 0x00002000
// Micro-DMA Module Present
9501
#define SYSCTL_DC4_ROM 0x00001000
// Internal Code ROM Present
9502
#define SYSCTL_DC4_GPIOJ 0x00000100
// GPIO Port J Present
9503
#define SYSCTL_DC4_GPIOH 0x00000080
// GPIO Port H Present
9504
#define SYSCTL_DC4_GPIOG 0x00000040
// GPIO Port G Present
9505
#define SYSCTL_DC4_GPIOF 0x00000020
// GPIO Port F Present
9506
#define SYSCTL_DC4_GPIOE 0x00000010
// GPIO Port E Present
9507
#define SYSCTL_DC4_GPIOD 0x00000008
// GPIO Port D Present
9508
#define SYSCTL_DC4_GPIOC 0x00000004
// GPIO Port C Present
9509
#define SYSCTL_DC4_GPIOB 0x00000002
// GPIO Port B Present
9510
#define SYSCTL_DC4_GPIOA 0x00000001
// GPIO Port A Present
9511
9512
//*****************************************************************************
9513
//
9514
// The following are defines for the bit fields in the SYSCTL_DC5 register.
9515
//
9516
//*****************************************************************************
9517
#define SYSCTL_DC5_PWMFAULT3 0x08000000
// PWM Fault 3 Pin Present
9518
#define SYSCTL_DC5_PWMFAULT2 0x04000000
// PWM Fault 2 Pin Present
9519
#define SYSCTL_DC5_PWMFAULT1 0x02000000
// PWM Fault 1 Pin Present
9520
#define SYSCTL_DC5_PWMFAULT0 0x01000000
// PWM Fault 0 Pin Present
9521
#define SYSCTL_DC5_PWMEFLT 0x00200000
// PWM Extended Fault Active
9522
#define SYSCTL_DC5_PWMESYNC 0x00100000
// PWM Extended SYNC Active
9523
#define SYSCTL_DC5_PWM7 0x00000080
// PWM7 Pin Present
9524
#define SYSCTL_DC5_PWM6 0x00000040
// PWM6 Pin Present
9525
#define SYSCTL_DC5_PWM5 0x00000020
// PWM5 Pin Present
9526
#define SYSCTL_DC5_PWM4 0x00000010
// PWM4 Pin Present
9527
#define SYSCTL_DC5_PWM3 0x00000008
// PWM3 Pin Present
9528
#define SYSCTL_DC5_PWM2 0x00000004
// PWM2 Pin Present
9529
#define SYSCTL_DC5_PWM1 0x00000002
// PWM1 Pin Present
9530
#define SYSCTL_DC5_PWM0 0x00000001
// PWM0 Pin Present
9531
9532
//*****************************************************************************
9533
//
9534
// The following are defines for the bit fields in the SYSCTL_DC6 register.
9535
//
9536
//*****************************************************************************
9537
#define SYSCTL_DC6_USB0PHY 0x00000010
// USB Module 0 PHY Present
9538
#define SYSCTL_DC6_USB0_M 0x00000003
// USB Module 0 Present
9539
#define SYSCTL_DC6_USB0_DEV 0x00000001
// USB0 is Device Only
9540
#define SYSCTL_DC6_USB0_HOSTDEV 0x00000002
// USB is Device or Host
9541
#define SYSCTL_DC6_USB0_OTG 0x00000003
// USB0 is OTG
9542
9543
//*****************************************************************************
9544
//
9545
// The following are defines for the bit fields in the SYSCTL_DC7 register.
9546
//
9547
//*****************************************************************************
9548
#define SYSCTL_DC7_DMACH30 0x40000000
// DMA Channel 30
9549
#define SYSCTL_DC7_DMACH29 0x20000000
// DMA Channel 29
9550
#define SYSCTL_DC7_DMACH28 0x10000000
// DMA Channel 28
9551
#define SYSCTL_DC7_DMACH27 0x08000000
// DMA Channel 27
9552
#define SYSCTL_DC7_DMACH26 0x04000000
// DMA Channel 26
9553
#define SYSCTL_DC7_DMACH25 0x02000000
// DMA Channel 25
9554
#define SYSCTL_DC7_DMACH24 0x01000000
// DMA Channel 24
9555
#define SYSCTL_DC7_DMACH23 0x00800000
// DMA Channel 23
9556
#define SYSCTL_DC7_DMACH22 0x00400000
// DMA Channel 22
9557
#define SYSCTL_DC7_DMACH21 0x00200000
// DMA Channel 21
9558
#define SYSCTL_DC7_DMACH20 0x00100000
// DMA Channel 20
9559
#define SYSCTL_DC7_DMACH19 0x00080000
// DMA Channel 19
9560
#define SYSCTL_DC7_DMACH18 0x00040000
// DMA Channel 18
9561
#define SYSCTL_DC7_DMACH17 0x00020000
// DMA Channel 17
9562
#define SYSCTL_DC7_DMACH16 0x00010000
// DMA Channel 16
9563
#define SYSCTL_DC7_DMACH15 0x00008000
// DMA Channel 15
9564
#define SYSCTL_DC7_DMACH14 0x00004000
// DMA Channel 14
9565
#define SYSCTL_DC7_DMACH13 0x00002000
// DMA Channel 13
9566
#define SYSCTL_DC7_DMACH12 0x00001000
// DMA Channel 12
9567
#define SYSCTL_DC7_DMACH11 0x00000800
// DMA Channel 11
9568
#define SYSCTL_DC7_DMACH10 0x00000400
// DMA Channel 10
9569
#define SYSCTL_DC7_DMACH9 0x00000200
// DMA Channel 9
9570
#define SYSCTL_DC7_DMACH8 0x00000100
// DMA Channel 8
9571
#define SYSCTL_DC7_DMACH7 0x00000080
// DMA Channel 7
9572
#define SYSCTL_DC7_DMACH6 0x00000040
// DMA Channel 6
9573
#define SYSCTL_DC7_DMACH5 0x00000020
// DMA Channel 5
9574
#define SYSCTL_DC7_DMACH4 0x00000010
// DMA Channel 4
9575
#define SYSCTL_DC7_DMACH3 0x00000008
// DMA Channel 3
9576
#define SYSCTL_DC7_DMACH2 0x00000004
// DMA Channel 2
9577
#define SYSCTL_DC7_DMACH1 0x00000002
// DMA Channel 1
9578
#define SYSCTL_DC7_DMACH0 0x00000001
// DMA Channel 0
9579
9580
//*****************************************************************************
9581
//
9582
// The following are defines for the bit fields in the SYSCTL_DC8 register.
9583
//
9584
//*****************************************************************************
9585
#define SYSCTL_DC8_ADC1AIN15 0x80000000
// ADC Module 1 AIN15 Pin Present
9586
#define SYSCTL_DC8_ADC1AIN14 0x40000000
// ADC Module 1 AIN14 Pin Present
9587
#define SYSCTL_DC8_ADC1AIN13 0x20000000
// ADC Module 1 AIN13 Pin Present
9588
#define SYSCTL_DC8_ADC1AIN12 0x10000000
// ADC Module 1 AIN12 Pin Present
9589
#define SYSCTL_DC8_ADC1AIN11 0x08000000
// ADC Module 1 AIN11 Pin Present
9590
#define SYSCTL_DC8_ADC1AIN10 0x04000000
// ADC Module 1 AIN10 Pin Present
9591
#define SYSCTL_DC8_ADC1AIN9 0x02000000
// ADC Module 1 AIN9 Pin Present
9592
#define SYSCTL_DC8_ADC1AIN8 0x01000000
// ADC Module 1 AIN8 Pin Present
9593
#define SYSCTL_DC8_ADC1AIN7 0x00800000
// ADC Module 1 AIN7 Pin Present
9594
#define SYSCTL_DC8_ADC1AIN6 0x00400000
// ADC Module 1 AIN6 Pin Present
9595
#define SYSCTL_DC8_ADC1AIN5 0x00200000
// ADC Module 1 AIN5 Pin Present
9596
#define SYSCTL_DC8_ADC1AIN4 0x00100000
// ADC Module 1 AIN4 Pin Present
9597
#define SYSCTL_DC8_ADC1AIN3 0x00080000
// ADC Module 1 AIN3 Pin Present
9598
#define SYSCTL_DC8_ADC1AIN2 0x00040000
// ADC Module 1 AIN2 Pin Present
9599
#define SYSCTL_DC8_ADC1AIN1 0x00020000
// ADC Module 1 AIN1 Pin Present
9600
#define SYSCTL_DC8_ADC1AIN0 0x00010000
// ADC Module 1 AIN0 Pin Present
9601
#define SYSCTL_DC8_ADC0AIN15 0x00008000
// ADC Module 0 AIN15 Pin Present
9602
#define SYSCTL_DC8_ADC0AIN14 0x00004000
// ADC Module 0 AIN14 Pin Present
9603
#define SYSCTL_DC8_ADC0AIN13 0x00002000
// ADC Module 0 AIN13 Pin Present
9604
#define SYSCTL_DC8_ADC0AIN12 0x00001000
// ADC Module 0 AIN12 Pin Present
9605
#define SYSCTL_DC8_ADC0AIN11 0x00000800
// ADC Module 0 AIN11 Pin Present
9606
#define SYSCTL_DC8_ADC0AIN10 0x00000400
// ADC Module 0 AIN10 Pin Present
9607
#define SYSCTL_DC8_ADC0AIN9 0x00000200
// ADC Module 0 AIN9 Pin Present
9608
#define SYSCTL_DC8_ADC0AIN8 0x00000100
// ADC Module 0 AIN8 Pin Present
9609
#define SYSCTL_DC8_ADC0AIN7 0x00000080
// ADC Module 0 AIN7 Pin Present
9610
#define SYSCTL_DC8_ADC0AIN6 0x00000040
// ADC Module 0 AIN6 Pin Present
9611
#define SYSCTL_DC8_ADC0AIN5 0x00000020
// ADC Module 0 AIN5 Pin Present
9612
#define SYSCTL_DC8_ADC0AIN4 0x00000010
// ADC Module 0 AIN4 Pin Present
9613
#define SYSCTL_DC8_ADC0AIN3 0x00000008
// ADC Module 0 AIN3 Pin Present
9614
#define SYSCTL_DC8_ADC0AIN2 0x00000004
// ADC Module 0 AIN2 Pin Present
9615
#define SYSCTL_DC8_ADC0AIN1 0x00000002
// ADC Module 0 AIN1 Pin Present
9616
#define SYSCTL_DC8_ADC0AIN0 0x00000001
// ADC Module 0 AIN0 Pin Present
9617
9618
//*****************************************************************************
9619
//
9620
// The following are defines for the bit fields in the SYSCTL_PBORCTL register.
9621
//
9622
//*****************************************************************************
9623
#define SYSCTL_PBORCTL_BOR0 0x00000004
// VDD under BOR0 Event Action
9624
#define SYSCTL_PBORCTL_BOR1 0x00000002
// VDD under BOR1 Event Action
9625
9626
//*****************************************************************************
9627
//
9628
// The following are defines for the bit fields in the SYSCTL_SRCR0 register.
9629
//
9630
//*****************************************************************************
9631
#define SYSCTL_SRCR0_WDT1 0x10000000
// WDT1 Reset Control
9632
#define SYSCTL_SRCR0_CAN1 0x02000000
// CAN1 Reset Control
9633
#define SYSCTL_SRCR0_CAN0 0x01000000
// CAN0 Reset Control
9634
#define SYSCTL_SRCR0_PWM0 0x00100000
// PWM Reset Control
9635
#define SYSCTL_SRCR0_ADC1 0x00020000
// ADC1 Reset Control
9636
#define SYSCTL_SRCR0_ADC0 0x00010000
// ADC0 Reset Control
9637
#define SYSCTL_SRCR0_HIB 0x00000040
// HIB Reset Control
9638
#define SYSCTL_SRCR0_WDT0 0x00000008
// WDT0 Reset Control
9639
9640
//*****************************************************************************
9641
//
9642
// The following are defines for the bit fields in the SYSCTL_SRCR1 register.
9643
//
9644
//*****************************************************************************
9645
#define SYSCTL_SRCR1_COMP1 0x02000000
// Analog Comp 1 Reset Control
9646
#define SYSCTL_SRCR1_COMP0 0x01000000
// Analog Comp 0 Reset Control
9647
#define SYSCTL_SRCR1_TIMER3 0x00080000
// Timer 3 Reset Control
9648
#define SYSCTL_SRCR1_TIMER2 0x00040000
// Timer 2 Reset Control
9649
#define SYSCTL_SRCR1_TIMER1 0x00020000
// Timer 1 Reset Control
9650
#define SYSCTL_SRCR1_TIMER0 0x00010000
// Timer 0 Reset Control
9651
#define SYSCTL_SRCR1_I2C1 0x00004000
// I2C1 Reset Control
9652
#define SYSCTL_SRCR1_I2C0 0x00001000
// I2C0 Reset Control
9653
#define SYSCTL_SRCR1_QEI1 0x00000200
// QEI1 Reset Control
9654
#define SYSCTL_SRCR1_QEI0 0x00000100
// QEI0 Reset Control
9655
#define SYSCTL_SRCR1_SSI1 0x00000020
// SSI1 Reset Control
9656
#define SYSCTL_SRCR1_SSI0 0x00000010
// SSI0 Reset Control
9657
#define SYSCTL_SRCR1_UART2 0x00000004
// UART2 Reset Control
9658
#define SYSCTL_SRCR1_UART1 0x00000002
// UART1 Reset Control
9659
#define SYSCTL_SRCR1_UART0 0x00000001
// UART0 Reset Control
9660
9661
//*****************************************************************************
9662
//
9663
// The following are defines for the bit fields in the SYSCTL_SRCR2 register.
9664
//
9665
//*****************************************************************************
9666
#define SYSCTL_SRCR2_USB0 0x00010000
// USB0 Reset Control
9667
#define SYSCTL_SRCR2_UDMA 0x00002000
// Micro-DMA Reset Control
9668
#define SYSCTL_SRCR2_GPIOF 0x00000020
// Port F Reset Control
9669
#define SYSCTL_SRCR2_GPIOE 0x00000010
// Port E Reset Control
9670
#define SYSCTL_SRCR2_GPIOD 0x00000008
// Port D Reset Control
9671
#define SYSCTL_SRCR2_GPIOC 0x00000004
// Port C Reset Control
9672
#define SYSCTL_SRCR2_GPIOB 0x00000002
// Port B Reset Control
9673
#define SYSCTL_SRCR2_GPIOA 0x00000001
// Port A Reset Control
9674
9675
//*****************************************************************************
9676
//
9677
// The following are defines for the bit fields in the SYSCTL_RIS register.
9678
//
9679
//*****************************************************************************
9680
#define SYSCTL_RIS_BOR0RIS 0x00000800
// VDD under BOR0 Raw Interrupt
9681
// Status
9682
#define SYSCTL_RIS_VDDARIS 0x00000400
// VDDA Power OK Event Raw
9683
// Interrupt Status
9684
#define SYSCTL_RIS_MOSCPUPRIS 0x00000100
// MOSC Power Up Raw Interrupt
9685
// Status
9686
#define SYSCTL_RIS_USBPLLLRIS 0x00000080
// USB PLL Lock Raw Interrupt
9687
// Status
9688
#define SYSCTL_RIS_PLLLRIS 0x00000040
// PLL Lock Raw Interrupt Status
9689
#define SYSCTL_RIS_MOFRIS 0x00000008
// Main Oscillator Failure Raw
9690
// Interrupt Status
9691
#define SYSCTL_RIS_BOR1RIS 0x00000002
// VDD under BOR1 Raw Interrupt
9692
// Status
9693
9694
//*****************************************************************************
9695
//
9696
// The following are defines for the bit fields in the SYSCTL_IMC register.
9697
//
9698
//*****************************************************************************
9699
#define SYSCTL_IMC_BOR0IM 0x00000800
// VDD under BOR0 Interrupt Mask
9700
#define SYSCTL_IMC_VDDAIM 0x00000400
// VDDA Power OK Interrupt Mask
9701
#define SYSCTL_IMC_MOSCPUPIM 0x00000100
// MOSC Power Up Interrupt Mask
9702
#define SYSCTL_IMC_USBPLLLIM 0x00000080
// USB PLL Lock Interrupt Mask
9703
#define SYSCTL_IMC_PLLLIM 0x00000040
// PLL Lock Interrupt Mask
9704
#define SYSCTL_IMC_MOFIM 0x00000008
// Main Oscillator Failure
9705
// Interrupt Mask
9706
#define SYSCTL_IMC_BOR1IM 0x00000002
// VDD under BOR1 Interrupt Mask
9707
9708
//*****************************************************************************
9709
//
9710
// The following are defines for the bit fields in the SYSCTL_MISC register.
9711
//
9712
//*****************************************************************************
9713
#define SYSCTL_MISC_BOR0MIS 0x00000800
// VDD under BOR0 Masked Interrupt
9714
// Status
9715
#define SYSCTL_MISC_VDDAMIS 0x00000400
// VDDA Power OK Masked Interrupt
9716
// Status
9717
#define SYSCTL_MISC_MOSCPUPMIS 0x00000100
// MOSC Power Up Masked Interrupt
9718
// Status
9719
#define SYSCTL_MISC_USBPLLLMIS 0x00000080
// USB PLL Lock Masked Interrupt
9720
// Status
9721
#define SYSCTL_MISC_PLLLMIS 0x00000040
// PLL Lock Masked Interrupt Status
9722
#define SYSCTL_MISC_MOFMIS 0x00000008
// Main Oscillator Failure Masked
9723
// Interrupt Status
9724
#define SYSCTL_MISC_BOR1MIS 0x00000002
// VDD under BOR1 Masked Interrupt
9725
// Status
9726
9727
//*****************************************************************************
9728
//
9729
// The following are defines for the bit fields in the SYSCTL_RESC register.
9730
//
9731
//*****************************************************************************
9732
#define SYSCTL_RESC_MOSCFAIL 0x00010000
// MOSC Failure Reset
9733
#define SYSCTL_RESC_WDT1 0x00000020
// Watchdog Timer 1 Reset
9734
#define SYSCTL_RESC_SW 0x00000010
// Software Reset
9735
#define SYSCTL_RESC_WDT0 0x00000008
// Watchdog Timer 0 Reset
9736
#define SYSCTL_RESC_BOR 0x00000004
// Brown-Out Reset
9737
#define SYSCTL_RESC_POR 0x00000002
// Power-On Reset
9738
#define SYSCTL_RESC_EXT 0x00000001
// External Reset
9739
9740
//*****************************************************************************
9741
//
9742
// The following are defines for the bit fields in the SYSCTL_RCC register.
9743
//
9744
//*****************************************************************************
9745
#define SYSCTL_RCC_ACG 0x08000000
// Auto Clock Gating
9746
#define SYSCTL_RCC_SYSDIV_M 0x07800000
// System Clock Divisor
9747
#define SYSCTL_RCC_USESYSDIV 0x00400000
// Enable System Clock Divider
9748
#define SYSCTL_RCC_USEPWMDIV 0x00100000
// Enable PWM Clock Divisor
9749
#define SYSCTL_RCC_PWMDIV_M 0x000E0000
// PWM Unit Clock Divisor
9750
#define SYSCTL_RCC_PWMDIV_2 0x00000000
// PWM clock /2
9751
#define SYSCTL_RCC_PWMDIV_4 0x00020000
// PWM clock /4
9752
#define SYSCTL_RCC_PWMDIV_8 0x00040000
// PWM clock /8
9753
#define SYSCTL_RCC_PWMDIV_16 0x00060000
// PWM clock /16
9754
#define SYSCTL_RCC_PWMDIV_32 0x00080000
// PWM clock /32
9755
#define SYSCTL_RCC_PWMDIV_64 0x000A0000
// PWM clock /64
9756
#define SYSCTL_RCC_PWRDN 0x00002000
// PLL Power Down
9757
#define SYSCTL_RCC_BYPASS 0x00000800
// PLL Bypass
9758
#define SYSCTL_RCC_XTAL_M 0x000007C0
// Crystal Value
9759
#define SYSCTL_RCC_XTAL_4MHZ 0x00000180
// 4 MHz
9760
#define SYSCTL_RCC_XTAL_4_09MHZ 0x000001C0
// 4.096 MHz
9761
#define SYSCTL_RCC_XTAL_4_91MHZ 0x00000200
// 4.9152 MHz
9762
#define SYSCTL_RCC_XTAL_5MHZ 0x00000240
// 5 MHz
9763
#define SYSCTL_RCC_XTAL_5_12MHZ 0x00000280
// 5.12 MHz
9764
#define SYSCTL_RCC_XTAL_6MHZ 0x000002C0
// 6 MHz
9765
#define SYSCTL_RCC_XTAL_6_14MHZ 0x00000300
// 6.144 MHz
9766
#define SYSCTL_RCC_XTAL_7_37MHZ 0x00000340
// 7.3728 MHz
9767
#define SYSCTL_RCC_XTAL_8MHZ 0x00000380
// 8 MHz
9768
#define SYSCTL_RCC_XTAL_8_19MHZ 0x000003C0
// 8.192 MHz
9769
#define SYSCTL_RCC_XTAL_10MHZ 0x00000400
// 10 MHz
9770
#define SYSCTL_RCC_XTAL_12MHZ 0x00000440
// 12 MHz
9771
#define SYSCTL_RCC_XTAL_12_2MHZ 0x00000480
// 12.288 MHz
9772
#define SYSCTL_RCC_XTAL_13_5MHZ 0x000004C0
// 13.56 MHz
9773
#define SYSCTL_RCC_XTAL_14_3MHZ 0x00000500
// 14.31818 MHz
9774
#define SYSCTL_RCC_XTAL_16MHZ 0x00000540
// 16 MHz
9775
#define SYSCTL_RCC_XTAL_16_3MHZ 0x00000580
// 16.384 MHz
9776
#define SYSCTL_RCC_XTAL_18MHZ 0x000005C0
// 18.0 MHz (USB)
9777
#define SYSCTL_RCC_XTAL_20MHZ 0x00000600
// 20.0 MHz (USB)
9778
#define SYSCTL_RCC_XTAL_24MHZ 0x00000640
// 24.0 MHz (USB)
9779
#define SYSCTL_RCC_XTAL_25MHZ 0x00000680
// 25.0 MHz (USB)
9780
#define SYSCTL_RCC_OSCSRC_M 0x00000030
// Oscillator Source
9781
#define SYSCTL_RCC_OSCSRC_MAIN 0x00000000
// MOSC
9782
#define SYSCTL_RCC_OSCSRC_INT 0x00000010
// IOSC
9783
#define SYSCTL_RCC_OSCSRC_INT4 0x00000020
// IOSC/4
9784
#define SYSCTL_RCC_OSCSRC_30 0x00000030
// LFIOSC
9785
#define SYSCTL_RCC_MOSCDIS 0x00000001
// Main Oscillator Disable
9786
#define SYSCTL_RCC_SYSDIV_S 23
9787
9788
//*****************************************************************************
9789
//
9790
// The following are defines for the bit fields in the SYSCTL_GPIOHBCTL
9791
// register.
9792
//
9793
//*****************************************************************************
9794
#define SYSCTL_GPIOHBCTL_PORTF 0x00000020
// Port F Advanced High-Performance
9795
// Bus
9796
#define SYSCTL_GPIOHBCTL_PORTE 0x00000010
// Port E Advanced High-Performance
9797
// Bus
9798
#define SYSCTL_GPIOHBCTL_PORTD 0x00000008
// Port D Advanced High-Performance
9799
// Bus
9800
#define SYSCTL_GPIOHBCTL_PORTC 0x00000004
// Port C Advanced High-Performance
9801
// Bus
9802
#define SYSCTL_GPIOHBCTL_PORTB 0x00000002
// Port B Advanced High-Performance
9803
// Bus
9804
#define SYSCTL_GPIOHBCTL_PORTA 0x00000001
// Port A Advanced High-Performance
9805
// Bus
9806
9807
//*****************************************************************************
9808
//
9809
// The following are defines for the bit fields in the SYSCTL_RCC2 register.
9810
//
9811
//*****************************************************************************
9812
#define SYSCTL_RCC2_USERCC2 0x80000000
// Use RCC2
9813
#define SYSCTL_RCC2_DIV400 0x40000000
// Divide PLL as 400 MHz vs. 200
9814
// MHz
9815
#define SYSCTL_RCC2_SYSDIV2_M 0x1F800000
// System Clock Divisor 2
9816
#define SYSCTL_RCC2_SYSDIV2LSB 0x00400000
// Additional LSB for SYSDIV2
9817
#define SYSCTL_RCC2_USBPWRDN 0x00004000
// Power-Down USB PLL
9818
#define SYSCTL_RCC2_PWRDN2 0x00002000
// Power-Down PLL 2
9819
#define SYSCTL_RCC2_BYPASS2 0x00000800
// PLL Bypass 2
9820
#define SYSCTL_RCC2_OSCSRC2_M 0x00000070
// Oscillator Source 2
9821
#define SYSCTL_RCC2_OSCSRC2_MO 0x00000000
// MOSC
9822
#define SYSCTL_RCC2_OSCSRC2_IO 0x00000010
// PIOSC
9823
#define SYSCTL_RCC2_OSCSRC2_IO4 0x00000020
// PIOSC/4
9824
#define SYSCTL_RCC2_OSCSRC2_30 0x00000030
// LFIOSC
9825
#define SYSCTL_RCC2_OSCSRC2_32 0x00000070
// 32.768 kHz
9826
#define SYSCTL_RCC2_SYSDIV2_S 23
9827
9828
//*****************************************************************************
9829
//
9830
// The following are defines for the bit fields in the SYSCTL_MOSCCTL register.
9831
//
9832
//*****************************************************************************
9833
#define SYSCTL_MOSCCTL_NOXTAL 0x00000004
// No Crystal Connected
9834
#define SYSCTL_MOSCCTL_MOSCIM 0x00000002
// MOSC Failure Action
9835
#define SYSCTL_MOSCCTL_CVAL 0x00000001
// Clock Validation for MOSC
9836
9837
//*****************************************************************************
9838
//
9839
// The following are defines for the bit fields in the SYSCTL_RCGC0 register.
9840
//
9841
//*****************************************************************************
9842
#define SYSCTL_RCGC0_WDT1 0x10000000
// WDT1 Clock Gating Control
9843
#define SYSCTL_RCGC0_CAN1 0x02000000
// CAN1 Clock Gating Control
9844
#define SYSCTL_RCGC0_CAN0 0x01000000
// CAN0 Clock Gating Control
9845
#define SYSCTL_RCGC0_PWM0 0x00100000
// PWM Clock Gating Control
9846
#define SYSCTL_RCGC0_ADC1 0x00020000
// ADC1 Clock Gating Control
9847
#define SYSCTL_RCGC0_ADC0 0x00010000
// ADC0 Clock Gating Control
9848
#define SYSCTL_RCGC0_ADC1SPD_M 0x00000C00
// ADC1 Sample Speed
9849
#define SYSCTL_RCGC0_ADC1SPD_125K \
9850
0x00000000
// 125K samples/second
9851
#define SYSCTL_RCGC0_ADC1SPD_250K \
9852
0x00000400
// 250K samples/second
9853
#define SYSCTL_RCGC0_ADC1SPD_500K \
9854
0x00000800
// 500K samples/second
9855
#define SYSCTL_RCGC0_ADC1SPD_1M 0x00000C00
// 1M samples/second
9856
#define SYSCTL_RCGC0_ADC0SPD_M 0x00000300
// ADC0 Sample Speed
9857
#define SYSCTL_RCGC0_ADC0SPD_125K \
9858
0x00000000
// 125K samples/second
9859
#define SYSCTL_RCGC0_ADC0SPD_250K \
9860
0x00000100
// 250K samples/second
9861
#define SYSCTL_RCGC0_ADC0SPD_500K \
9862
0x00000200
// 500K samples/second
9863
#define SYSCTL_RCGC0_ADC0SPD_1M 0x00000300
// 1M samples/second
9864
#define SYSCTL_RCGC0_HIB 0x00000040
// HIB Clock Gating Control
9865
#define SYSCTL_RCGC0_WDT0 0x00000008
// WDT0 Clock Gating Control
9866
9867
//*****************************************************************************
9868
//
9869
// The following are defines for the bit fields in the SYSCTL_RCGC1 register.
9870
//
9871
//*****************************************************************************
9872
#define SYSCTL_RCGC1_COMP1 0x02000000
// Analog Comparator 1 Clock Gating
9873
#define SYSCTL_RCGC1_COMP0 0x01000000
// Analog Comparator 0 Clock Gating
9874
#define SYSCTL_RCGC1_TIMER3 0x00080000
// Timer 3 Clock Gating Control
9875
#define SYSCTL_RCGC1_TIMER2 0x00040000
// Timer 2 Clock Gating Control
9876
#define SYSCTL_RCGC1_TIMER1 0x00020000
// Timer 1 Clock Gating Control
9877
#define SYSCTL_RCGC1_TIMER0 0x00010000
// Timer 0 Clock Gating Control
9878
#define SYSCTL_RCGC1_I2C1 0x00004000
// I2C1 Clock Gating Control
9879
#define SYSCTL_RCGC1_I2C0 0x00001000
// I2C0 Clock Gating Control
9880
#define SYSCTL_RCGC1_QEI1 0x00000200
// QEI1 Clock Gating Control
9881
#define SYSCTL_RCGC1_QEI0 0x00000100
// QEI0 Clock Gating Control
9882
#define SYSCTL_RCGC1_SSI1 0x00000020
// SSI1 Clock Gating Control
9883
#define SYSCTL_RCGC1_SSI0 0x00000010
// SSI0 Clock Gating Control
9884
#define SYSCTL_RCGC1_UART2 0x00000004
// UART2 Clock Gating Control
9885
#define SYSCTL_RCGC1_UART1 0x00000002
// UART1 Clock Gating Control
9886
#define SYSCTL_RCGC1_UART0 0x00000001
// UART0 Clock Gating Control
9887
9888
//*****************************************************************************
9889
//
9890
// The following are defines for the bit fields in the SYSCTL_RCGC2 register.
9891
//
9892
//*****************************************************************************
9893
#define SYSCTL_RCGC2_USB0 0x00010000
// USB0 Clock Gating Control
9894
#define SYSCTL_RCGC2_UDMA 0x00002000
// Micro-DMA Clock Gating Control
9895
#define SYSCTL_RCGC2_GPIOF 0x00000020
// Port F Clock Gating Control
9896
#define SYSCTL_RCGC2_GPIOE 0x00000010
// Port E Clock Gating Control
9897
#define SYSCTL_RCGC2_GPIOD 0x00000008
// Port D Clock Gating Control
9898
#define SYSCTL_RCGC2_GPIOC 0x00000004
// Port C Clock Gating Control
9899
#define SYSCTL_RCGC2_GPIOB 0x00000002
// Port B Clock Gating Control
9900
#define SYSCTL_RCGC2_GPIOA 0x00000001
// Port A Clock Gating Control
9901
9902
//*****************************************************************************
9903
//
9904
// The following are defines for the bit fields in the SYSCTL_SCGC0 register.
9905
//
9906
//*****************************************************************************
9907
#define SYSCTL_SCGC0_WDT1 0x10000000
// WDT1 Clock Gating Control
9908
#define SYSCTL_SCGC0_CAN1 0x02000000
// CAN1 Clock Gating Control
9909
#define SYSCTL_SCGC0_CAN0 0x01000000
// CAN0 Clock Gating Control
9910
#define SYSCTL_SCGC0_PWM0 0x00100000
// PWM Clock Gating Control
9911
#define SYSCTL_SCGC0_ADC1 0x00020000
// ADC1 Clock Gating Control
9912
#define SYSCTL_SCGC0_ADC0 0x00010000
// ADC0 Clock Gating Control
9913
#define SYSCTL_SCGC0_HIB 0x00000040
// HIB Clock Gating Control
9914
#define SYSCTL_SCGC0_WDT0 0x00000008
// WDT0 Clock Gating Control
9915
9916
//*****************************************************************************
9917
//
9918
// The following are defines for the bit fields in the SYSCTL_SCGC1 register.
9919
//
9920
//*****************************************************************************
9921
#define SYSCTL_SCGC1_COMP1 0x02000000
// Analog Comparator 1 Clock Gating
9922
#define SYSCTL_SCGC1_COMP0 0x01000000
// Analog Comparator 0 Clock Gating
9923
#define SYSCTL_SCGC1_TIMER3 0x00080000
// Timer 3 Clock Gating Control
9924
#define SYSCTL_SCGC1_TIMER2 0x00040000
// Timer 2 Clock Gating Control
9925
#define SYSCTL_SCGC1_TIMER1 0x00020000
// Timer 1 Clock Gating Control
9926
#define SYSCTL_SCGC1_TIMER0 0x00010000
// Timer 0 Clock Gating Control
9927
#define SYSCTL_SCGC1_I2C1 0x00004000
// I2C1 Clock Gating Control
9928
#define SYSCTL_SCGC1_I2C0 0x00001000
// I2C0 Clock Gating Control
9929
#define SYSCTL_SCGC1_QEI1 0x00000200
// QEI1 Clock Gating Control
9930
#define SYSCTL_SCGC1_QEI0 0x00000100
// QEI0 Clock Gating Control
9931
#define SYSCTL_SCGC1_SSI1 0x00000020
// SSI1 Clock Gating Control
9932
#define SYSCTL_SCGC1_SSI0 0x00000010
// SSI0 Clock Gating Control
9933
#define SYSCTL_SCGC1_UART2 0x00000004
// UART2 Clock Gating Control
9934
#define SYSCTL_SCGC1_UART1 0x00000002
// UART1 Clock Gating Control
9935
#define SYSCTL_SCGC1_UART0 0x00000001
// UART0 Clock Gating Control
9936
9937
//*****************************************************************************
9938
//
9939
// The following are defines for the bit fields in the SYSCTL_SCGC2 register.
9940
//
9941
//*****************************************************************************
9942
#define SYSCTL_SCGC2_USB0 0x00010000
// USB0 Clock Gating Control
9943
#define SYSCTL_SCGC2_UDMA 0x00002000
// Micro-DMA Clock Gating Control
9944
#define SYSCTL_SCGC2_GPIOF 0x00000020
// Port F Clock Gating Control
9945
#define SYSCTL_SCGC2_GPIOE 0x00000010
// Port E Clock Gating Control
9946
#define SYSCTL_SCGC2_GPIOD 0x00000008
// Port D Clock Gating Control
9947
#define SYSCTL_SCGC2_GPIOC 0x00000004
// Port C Clock Gating Control
9948
#define SYSCTL_SCGC2_GPIOB 0x00000002
// Port B Clock Gating Control
9949
#define SYSCTL_SCGC2_GPIOA 0x00000001
// Port A Clock Gating Control
9950
9951
//*****************************************************************************
9952
//
9953
// The following are defines for the bit fields in the SYSCTL_DCGC0 register.
9954
//
9955
//*****************************************************************************
9956
#define SYSCTL_DCGC0_WDT1 0x10000000
// WDT1 Clock Gating Control
9957
#define SYSCTL_DCGC0_CAN1 0x02000000
// CAN1 Clock Gating Control
9958
#define SYSCTL_DCGC0_CAN0 0x01000000
// CAN0 Clock Gating Control
9959
#define SYSCTL_DCGC0_PWM0 0x00100000
// PWM Clock Gating Control
9960
#define SYSCTL_DCGC0_ADC1 0x00020000
// ADC1 Clock Gating Control
9961
#define SYSCTL_DCGC0_ADC0 0x00010000
// ADC0 Clock Gating Control
9962
#define SYSCTL_DCGC0_HIB 0x00000040
// HIB Clock Gating Control
9963
#define SYSCTL_DCGC0_WDT0 0x00000008
// WDT0 Clock Gating Control
9964
9965
//*****************************************************************************
9966
//
9967
// The following are defines for the bit fields in the SYSCTL_DCGC1 register.
9968
//
9969
//*****************************************************************************
9970
#define SYSCTL_DCGC1_COMP1 0x02000000
// Analog Comparator 1 Clock Gating
9971
#define SYSCTL_DCGC1_COMP0 0x01000000
// Analog Comparator 0 Clock Gating
9972
#define SYSCTL_DCGC1_TIMER3 0x00080000
// Timer 3 Clock Gating Control
9973
#define SYSCTL_DCGC1_TIMER2 0x00040000
// Timer 2 Clock Gating Control
9974
#define SYSCTL_DCGC1_TIMER1 0x00020000
// Timer 1 Clock Gating Control
9975
#define SYSCTL_DCGC1_TIMER0 0x00010000
// Timer 0 Clock Gating Control
9976
#define SYSCTL_DCGC1_I2C1 0x00004000
// I2C1 Clock Gating Control
9977
#define SYSCTL_DCGC1_I2C0 0x00001000
// I2C0 Clock Gating Control
9978
#define SYSCTL_DCGC1_QEI1 0x00000200
// QEI1 Clock Gating Control
9979
#define SYSCTL_DCGC1_QEI0 0x00000100
// QEI0 Clock Gating Control
9980
#define SYSCTL_DCGC1_SSI1 0x00000020
// SSI1 Clock Gating Control
9981
#define SYSCTL_DCGC1_SSI0 0x00000010
// SSI0 Clock Gating Control
9982
#define SYSCTL_DCGC1_UART2 0x00000004
// UART2 Clock Gating Control
9983
#define SYSCTL_DCGC1_UART1 0x00000002
// UART1 Clock Gating Control
9984
#define SYSCTL_DCGC1_UART0 0x00000001
// UART0 Clock Gating Control
9985
9986
//*****************************************************************************
9987
//
9988
// The following are defines for the bit fields in the SYSCTL_DCGC2 register.
9989
//
9990
//*****************************************************************************
9991
#define SYSCTL_DCGC2_USB0 0x00010000
// USB0 Clock Gating Control
9992
#define SYSCTL_DCGC2_UDMA 0x00002000
// Micro-DMA Clock Gating Control
9993
#define SYSCTL_DCGC2_GPIOF 0x00000020
// Port F Clock Gating Control
9994
#define SYSCTL_DCGC2_GPIOE 0x00000010
// Port E Clock Gating Control
9995
#define SYSCTL_DCGC2_GPIOD 0x00000008
// Port D Clock Gating Control
9996
#define SYSCTL_DCGC2_GPIOC 0x00000004
// Port C Clock Gating Control
9997
#define SYSCTL_DCGC2_GPIOB 0x00000002
// Port B Clock Gating Control
9998
#define SYSCTL_DCGC2_GPIOA 0x00000001
// Port A Clock Gating Control
9999
10000
//*****************************************************************************
10001
//
10002
// The following are defines for the bit fields in the SYSCTL_DSLPCLKCFG
10003
// register.
10004
//
10005
//*****************************************************************************
10006
#define SYSCTL_DSLPCLKCFG_D_M 0x1F800000
// Divider Field Override
10007
#define SYSCTL_DSLPCLKCFG_O_M 0x00000070
// Clock Source
10008
#define SYSCTL_DSLPCLKCFG_O_IGN 0x00000000
// MOSC
10009
#define SYSCTL_DSLPCLKCFG_O_IO 0x00000010
// PIOSC
10010
#define SYSCTL_DSLPCLKCFG_O_30 0x00000030
// LFIOSC
10011
#define SYSCTL_DSLPCLKCFG_O_32 0x00000070
// 32.768 kHz
10012
#define SYSCTL_DSLPCLKCFG_PIOSCPD \
10013
0x00000002
// PIOSC Power Down Request
10014
#define SYSCTL_DSLPCLKCFG_D_S 23
10015
10016
//*****************************************************************************
10017
//
10018
// The following are defines for the bit fields in the SYSCTL_SYSPROP register.
10019
//
10020
//*****************************************************************************
10021
#define SYSCTL_SYSPROP_FPU 0x00000001
// FPU Present
10022
10023
//*****************************************************************************
10024
//
10025
// The following are defines for the bit fields in the SYSCTL_PIOSCCAL
10026
// register.
10027
//
10028
//*****************************************************************************
10029
#define SYSCTL_PIOSCCAL_UTEN 0x80000000
// Use User Trim Value
10030
#define SYSCTL_PIOSCCAL_CAL 0x00000200
// Start Calibration
10031
#define SYSCTL_PIOSCCAL_UPDATE 0x00000100
// Update Trim
10032
#define SYSCTL_PIOSCCAL_UT_M 0x0000007F
// User Trim Value
10033
#define SYSCTL_PIOSCCAL_UT_S 0
10034
10035
//*****************************************************************************
10036
//
10037
// The following are defines for the bit fields in the SYSCTL_PIOSCSTAT
10038
// register.
10039
//
10040
//*****************************************************************************
10041
#define SYSCTL_PIOSCSTAT_DT_M 0x007F0000
// Default Trim Value
10042
#define SYSCTL_PIOSCSTAT_CR_M 0x00000300
// Calibration Result
10043
#define SYSCTL_PIOSCSTAT_CRNONE 0x00000000
// Calibration has not been
10044
// attempted
10045
#define SYSCTL_PIOSCSTAT_CRPASS 0x00000100
// The last calibration operation
10046
// completed to meet 1% accuracy
10047
#define SYSCTL_PIOSCSTAT_CRFAIL 0x00000200
// The last calibration operation
10048
// failed to meet 1% accuracy
10049
#define SYSCTL_PIOSCSTAT_CT_M 0x0000007F
// Calibration Trim Value
10050
#define SYSCTL_PIOSCSTAT_DT_S 16
10051
#define SYSCTL_PIOSCSTAT_CT_S 0
10052
10053
//*****************************************************************************
10054
//
10055
// The following are defines for the bit fields in the SYSCTL_PLLFREQ0
10056
// register.
10057
//
10058
//*****************************************************************************
10059
#define SYSCTL_PLLFREQ0_MFRAC_M 0x000FFC00
// PLL M Fractional Value
10060
#define SYSCTL_PLLFREQ0_MINT_M 0x000003FF
// PLL M Integer Value
10061
#define SYSCTL_PLLFREQ0_MFRAC_S 10
10062
#define SYSCTL_PLLFREQ0_MINT_S 0
10063
10064
//*****************************************************************************
10065
//
10066
// The following are defines for the bit fields in the SYSCTL_PLLFREQ1
10067
// register.
10068
//
10069
//*****************************************************************************
10070
#define SYSCTL_PLLFREQ1_Q_M 0x00001F00
// PLL Q Value
10071
#define SYSCTL_PLLFREQ1_N_M 0x0000001F
// PLL N Value
10072
#define SYSCTL_PLLFREQ1_Q_S 8
10073
#define SYSCTL_PLLFREQ1_N_S 0
10074
10075
//*****************************************************************************
10076
//
10077
// The following are defines for the bit fields in the SYSCTL_PLLSTAT register.
10078
//
10079
//*****************************************************************************
10080
#define SYSCTL_PLLSTAT_LOCK 0x00000001
// PLL Lock
10081
10082
//*****************************************************************************
10083
//
10084
// The following are defines for the bit fields in the SYSCTL_SLPPWRCFG
10085
// register.
10086
//
10087
//*****************************************************************************
10088
#define SYSCTL_SLPPWRCFG_FLASHPM_M \
10089
0x00000030
// Flash Power Modes
10090
#define SYSCTL_SLPPWRCFG_FLASHPM_NRM \
10091
0x00000000
// Active Mode
10092
#define SYSCTL_SLPPWRCFG_FLASHPM_SLP \
10093
0x00000020
// Low Power Mode
10094
#define SYSCTL_SLPPWRCFG_SRAMPM_M \
10095
0x00000003
// SRAM Power Modes
10096
#define SYSCTL_SLPPWRCFG_SRAMPM_NRM \
10097
0x00000000
// Active Mode
10098
#define SYSCTL_SLPPWRCFG_SRAMPM_SBY \
10099
0x00000001
// Standby Mode
10100
#define SYSCTL_SLPPWRCFG_SRAMPM_LP \
10101
0x00000003
// Low Power Mode
10102
10103
//*****************************************************************************
10104
//
10105
// The following are defines for the bit fields in the SYSCTL_DSLPPWRCFG
10106
// register.
10107
//
10108
//*****************************************************************************
10109
#define SYSCTL_DSLPPWRCFG_FLASHPM_M \
10110
0x00000030
// Flash Power Modes
10111
#define SYSCTL_DSLPPWRCFG_FLASHPM_NRM \
10112
0x00000000
// Active Mode
10113
#define SYSCTL_DSLPPWRCFG_FLASHPM_SLP \
10114
0x00000020
// Low Power Mode
10115
#define SYSCTL_DSLPPWRCFG_SRAMPM_M \
10116
0x00000003
// SRAM Power Modes
10117
#define SYSCTL_DSLPPWRCFG_SRAMPM_NRM \
10118
0x00000000
// Active Mode
10119
#define SYSCTL_DSLPPWRCFG_SRAMPM_SBY \
10120
0x00000001
// Standby Mode
10121
#define SYSCTL_DSLPPWRCFG_SRAMPM_LP \
10122
0x00000003
// Low Power Mode
10123
10124
//*****************************************************************************
10125
//
10126
// The following are defines for the bit fields in the SYSCTL_DC9 register.
10127
//
10128
//*****************************************************************************
10129
#define SYSCTL_DC9_ADC1DC7 0x00800000
// ADC1 DC7 Present
10130
#define SYSCTL_DC9_ADC1DC6 0x00400000
// ADC1 DC6 Present
10131
#define SYSCTL_DC9_ADC1DC5 0x00200000
// ADC1 DC5 Present
10132
#define SYSCTL_DC9_ADC1DC4 0x00100000
// ADC1 DC4 Present
10133
#define SYSCTL_DC9_ADC1DC3 0x00080000
// ADC1 DC3 Present
10134
#define SYSCTL_DC9_ADC1DC2 0x00040000
// ADC1 DC2 Present
10135
#define SYSCTL_DC9_ADC1DC1 0x00020000
// ADC1 DC1 Present
10136
#define SYSCTL_DC9_ADC1DC0 0x00010000
// ADC1 DC0 Present
10137
#define SYSCTL_DC9_ADC0DC7 0x00000080
// ADC0 DC7 Present
10138
#define SYSCTL_DC9_ADC0DC6 0x00000040
// ADC0 DC6 Present
10139
#define SYSCTL_DC9_ADC0DC5 0x00000020
// ADC0 DC5 Present
10140
#define SYSCTL_DC9_ADC0DC4 0x00000010
// ADC0 DC4 Present
10141
#define SYSCTL_DC9_ADC0DC3 0x00000008
// ADC0 DC3 Present
10142
#define SYSCTL_DC9_ADC0DC2 0x00000004
// ADC0 DC2 Present
10143
#define SYSCTL_DC9_ADC0DC1 0x00000002
// ADC0 DC1 Present
10144
#define SYSCTL_DC9_ADC0DC0 0x00000001
// ADC0 DC0 Present
10145
10146
//*****************************************************************************
10147
//
10148
// The following are defines for the bit fields in the SYSCTL_NVMSTAT register.
10149
//
10150
//*****************************************************************************
10151
#define SYSCTL_NVMSTAT_FWB 0x00000001
// 32 Word Flash Write Buffer
10152
// Available
10153
10154
//*****************************************************************************
10155
//
10156
// The following are defines for the bit fields in the SYSCTL_LDOSPCTL
10157
// register.
10158
//
10159
//*****************************************************************************
10160
#define SYSCTL_LDOSPCTL_VADJEN 0x80000000
// Voltage Adjust Enable
10161
#define SYSCTL_LDOSPCTL_VLDO_M 0x000000FF
// LDO Output Voltage
10162
#define SYSCTL_LDOSPCTL_VLDO_0_90V \
10163
0x00000012
// 0.90 V
10164
#define SYSCTL_LDOSPCTL_VLDO_0_95V \
10165
0x00000013
// 0.95 V
10166
#define SYSCTL_LDOSPCTL_VLDO_1_00V \
10167
0x00000014
// 1.00 V
10168
#define SYSCTL_LDOSPCTL_VLDO_1_05V \
10169
0x00000015
// 1.05 V
10170
#define SYSCTL_LDOSPCTL_VLDO_1_10V \
10171
0x00000016
// 1.10 V
10172
#define SYSCTL_LDOSPCTL_VLDO_1_15V \
10173
0x00000017
// 1.15 V
10174
#define SYSCTL_LDOSPCTL_VLDO_1_20V \
10175
0x00000018
// 1.20 V
10176
10177
//*****************************************************************************
10178
//
10179
// The following are defines for the bit fields in the SYSCTL_LDODPCTL
10180
// register.
10181
//
10182
//*****************************************************************************
10183
#define SYSCTL_LDODPCTL_VADJEN 0x80000000
// Voltage Adjust Enable
10184
#define SYSCTL_LDODPCTL_VLDO_M 0x000000FF
// LDO Output Voltage
10185
#define SYSCTL_LDODPCTL_VLDO_0_90V \
10186
0x00000012
// 0.90 V
10187
#define SYSCTL_LDODPCTL_VLDO_0_95V \
10188
0x00000013
// 0.95 V
10189
#define SYSCTL_LDODPCTL_VLDO_1_00V \
10190
0x00000014
// 1.00 V
10191
#define SYSCTL_LDODPCTL_VLDO_1_05V \
10192
0x00000015
// 1.05 V
10193
#define SYSCTL_LDODPCTL_VLDO_1_10V \
10194
0x00000016
// 1.10 V
10195
#define SYSCTL_LDODPCTL_VLDO_1_15V \
10196
0x00000017
// 1.15 V
10197
#define SYSCTL_LDODPCTL_VLDO_1_20V \
10198
0x00000018
// 1.20 V
10199
10200
//*****************************************************************************
10201
//
10202
// The following are defines for the bit fields in the SYSCTL_PPWD register.
10203
//
10204
//*****************************************************************************
10205
#define SYSCTL_PPWD_P1 0x00000002
// Watchdog Timer 1 Present
10206
#define SYSCTL_PPWD_P0 0x00000001
// Watchdog Timer 0 Present
10207
10208
//*****************************************************************************
10209
//
10210
// The following are defines for the bit fields in the SYSCTL_PPTIMER register.
10211
//
10212
//*****************************************************************************
10213
#define SYSCTL_PPTIMER_P5 0x00000020
// 16/32-Bit General-Purpose Timer
10214
// 5 Present
10215
#define SYSCTL_PPTIMER_P4 0x00000010
// 16/32-Bit General-Purpose Timer
10216
// 4 Present
10217
#define SYSCTL_PPTIMER_P3 0x00000008
// 16/32-Bit General-Purpose Timer
10218
// 3 Present
10219
#define SYSCTL_PPTIMER_P2 0x00000004
// 16/32-Bit General-Purpose Timer
10220
// 2 Present
10221
#define SYSCTL_PPTIMER_P1 0x00000002
// 16/32-Bit General-Purpose Timer
10222
// 1 Present
10223
#define SYSCTL_PPTIMER_P0 0x00000001
// 16/32-Bit General-Purpose Timer
10224
// 0 Present
10225
10226
//*****************************************************************************
10227
//
10228
// The following are defines for the bit fields in the SYSCTL_PPGPIO register.
10229
//
10230
//*****************************************************************************
10231
#define SYSCTL_PPGPIO_P14 0x00004000
// GPIO Port Q Present
10232
#define SYSCTL_PPGPIO_P13 0x00002000
// GPIO Port P Present
10233
#define SYSCTL_PPGPIO_P12 0x00001000
// GPIO Port N Present
10234
#define SYSCTL_PPGPIO_P11 0x00000800
// GPIO Port M Present
10235
#define SYSCTL_PPGPIO_P10 0x00000400
// GPIO Port L Present
10236
#define SYSCTL_PPGPIO_P9 0x00000200
// GPIO Port K Present
10237
#define SYSCTL_PPGPIO_P8 0x00000100
// GPIO Port J Present
10238
#define SYSCTL_PPGPIO_P7 0x00000080
// GPIO Port H Present
10239
#define SYSCTL_PPGPIO_P6 0x00000040
// GPIO Port G Present
10240
#define SYSCTL_PPGPIO_P5 0x00000020
// GPIO Port F Present
10241
#define SYSCTL_PPGPIO_P4 0x00000010
// GPIO Port E Present
10242
#define SYSCTL_PPGPIO_P3 0x00000008
// GPIO Port D Present
10243
#define SYSCTL_PPGPIO_P2 0x00000004
// GPIO Port C Present
10244
#define SYSCTL_PPGPIO_P1 0x00000002
// GPIO Port B Present
10245
#define SYSCTL_PPGPIO_P0 0x00000001
// GPIO Port A Present
10246
10247
//*****************************************************************************
10248
//
10249
// The following are defines for the bit fields in the SYSCTL_PPDMA register.
10250
//
10251
//*****************************************************************************
10252
#define SYSCTL_PPDMA_P0 0x00000001
// uDMA Module Present
10253
10254
//*****************************************************************************
10255
//
10256
// The following are defines for the bit fields in the SYSCTL_PPHIB register.
10257
//
10258
//*****************************************************************************
10259
#define SYSCTL_PPHIB_P0 0x00000001
// Hibernation Module Present
10260
10261
//*****************************************************************************
10262
//
10263
// The following are defines for the bit fields in the SYSCTL_PPUART register.
10264
//
10265
//*****************************************************************************
10266
#define SYSCTL_PPUART_P7 0x00000080
// UART Module 7 Present
10267
#define SYSCTL_PPUART_P6 0x00000040
// UART Module 6 Present
10268
#define SYSCTL_PPUART_P5 0x00000020
// UART Module 5 Present
10269
#define SYSCTL_PPUART_P4 0x00000010
// UART Module 4 Present
10270
#define SYSCTL_PPUART_P3 0x00000008
// UART Module 3 Present
10271
#define SYSCTL_PPUART_P2 0x00000004
// UART Module 2 Present
10272
#define SYSCTL_PPUART_P1 0x00000002
// UART Module 1 Present
10273
#define SYSCTL_PPUART_P0 0x00000001
// UART Module 0 Present
10274
10275
//*****************************************************************************
10276
//
10277
// The following are defines for the bit fields in the SYSCTL_PPSSI register.
10278
//
10279
//*****************************************************************************
10280
#define SYSCTL_PPSSI_P3 0x00000008
// SSI Module 3 Present
10281
#define SYSCTL_PPSSI_P2 0x00000004
// SSI Module 2 Present
10282
#define SYSCTL_PPSSI_P1 0x00000002
// SSI Module 1 Present
10283
#define SYSCTL_PPSSI_P0 0x00000001
// SSI Module 0 Present
10284
10285
//*****************************************************************************
10286
//
10287
// The following are defines for the bit fields in the SYSCTL_PPI2C register.
10288
//
10289
//*****************************************************************************
10290
#define SYSCTL_PPI2C_P5 0x00000020
// I2C Module 5 Present
10291
#define SYSCTL_PPI2C_P4 0x00000010
// I2C Module 4 Present
10292
#define SYSCTL_PPI2C_P3 0x00000008
// I2C Module 3 Present
10293
#define SYSCTL_PPI2C_P2 0x00000004
// I2C Module 2 Present
10294
#define SYSCTL_PPI2C_P1 0x00000002
// I2C Module 1 Present
10295
#define SYSCTL_PPI2C_P0 0x00000001
// I2C Module 0 Present
10296
10297
//*****************************************************************************
10298
//
10299
// The following are defines for the bit fields in the SYSCTL_PPUSB register.
10300
//
10301
//*****************************************************************************
10302
#define SYSCTL_PPUSB_P0 0x00000001
// USB Module Present
10303
10304
//*****************************************************************************
10305
//
10306
// The following are defines for the bit fields in the SYSCTL_PPCAN register.
10307
//
10308
//*****************************************************************************
10309
#define SYSCTL_PPCAN_P1 0x00000002
// CAN Module 1 Present
10310
#define SYSCTL_PPCAN_P0 0x00000001
// CAN Module 0 Present
10311
10312
//*****************************************************************************
10313
//
10314
// The following are defines for the bit fields in the SYSCTL_PPADC register.
10315
//
10316
//*****************************************************************************
10317
#define SYSCTL_PPADC_P1 0x00000002
// ADC Module 1 Present
10318
#define SYSCTL_PPADC_P0 0x00000001
// ADC Module 0 Present
10319
10320
//*****************************************************************************
10321
//
10322
// The following are defines for the bit fields in the SYSCTL_PPACMP register.
10323
//
10324
//*****************************************************************************
10325
#define SYSCTL_PPACMP_P0 0x00000001
// Analog Comparator Module Present
10326
10327
//*****************************************************************************
10328
//
10329
// The following are defines for the bit fields in the SYSCTL_PPPWM register.
10330
//
10331
//*****************************************************************************
10332
#define SYSCTL_PPPWM_P1 0x00000002
// PWM Module 1 Present
10333
#define SYSCTL_PPPWM_P0 0x00000001
// PWM Module 0 Present
10334
10335
//*****************************************************************************
10336
//
10337
// The following are defines for the bit fields in the SYSCTL_PPQEI register.
10338
//
10339
//*****************************************************************************
10340
#define SYSCTL_PPQEI_P1 0x00000002
// QEI Module 1 Present
10341
#define SYSCTL_PPQEI_P0 0x00000001
// QEI Module 0 Present
10342
10343
//*****************************************************************************
10344
//
10345
// The following are defines for the bit fields in the SYSCTL_PPEEPROM
10346
// register.
10347
//
10348
//*****************************************************************************
10349
#define SYSCTL_PPEEPROM_P0 0x00000001
// EEPROM Module Present
10350
10351
//*****************************************************************************
10352
//
10353
// The following are defines for the bit fields in the SYSCTL_PPWTIMER
10354
// register.
10355
//
10356
//*****************************************************************************
10357
#define SYSCTL_PPWTIMER_P5 0x00000020
// 32/64-Bit Wide General-Purpose
10358
// Timer 5 Present
10359
#define SYSCTL_PPWTIMER_P4 0x00000010
// 32/64-Bit Wide General-Purpose
10360
// Timer 4 Present
10361
#define SYSCTL_PPWTIMER_P3 0x00000008
// 32/64-Bit Wide General-Purpose
10362
// Timer 3 Present
10363
#define SYSCTL_PPWTIMER_P2 0x00000004
// 32/64-Bit Wide General-Purpose
10364
// Timer 2 Present
10365
#define SYSCTL_PPWTIMER_P1 0x00000002
// 32/64-Bit Wide General-Purpose
10366
// Timer 1 Present
10367
#define SYSCTL_PPWTIMER_P0 0x00000001
// 32/64-Bit Wide General-Purpose
10368
// Timer 0 Present
10369
10370
//*****************************************************************************
10371
//
10372
// The following are defines for the bit fields in the SYSCTL_SRWD register.
10373
//
10374
//*****************************************************************************
10375
#define SYSCTL_SRWD_R1 0x00000002
// Watchdog Timer 1 Software Reset
10376
#define SYSCTL_SRWD_R0 0x00000001
// Watchdog Timer 0 Software Reset
10377
10378
//*****************************************************************************
10379
//
10380
// The following are defines for the bit fields in the SYSCTL_SRTIMER register.
10381
//
10382
//*****************************************************************************
10383
#define SYSCTL_SRTIMER_R5 0x00000020
// 16/32-Bit General-Purpose Timer
10384
// 5 Software Reset
10385
#define SYSCTL_SRTIMER_R4 0x00000010
// 16/32-Bit General-Purpose Timer
10386
// 4 Software Reset
10387
#define SYSCTL_SRTIMER_R3 0x00000008
// 16/32-Bit General-Purpose Timer
10388
// 3 Software Reset
10389
#define SYSCTL_SRTIMER_R2 0x00000004
// 16/32-Bit General-Purpose Timer
10390
// 2 Software Reset
10391
#define SYSCTL_SRTIMER_R1 0x00000002
// 16/32-Bit General-Purpose Timer
10392
// 1 Software Reset
10393
#define SYSCTL_SRTIMER_R0 0x00000001
// 16/32-Bit General-Purpose Timer
10394
// 0 Software Reset
10395
10396
//*****************************************************************************
10397
//
10398
// The following are defines for the bit fields in the SYSCTL_SRGPIO register.
10399
//
10400
//*****************************************************************************
10401
#define SYSCTL_SRGPIO_R5 0x00000020
// GPIO Port F Software Reset
10402
#define SYSCTL_SRGPIO_R4 0x00000010
// GPIO Port E Software Reset
10403
#define SYSCTL_SRGPIO_R3 0x00000008
// GPIO Port D Software Reset
10404
#define SYSCTL_SRGPIO_R2 0x00000004
// GPIO Port C Software Reset
10405
#define SYSCTL_SRGPIO_R1 0x00000002
// GPIO Port B Software Reset
10406
#define SYSCTL_SRGPIO_R0 0x00000001
// GPIO Port A Software Reset
10407
10408
//*****************************************************************************
10409
//
10410
// The following are defines for the bit fields in the SYSCTL_SRDMA register.
10411
//
10412
//*****************************************************************************
10413
#define SYSCTL_SRDMA_R0 0x00000001
// uDMA Module Software Reset
10414
10415
//*****************************************************************************
10416
//
10417
// The following are defines for the bit fields in the SYSCTL_SRHIB register.
10418
//
10419
//*****************************************************************************
10420
#define SYSCTL_SRHIB_R0 0x00000001
// Hibernation Module Software
10421
// Reset
10422
10423
//*****************************************************************************
10424
//
10425
// The following are defines for the bit fields in the SYSCTL_SRUART register.
10426
//
10427
//*****************************************************************************
10428
#define SYSCTL_SRUART_R7 0x00000080
// UART Module 7 Software Reset
10429
#define SYSCTL_SRUART_R6 0x00000040
// UART Module 6 Software Reset
10430
#define SYSCTL_SRUART_R5 0x00000020
// UART Module 5 Software Reset
10431
#define SYSCTL_SRUART_R4 0x00000010
// UART Module 4 Software Reset
10432
#define SYSCTL_SRUART_R3 0x00000008
// UART Module 3 Software Reset
10433
#define SYSCTL_SRUART_R2 0x00000004
// UART Module 2 Software Reset
10434
#define SYSCTL_SRUART_R1 0x00000002
// UART Module 1 Software Reset
10435
#define SYSCTL_SRUART_R0 0x00000001
// UART Module 0 Software Reset
10436
10437
//*****************************************************************************
10438
//
10439
// The following are defines for the bit fields in the SYSCTL_SRSSI register.
10440
//
10441
//*****************************************************************************
10442
#define SYSCTL_SRSSI_R3 0x00000008
// SSI Module 3 Software Reset
10443
#define SYSCTL_SRSSI_R2 0x00000004
// SSI Module 2 Software Reset
10444
#define SYSCTL_SRSSI_R1 0x00000002
// SSI Module 1 Software Reset
10445
#define SYSCTL_SRSSI_R0 0x00000001
// SSI Module 0 Software Reset
10446
10447
//*****************************************************************************
10448
//
10449
// The following are defines for the bit fields in the SYSCTL_SRI2C register.
10450
//
10451
//*****************************************************************************
10452
#define SYSCTL_SRI2C_R3 0x00000008
// I2C Module 3 Software Reset
10453
#define SYSCTL_SRI2C_R2 0x00000004
// I2C Module 2 Software Reset
10454
#define SYSCTL_SRI2C_R1 0x00000002
// I2C Module 1 Software Reset
10455
#define SYSCTL_SRI2C_R0 0x00000001
// I2C Module 0 Software Reset
10456
10457
//*****************************************************************************
10458
//
10459
// The following are defines for the bit fields in the SYSCTL_SRUSB register.
10460
//
10461
//*****************************************************************************
10462
#define SYSCTL_SRUSB_R0 0x00000001
// USB Module Software Reset
10463
10464
//*****************************************************************************
10465
//
10466
// The following are defines for the bit fields in the SYSCTL_SRCAN register.
10467
//
10468
//*****************************************************************************
10469
#define SYSCTL_SRCAN_R1 0x00000002
// CAN Module 1 Software Reset
10470
#define SYSCTL_SRCAN_R0 0x00000001
// CAN Module 0 Software Reset
10471
10472
//*****************************************************************************
10473
//
10474
// The following are defines for the bit fields in the SYSCTL_SRADC register.
10475
//
10476
//*****************************************************************************
10477
#define SYSCTL_SRADC_R1 0x00000002
// ADC Module 1 Software Reset
10478
#define SYSCTL_SRADC_R0 0x00000001
// ADC Module 0 Software Reset
10479
10480
//*****************************************************************************
10481
//
10482
// The following are defines for the bit fields in the SYSCTL_SRACMP register.
10483
//
10484
//*****************************************************************************
10485
#define SYSCTL_SRACMP_R0 0x00000001
// Analog Comparator Module 0
10486
// Software Reset
10487
10488
//*****************************************************************************
10489
//
10490
// The following are defines for the bit fields in the SYSCTL_SRPWM register.
10491
//
10492
//*****************************************************************************
10493
#define SYSCTL_SRPWM_R1 0x00000002
// PWM Module 1 Software Reset
10494
#define SYSCTL_SRPWM_R0 0x00000001
// PWM Module 0 Software Reset
10495
10496
//*****************************************************************************
10497
//
10498
// The following are defines for the bit fields in the SYSCTL_SRQEI register.
10499
//
10500
//*****************************************************************************
10501
#define SYSCTL_SRQEI_R1 0x00000002
// QEI Module 1 Software Reset
10502
#define SYSCTL_SRQEI_R0 0x00000001
// QEI Module 0 Software Reset
10503
10504
//*****************************************************************************
10505
//
10506
// The following are defines for the bit fields in the SYSCTL_SREEPROM
10507
// register.
10508
//
10509
//*****************************************************************************
10510
#define SYSCTL_SREEPROM_R0 0x00000001
// EEPROM Module Software Reset
10511
10512
//*****************************************************************************
10513
//
10514
// The following are defines for the bit fields in the SYSCTL_SRWTIMER
10515
// register.
10516
//
10517
//*****************************************************************************
10518
#define SYSCTL_SRWTIMER_R5 0x00000020
// 32/64-Bit Wide General-Purpose
10519
// Timer 5 Software Reset
10520
#define SYSCTL_SRWTIMER_R4 0x00000010
// 32/64-Bit Wide General-Purpose
10521
// Timer 4 Software Reset
10522
#define SYSCTL_SRWTIMER_R3 0x00000008
// 32/64-Bit Wide General-Purpose
10523
// Timer 3 Software Reset
10524
#define SYSCTL_SRWTIMER_R2 0x00000004
// 32/64-Bit Wide General-Purpose
10525
// Timer 2 Software Reset
10526
#define SYSCTL_SRWTIMER_R1 0x00000002
// 32/64-Bit Wide General-Purpose
10527
// Timer 1 Software Reset
10528
#define SYSCTL_SRWTIMER_R0 0x00000001
// 32/64-Bit Wide General-Purpose
10529
// Timer 0 Software Reset
10530
10531
//*****************************************************************************
10532
//
10533
// The following are defines for the bit fields in the SYSCTL_RCGCWD register.
10534
//
10535
//*****************************************************************************
10536
#define SYSCTL_RCGCWD_R1 0x00000002
// Watchdog Timer 1 Run Mode Clock
10537
// Gating Control
10538
#define SYSCTL_RCGCWD_R0 0x00000001
// Watchdog Timer 0 Run Mode Clock
10539
// Gating Control
10540
10541
//*****************************************************************************
10542
//
10543
// The following are defines for the bit fields in the SYSCTL_RCGCTIMER
10544
// register.
10545
//
10546
//*****************************************************************************
10547
#define SYSCTL_RCGCTIMER_R5 0x00000020
// 16/32-Bit General-Purpose Timer
10548
// 5 Run Mode Clock Gating Control
10549
#define SYSCTL_RCGCTIMER_R4 0x00000010
// 16/32-Bit General-Purpose Timer
10550
// 4 Run Mode Clock Gating Control
10551
#define SYSCTL_RCGCTIMER_R3 0x00000008
// 16/32-Bit General-Purpose Timer
10552
// 3 Run Mode Clock Gating Control
10553
#define SYSCTL_RCGCTIMER_R2 0x00000004
// 16/32-Bit General-Purpose Timer
10554
// 2 Run Mode Clock Gating Control
10555
#define SYSCTL_RCGCTIMER_R1 0x00000002
// 16/32-Bit General-Purpose Timer
10556
// 1 Run Mode Clock Gating Control
10557
#define SYSCTL_RCGCTIMER_R0 0x00000001
// 16/32-Bit General-Purpose Timer
10558
// 0 Run Mode Clock Gating Control
10559
10560
//*****************************************************************************
10561
//
10562
// The following are defines for the bit fields in the SYSCTL_RCGCGPIO
10563
// register.
10564
//
10565
//*****************************************************************************
10566
#define SYSCTL_RCGCGPIO_R5 0x00000020
// GPIO Port F Run Mode Clock
10567
// Gating Control
10568
#define SYSCTL_RCGCGPIO_R4 0x00000010
// GPIO Port E Run Mode Clock
10569
// Gating Control
10570
#define SYSCTL_RCGCGPIO_R3 0x00000008
// GPIO Port D Run Mode Clock
10571
// Gating Control
10572
#define SYSCTL_RCGCGPIO_R2 0x00000004
// GPIO Port C Run Mode Clock
10573
// Gating Control
10574
#define SYSCTL_RCGCGPIO_R1 0x00000002
// GPIO Port B Run Mode Clock
10575
// Gating Control
10576
#define SYSCTL_RCGCGPIO_R0 0x00000001
// GPIO Port A Run Mode Clock
10577
// Gating Control
10578
10579
//*****************************************************************************
10580
//
10581
// The following are defines for the bit fields in the SYSCTL_RCGCDMA register.
10582
//
10583
//*****************************************************************************
10584
#define SYSCTL_RCGCDMA_R0 0x00000001
// uDMA Module Run Mode Clock
10585
// Gating Control
10586
10587
//*****************************************************************************
10588
//
10589
// The following are defines for the bit fields in the SYSCTL_RCGCHIB register.
10590
//
10591
//*****************************************************************************
10592
#define SYSCTL_RCGCHIB_R0 0x00000001
// Hibernation Module Run Mode
10593
// Clock Gating Control
10594
10595
//*****************************************************************************
10596
//
10597
// The following are defines for the bit fields in the SYSCTL_RCGCUART
10598
// register.
10599
//
10600
//*****************************************************************************
10601
#define SYSCTL_RCGCUART_R7 0x00000080
// UART Module 7 Run Mode Clock
10602
// Gating Control
10603
#define SYSCTL_RCGCUART_R6 0x00000040
// UART Module 6 Run Mode Clock
10604
// Gating Control
10605
#define SYSCTL_RCGCUART_R5 0x00000020
// UART Module 5 Run Mode Clock
10606
// Gating Control
10607
#define SYSCTL_RCGCUART_R4 0x00000010
// UART Module 4 Run Mode Clock
10608
// Gating Control
10609
#define SYSCTL_RCGCUART_R3 0x00000008
// UART Module 3 Run Mode Clock
10610
// Gating Control
10611
#define SYSCTL_RCGCUART_R2 0x00000004
// UART Module 2 Run Mode Clock
10612
// Gating Control
10613
#define SYSCTL_RCGCUART_R1 0x00000002
// UART Module 1 Run Mode Clock
10614
// Gating Control
10615
#define SYSCTL_RCGCUART_R0 0x00000001
// UART Module 0 Run Mode Clock
10616
// Gating Control
10617
10618
//*****************************************************************************
10619
//
10620
// The following are defines for the bit fields in the SYSCTL_RCGCSSI register.
10621
//
10622
//*****************************************************************************
10623
#define SYSCTL_RCGCSSI_R3 0x00000008
// SSI Module 3 Run Mode Clock
10624
// Gating Control
10625
#define SYSCTL_RCGCSSI_R2 0x00000004
// SSI Module 2 Run Mode Clock
10626
// Gating Control
10627
#define SYSCTL_RCGCSSI_R1 0x00000002
// SSI Module 1 Run Mode Clock
10628
// Gating Control
10629
#define SYSCTL_RCGCSSI_R0 0x00000001
// SSI Module 0 Run Mode Clock
10630
// Gating Control
10631
10632
//*****************************************************************************
10633
//
10634
// The following are defines for the bit fields in the SYSCTL_RCGCI2C register.
10635
//
10636
//*****************************************************************************
10637
#define SYSCTL_RCGCI2C_R3 0x00000008
// I2C Module 3 Run Mode Clock
10638
// Gating Control
10639
#define SYSCTL_RCGCI2C_R2 0x00000004
// I2C Module 2 Run Mode Clock
10640
// Gating Control
10641
#define SYSCTL_RCGCI2C_R1 0x00000002
// I2C Module 1 Run Mode Clock
10642
// Gating Control
10643
#define SYSCTL_RCGCI2C_R0 0x00000001
// I2C Module 0 Run Mode Clock
10644
// Gating Control
10645
10646
//*****************************************************************************
10647
//
10648
// The following are defines for the bit fields in the SYSCTL_RCGCUSB register.
10649
//
10650
//*****************************************************************************
10651
#define SYSCTL_RCGCUSB_R0 0x00000001
// USB Module Run Mode Clock Gating
10652
// Control
10653
10654
//*****************************************************************************
10655
//
10656
// The following are defines for the bit fields in the SYSCTL_RCGCCAN register.
10657
//
10658
//*****************************************************************************
10659
#define SYSCTL_RCGCCAN_R1 0x00000002
// CAN Module 1 Run Mode Clock
10660
// Gating Control
10661
#define SYSCTL_RCGCCAN_R0 0x00000001
// CAN Module 0 Run Mode Clock
10662
// Gating Control
10663
10664
//*****************************************************************************
10665
//
10666
// The following are defines for the bit fields in the SYSCTL_RCGCADC register.
10667
//
10668
//*****************************************************************************
10669
#define SYSCTL_RCGCADC_R1 0x00000002
// ADC Module 1 Run Mode Clock
10670
// Gating Control
10671
#define SYSCTL_RCGCADC_R0 0x00000001
// ADC Module 0 Run Mode Clock
10672
// Gating Control
10673
10674
//*****************************************************************************
10675
//
10676
// The following are defines for the bit fields in the SYSCTL_RCGCACMP
10677
// register.
10678
//
10679
//*****************************************************************************
10680
#define SYSCTL_RCGCACMP_R0 0x00000001
// Analog Comparator Module 0 Run
10681
// Mode Clock Gating Control
10682
10683
//*****************************************************************************
10684
//
10685
// The following are defines for the bit fields in the SYSCTL_RCGCPWM register.
10686
//
10687
//*****************************************************************************
10688
#define SYSCTL_RCGCPWM_R1 0x00000002
// PWM Module 1 Run Mode Clock
10689
// Gating Control
10690
#define SYSCTL_RCGCPWM_R0 0x00000001
// PWM Module 0 Run Mode Clock
10691
// Gating Control
10692
10693
//*****************************************************************************
10694
//
10695
// The following are defines for the bit fields in the SYSCTL_RCGCQEI register.
10696
//
10697
//*****************************************************************************
10698
#define SYSCTL_RCGCQEI_R1 0x00000002
// QEI Module 1 Run Mode Clock
10699
// Gating Control
10700
#define SYSCTL_RCGCQEI_R0 0x00000001
// QEI Module 0 Run Mode Clock
10701
// Gating Control
10702
10703
//*****************************************************************************
10704
//
10705
// The following are defines for the bit fields in the SYSCTL_RCGCEEPROM
10706
// register.
10707
//
10708
//*****************************************************************************
10709
#define SYSCTL_RCGCEEPROM_R0 0x00000001
// EEPROM Module Run Mode Clock
10710
// Gating Control
10711
10712
//*****************************************************************************
10713
//
10714
// The following are defines for the bit fields in the SYSCTL_RCGCWTIMER
10715
// register.
10716
//
10717
//*****************************************************************************
10718
#define SYSCTL_RCGCWTIMER_R5 0x00000020
// 32/64-Bit Wide General-Purpose
10719
// Timer 5 Run Mode Clock Gating
10720
// Control
10721
#define SYSCTL_RCGCWTIMER_R4 0x00000010
// 32/64-Bit Wide General-Purpose
10722
// Timer 4 Run Mode Clock Gating
10723
// Control
10724
#define SYSCTL_RCGCWTIMER_R3 0x00000008
// 32/64-Bit Wide General-Purpose
10725
// Timer 3 Run Mode Clock Gating
10726
// Control
10727
#define SYSCTL_RCGCWTIMER_R2 0x00000004
// 32/64-Bit Wide General-Purpose
10728
// Timer 2 Run Mode Clock Gating
10729
// Control
10730
#define SYSCTL_RCGCWTIMER_R1 0x00000002
// 32/64-Bit Wide General-Purpose
10731
// Timer 1 Run Mode Clock Gating
10732
// Control
10733
#define SYSCTL_RCGCWTIMER_R0 0x00000001
// 32/64-Bit Wide General-Purpose
10734
// Timer 0 Run Mode Clock Gating
10735
// Control
10736
10737
//*****************************************************************************
10738
//
10739
// The following are defines for the bit fields in the SYSCTL_SCGCWD register.
10740
//
10741
//*****************************************************************************
10742
#define SYSCTL_SCGCWD_S1 0x00000002
// Watchdog Timer 1 Sleep Mode
10743
// Clock Gating Control
10744
#define SYSCTL_SCGCWD_S0 0x00000001
// Watchdog Timer 0 Sleep Mode
10745
// Clock Gating Control
10746
10747
//*****************************************************************************
10748
//
10749
// The following are defines for the bit fields in the SYSCTL_SCGCTIMER
10750
// register.
10751
//
10752
//*****************************************************************************
10753
#define SYSCTL_SCGCTIMER_S5 0x00000020
// 16/32-Bit General-Purpose Timer
10754
// 5 Sleep Mode Clock Gating
10755
// Control
10756
#define SYSCTL_SCGCTIMER_S4 0x00000010
// 16/32-Bit General-Purpose Timer
10757
// 4 Sleep Mode Clock Gating
10758
// Control
10759
#define SYSCTL_SCGCTIMER_S3 0x00000008
// 16/32-Bit General-Purpose Timer
10760
// 3 Sleep Mode Clock Gating
10761
// Control
10762
#define SYSCTL_SCGCTIMER_S2 0x00000004
// 16/32-Bit General-Purpose Timer
10763
// 2 Sleep Mode Clock Gating
10764
// Control
10765
#define SYSCTL_SCGCTIMER_S1 0x00000002
// 16/32-Bit General-Purpose Timer
10766
// 1 Sleep Mode Clock Gating
10767
// Control
10768
#define SYSCTL_SCGCTIMER_S0 0x00000001
// 16/32-Bit General-Purpose Timer
10769
// 0 Sleep Mode Clock Gating
10770
// Control
10771
10772
//*****************************************************************************
10773
//
10774
// The following are defines for the bit fields in the SYSCTL_SCGCGPIO
10775
// register.
10776
//
10777
//*****************************************************************************
10778
#define SYSCTL_SCGCGPIO_S5 0x00000020
// GPIO Port F Sleep Mode Clock
10779
// Gating Control
10780
#define SYSCTL_SCGCGPIO_S4 0x00000010
// GPIO Port E Sleep Mode Clock
10781
// Gating Control
10782
#define SYSCTL_SCGCGPIO_S3 0x00000008
// GPIO Port D Sleep Mode Clock
10783
// Gating Control
10784
#define SYSCTL_SCGCGPIO_S2 0x00000004
// GPIO Port C Sleep Mode Clock
10785
// Gating Control
10786
#define SYSCTL_SCGCGPIO_S1 0x00000002
// GPIO Port B Sleep Mode Clock
10787
// Gating Control
10788
#define SYSCTL_SCGCGPIO_S0 0x00000001
// GPIO Port A Sleep Mode Clock
10789
// Gating Control
10790
10791
//*****************************************************************************
10792
//
10793
// The following are defines for the bit fields in the SYSCTL_SCGCDMA register.
10794
//
10795
//*****************************************************************************
10796
#define SYSCTL_SCGCDMA_S0 0x00000001
// uDMA Module Sleep Mode Clock
10797
// Gating Control
10798
10799
//*****************************************************************************
10800
//
10801
// The following are defines for the bit fields in the SYSCTL_SCGCHIB register.
10802
//
10803
//*****************************************************************************
10804
#define SYSCTL_SCGCHIB_S0 0x00000001
// Hibernation Module Sleep Mode
10805
// Clock Gating Control
10806
10807
//*****************************************************************************
10808
//
10809
// The following are defines for the bit fields in the SYSCTL_SCGCUART
10810
// register.
10811
//
10812
//*****************************************************************************
10813
#define SYSCTL_SCGCUART_S7 0x00000080
// UART Module 7 Sleep Mode Clock
10814
// Gating Control
10815
#define SYSCTL_SCGCUART_S6 0x00000040
// UART Module 6 Sleep Mode Clock
10816
// Gating Control
10817
#define SYSCTL_SCGCUART_S5 0x00000020
// UART Module 5 Sleep Mode Clock
10818
// Gating Control
10819
#define SYSCTL_SCGCUART_S4 0x00000010
// UART Module 4 Sleep Mode Clock
10820
// Gating Control
10821
#define SYSCTL_SCGCUART_S3 0x00000008
// UART Module 3 Sleep Mode Clock
10822
// Gating Control
10823
#define SYSCTL_SCGCUART_S2 0x00000004
// UART Module 2 Sleep Mode Clock
10824
// Gating Control
10825
#define SYSCTL_SCGCUART_S1 0x00000002
// UART Module 1 Sleep Mode Clock
10826
// Gating Control
10827
#define SYSCTL_SCGCUART_S0 0x00000001
// UART Module 0 Sleep Mode Clock
10828
// Gating Control
10829
10830
//*****************************************************************************
10831
//
10832
// The following are defines for the bit fields in the SYSCTL_SCGCSSI register.
10833
//
10834
//*****************************************************************************
10835
#define SYSCTL_SCGCSSI_S3 0x00000008
// SSI Module 3 Sleep Mode Clock
10836
// Gating Control
10837
#define SYSCTL_SCGCSSI_S2 0x00000004
// SSI Module 2 Sleep Mode Clock
10838
// Gating Control
10839
#define SYSCTL_SCGCSSI_S1 0x00000002
// SSI Module 1 Sleep Mode Clock
10840
// Gating Control
10841
#define SYSCTL_SCGCSSI_S0 0x00000001
// SSI Module 0 Sleep Mode Clock
10842
// Gating Control
10843
10844
//*****************************************************************************
10845
//
10846
// The following are defines for the bit fields in the SYSCTL_SCGCI2C register.
10847
//
10848
//*****************************************************************************
10849
#define SYSCTL_SCGCI2C_S3 0x00000008
// I2C Module 3 Sleep Mode Clock
10850
// Gating Control
10851
#define SYSCTL_SCGCI2C_S2 0x00000004
// I2C Module 2 Sleep Mode Clock
10852
// Gating Control
10853
#define SYSCTL_SCGCI2C_S1 0x00000002
// I2C Module 1 Sleep Mode Clock
10854
// Gating Control
10855
#define SYSCTL_SCGCI2C_S0 0x00000001
// I2C Module 0 Sleep Mode Clock
10856
// Gating Control
10857
10858
//*****************************************************************************
10859
//
10860
// The following are defines for the bit fields in the SYSCTL_SCGCUSB register.
10861
//
10862
//*****************************************************************************
10863
#define SYSCTL_SCGCUSB_S0 0x00000001
// USB Module Sleep Mode Clock
10864
// Gating Control
10865
10866
//*****************************************************************************
10867
//
10868
// The following are defines for the bit fields in the SYSCTL_SCGCCAN register.
10869
//
10870
//*****************************************************************************
10871
#define SYSCTL_SCGCCAN_S1 0x00000002
// CAN Module 1 Sleep Mode Clock
10872
// Gating Control
10873
#define SYSCTL_SCGCCAN_S0 0x00000001
// CAN Module 0 Sleep Mode Clock
10874
// Gating Control
10875
10876
//*****************************************************************************
10877
//
10878
// The following are defines for the bit fields in the SYSCTL_SCGCADC register.
10879
//
10880
//*****************************************************************************
10881
#define SYSCTL_SCGCADC_S1 0x00000002
// ADC Module 1 Sleep Mode Clock
10882
// Gating Control
10883
#define SYSCTL_SCGCADC_S0 0x00000001
// ADC Module 0 Sleep Mode Clock
10884
// Gating Control
10885
10886
//*****************************************************************************
10887
//
10888
// The following are defines for the bit fields in the SYSCTL_SCGCACMP
10889
// register.
10890
//
10891
//*****************************************************************************
10892
#define SYSCTL_SCGCACMP_S0 0x00000001
// Analog Comparator Module 0 Sleep
10893
// Mode Clock Gating Control
10894
10895
//*****************************************************************************
10896
//
10897
// The following are defines for the bit fields in the SYSCTL_SCGCPWM register.
10898
//
10899
//*****************************************************************************
10900
#define SYSCTL_SCGCPWM_S1 0x00000002
// PWM Module 1 Sleep Mode Clock
10901
// Gating Control
10902
#define SYSCTL_SCGCPWM_S0 0x00000001
// PWM Module 0 Sleep Mode Clock
10903
// Gating Control
10904
10905
//*****************************************************************************
10906
//
10907
// The following are defines for the bit fields in the SYSCTL_SCGCQEI register.
10908
//
10909
//*****************************************************************************
10910
#define SYSCTL_SCGCQEI_S1 0x00000002
// QEI Module 1 Sleep Mode Clock
10911
// Gating Control
10912
#define SYSCTL_SCGCQEI_S0 0x00000001
// QEI Module 0 Sleep Mode Clock
10913
// Gating Control
10914
10915
//*****************************************************************************
10916
//
10917
// The following are defines for the bit fields in the SYSCTL_SCGCEEPROM
10918
// register.
10919
//
10920
//*****************************************************************************
10921
#define SYSCTL_SCGCEEPROM_S0 0x00000001
// EEPROM Module Sleep Mode Clock
10922
// Gating Control
10923
10924
//*****************************************************************************
10925
//
10926
// The following are defines for the bit fields in the SYSCTL_SCGCWTIMER
10927
// register.
10928
//
10929
//*****************************************************************************
10930
#define SYSCTL_SCGCWTIMER_S5 0x00000020
// 32/64-Bit Wide General-Purpose
10931
// Timer 5 Sleep Mode Clock Gating
10932
// Control
10933
#define SYSCTL_SCGCWTIMER_S4 0x00000010
// 32/64-Bit Wide General-Purpose
10934
// Timer 4 Sleep Mode Clock Gating
10935
// Control
10936
#define SYSCTL_SCGCWTIMER_S3 0x00000008
// 32/64-Bit Wide General-Purpose
10937
// Timer 3 Sleep Mode Clock Gating
10938
// Control
10939
#define SYSCTL_SCGCWTIMER_S2 0x00000004
// 32/64-Bit Wide General-Purpose
10940
// Timer 2 Sleep Mode Clock Gating
10941
// Control
10942
#define SYSCTL_SCGCWTIMER_S1 0x00000002
// 32/64-Bit Wide General-Purpose
10943
// Timer 1 Sleep Mode Clock Gating
10944
// Control
10945
#define SYSCTL_SCGCWTIMER_S0 0x00000001
// 32/64-Bit Wide General-Purpose
10946
// Timer 0 Sleep Mode Clock Gating
10947
// Control
10948
10949
//*****************************************************************************
10950
//
10951
// The following are defines for the bit fields in the SYSCTL_DCGCWD register.
10952
//
10953
//*****************************************************************************
10954
#define SYSCTL_DCGCWD_D1 0x00000002
// Watchdog Timer 1 Deep-Sleep Mode
10955
// Clock Gating Control
10956
#define SYSCTL_DCGCWD_D0 0x00000001
// Watchdog Timer 0 Deep-Sleep Mode
10957
// Clock Gating Control
10958
10959
//*****************************************************************************
10960
//
10961
// The following are defines for the bit fields in the SYSCTL_DCGCTIMER
10962
// register.
10963
//
10964
//*****************************************************************************
10965
#define SYSCTL_DCGCTIMER_D5 0x00000020
// 16/32-Bit General-Purpose Timer
10966
// 5 Deep-Sleep Mode Clock Gating
10967
// Control
10968
#define SYSCTL_DCGCTIMER_D4 0x00000010
// 16/32-Bit General-Purpose Timer
10969
// 4 Deep-Sleep Mode Clock Gating
10970
// Control
10971
#define SYSCTL_DCGCTIMER_D3 0x00000008
// 16/32-Bit General-Purpose Timer
10972
// 3 Deep-Sleep Mode Clock Gating
10973
// Control
10974
#define SYSCTL_DCGCTIMER_D2 0x00000004
// 16/32-Bit General-Purpose Timer
10975
// 2 Deep-Sleep Mode Clock Gating
10976
// Control
10977
#define SYSCTL_DCGCTIMER_D1 0x00000002
// 16/32-Bit General-Purpose Timer
10978
// 1 Deep-Sleep Mode Clock Gating
10979
// Control
10980
#define SYSCTL_DCGCTIMER_D0 0x00000001
// 16/32-Bit General-Purpose Timer
10981
// 0 Deep-Sleep Mode Clock Gating
10982
// Control
10983
10984
//*****************************************************************************
10985
//
10986
// The following are defines for the bit fields in the SYSCTL_DCGCGPIO
10987
// register.
10988
//
10989
//*****************************************************************************
10990
#define SYSCTL_DCGCGPIO_D5 0x00000020
// GPIO Port F Deep-Sleep Mode
10991
// Clock Gating Control
10992
#define SYSCTL_DCGCGPIO_D4 0x00000010
// GPIO Port E Deep-Sleep Mode
10993
// Clock Gating Control
10994
#define SYSCTL_DCGCGPIO_D3 0x00000008
// GPIO Port D Deep-Sleep Mode
10995
// Clock Gating Control
10996
#define SYSCTL_DCGCGPIO_D2 0x00000004
// GPIO Port C Deep-Sleep Mode
10997
// Clock Gating Control
10998
#define SYSCTL_DCGCGPIO_D1 0x00000002
// GPIO Port B Deep-Sleep Mode
10999
// Clock Gating Control
11000
#define SYSCTL_DCGCGPIO_D0 0x00000001
// GPIO Port A Deep-Sleep Mode
11001
// Clock Gating Control
11002
11003
//*****************************************************************************
11004
//
11005
// The following are defines for the bit fields in the SYSCTL_DCGCDMA register.
11006
//
11007
//*****************************************************************************
11008
#define SYSCTL_DCGCDMA_D0 0x00000001
// uDMA Module Deep-Sleep Mode
11009
// Clock Gating Control
11010
11011
//*****************************************************************************
11012
//
11013
// The following are defines for the bit fields in the SYSCTL_DCGCHIB register.
11014
//
11015
//*****************************************************************************
11016
#define SYSCTL_DCGCHIB_D0 0x00000001
// Hibernation Module Deep-Sleep
11017
// Mode Clock Gating Control
11018
11019
//*****************************************************************************
11020
//
11021
// The following are defines for the bit fields in the SYSCTL_DCGCUART
11022
// register.
11023
//
11024
//*****************************************************************************
11025
#define SYSCTL_DCGCUART_D7 0x00000080
// UART Module 7 Deep-Sleep Mode
11026
// Clock Gating Control
11027
#define SYSCTL_DCGCUART_D6 0x00000040
// UART Module 6 Deep-Sleep Mode
11028
// Clock Gating Control
11029
#define SYSCTL_DCGCUART_D5 0x00000020
// UART Module 5 Deep-Sleep Mode
11030
// Clock Gating Control
11031
#define SYSCTL_DCGCUART_D4 0x00000010
// UART Module 4 Deep-Sleep Mode
11032
// Clock Gating Control
11033
#define SYSCTL_DCGCUART_D3 0x00000008
// UART Module 3 Deep-Sleep Mode
11034
// Clock Gating Control
11035
#define SYSCTL_DCGCUART_D2 0x00000004
// UART Module 2 Deep-Sleep Mode
11036
// Clock Gating Control
11037
#define SYSCTL_DCGCUART_D1 0x00000002
// UART Module 1 Deep-Sleep Mode
11038
// Clock Gating Control
11039
#define SYSCTL_DCGCUART_D0 0x00000001
// UART Module 0 Deep-Sleep Mode
11040
// Clock Gating Control
11041
11042
//*****************************************************************************
11043
//
11044
// The following are defines for the bit fields in the SYSCTL_DCGCSSI register.
11045
//
11046
//*****************************************************************************
11047
#define SYSCTL_DCGCSSI_D3 0x00000008
// SSI Module 3 Deep-Sleep Mode
11048
// Clock Gating Control
11049
#define SYSCTL_DCGCSSI_D2 0x00000004
// SSI Module 2 Deep-Sleep Mode
11050
// Clock Gating Control
11051
#define SYSCTL_DCGCSSI_D1 0x00000002
// SSI Module 1 Deep-Sleep Mode
11052
// Clock Gating Control
11053
#define SYSCTL_DCGCSSI_D0 0x00000001
// SSI Module 0 Deep-Sleep Mode
11054
// Clock Gating Control
11055
11056
//*****************************************************************************
11057
//
11058
// The following are defines for the bit fields in the SYSCTL_DCGCI2C register.
11059
//
11060
//*****************************************************************************
11061
#define SYSCTL_DCGCI2C_D3 0x00000008
// I2C Module 3 Deep-Sleep Mode
11062
// Clock Gating Control
11063
#define SYSCTL_DCGCI2C_D2 0x00000004
// I2C Module 2 Deep-Sleep Mode
11064
// Clock Gating Control
11065
#define SYSCTL_DCGCI2C_D1 0x00000002
// I2C Module 1 Deep-Sleep Mode
11066
// Clock Gating Control
11067
#define SYSCTL_DCGCI2C_D0 0x00000001
// I2C Module 0 Deep-Sleep Mode
11068
// Clock Gating Control
11069
11070
//*****************************************************************************
11071
//
11072
// The following are defines for the bit fields in the SYSCTL_DCGCUSB register.
11073
//
11074
//*****************************************************************************
11075
#define SYSCTL_DCGCUSB_D0 0x00000001
// USB Module Deep-Sleep Mode Clock
11076
// Gating Control
11077
11078
//*****************************************************************************
11079
//
11080
// The following are defines for the bit fields in the SYSCTL_DCGCCAN register.
11081
//
11082
//*****************************************************************************
11083
#define SYSCTL_DCGCCAN_D1 0x00000002
// CAN Module 1 Deep-Sleep Mode
11084
// Clock Gating Control
11085
#define SYSCTL_DCGCCAN_D0 0x00000001
// CAN Module 0 Deep-Sleep Mode
11086
// Clock Gating Control
11087
11088
//*****************************************************************************
11089
//
11090
// The following are defines for the bit fields in the SYSCTL_DCGCADC register.
11091
//
11092
//*****************************************************************************
11093
#define SYSCTL_DCGCADC_D1 0x00000002
// ADC Module 1 Deep-Sleep Mode
11094
// Clock Gating Control
11095
#define SYSCTL_DCGCADC_D0 0x00000001
// ADC Module 0 Deep-Sleep Mode
11096
// Clock Gating Control
11097
11098
//*****************************************************************************
11099
//
11100
// The following are defines for the bit fields in the SYSCTL_DCGCACMP
11101
// register.
11102
//
11103
//*****************************************************************************
11104
#define SYSCTL_DCGCACMP_D0 0x00000001
// Analog Comparator Module 0
11105
// Deep-Sleep Mode Clock Gating
11106
// Control
11107
11108
//*****************************************************************************
11109
//
11110
// The following are defines for the bit fields in the SYSCTL_DCGCPWM register.
11111
//
11112
//*****************************************************************************
11113
#define SYSCTL_DCGCPWM_D1 0x00000002
// PWM Module 1 Deep-Sleep Mode
11114
// Clock Gating Control
11115
#define SYSCTL_DCGCPWM_D0 0x00000001
// PWM Module 0 Deep-Sleep Mode
11116
// Clock Gating Control
11117
11118
//*****************************************************************************
11119
//
11120
// The following are defines for the bit fields in the SYSCTL_DCGCQEI register.
11121
//
11122
//*****************************************************************************
11123
#define SYSCTL_DCGCQEI_D1 0x00000002
// QEI Module 1 Deep-Sleep Mode
11124
// Clock Gating Control
11125
#define SYSCTL_DCGCQEI_D0 0x00000001
// QEI Module 0 Deep-Sleep Mode
11126
// Clock Gating Control
11127
11128
//*****************************************************************************
11129
//
11130
// The following are defines for the bit fields in the SYSCTL_DCGCEEPROM
11131
// register.
11132
//
11133
//*****************************************************************************
11134
#define SYSCTL_DCGCEEPROM_D0 0x00000001
// EEPROM Module Deep-Sleep Mode
11135
// Clock Gating Control
11136
11137
//*****************************************************************************
11138
//
11139
// The following are defines for the bit fields in the SYSCTL_DCGCWTIMER
11140
// register.
11141
//
11142
//*****************************************************************************
11143
#define SYSCTL_DCGCWTIMER_D5 0x00000020
// 32/64-Bit Wide General-Purpose
11144
// Timer 5 Deep-Sleep Mode Clock
11145
// Gating Control
11146
#define SYSCTL_DCGCWTIMER_D4 0x00000010
// 32/64-Bit Wide General-Purpose
11147
// Timer 4 Deep-Sleep Mode Clock
11148
// Gating Control
11149
#define SYSCTL_DCGCWTIMER_D3 0x00000008
// 32/64-Bit Wide General-Purpose
11150
// Timer 3 Deep-Sleep Mode Clock
11151
// Gating Control
11152
#define SYSCTL_DCGCWTIMER_D2 0x00000004
// 32/64-Bit Wide General-Purpose
11153
// Timer 2 Deep-Sleep Mode Clock
11154
// Gating Control
11155
#define SYSCTL_DCGCWTIMER_D1 0x00000002
// 32/64-Bit Wide General-Purpose
11156
// Timer 1 Deep-Sleep Mode Clock
11157
// Gating Control
11158
#define SYSCTL_DCGCWTIMER_D0 0x00000001
// 32/64-Bit Wide General-Purpose
11159
// Timer 0 Deep-Sleep Mode Clock
11160
// Gating Control
11161
11162
//*****************************************************************************
11163
//
11164
// The following are defines for the bit fields in the SYSCTL_PRWD register.
11165
//
11166
//*****************************************************************************
11167
#define SYSCTL_PRWD_R1 0x00000002
// Watchdog Timer 1 Peripheral
11168
// Ready
11169
#define SYSCTL_PRWD_R0 0x00000001
// Watchdog Timer 0 Peripheral
11170
// Ready
11171
11172
//*****************************************************************************
11173
//
11174
// The following are defines for the bit fields in the SYSCTL_PRTIMER register.
11175
//
11176
//*****************************************************************************
11177
#define SYSCTL_PRTIMER_R5 0x00000020
// 16/32-Bit General-Purpose Timer
11178
// 5 Peripheral Ready
11179
#define SYSCTL_PRTIMER_R4 0x00000010
// 16/32-Bit General-Purpose Timer
11180
// 4 Peripheral Ready
11181
#define SYSCTL_PRTIMER_R3 0x00000008
// 16/32-Bit General-Purpose Timer
11182
// 3 Peripheral Ready
11183
#define SYSCTL_PRTIMER_R2 0x00000004
// 16/32-Bit General-Purpose Timer
11184
// 2 Peripheral Ready
11185
#define SYSCTL_PRTIMER_R1 0x00000002
// 16/32-Bit General-Purpose Timer
11186
// 1 Peripheral Ready
11187
#define SYSCTL_PRTIMER_R0 0x00000001
// 16/32-Bit General-Purpose Timer
11188
// 0 Peripheral Ready
11189
11190
//*****************************************************************************
11191
//
11192
// The following are defines for the bit fields in the SYSCTL_PRGPIO register.
11193
//
11194
//*****************************************************************************
11195
#define SYSCTL_PRGPIO_R5 0x00000020
// GPIO Port F Peripheral Ready
11196
#define SYSCTL_PRGPIO_R4 0x00000010
// GPIO Port E Peripheral Ready
11197
#define SYSCTL_PRGPIO_R3 0x00000008
// GPIO Port D Peripheral Ready
11198
#define SYSCTL_PRGPIO_R2 0x00000004
// GPIO Port C Peripheral Ready
11199
#define SYSCTL_PRGPIO_R1 0x00000002
// GPIO Port B Peripheral Ready
11200
#define SYSCTL_PRGPIO_R0 0x00000001
// GPIO Port A Peripheral Ready
11201
11202
//*****************************************************************************
11203
//
11204
// The following are defines for the bit fields in the SYSCTL_PRDMA register.
11205
//
11206
//*****************************************************************************
11207
#define SYSCTL_PRDMA_R0 0x00000001
// uDMA Module Peripheral Ready
11208
11209
//*****************************************************************************
11210
//
11211
// The following are defines for the bit fields in the SYSCTL_PRHIB register.
11212
//
11213
//*****************************************************************************
11214
#define SYSCTL_PRHIB_R0 0x00000001
// Hibernation Module Peripheral
11215
// Ready
11216
11217
//*****************************************************************************
11218
//
11219
// The following are defines for the bit fields in the SYSCTL_PRUART register.
11220
//
11221
//*****************************************************************************
11222
#define SYSCTL_PRUART_R7 0x00000080
// UART Module 7 Peripheral Ready
11223
#define SYSCTL_PRUART_R6 0x00000040
// UART Module 6 Peripheral Ready
11224
#define SYSCTL_PRUART_R5 0x00000020
// UART Module 5 Peripheral Ready
11225
#define SYSCTL_PRUART_R4 0x00000010
// UART Module 4 Peripheral Ready
11226
#define SYSCTL_PRUART_R3 0x00000008
// UART Module 3 Peripheral Ready
11227
#define SYSCTL_PRUART_R2 0x00000004
// UART Module 2 Peripheral Ready
11228
#define SYSCTL_PRUART_R1 0x00000002
// UART Module 1 Peripheral Ready
11229
#define SYSCTL_PRUART_R0 0x00000001
// UART Module 0 Peripheral Ready
11230
11231
//*****************************************************************************
11232
//
11233
// The following are defines for the bit fields in the SYSCTL_PRSSI register.
11234
//
11235
//*****************************************************************************
11236
#define SYSCTL_PRSSI_R3 0x00000008
// SSI Module 3 Peripheral Ready
11237
#define SYSCTL_PRSSI_R2 0x00000004
// SSI Module 2 Peripheral Ready
11238
#define SYSCTL_PRSSI_R1 0x00000002
// SSI Module 1 Peripheral Ready
11239
#define SYSCTL_PRSSI_R0 0x00000001
// SSI Module 0 Peripheral Ready
11240
11241
//*****************************************************************************
11242
//
11243
// The following are defines for the bit fields in the SYSCTL_PRI2C register.
11244
//
11245
//*****************************************************************************
11246
#define SYSCTL_PRI2C_R3 0x00000008
// I2C Module 3 Peripheral Ready
11247
#define SYSCTL_PRI2C_R2 0x00000004
// I2C Module 2 Peripheral Ready
11248
#define SYSCTL_PRI2C_R1 0x00000002
// I2C Module 1 Peripheral Ready
11249
#define SYSCTL_PRI2C_R0 0x00000001
// I2C Module 0 Peripheral Ready
11250
11251
//*****************************************************************************
11252
//
11253
// The following are defines for the bit fields in the SYSCTL_PRUSB register.
11254
//
11255
//*****************************************************************************
11256
#define SYSCTL_PRUSB_R0 0x00000001
// USB Module Peripheral Ready
11257
11258
//*****************************************************************************
11259
//
11260
// The following are defines for the bit fields in the SYSCTL_PRCAN register.
11261
//
11262
//*****************************************************************************
11263
#define SYSCTL_PRCAN_R1 0x00000002
// CAN Module 1 Peripheral Ready
11264
#define SYSCTL_PRCAN_R0 0x00000001
// CAN Module 0 Peripheral Ready
11265
11266
//*****************************************************************************
11267
//
11268
// The following are defines for the bit fields in the SYSCTL_PRADC register.
11269
//
11270
//*****************************************************************************
11271
#define SYSCTL_PRADC_R1 0x00000002
// ADC Module 1 Peripheral Ready
11272
#define SYSCTL_PRADC_R0 0x00000001
// ADC Module 0 Peripheral Ready
11273
11274
//*****************************************************************************
11275
//
11276
// The following are defines for the bit fields in the SYSCTL_PRACMP register.
11277
//
11278
//*****************************************************************************
11279
#define SYSCTL_PRACMP_R0 0x00000001
// Analog Comparator Module 0
11280
// Peripheral Ready
11281
11282
//*****************************************************************************
11283
//
11284
// The following are defines for the bit fields in the SYSCTL_PRPWM register.
11285
//
11286
//*****************************************************************************
11287
#define SYSCTL_PRPWM_R1 0x00000002
// PWM Module 1 Peripheral Ready
11288
#define SYSCTL_PRPWM_R0 0x00000001
// PWM Module 0 Peripheral Ready
11289
11290
//*****************************************************************************
11291
//
11292
// The following are defines for the bit fields in the SYSCTL_PRQEI register.
11293
//
11294
//*****************************************************************************
11295
#define SYSCTL_PRQEI_R1 0x00000002
// QEI Module 1 Peripheral Ready
11296
#define SYSCTL_PRQEI_R0 0x00000001
// QEI Module 0 Peripheral Ready
11297
11298
//*****************************************************************************
11299
//
11300
// The following are defines for the bit fields in the SYSCTL_PREEPROM
11301
// register.
11302
//
11303
//*****************************************************************************
11304
#define SYSCTL_PREEPROM_R0 0x00000001
// EEPROM Module Peripheral Ready
11305
11306
//*****************************************************************************
11307
//
11308
// The following are defines for the bit fields in the SYSCTL_PRWTIMER
11309
// register.
11310
//
11311
//*****************************************************************************
11312
#define SYSCTL_PRWTIMER_R5 0x00000020
// 32/64-Bit Wide General-Purpose
11313
// Timer 5 Peripheral Ready
11314
#define SYSCTL_PRWTIMER_R4 0x00000010
// 32/64-Bit Wide General-Purpose
11315
// Timer 4 Peripheral Ready
11316
#define SYSCTL_PRWTIMER_R3 0x00000008
// 32/64-Bit Wide General-Purpose
11317
// Timer 3 Peripheral Ready
11318
#define SYSCTL_PRWTIMER_R2 0x00000004
// 32/64-Bit Wide General-Purpose
11319
// Timer 2 Peripheral Ready
11320
#define SYSCTL_PRWTIMER_R1 0x00000002
// 32/64-Bit Wide General-Purpose
11321
// Timer 1 Peripheral Ready
11322
#define SYSCTL_PRWTIMER_R0 0x00000001
// 32/64-Bit Wide General-Purpose
11323
// Timer 0 Peripheral Ready
11324
11325
//*****************************************************************************
11326
//
11327
// The following are defines for the bit fields in the UDMA_STAT register.
11328
//
11329
//*****************************************************************************
11330
#define UDMA_STAT_DMACHANS_M 0x001F0000
// Available uDMA Channels Minus 1
11331
#define UDMA_STAT_STATE_M 0x000000F0
// Control State Machine Status
11332
#define UDMA_STAT_STATE_IDLE 0x00000000
// Idle
11333
#define UDMA_STAT_STATE_RD_CTRL 0x00000010
// Reading channel controller data
11334
#define UDMA_STAT_STATE_RD_SRCENDP \
11335
0x00000020
// Reading source end pointer
11336
#define UDMA_STAT_STATE_RD_DSTENDP \
11337
0x00000030
// Reading destination end pointer
11338
#define UDMA_STAT_STATE_RD_SRCDAT \
11339
0x00000040
// Reading source data
11340
#define UDMA_STAT_STATE_WR_DSTDAT \
11341
0x00000050
// Writing destination data
11342
#define UDMA_STAT_STATE_WAIT 0x00000060
// Waiting for uDMA request to
11343
// clear
11344
#define UDMA_STAT_STATE_WR_CTRL 0x00000070
// Writing channel controller data
11345
#define UDMA_STAT_STATE_STALL 0x00000080
// Stalled
11346
#define UDMA_STAT_STATE_DONE 0x00000090
// Done
11347
#define UDMA_STAT_STATE_UNDEF 0x000000A0
// Undefined
11348
#define UDMA_STAT_MASTEN 0x00000001
// Master Enable Status
11349
#define UDMA_STAT_DMACHANS_S 16
11350
11351
//*****************************************************************************
11352
//
11353
// The following are defines for the bit fields in the UDMA_CFG register.
11354
//
11355
//*****************************************************************************
11356
#define UDMA_CFG_MASTEN 0x00000001
// Controller Master Enable
11357
11358
//*****************************************************************************
11359
//
11360
// The following are defines for the bit fields in the UDMA_CTLBASE register.
11361
//
11362
//*****************************************************************************
11363
#define UDMA_CTLBASE_ADDR_M 0xFFFFFC00
// Channel Control Base Address
11364
#define UDMA_CTLBASE_ADDR_S 10
11365
11366
//*****************************************************************************
11367
//
11368
// The following are defines for the bit fields in the UDMA_ALTBASE register.
11369
//
11370
//*****************************************************************************
11371
#define UDMA_ALTBASE_ADDR_M 0xFFFFFFFF
// Alternate Channel Address
11372
// Pointer
11373
#define UDMA_ALTBASE_ADDR_S 0
11374
11375
//*****************************************************************************
11376
//
11377
// The following are defines for the bit fields in the UDMA_WAITSTAT register.
11378
//
11379
//*****************************************************************************
11380
#define UDMA_WAITSTAT_WAITREQ_M 0xFFFFFFFF
// Channel [n] Wait Status
11381
11382
//*****************************************************************************
11383
//
11384
// The following are defines for the bit fields in the UDMA_SWREQ register.
11385
//
11386
//*****************************************************************************
11387
#define UDMA_SWREQ_M 0xFFFFFFFF
// Channel [n] Software Request
11388
11389
//*****************************************************************************
11390
//
11391
// The following are defines for the bit fields in the UDMA_USEBURSTSET
11392
// register.
11393
//
11394
//*****************************************************************************
11395
#define UDMA_USEBURSTSET_SET_M 0xFFFFFFFF
// Channel [n] Useburst Set
11396
11397
//*****************************************************************************
11398
//
11399
// The following are defines for the bit fields in the UDMA_USEBURSTCLR
11400
// register.
11401
//
11402
//*****************************************************************************
11403
#define UDMA_USEBURSTCLR_CLR_M 0xFFFFFFFF
// Channel [n] Useburst Clear
11404
11405
//*****************************************************************************
11406
//
11407
// The following are defines for the bit fields in the UDMA_REQMASKSET
11408
// register.
11409
//
11410
//*****************************************************************************
11411
#define UDMA_REQMASKSET_SET_M 0xFFFFFFFF
// Channel [n] Request Mask Set
11412
11413
//*****************************************************************************
11414
//
11415
// The following are defines for the bit fields in the UDMA_REQMASKCLR
11416
// register.
11417
//
11418
//*****************************************************************************
11419
#define UDMA_REQMASKCLR_CLR_M 0xFFFFFFFF
// Channel [n] Request Mask Clear
11420
11421
//*****************************************************************************
11422
//
11423
// The following are defines for the bit fields in the UDMA_ENASET register.
11424
//
11425
//*****************************************************************************
11426
#define UDMA_ENASET_SET_M 0xFFFFFFFF
// Channel [n] Enable Set
11427
11428
//*****************************************************************************
11429
//
11430
// The following are defines for the bit fields in the UDMA_ENACLR register.
11431
//
11432
//*****************************************************************************
11433
#define UDMA_ENACLR_CLR_M 0xFFFFFFFF
// Clear Channel [n] Enable Clear
11434
11435
//*****************************************************************************
11436
//
11437
// The following are defines for the bit fields in the UDMA_ALTSET register.
11438
//
11439
//*****************************************************************************
11440
#define UDMA_ALTSET_SET_M 0xFFFFFFFF
// Channel [n] Alternate Set
11441
11442
//*****************************************************************************
11443
//
11444
// The following are defines for the bit fields in the UDMA_ALTCLR register.
11445
//
11446
//*****************************************************************************
11447
#define UDMA_ALTCLR_CLR_M 0xFFFFFFFF
// Channel [n] Alternate Clear
11448
11449
//*****************************************************************************
11450
//
11451
// The following are defines for the bit fields in the UDMA_PRIOSET register.
11452
//
11453
//*****************************************************************************
11454
#define UDMA_PRIOSET_SET_M 0xFFFFFFFF
// Channel [n] Priority Set
11455
11456
//*****************************************************************************
11457
//
11458
// The following are defines for the bit fields in the UDMA_PRIOCLR register.
11459
//
11460
//*****************************************************************************
11461
#define UDMA_PRIOCLR_CLR_M 0xFFFFFFFF
// Channel [n] Priority Clear
11462
11463
//*****************************************************************************
11464
//
11465
// The following are defines for the bit fields in the UDMA_ERRCLR register.
11466
//
11467
//*****************************************************************************
11468
#define UDMA_ERRCLR_ERRCLR 0x00000001
// uDMA Bus Error Status
11469
11470
//*****************************************************************************
11471
//
11472
// The following are defines for the bit fields in the UDMA_CHASGN register.
11473
//
11474
//*****************************************************************************
11475
#define UDMA_CHASGN_M 0xFFFFFFFF
// Channel [n] Assignment Select
11476
#define UDMA_CHASGN_PRIMARY 0x00000000
// Use the primary channel
11477
// assignment
11478
#define UDMA_CHASGN_SECONDARY 0x00000001
// Use the secondary channel
11479
// assignment
11480
11481
//*****************************************************************************
11482
//
11483
// The following are defines for the bit fields in the UDMA_CHIS register.
11484
//
11485
//*****************************************************************************
11486
#define UDMA_CHIS_M 0xFFFFFFFF
// Channel [n] Interrupt Status
11487
11488
//*****************************************************************************
11489
//
11490
// The following are defines for the bit fields in the UDMA_CHMAP0 register.
11491
//
11492
//*****************************************************************************
11493
#define UDMA_CHMAP0_CH7SEL_M 0xF0000000
// uDMA Channel 7 Source Select
11494
#define UDMA_CHMAP0_CH6SEL_M 0x0F000000
// uDMA Channel 6 Source Select
11495
#define UDMA_CHMAP0_CH5SEL_M 0x00F00000
// uDMA Channel 5 Source Select
11496
#define UDMA_CHMAP0_CH4SEL_M 0x000F0000
// uDMA Channel 4 Source Select
11497
#define UDMA_CHMAP0_CH3SEL_M 0x0000F000
// uDMA Channel 3 Source Select
11498
#define UDMA_CHMAP0_CH2SEL_M 0x00000F00
// uDMA Channel 2 Source Select
11499
#define UDMA_CHMAP0_CH1SEL_M 0x000000F0
// uDMA Channel 1 Source Select
11500
#define UDMA_CHMAP0_CH0SEL_M 0x0000000F
// uDMA Channel 0 Source Select
11501
#define UDMA_CHMAP0_CH7SEL_S 28
11502
#define UDMA_CHMAP0_CH6SEL_S 24
11503
#define UDMA_CHMAP0_CH5SEL_S 20
11504
#define UDMA_CHMAP0_CH4SEL_S 16
11505
#define UDMA_CHMAP0_CH3SEL_S 12
11506
#define UDMA_CHMAP0_CH2SEL_S 8
11507
#define UDMA_CHMAP0_CH1SEL_S 4
11508
#define UDMA_CHMAP0_CH0SEL_S 0
11509
11510
//*****************************************************************************
11511
//
11512
// The following are defines for the bit fields in the UDMA_CHMAP1 register.
11513
//
11514
//*****************************************************************************
11515
#define UDMA_CHMAP1_CH15SEL_M 0xF0000000
// uDMA Channel 15 Source Select
11516
#define UDMA_CHMAP1_CH14SEL_M 0x0F000000
// uDMA Channel 14 Source Select
11517
#define UDMA_CHMAP1_CH13SEL_M 0x00F00000
// uDMA Channel 13 Source Select
11518
#define UDMA_CHMAP1_CH12SEL_M 0x000F0000
// uDMA Channel 12 Source Select
11519
#define UDMA_CHMAP1_CH11SEL_M 0x0000F000
// uDMA Channel 11 Source Select
11520
#define UDMA_CHMAP1_CH10SEL_M 0x00000F00
// uDMA Channel 10 Source Select
11521
#define UDMA_CHMAP1_CH9SEL_M 0x000000F0
// uDMA Channel 9 Source Select
11522
#define UDMA_CHMAP1_CH8SEL_M 0x0000000F
// uDMA Channel 8 Source Select
11523
#define UDMA_CHMAP1_CH15SEL_S 28
11524
#define UDMA_CHMAP1_CH14SEL_S 24
11525
#define UDMA_CHMAP1_CH13SEL_S 20
11526
#define UDMA_CHMAP1_CH12SEL_S 16
11527
#define UDMA_CHMAP1_CH11SEL_S 12
11528
#define UDMA_CHMAP1_CH10SEL_S 8
11529
#define UDMA_CHMAP1_CH9SEL_S 4
11530
#define UDMA_CHMAP1_CH8SEL_S 0
11531
11532
//*****************************************************************************
11533
//
11534
// The following are defines for the bit fields in the UDMA_CHMAP2 register.
11535
//
11536
//*****************************************************************************
11537
#define UDMA_CHMAP2_CH23SEL_M 0xF0000000
// uDMA Channel 23 Source Select
11538
#define UDMA_CHMAP2_CH22SEL_M 0x0F000000
// uDMA Channel 22 Source Select
11539
#define UDMA_CHMAP2_CH21SEL_M 0x00F00000
// uDMA Channel 21 Source Select
11540
#define UDMA_CHMAP2_CH20SEL_M 0x000F0000
// uDMA Channel 20 Source Select
11541
#define UDMA_CHMAP2_CH19SEL_M 0x0000F000
// uDMA Channel 19 Source Select
11542
#define UDMA_CHMAP2_CH18SEL_M 0x00000F00
// uDMA Channel 18 Source Select
11543
#define UDMA_CHMAP2_CH17SEL_M 0x000000F0
// uDMA Channel 17 Source Select
11544
#define UDMA_CHMAP2_CH16SEL_M 0x0000000F
// uDMA Channel 16 Source Select
11545
#define UDMA_CHMAP2_CH23SEL_S 28
11546
#define UDMA_CHMAP2_CH22SEL_S 24
11547
#define UDMA_CHMAP2_CH21SEL_S 20
11548
#define UDMA_CHMAP2_CH20SEL_S 16
11549
#define UDMA_CHMAP2_CH19SEL_S 12
11550
#define UDMA_CHMAP2_CH18SEL_S 8
11551
#define UDMA_CHMAP2_CH17SEL_S 4
11552
#define UDMA_CHMAP2_CH16SEL_S 0
11553
11554
//*****************************************************************************
11555
//
11556
// The following are defines for the bit fields in the UDMA_CHMAP3 register.
11557
//
11558
//*****************************************************************************
11559
#define UDMA_CHMAP3_CH31SEL_M 0xF0000000
// uDMA Channel 31 Source Select
11560
#define UDMA_CHMAP3_CH30SEL_M 0x0F000000
// uDMA Channel 30 Source Select
11561
#define UDMA_CHMAP3_CH29SEL_M 0x00F00000
// uDMA Channel 29 Source Select
11562
#define UDMA_CHMAP3_CH28SEL_M 0x000F0000
// uDMA Channel 28 Source Select
11563
#define UDMA_CHMAP3_CH27SEL_M 0x0000F000
// uDMA Channel 27 Source Select
11564
#define UDMA_CHMAP3_CH26SEL_M 0x00000F00
// uDMA Channel 26 Source Select
11565
#define UDMA_CHMAP3_CH25SEL_M 0x000000F0
// uDMA Channel 25 Source Select
11566
#define UDMA_CHMAP3_CH24SEL_M 0x0000000F
// uDMA Channel 24 Source Select
11567
#define UDMA_CHMAP3_CH31SEL_S 28
11568
#define UDMA_CHMAP3_CH30SEL_S 24
11569
#define UDMA_CHMAP3_CH29SEL_S 20
11570
#define UDMA_CHMAP3_CH28SEL_S 16
11571
#define UDMA_CHMAP3_CH27SEL_S 12
11572
#define UDMA_CHMAP3_CH26SEL_S 8
11573
#define UDMA_CHMAP3_CH25SEL_S 4
11574
#define UDMA_CHMAP3_CH24SEL_S 0
11575
11576
//*****************************************************************************
11577
//
11578
// The following are defines for the bit fields in the UDMA_O_SRCENDP register.
11579
//
11580
//*****************************************************************************
11581
#define UDMA_SRCENDP_ADDR_M 0xFFFFFFFF
// Source Address End Pointer
11582
#define UDMA_SRCENDP_ADDR_S 0
11583
11584
//*****************************************************************************
11585
//
11586
// The following are defines for the bit fields in the UDMA_O_DSTENDP register.
11587
//
11588
//*****************************************************************************
11589
#define UDMA_DSTENDP_ADDR_M 0xFFFFFFFF
// Destination Address End Pointer
11590
#define UDMA_DSTENDP_ADDR_S 0
11591
11592
//*****************************************************************************
11593
//
11594
// The following are defines for the bit fields in the UDMA_O_CHCTL register.
11595
//
11596
//*****************************************************************************
11597
#define UDMA_CHCTL_DSTINC_M 0xC0000000
// Destination Address Increment
11598
#define UDMA_CHCTL_DSTINC_8 0x00000000
// Byte
11599
#define UDMA_CHCTL_DSTINC_16 0x40000000
// Half-word
11600
#define UDMA_CHCTL_DSTINC_32 0x80000000
// Word
11601
#define UDMA_CHCTL_DSTINC_NONE 0xC0000000
// No increment
11602
#define UDMA_CHCTL_DSTSIZE_M 0x30000000
// Destination Data Size
11603
#define UDMA_CHCTL_DSTSIZE_8 0x00000000
// Byte
11604
#define UDMA_CHCTL_DSTSIZE_16 0x10000000
// Half-word
11605
#define UDMA_CHCTL_DSTSIZE_32 0x20000000
// Word
11606
#define UDMA_CHCTL_SRCINC_M 0x0C000000
// Source Address Increment
11607
#define UDMA_CHCTL_SRCINC_8 0x00000000
// Byte
11608
#define UDMA_CHCTL_SRCINC_16 0x04000000
// Half-word
11609
#define UDMA_CHCTL_SRCINC_32 0x08000000
// Word
11610
#define UDMA_CHCTL_SRCINC_NONE 0x0C000000
// No increment
11611
#define UDMA_CHCTL_SRCSIZE_M 0x03000000
// Source Data Size
11612
#define UDMA_CHCTL_SRCSIZE_8 0x00000000
// Byte
11613
#define UDMA_CHCTL_SRCSIZE_16 0x01000000
// Half-word
11614
#define UDMA_CHCTL_SRCSIZE_32 0x02000000
// Word
11615
#define UDMA_CHCTL_ARBSIZE_M 0x0003C000
// Arbitration Size
11616
#define UDMA_CHCTL_ARBSIZE_1 0x00000000
// 1 Transfer
11617
#define UDMA_CHCTL_ARBSIZE_2 0x00004000
// 2 Transfers
11618
#define UDMA_CHCTL_ARBSIZE_4 0x00008000
// 4 Transfers
11619
#define UDMA_CHCTL_ARBSIZE_8 0x0000C000
// 8 Transfers
11620
#define UDMA_CHCTL_ARBSIZE_16 0x00010000
// 16 Transfers
11621
#define UDMA_CHCTL_ARBSIZE_32 0x00014000
// 32 Transfers
11622
#define UDMA_CHCTL_ARBSIZE_64 0x00018000
// 64 Transfers
11623
#define UDMA_CHCTL_ARBSIZE_128 0x0001C000
// 128 Transfers
11624
#define UDMA_CHCTL_ARBSIZE_256 0x00020000
// 256 Transfers
11625
#define UDMA_CHCTL_ARBSIZE_512 0x00024000
// 512 Transfers
11626
#define UDMA_CHCTL_ARBSIZE_1024 0x00028000
// 1024 Transfers
11627
#define UDMA_CHCTL_XFERSIZE_M 0x00003FF0
// Transfer Size (minus 1)
11628
#define UDMA_CHCTL_NXTUSEBURST 0x00000008
// Next Useburst
11629
#define UDMA_CHCTL_XFERMODE_M 0x00000007
// uDMA Transfer Mode
11630
#define UDMA_CHCTL_XFERMODE_STOP \
11631
0x00000000
// Stop
11632
#define UDMA_CHCTL_XFERMODE_BASIC \
11633
0x00000001
// Basic
11634
#define UDMA_CHCTL_XFERMODE_AUTO \
11635
0x00000002
// Auto-Request
11636
#define UDMA_CHCTL_XFERMODE_PINGPONG \
11637
0x00000003
// Ping-Pong
11638
#define UDMA_CHCTL_XFERMODE_MEM_SG \
11639
0x00000004
// Memory Scatter-Gather
11640
#define UDMA_CHCTL_XFERMODE_MEM_SGA \
11641
0x00000005
// Alternate Memory Scatter-Gather
11642
#define UDMA_CHCTL_XFERMODE_PER_SG \
11643
0x00000006
// Peripheral Scatter-Gather
11644
#define UDMA_CHCTL_XFERMODE_PER_SGA \
11645
0x00000007
// Alternate Peripheral
11646
// Scatter-Gather
11647
#define UDMA_CHCTL_XFERSIZE_S 4
11648
11649
//*****************************************************************************
11650
//
11651
// The following are defines for the bit fields in the NVIC_ACTLR register.
11652
//
11653
//*****************************************************************************
11654
#define NVIC_ACTLR_DISOOFP 0x00000200
// Disable Out-Of-Order Floating
11655
// Point
11656
#define NVIC_ACTLR_DISFPCA 0x00000100
// Disable CONTROL
11657
#define NVIC_ACTLR_DISFOLD 0x00000004
// Disable IT Folding
11658
#define NVIC_ACTLR_DISWBUF 0x00000002
// Disable Write Buffer
11659
#define NVIC_ACTLR_DISMCYC 0x00000001
// Disable Interrupts of Multiple
11660
// Cycle Instructions
11661
11662
//*****************************************************************************
11663
//
11664
// The following are defines for the bit fields in the NVIC_ST_CTRL register.
11665
//
11666
//*****************************************************************************
11667
#define NVIC_ST_CTRL_COUNT 0x00010000
// Count Flag
11668
#define NVIC_ST_CTRL_CLK_SRC 0x00000004
// Clock Source
11669
#define NVIC_ST_CTRL_INTEN 0x00000002
// Interrupt Enable
11670
#define NVIC_ST_CTRL_ENABLE 0x00000001
// Enable
11671
11672
//*****************************************************************************
11673
//
11674
// The following are defines for the bit fields in the NVIC_ST_RELOAD register.
11675
//
11676
//*****************************************************************************
11677
#define NVIC_ST_RELOAD_M 0x00FFFFFF
// Reload Value
11678
#define NVIC_ST_RELOAD_S 0
11679
11680
//*****************************************************************************
11681
//
11682
// The following are defines for the bit fields in the NVIC_ST_CURRENT
11683
// register.
11684
//
11685
//*****************************************************************************
11686
#define NVIC_ST_CURRENT_M 0x00FFFFFF
// Current Value
11687
#define NVIC_ST_CURRENT_S 0
11688
11689
//*****************************************************************************
11690
//
11691
// The following are defines for the bit fields in the NVIC_EN0 register.
11692
//
11693
//*****************************************************************************
11694
#define NVIC_EN0_INT_M 0xFFFFFFFF
// Interrupt Enable
11695
11696
//*****************************************************************************
11697
//
11698
// The following are defines for the bit fields in the NVIC_EN1 register.
11699
//
11700
//*****************************************************************************
11701
#define NVIC_EN1_INT_M 0xFFFFFFFF
// Interrupt Enable
11702
11703
//*****************************************************************************
11704
//
11705
// The following are defines for the bit fields in the NVIC_EN2 register.
11706
//
11707
//*****************************************************************************
11708
#define NVIC_EN2_INT_M 0xFFFFFFFF
// Interrupt Enable
11709
11710
//*****************************************************************************
11711
//
11712
// The following are defines for the bit fields in the NVIC_EN3 register.
11713
//
11714
//*****************************************************************************
11715
#define NVIC_EN3_INT_M 0xFFFFFFFF
// Interrupt Enable
11716
11717
//*****************************************************************************
11718
//
11719
// The following are defines for the bit fields in the NVIC_EN4 register.
11720
//
11721
//*****************************************************************************
11722
#define NVIC_EN4_INT_M 0x000007FF
// Interrupt Enable
11723
11724
//*****************************************************************************
11725
//
11726
// The following are defines for the bit fields in the NVIC_DIS0 register.
11727
//
11728
//*****************************************************************************
11729
#define NVIC_DIS0_INT_M 0xFFFFFFFF
// Interrupt Disable
11730
11731
//*****************************************************************************
11732
//
11733
// The following are defines for the bit fields in the NVIC_DIS1 register.
11734
//
11735
//*****************************************************************************
11736
#define NVIC_DIS1_INT_M 0xFFFFFFFF
// Interrupt Disable
11737
11738
//*****************************************************************************
11739
//
11740
// The following are defines for the bit fields in the NVIC_DIS2 register.
11741
//
11742
//*****************************************************************************
11743
#define NVIC_DIS2_INT_M 0xFFFFFFFF
// Interrupt Disable
11744
11745
//*****************************************************************************
11746
//
11747
// The following are defines for the bit fields in the NVIC_DIS3 register.
11748
//
11749
//*****************************************************************************
11750
#define NVIC_DIS3_INT_M 0xFFFFFFFF
// Interrupt Disable
11751
11752
//*****************************************************************************
11753
//
11754
// The following are defines for the bit fields in the NVIC_DIS4 register.
11755
//
11756
//*****************************************************************************
11757
#define NVIC_DIS4_INT_M 0x000007FF
// Interrupt Disable
11758
11759
//*****************************************************************************
11760
//
11761
// The following are defines for the bit fields in the NVIC_PEND0 register.
11762
//
11763
//*****************************************************************************
11764
#define NVIC_PEND0_INT_M 0xFFFFFFFF
// Interrupt Set Pending
11765
11766
//*****************************************************************************
11767
//
11768
// The following are defines for the bit fields in the NVIC_PEND1 register.
11769
//
11770
//*****************************************************************************
11771
#define NVIC_PEND1_INT_M 0xFFFFFFFF
// Interrupt Set Pending
11772
11773
//*****************************************************************************
11774
//
11775
// The following are defines for the bit fields in the NVIC_PEND2 register.
11776
//
11777
//*****************************************************************************
11778
#define NVIC_PEND2_INT_M 0xFFFFFFFF
// Interrupt Set Pending
11779
11780
//*****************************************************************************
11781
//
11782
// The following are defines for the bit fields in the NVIC_PEND3 register.
11783
//
11784
//*****************************************************************************
11785
#define NVIC_PEND3_INT_M 0xFFFFFFFF
// Interrupt Set Pending
11786
11787
//*****************************************************************************
11788
//
11789
// The following are defines for the bit fields in the NVIC_PEND4 register.
11790
//
11791
//*****************************************************************************
11792
#define NVIC_PEND4_INT_M 0x000007FF
// Interrupt Set Pending
11793
11794
//*****************************************************************************
11795
//
11796
// The following are defines for the bit fields in the NVIC_UNPEND0 register.
11797
//
11798
//*****************************************************************************
11799
#define NVIC_UNPEND0_INT_M 0xFFFFFFFF
// Interrupt Clear Pending
11800
11801
//*****************************************************************************
11802
//
11803
// The following are defines for the bit fields in the NVIC_UNPEND1 register.
11804
//
11805
//*****************************************************************************
11806
#define NVIC_UNPEND1_INT_M 0xFFFFFFFF
// Interrupt Clear Pending
11807
11808
//*****************************************************************************
11809
//
11810
// The following are defines for the bit fields in the NVIC_UNPEND2 register.
11811
//
11812
//*****************************************************************************
11813
#define NVIC_UNPEND2_INT_M 0xFFFFFFFF
// Interrupt Clear Pending
11814
11815
//*****************************************************************************
11816
//
11817
// The following are defines for the bit fields in the NVIC_UNPEND3 register.
11818
//
11819
//*****************************************************************************
11820
#define NVIC_UNPEND3_INT_M 0xFFFFFFFF
// Interrupt Clear Pending
11821
11822
//*****************************************************************************
11823
//
11824
// The following are defines for the bit fields in the NVIC_UNPEND4 register.
11825
//
11826
//*****************************************************************************
11827
#define NVIC_UNPEND4_INT_M 0x000007FF
// Interrupt Clear Pending
11828
11829
//*****************************************************************************
11830
//
11831
// The following are defines for the bit fields in the NVIC_ACTIVE0 register.
11832
//
11833
//*****************************************************************************
11834
#define NVIC_ACTIVE0_INT_M 0xFFFFFFFF
// Interrupt Active
11835
11836
//*****************************************************************************
11837
//
11838
// The following are defines for the bit fields in the NVIC_ACTIVE1 register.
11839
//
11840
//*****************************************************************************
11841
#define NVIC_ACTIVE1_INT_M 0xFFFFFFFF
// Interrupt Active
11842
11843
//*****************************************************************************
11844
//
11845
// The following are defines for the bit fields in the NVIC_ACTIVE2 register.
11846
//
11847
//*****************************************************************************
11848
#define NVIC_ACTIVE2_INT_M 0xFFFFFFFF
// Interrupt Active
11849
11850
//*****************************************************************************
11851
//
11852
// The following are defines for the bit fields in the NVIC_ACTIVE3 register.
11853
//
11854
//*****************************************************************************
11855
#define NVIC_ACTIVE3_INT_M 0xFFFFFFFF
// Interrupt Active
11856
11857
//*****************************************************************************
11858
//
11859
// The following are defines for the bit fields in the NVIC_ACTIVE4 register.
11860
//
11861
//*****************************************************************************
11862
#define NVIC_ACTIVE4_INT_M 0x000007FF
// Interrupt Active
11863
11864
//*****************************************************************************
11865
//
11866
// The following are defines for the bit fields in the NVIC_PRI0 register.
11867
//
11868
//*****************************************************************************
11869
#define NVIC_PRI0_INT3_M 0xE0000000
// Interrupt 3 Priority Mask
11870
#define NVIC_PRI0_INT2_M 0x00E00000
// Interrupt 2 Priority Mask
11871
#define NVIC_PRI0_INT1_M 0x0000E000
// Interrupt 1 Priority Mask
11872
#define NVIC_PRI0_INT0_M 0x000000E0
// Interrupt 0 Priority Mask
11873
#define NVIC_PRI0_INT3_S 29
11874
#define NVIC_PRI0_INT2_S 21
11875
#define NVIC_PRI0_INT1_S 13
11876
#define NVIC_PRI0_INT0_S 5
11877
11878
//*****************************************************************************
11879
//
11880
// The following are defines for the bit fields in the NVIC_PRI1 register.
11881
//
11882
//*****************************************************************************
11883
#define NVIC_PRI1_INT7_M 0xE0000000
// Interrupt 7 Priority Mask
11884
#define NVIC_PRI1_INT6_M 0x00E00000
// Interrupt 6 Priority Mask
11885
#define NVIC_PRI1_INT5_M 0x0000E000
// Interrupt 5 Priority Mask
11886
#define NVIC_PRI1_INT4_M 0x000000E0
// Interrupt 4 Priority Mask
11887
#define NVIC_PRI1_INT7_S 29
11888
#define NVIC_PRI1_INT6_S 21
11889
#define NVIC_PRI1_INT5_S 13
11890
#define NVIC_PRI1_INT4_S 5
11891
11892
//*****************************************************************************
11893
//
11894
// The following are defines for the bit fields in the NVIC_PRI2 register.
11895
//
11896
//*****************************************************************************
11897
#define NVIC_PRI2_INT11_M 0xE0000000
// Interrupt 11 Priority Mask
11898
#define NVIC_PRI2_INT10_M 0x00E00000
// Interrupt 10 Priority Mask
11899
#define NVIC_PRI2_INT9_M 0x0000E000
// Interrupt 9 Priority Mask
11900
#define NVIC_PRI2_INT8_M 0x000000E0
// Interrupt 8 Priority Mask
11901
#define NVIC_PRI2_INT11_S 29
11902
#define NVIC_PRI2_INT10_S 21
11903
#define NVIC_PRI2_INT9_S 13
11904
#define NVIC_PRI2_INT8_S 5
11905
11906
//*****************************************************************************
11907
//
11908
// The following are defines for the bit fields in the NVIC_PRI3 register.
11909
//
11910
//*****************************************************************************
11911
#define NVIC_PRI3_INT15_M 0xE0000000
// Interrupt 15 Priority Mask
11912
#define NVIC_PRI3_INT14_M 0x00E00000
// Interrupt 14 Priority Mask
11913
#define NVIC_PRI3_INT13_M 0x0000E000
// Interrupt 13 Priority Mask
11914
#define NVIC_PRI3_INT12_M 0x000000E0
// Interrupt 12 Priority Mask
11915
#define NVIC_PRI3_INT15_S 29
11916
#define NVIC_PRI3_INT14_S 21
11917
#define NVIC_PRI3_INT13_S 13
11918
#define NVIC_PRI3_INT12_S 5
11919
11920
//*****************************************************************************
11921
//
11922
// The following are defines for the bit fields in the NVIC_PRI4 register.
11923
//
11924
//*****************************************************************************
11925
#define NVIC_PRI4_INT19_M 0xE0000000
// Interrupt 19 Priority Mask
11926
#define NVIC_PRI4_INT18_M 0x00E00000
// Interrupt 18 Priority Mask
11927
#define NVIC_PRI4_INT17_M 0x0000E000
// Interrupt 17 Priority Mask
11928
#define NVIC_PRI4_INT16_M 0x000000E0
// Interrupt 16 Priority Mask
11929
#define NVIC_PRI4_INT19_S 29
11930
#define NVIC_PRI4_INT18_S 21
11931
#define NVIC_PRI4_INT17_S 13
11932
#define NVIC_PRI4_INT16_S 5
11933
11934
//*****************************************************************************
11935
//
11936
// The following are defines for the bit fields in the NVIC_PRI5 register.
11937
//
11938
//*****************************************************************************
11939
#define NVIC_PRI5_INT23_M 0xE0000000
// Interrupt 23 Priority Mask
11940
#define NVIC_PRI5_INT22_M 0x00E00000
// Interrupt 22 Priority Mask
11941
#define NVIC_PRI5_INT21_M 0x0000E000
// Interrupt 21 Priority Mask
11942
#define NVIC_PRI5_INT20_M 0x000000E0
// Interrupt 20 Priority Mask
11943
#define NVIC_PRI5_INT23_S 29
11944
#define NVIC_PRI5_INT22_S 21
11945
#define NVIC_PRI5_INT21_S 13
11946
#define NVIC_PRI5_INT20_S 5
11947
11948
//*****************************************************************************
11949
//
11950
// The following are defines for the bit fields in the NVIC_PRI6 register.
11951
//
11952
//*****************************************************************************
11953
#define NVIC_PRI6_INT27_M 0xE0000000
// Interrupt 27 Priority Mask
11954
#define NVIC_PRI6_INT26_M 0x00E00000
// Interrupt 26 Priority Mask
11955
#define NVIC_PRI6_INT25_M 0x0000E000
// Interrupt 25 Priority Mask
11956
#define NVIC_PRI6_INT24_M 0x000000E0
// Interrupt 24 Priority Mask
11957
#define NVIC_PRI6_INT27_S 29
11958
#define NVIC_PRI6_INT26_S 21
11959
#define NVIC_PRI6_INT25_S 13
11960
#define NVIC_PRI6_INT24_S 5
11961
11962
//*****************************************************************************
11963
//
11964
// The following are defines for the bit fields in the NVIC_PRI7 register.
11965
//
11966
//*****************************************************************************
11967
#define NVIC_PRI7_INT31_M 0xE0000000
// Interrupt 31 Priority Mask
11968
#define NVIC_PRI7_INT30_M 0x00E00000
// Interrupt 30 Priority Mask
11969
#define NVIC_PRI7_INT29_M 0x0000E000
// Interrupt 29 Priority Mask
11970
#define NVIC_PRI7_INT28_M 0x000000E0
// Interrupt 28 Priority Mask
11971
#define NVIC_PRI7_INT31_S 29
11972
#define NVIC_PRI7_INT30_S 21
11973
#define NVIC_PRI7_INT29_S 13
11974
#define NVIC_PRI7_INT28_S 5
11975
11976
//*****************************************************************************
11977
//
11978
// The following are defines for the bit fields in the NVIC_PRI8 register.
11979
//
11980
//*****************************************************************************
11981
#define NVIC_PRI8_INT35_M 0xE0000000
// Interrupt 35 Priority Mask
11982
#define NVIC_PRI8_INT34_M 0x00E00000
// Interrupt 34 Priority Mask
11983
#define NVIC_PRI8_INT33_M 0x0000E000
// Interrupt 33 Priority Mask
11984
#define NVIC_PRI8_INT32_M 0x000000E0
// Interrupt 32 Priority Mask
11985
#define NVIC_PRI8_INT35_S 29
11986
#define NVIC_PRI8_INT34_S 21
11987
#define NVIC_PRI8_INT33_S 13
11988
#define NVIC_PRI8_INT32_S 5
11989
11990
//*****************************************************************************
11991
//
11992
// The following are defines for the bit fields in the NVIC_PRI9 register.
11993
//
11994
//*****************************************************************************
11995
#define NVIC_PRI9_INT39_M 0xE0000000
// Interrupt 39 Priority Mask
11996
#define NVIC_PRI9_INT38_M 0x00E00000
// Interrupt 38 Priority Mask
11997
#define NVIC_PRI9_INT37_M 0x0000E000
// Interrupt 37 Priority Mask
11998
#define NVIC_PRI9_INT36_M 0x000000E0
// Interrupt 36 Priority Mask
11999
#define NVIC_PRI9_INT39_S 29
12000
#define NVIC_PRI9_INT38_S 21
12001
#define NVIC_PRI9_INT37_S 13
12002
#define NVIC_PRI9_INT36_S 5
12003
12004
//*****************************************************************************
12005
//
12006
// The following are defines for the bit fields in the NVIC_PRI10 register.
12007
//
12008
//*****************************************************************************
12009
#define NVIC_PRI10_INT43_M 0xE0000000
// Interrupt 43 Priority Mask
12010
#define NVIC_PRI10_INT42_M 0x00E00000
// Interrupt 42 Priority Mask
12011
#define NVIC_PRI10_INT41_M 0x0000E000
// Interrupt 41 Priority Mask
12012
#define NVIC_PRI10_INT40_M 0x000000E0
// Interrupt 40 Priority Mask
12013
#define NVIC_PRI10_INT43_S 29
12014
#define NVIC_PRI10_INT42_S 21
12015
#define NVIC_PRI10_INT41_S 13
12016
#define NVIC_PRI10_INT40_S 5
12017
12018
//*****************************************************************************
12019
//
12020
// The following are defines for the bit fields in the NVIC_PRI11 register.
12021
//
12022
//*****************************************************************************
12023
#define NVIC_PRI11_INT47_M 0xE0000000
// Interrupt 47 Priority Mask
12024
#define NVIC_PRI11_INT46_M 0x00E00000
// Interrupt 46 Priority Mask
12025
#define NVIC_PRI11_INT45_M 0x0000E000
// Interrupt 45 Priority Mask
12026
#define NVIC_PRI11_INT44_M 0x000000E0
// Interrupt 44 Priority Mask
12027
#define NVIC_PRI11_INT47_S 29
12028
#define NVIC_PRI11_INT46_S 21
12029
#define NVIC_PRI11_INT45_S 13
12030
#define NVIC_PRI11_INT44_S 5
12031
12032
//*****************************************************************************
12033
//
12034
// The following are defines for the bit fields in the NVIC_PRI12 register.
12035
//
12036
//*****************************************************************************
12037
#define NVIC_PRI12_INT51_M 0xE0000000
// Interrupt 51 Priority Mask
12038
#define NVIC_PRI12_INT50_M 0x00E00000
// Interrupt 50 Priority Mask
12039
#define NVIC_PRI12_INT49_M 0x0000E000
// Interrupt 49 Priority Mask
12040
#define NVIC_PRI12_INT48_M 0x000000E0
// Interrupt 48 Priority Mask
12041
#define NVIC_PRI12_INT51_S 29
12042
#define NVIC_PRI12_INT50_S 21
12043
#define NVIC_PRI12_INT49_S 13
12044
#define NVIC_PRI12_INT48_S 5
12045
12046
//*****************************************************************************
12047
//
12048
// The following are defines for the bit fields in the NVIC_PRI13 register.
12049
//
12050
//*****************************************************************************
12051
#define NVIC_PRI13_INT55_M 0xE0000000
// Interrupt 55 Priority Mask
12052
#define NVIC_PRI13_INT54_M 0x00E00000
// Interrupt 54 Priority Mask
12053
#define NVIC_PRI13_INT53_M 0x0000E000
// Interrupt 53 Priority Mask
12054
#define NVIC_PRI13_INT52_M 0x000000E0
// Interrupt 52 Priority Mask
12055
#define NVIC_PRI13_INT55_S 29
12056
#define NVIC_PRI13_INT54_S 21
12057
#define NVIC_PRI13_INT53_S 13
12058
#define NVIC_PRI13_INT52_S 5
12059
12060
//*****************************************************************************
12061
//
12062
// The following are defines for the bit fields in the NVIC_PRI14 register.
12063
//
12064
//*****************************************************************************
12065
#define NVIC_PRI14_INTD_M 0xE0000000
// Interrupt 59 Priority Mask
12066
#define NVIC_PRI14_INTC_M 0x00E00000
// Interrupt 58 Priority Mask
12067
#define NVIC_PRI14_INTB_M 0x0000E000
// Interrupt 57 Priority Mask
12068
#define NVIC_PRI14_INTA_M 0x000000E0
// Interrupt 56 Priority Mask
12069
#define NVIC_PRI14_INTD_S 29
12070
#define NVIC_PRI14_INTC_S 21
12071
#define NVIC_PRI14_INTB_S 13
12072
#define NVIC_PRI14_INTA_S 5
12073
12074
//*****************************************************************************
12075
//
12076
// The following are defines for the bit fields in the NVIC_PRI15 register.
12077
//
12078
//*****************************************************************************
12079
#define NVIC_PRI15_INTD_M 0xE0000000
// Interrupt 63 Priority Mask
12080
#define NVIC_PRI15_INTC_M 0x00E00000
// Interrupt 62 Priority Mask
12081
#define NVIC_PRI15_INTB_M 0x0000E000
// Interrupt 61 Priority Mask
12082
#define NVIC_PRI15_INTA_M 0x000000E0
// Interrupt 60 Priority Mask
12083
#define NVIC_PRI15_INTD_S 29
12084
#define NVIC_PRI15_INTC_S 21
12085
#define NVIC_PRI15_INTB_S 13
12086
#define NVIC_PRI15_INTA_S 5
12087
12088
//*****************************************************************************
12089
//
12090
// The following are defines for the bit fields in the NVIC_PRI16 register.
12091
//
12092
//*****************************************************************************
12093
#define NVIC_PRI16_INTD_M 0xE0000000
// Interrupt 67 Priority Mask
12094
#define NVIC_PRI16_INTC_M 0x00E00000
// Interrupt 66 Priority Mask
12095
#define NVIC_PRI16_INTB_M 0x0000E000
// Interrupt 65 Priority Mask
12096
#define NVIC_PRI16_INTA_M 0x000000E0
// Interrupt 64 Priority Mask
12097
#define NVIC_PRI16_INTD_S 29
12098
#define NVIC_PRI16_INTC_S 21
12099
#define NVIC_PRI16_INTB_S 13
12100
#define NVIC_PRI16_INTA_S 5
12101
12102
//*****************************************************************************
12103
//
12104
// The following are defines for the bit fields in the NVIC_PRI17 register.
12105
//
12106
//*****************************************************************************
12107
#define NVIC_PRI17_INTD_M 0xE0000000
// Interrupt 71 Priority Mask
12108
#define NVIC_PRI17_INTC_M 0x00E00000
// Interrupt 70 Priority Mask
12109
#define NVIC_PRI17_INTB_M 0x0000E000
// Interrupt 69 Priority Mask
12110
#define NVIC_PRI17_INTA_M 0x000000E0
// Interrupt 68 Priority Mask
12111
#define NVIC_PRI17_INTD_S 29
12112
#define NVIC_PRI17_INTC_S 21
12113
#define NVIC_PRI17_INTB_S 13
12114
#define NVIC_PRI17_INTA_S 5
12115
12116
//*****************************************************************************
12117
//
12118
// The following are defines for the bit fields in the NVIC_PRI18 register.
12119
//
12120
//*****************************************************************************
12121
#define NVIC_PRI18_INTD_M 0xE0000000
// Interrupt 75 Priority Mask
12122
#define NVIC_PRI18_INTC_M 0x00E00000
// Interrupt 74 Priority Mask
12123
#define NVIC_PRI18_INTB_M 0x0000E000
// Interrupt 73 Priority Mask
12124
#define NVIC_PRI18_INTA_M 0x000000E0
// Interrupt 72 Priority Mask
12125
#define NVIC_PRI18_INTD_S 29
12126
#define NVIC_PRI18_INTC_S 21
12127
#define NVIC_PRI18_INTB_S 13
12128
#define NVIC_PRI18_INTA_S 5
12129
12130
//*****************************************************************************
12131
//
12132
// The following are defines for the bit fields in the NVIC_PRI19 register.
12133
//
12134
//*****************************************************************************
12135
#define NVIC_PRI19_INTD_M 0xE0000000
// Interrupt 79 Priority Mask
12136
#define NVIC_PRI19_INTC_M 0x00E00000
// Interrupt 78 Priority Mask
12137
#define NVIC_PRI19_INTB_M 0x0000E000
// Interrupt 77 Priority Mask
12138
#define NVIC_PRI19_INTA_M 0x000000E0
// Interrupt 76 Priority Mask
12139
#define NVIC_PRI19_INTD_S 29
12140
#define NVIC_PRI19_INTC_S 21
12141
#define NVIC_PRI19_INTB_S 13
12142
#define NVIC_PRI19_INTA_S 5
12143
12144
//*****************************************************************************
12145
//
12146
// The following are defines for the bit fields in the NVIC_PRI20 register.
12147
//
12148
//*****************************************************************************
12149
#define NVIC_PRI20_INTD_M 0xE0000000
// Interrupt 83 Priority Mask
12150
#define NVIC_PRI20_INTC_M 0x00E00000
// Interrupt 82 Priority Mask
12151
#define NVIC_PRI20_INTB_M 0x0000E000
// Interrupt 81 Priority Mask
12152
#define NVIC_PRI20_INTA_M 0x000000E0
// Interrupt 80 Priority Mask
12153
#define NVIC_PRI20_INTD_S 29
12154
#define NVIC_PRI20_INTC_S 21
12155
#define NVIC_PRI20_INTB_S 13
12156
#define NVIC_PRI20_INTA_S 5
12157
12158
//*****************************************************************************
12159
//
12160
// The following are defines for the bit fields in the NVIC_PRI21 register.
12161
//
12162
//*****************************************************************************
12163
#define NVIC_PRI21_INTD_M 0xE0000000
// Interrupt 87 Priority Mask
12164
#define NVIC_PRI21_INTC_M 0x00E00000
// Interrupt 86 Priority Mask
12165
#define NVIC_PRI21_INTB_M 0x0000E000
// Interrupt 85 Priority Mask
12166
#define NVIC_PRI21_INTA_M 0x000000E0
// Interrupt 84 Priority Mask
12167
#define NVIC_PRI21_INTD_S 29
12168
#define NVIC_PRI21_INTC_S 21
12169
#define NVIC_PRI21_INTB_S 13
12170
#define NVIC_PRI21_INTA_S 5
12171
12172
//*****************************************************************************
12173
//
12174
// The following are defines for the bit fields in the NVIC_PRI22 register.
12175
//
12176
//*****************************************************************************
12177
#define NVIC_PRI22_INTD_M 0xE0000000
// Interrupt 91 Priority Mask
12178
#define NVIC_PRI22_INTC_M 0x00E00000
// Interrupt 90 Priority Mask
12179
#define NVIC_PRI22_INTB_M 0x0000E000
// Interrupt 89 Priority Mask
12180
#define NVIC_PRI22_INTA_M 0x000000E0
// Interrupt 88 Priority Mask
12181
#define NVIC_PRI22_INTD_S 29
12182
#define NVIC_PRI22_INTC_S 21
12183
#define NVIC_PRI22_INTB_S 13
12184
#define NVIC_PRI22_INTA_S 5
12185
12186
//*****************************************************************************
12187
//
12188
// The following are defines for the bit fields in the NVIC_PRI23 register.
12189
//
12190
//*****************************************************************************
12191
#define NVIC_PRI23_INTD_M 0xE0000000
// Interrupt 95 Priority Mask
12192
#define NVIC_PRI23_INTC_M 0x00E00000
// Interrupt 94 Priority Mask
12193
#define NVIC_PRI23_INTB_M 0x0000E000
// Interrupt 93 Priority Mask
12194
#define NVIC_PRI23_INTA_M 0x000000E0
// Interrupt 92 Priority Mask
12195
#define NVIC_PRI23_INTD_S 29
12196
#define NVIC_PRI23_INTC_S 21
12197
#define NVIC_PRI23_INTB_S 13
12198
#define NVIC_PRI23_INTA_S 5
12199
12200
//*****************************************************************************
12201
//
12202
// The following are defines for the bit fields in the NVIC_PRI24 register.
12203
//
12204
//*****************************************************************************
12205
#define NVIC_PRI24_INTD_M 0xE0000000
// Interrupt 99 Priority Mask
12206
#define NVIC_PRI24_INTC_M 0x00E00000
// Interrupt 98 Priority Mask
12207
#define NVIC_PRI24_INTB_M 0x0000E000
// Interrupt 97 Priority Mask
12208
#define NVIC_PRI24_INTA_M 0x000000E0
// Interrupt 96 Priority Mask
12209
#define NVIC_PRI24_INTD_S 29
12210
#define NVIC_PRI24_INTC_S 21
12211
#define NVIC_PRI24_INTB_S 13
12212
#define NVIC_PRI24_INTA_S 5
12213
12214
//*****************************************************************************
12215
//
12216
// The following are defines for the bit fields in the NVIC_PRI25 register.
12217
//
12218
//*****************************************************************************
12219
#define NVIC_PRI25_INTD_M 0xE0000000
// Interrupt 103 Priority Mask
12220
#define NVIC_PRI25_INTC_M 0x00E00000
// Interrupt 102 Priority Mask
12221
#define NVIC_PRI25_INTB_M 0x0000E000
// Interrupt 101 Priority Mask
12222
#define NVIC_PRI25_INTA_M 0x000000E0
// Interrupt 100 Priority Mask
12223
#define NVIC_PRI25_INTD_S 29
12224
#define NVIC_PRI25_INTC_S 21
12225
#define NVIC_PRI25_INTB_S 13
12226
#define NVIC_PRI25_INTA_S 5
12227
12228
//*****************************************************************************
12229
//
12230
// The following are defines for the bit fields in the NVIC_PRI26 register.
12231
//
12232
//*****************************************************************************
12233
#define NVIC_PRI26_INTD_M 0xE0000000
// Interrupt 107 Priority Mask
12234
#define NVIC_PRI26_INTC_M 0x00E00000
// Interrupt 106 Priority Mask
12235
#define NVIC_PRI26_INTB_M 0x0000E000
// Interrupt 105 Priority Mask
12236
#define NVIC_PRI26_INTA_M 0x000000E0
// Interrupt 104 Priority Mask
12237
#define NVIC_PRI26_INTD_S 29
12238
#define NVIC_PRI26_INTC_S 21
12239
#define NVIC_PRI26_INTB_S 13
12240
#define NVIC_PRI26_INTA_S 5
12241
12242
//*****************************************************************************
12243
//
12244
// The following are defines for the bit fields in the NVIC_PRI27 register.
12245
//
12246
//*****************************************************************************
12247
#define NVIC_PRI27_INTD_M 0xE0000000
// Interrupt 111 Priority Mask
12248
#define NVIC_PRI27_INTC_M 0x00E00000
// Interrupt 110 Priority Mask
12249
#define NVIC_PRI27_INTB_M 0x0000E000
// Interrupt 109 Priority Mask
12250
#define NVIC_PRI27_INTA_M 0x000000E0
// Interrupt 108 Priority Mask
12251
#define NVIC_PRI27_INTD_S 29
12252
#define NVIC_PRI27_INTC_S 21
12253
#define NVIC_PRI27_INTB_S 13
12254
#define NVIC_PRI27_INTA_S 5
12255
12256
//*****************************************************************************
12257
//
12258
// The following are defines for the bit fields in the NVIC_PRI28 register.
12259
//
12260
//*****************************************************************************
12261
#define NVIC_PRI28_INTD_M 0xE0000000
// Interrupt 115 Priority Mask
12262
#define NVIC_PRI28_INTC_M 0x00E00000
// Interrupt 114 Priority Mask
12263
#define NVIC_PRI28_INTB_M 0x0000E000
// Interrupt 113 Priority Mask
12264
#define NVIC_PRI28_INTA_M 0x000000E0
// Interrupt 112 Priority Mask
12265
#define NVIC_PRI28_INTD_S 29
12266
#define NVIC_PRI28_INTC_S 21
12267
#define NVIC_PRI28_INTB_S 13
12268
#define NVIC_PRI28_INTA_S 5
12269
12270
//*****************************************************************************
12271
//
12272
// The following are defines for the bit fields in the NVIC_PRI29 register.
12273
//
12274
//*****************************************************************************
12275
#define NVIC_PRI29_INTD_M 0xE0000000
// Interrupt 119 Priority Mask
12276
#define NVIC_PRI29_INTC_M 0x00E00000
// Interrupt 118 Priority Mask
12277
#define NVIC_PRI29_INTB_M 0x0000E000
// Interrupt 117 Priority Mask
12278
#define NVIC_PRI29_INTA_M 0x000000E0
// Interrupt 116 Priority Mask
12279
#define NVIC_PRI29_INTD_S 29
12280
#define NVIC_PRI29_INTC_S 21
12281
#define NVIC_PRI29_INTB_S 13
12282
#define NVIC_PRI29_INTA_S 5
12283
12284
//*****************************************************************************
12285
//
12286
// The following are defines for the bit fields in the NVIC_PRI30 register.
12287
//
12288
//*****************************************************************************
12289
#define NVIC_PRI30_INTD_M 0xE0000000
// Interrupt 123 Priority Mask
12290
#define NVIC_PRI30_INTC_M 0x00E00000
// Interrupt 122 Priority Mask
12291
#define NVIC_PRI30_INTB_M 0x0000E000
// Interrupt 121 Priority Mask
12292
#define NVIC_PRI30_INTA_M 0x000000E0
// Interrupt 120 Priority Mask
12293
#define NVIC_PRI30_INTD_S 29
12294
#define NVIC_PRI30_INTC_S 21
12295
#define NVIC_PRI30_INTB_S 13
12296
#define NVIC_PRI30_INTA_S 5
12297
12298
//*****************************************************************************
12299
//
12300
// The following are defines for the bit fields in the NVIC_PRI31 register.
12301
//
12302
//*****************************************************************************
12303
#define NVIC_PRI31_INTD_M 0xE0000000
// Interrupt 127 Priority Mask
12304
#define NVIC_PRI31_INTC_M 0x00E00000
// Interrupt 126 Priority Mask
12305
#define NVIC_PRI31_INTB_M 0x0000E000
// Interrupt 125 Priority Mask
12306
#define NVIC_PRI31_INTA_M 0x000000E0
// Interrupt 124 Priority Mask
12307
#define NVIC_PRI31_INTD_S 29
12308
#define NVIC_PRI31_INTC_S 21
12309
#define NVIC_PRI31_INTB_S 13
12310
#define NVIC_PRI31_INTA_S 5
12311
12312
//*****************************************************************************
12313
//
12314
// The following are defines for the bit fields in the NVIC_PRI32 register.
12315
//
12316
//*****************************************************************************
12317
#define NVIC_PRI32_INTD_M 0xE0000000
// Interrupt 131 Priority Mask
12318
#define NVIC_PRI32_INTC_M 0x00E00000
// Interrupt 130 Priority Mask
12319
#define NVIC_PRI32_INTB_M 0x0000E000
// Interrupt 129 Priority Mask
12320
#define NVIC_PRI32_INTA_M 0x000000E0
// Interrupt 128 Priority Mask
12321
#define NVIC_PRI32_INTD_S 29
12322
#define NVIC_PRI32_INTC_S 21
12323
#define NVIC_PRI32_INTB_S 13
12324
#define NVIC_PRI32_INTA_S 5
12325
12326
//*****************************************************************************
12327
//
12328
// The following are defines for the bit fields in the NVIC_PRI33 register.
12329
//
12330
//*****************************************************************************
12331
#define NVIC_PRI33_INTD_M 0xE0000000
// Interrupt Priority for Interrupt
12332
// [4n+3]
12333
#define NVIC_PRI33_INTC_M 0x00E00000
// Interrupt Priority for Interrupt
12334
// [4n+2]
12335
#define NVIC_PRI33_INTB_M 0x0000E000
// Interrupt Priority for Interrupt
12336
// [4n+1]
12337
#define NVIC_PRI33_INTA_M 0x000000E0
// Interrupt Priority for Interrupt
12338
// [4n]
12339
#define NVIC_PRI33_INTD_S 29
12340
#define NVIC_PRI33_INTC_S 21
12341
#define NVIC_PRI33_INTB_S 13
12342
#define NVIC_PRI33_INTA_S 5
12343
12344
//*****************************************************************************
12345
//
12346
// The following are defines for the bit fields in the NVIC_PRI34 register.
12347
//
12348
//*****************************************************************************
12349
#define NVIC_PRI34_INTD_M 0xE0000000
// Interrupt Priority for Interrupt
12350
// [4n+3]
12351
#define NVIC_PRI34_INTC_M 0x00E00000
// Interrupt Priority for Interrupt
12352
// [4n+2]
12353
#define NVIC_PRI34_INTB_M 0x0000E000
// Interrupt Priority for Interrupt
12354
// [4n+1]
12355
#define NVIC_PRI34_INTA_M 0x000000E0
// Interrupt Priority for Interrupt
12356
// [4n]
12357
#define NVIC_PRI34_INTD_S 29
12358
#define NVIC_PRI34_INTC_S 21
12359
#define NVIC_PRI34_INTB_S 13
12360
#define NVIC_PRI34_INTA_S 5
12361
12362
//*****************************************************************************
12363
//
12364
// The following are defines for the bit fields in the NVIC_CPUID register.
12365
//
12366
//*****************************************************************************
12367
#define NVIC_CPUID_IMP_M 0xFF000000
// Implementer Code
12368
#define NVIC_CPUID_IMP_ARM 0x41000000
// ARM
12369
#define NVIC_CPUID_VAR_M 0x00F00000
// Variant Number
12370
#define NVIC_CPUID_CON_M 0x000F0000
// Constant
12371
#define NVIC_CPUID_PARTNO_M 0x0000FFF0
// Part Number
12372
#define NVIC_CPUID_PARTNO_CM4 0x0000C240
// Cortex-M4 processor
12373
#define NVIC_CPUID_REV_M 0x0000000F
// Revision Number
12374
12375
//*****************************************************************************
12376
//
12377
// The following are defines for the bit fields in the NVIC_INT_CTRL register.
12378
//
12379
//*****************************************************************************
12380
#define NVIC_INT_CTRL_NMI_SET 0x80000000
// NMI Set Pending
12381
#define NVIC_INT_CTRL_PEND_SV 0x10000000
// PendSV Set Pending
12382
#define NVIC_INT_CTRL_UNPEND_SV 0x08000000
// PendSV Clear Pending
12383
#define NVIC_INT_CTRL_PENDSTSET 0x04000000
// SysTick Set Pending
12384
#define NVIC_INT_CTRL_PENDSTCLR 0x02000000
// SysTick Clear Pending
12385
#define NVIC_INT_CTRL_ISR_PRE 0x00800000
// Debug Interrupt Handling
12386
#define NVIC_INT_CTRL_ISR_PEND 0x00400000
// Interrupt Pending
12387
#define NVIC_INT_CTRL_VEC_PEN_M 0x000FF000
// Interrupt Pending Vector Number
12388
#define NVIC_INT_CTRL_VEC_PEN_NMI \
12389
0x00002000
// NMI
12390
#define NVIC_INT_CTRL_VEC_PEN_HARD \
12391
0x00003000
// Hard fault
12392
#define NVIC_INT_CTRL_VEC_PEN_MEM \
12393
0x00004000
// Memory management fault
12394
#define NVIC_INT_CTRL_VEC_PEN_BUS \
12395
0x00005000
// Bus fault
12396
#define NVIC_INT_CTRL_VEC_PEN_USG \
12397
0x00006000
// Usage fault
12398
#define NVIC_INT_CTRL_VEC_PEN_SVC \
12399
0x0000B000
// SVCall
12400
#define NVIC_INT_CTRL_VEC_PEN_PNDSV \
12401
0x0000E000
// PendSV
12402
#define NVIC_INT_CTRL_VEC_PEN_TICK \
12403
0x0000F000
// SysTick
12404
#define NVIC_INT_CTRL_RET_BASE 0x00000800
// Return to Base
12405
#define NVIC_INT_CTRL_VEC_ACT_M 0x000000FF
// Interrupt Pending Vector Number
12406
#define NVIC_INT_CTRL_VEC_ACT_S 0
12407
12408
//*****************************************************************************
12409
//
12410
// The following are defines for the bit fields in the NVIC_VTABLE register.
12411
//
12412
//*****************************************************************************
12413
#define NVIC_VTABLE_OFFSET_M 0xFFFFFC00
// Vector Table Offset
12414
#define NVIC_VTABLE_OFFSET_S 10
12415
12416
//*****************************************************************************
12417
//
12418
// The following are defines for the bit fields in the NVIC_APINT register.
12419
//
12420
//*****************************************************************************
12421
#define NVIC_APINT_VECTKEY_M 0xFFFF0000
// Register Key
12422
#define NVIC_APINT_VECTKEY 0x05FA0000
// Vector key
12423
#define NVIC_APINT_ENDIANESS 0x00008000
// Data Endianess
12424
#define NVIC_APINT_PRIGROUP_M 0x00000700
// Interrupt Priority Grouping
12425
#define NVIC_APINT_PRIGROUP_7_1 0x00000000
// Priority group 7.1 split
12426
#define NVIC_APINT_PRIGROUP_6_2 0x00000100
// Priority group 6.2 split
12427
#define NVIC_APINT_PRIGROUP_5_3 0x00000200
// Priority group 5.3 split
12428
#define NVIC_APINT_PRIGROUP_4_4 0x00000300
// Priority group 4.4 split
12429
#define NVIC_APINT_PRIGROUP_3_5 0x00000400
// Priority group 3.5 split
12430
#define NVIC_APINT_PRIGROUP_2_6 0x00000500
// Priority group 2.6 split
12431
#define NVIC_APINT_PRIGROUP_1_7 0x00000600
// Priority group 1.7 split
12432
#define NVIC_APINT_PRIGROUP_0_8 0x00000700
// Priority group 0.8 split
12433
#define NVIC_APINT_SYSRESETREQ 0x00000004
// System Reset Request
12434
#define NVIC_APINT_VECT_CLR_ACT 0x00000002
// Clear Active NMI / Fault
12435
#define NVIC_APINT_VECT_RESET 0x00000001
// System Reset
12436
12437
//*****************************************************************************
12438
//
12439
// The following are defines for the bit fields in the NVIC_SYS_CTRL register.
12440
//
12441
//*****************************************************************************
12442
#define NVIC_SYS_CTRL_SEVONPEND 0x00000010
// Wake Up on Pending
12443
#define NVIC_SYS_CTRL_SLEEPDEEP 0x00000004
// Deep Sleep Enable
12444
#define NVIC_SYS_CTRL_SLEEPEXIT 0x00000002
// Sleep on ISR Exit
12445
12446
//*****************************************************************************
12447
//
12448
// The following are defines for the bit fields in the NVIC_CFG_CTRL register.
12449
//
12450
//*****************************************************************************
12451
#define NVIC_CFG_CTRL_STKALIGN 0x00000200
// Stack Alignment on Exception
12452
// Entry
12453
#define NVIC_CFG_CTRL_BFHFNMIGN 0x00000100
// Ignore Bus Fault in NMI and
12454
// Fault
12455
#define NVIC_CFG_CTRL_DIV0 0x00000010
// Trap on Divide by 0
12456
#define NVIC_CFG_CTRL_UNALIGNED 0x00000008
// Trap on Unaligned Access
12457
#define NVIC_CFG_CTRL_MAIN_PEND 0x00000002
// Allow Main Interrupt Trigger
12458
#define NVIC_CFG_CTRL_BASE_THR 0x00000001
// Thread State Control
12459
12460
//*****************************************************************************
12461
//
12462
// The following are defines for the bit fields in the NVIC_SYS_PRI1 register.
12463
//
12464
//*****************************************************************************
12465
#define NVIC_SYS_PRI1_USAGE_M 0x00E00000
// Usage Fault Priority
12466
#define NVIC_SYS_PRI1_BUS_M 0x0000E000
// Bus Fault Priority
12467
#define NVIC_SYS_PRI1_MEM_M 0x000000E0
// Memory Management Fault Priority
12468
#define NVIC_SYS_PRI1_USAGE_S 21
12469
#define NVIC_SYS_PRI1_BUS_S 13
12470
#define NVIC_SYS_PRI1_MEM_S 5
12471
12472
//*****************************************************************************
12473
//
12474
// The following are defines for the bit fields in the NVIC_SYS_PRI2 register.
12475
//
12476
//*****************************************************************************
12477
#define NVIC_SYS_PRI2_SVC_M 0xE0000000
// SVCall Priority
12478
#define NVIC_SYS_PRI2_SVC_S 29
12479
12480
//*****************************************************************************
12481
//
12482
// The following are defines for the bit fields in the NVIC_SYS_PRI3 register.
12483
//
12484
//*****************************************************************************
12485
#define NVIC_SYS_PRI3_TICK_M 0xE0000000
// SysTick Exception Priority
12486
#define NVIC_SYS_PRI3_PENDSV_M 0x00E00000
// PendSV Priority
12487
#define NVIC_SYS_PRI3_DEBUG_M 0x000000E0
// Debug Priority
12488
#define NVIC_SYS_PRI3_TICK_S 29
12489
#define NVIC_SYS_PRI3_PENDSV_S 21
12490
#define NVIC_SYS_PRI3_DEBUG_S 5
12491
12492
//*****************************************************************************
12493
//
12494
// The following are defines for the bit fields in the NVIC_SYS_HND_CTRL
12495
// register.
12496
//
12497
//*****************************************************************************
12498
#define NVIC_SYS_HND_CTRL_USAGE 0x00040000
// Usage Fault Enable
12499
#define NVIC_SYS_HND_CTRL_BUS 0x00020000
// Bus Fault Enable
12500
#define NVIC_SYS_HND_CTRL_MEM 0x00010000
// Memory Management Fault Enable
12501
#define NVIC_SYS_HND_CTRL_SVC 0x00008000
// SVC Call Pending
12502
#define NVIC_SYS_HND_CTRL_BUSP 0x00004000
// Bus Fault Pending
12503
#define NVIC_SYS_HND_CTRL_MEMP 0x00002000
// Memory Management Fault Pending
12504
#define NVIC_SYS_HND_CTRL_USAGEP \
12505
0x00001000
// Usage Fault Pending
12506
#define NVIC_SYS_HND_CTRL_TICK 0x00000800
// SysTick Exception Active
12507
#define NVIC_SYS_HND_CTRL_PNDSV 0x00000400
// PendSV Exception Active
12508
#define NVIC_SYS_HND_CTRL_MON 0x00000100
// Debug Monitor Active
12509
#define NVIC_SYS_HND_CTRL_SVCA 0x00000080
// SVC Call Active
12510
#define NVIC_SYS_HND_CTRL_USGA 0x00000008
// Usage Fault Active
12511
#define NVIC_SYS_HND_CTRL_BUSA 0x00000002
// Bus Fault Active
12512
#define NVIC_SYS_HND_CTRL_MEMA 0x00000001
// Memory Management Fault Active
12513
12514
//*****************************************************************************
12515
//
12516
// The following are defines for the bit fields in the NVIC_FAULT_STAT
12517
// register.
12518
//
12519
//*****************************************************************************
12520
#define NVIC_FAULT_STAT_DIV0 0x02000000
// Divide-by-Zero Usage Fault
12521
#define NVIC_FAULT_STAT_UNALIGN 0x01000000
// Unaligned Access Usage Fault
12522
#define NVIC_FAULT_STAT_NOCP 0x00080000
// No Coprocessor Usage Fault
12523
#define NVIC_FAULT_STAT_INVPC 0x00040000
// Invalid PC Load Usage Fault
12524
#define NVIC_FAULT_STAT_INVSTAT 0x00020000
// Invalid State Usage Fault
12525
#define NVIC_FAULT_STAT_UNDEF 0x00010000
// Undefined Instruction Usage
12526
// Fault
12527
#define NVIC_FAULT_STAT_BFARV 0x00008000
// Bus Fault Address Register Valid
12528
#define NVIC_FAULT_STAT_BLSPERR 0x00002000
// Bus Fault on Floating-Point Lazy
12529
// State Preservation
12530
#define NVIC_FAULT_STAT_BSTKE 0x00001000
// Stack Bus Fault
12531
#define NVIC_FAULT_STAT_BUSTKE 0x00000800
// Unstack Bus Fault
12532
#define NVIC_FAULT_STAT_IMPRE 0x00000400
// Imprecise Data Bus Error
12533
#define NVIC_FAULT_STAT_PRECISE 0x00000200
// Precise Data Bus Error
12534
#define NVIC_FAULT_STAT_IBUS 0x00000100
// Instruction Bus Error
12535
#define NVIC_FAULT_STAT_MMARV 0x00000080
// Memory Management Fault Address
12536
// Register Valid
12537
#define NVIC_FAULT_STAT_MLSPERR 0x00000020
// Memory Management Fault on
12538
// Floating-Point Lazy State
12539
// Preservation
12540
#define NVIC_FAULT_STAT_MSTKE 0x00000010
// Stack Access Violation
12541
#define NVIC_FAULT_STAT_MUSTKE 0x00000008
// Unstack Access Violation
12542
#define NVIC_FAULT_STAT_DERR 0x00000002
// Data Access Violation
12543
#define NVIC_FAULT_STAT_IERR 0x00000001
// Instruction Access Violation
12544
12545
//*****************************************************************************
12546
//
12547
// The following are defines for the bit fields in the NVIC_HFAULT_STAT
12548
// register.
12549
//
12550
//*****************************************************************************
12551
#define NVIC_HFAULT_STAT_DBG 0x80000000
// Debug Event
12552
#define NVIC_HFAULT_STAT_FORCED 0x40000000
// Forced Hard Fault
12553
#define NVIC_HFAULT_STAT_VECT 0x00000002
// Vector Table Read Fault
12554
12555
//*****************************************************************************
12556
//
12557
// The following are defines for the bit fields in the NVIC_DEBUG_STAT
12558
// register.
12559
//
12560
//*****************************************************************************
12561
#define NVIC_DEBUG_STAT_EXTRNL 0x00000010
// EDBGRQ asserted
12562
#define NVIC_DEBUG_STAT_VCATCH 0x00000008
// Vector catch
12563
#define NVIC_DEBUG_STAT_DWTTRAP 0x00000004
// DWT match
12564
#define NVIC_DEBUG_STAT_BKPT 0x00000002
// Breakpoint instruction
12565
#define NVIC_DEBUG_STAT_HALTED 0x00000001
// Halt request
12566
12567
//*****************************************************************************
12568
//
12569
// The following are defines for the bit fields in the NVIC_MM_ADDR register.
12570
//
12571
//*****************************************************************************
12572
#define NVIC_MM_ADDR_M 0xFFFFFFFF
// Fault Address
12573
#define NVIC_MM_ADDR_S 0
12574
12575
//*****************************************************************************
12576
//
12577
// The following are defines for the bit fields in the NVIC_FAULT_ADDR
12578
// register.
12579
//
12580
//*****************************************************************************
12581
#define NVIC_FAULT_ADDR_M 0xFFFFFFFF
// Fault Address
12582
#define NVIC_FAULT_ADDR_S 0
12583
12584
//*****************************************************************************
12585
//
12586
// The following are defines for the bit fields in the NVIC_CPAC register.
12587
//
12588
//*****************************************************************************
12589
#define NVIC_CPAC_CP11_M 0x00C00000
// CP11 Coprocessor Access
12590
// Privilege
12591
#define NVIC_CPAC_CP11_DIS 0x00000000
// Access Denied
12592
#define NVIC_CPAC_CP11_PRIV 0x00400000
// Privileged Access Only
12593
#define NVIC_CPAC_CP11_FULL 0x00C00000
// Full Access
12594
#define NVIC_CPAC_CP10_M 0x00300000
// CP10 Coprocessor Access
12595
// Privilege
12596
#define NVIC_CPAC_CP10_DIS 0x00000000
// Access Denied
12597
#define NVIC_CPAC_CP10_PRIV 0x00100000
// Privileged Access Only
12598
#define NVIC_CPAC_CP10_FULL 0x00300000
// Full Access
12599
12600
//*****************************************************************************
12601
//
12602
// The following are defines for the bit fields in the NVIC_MPU_TYPE register.
12603
//
12604
//*****************************************************************************
12605
#define NVIC_MPU_TYPE_IREGION_M 0x00FF0000
// Number of I Regions
12606
#define NVIC_MPU_TYPE_DREGION_M 0x0000FF00
// Number of D Regions
12607
#define NVIC_MPU_TYPE_SEPARATE 0x00000001
// Separate or Unified MPU
12608
#define NVIC_MPU_TYPE_IREGION_S 16
12609
#define NVIC_MPU_TYPE_DREGION_S 8
12610
12611
//*****************************************************************************
12612
//
12613
// The following are defines for the bit fields in the NVIC_MPU_CTRL register.
12614
//
12615
//*****************************************************************************
12616
#define NVIC_MPU_CTRL_PRIVDEFEN 0x00000004
// MPU Default Region
12617
#define NVIC_MPU_CTRL_HFNMIENA 0x00000002
// MPU Enabled During Faults
12618
#define NVIC_MPU_CTRL_ENABLE 0x00000001
// MPU Enable
12619
12620
//*****************************************************************************
12621
//
12622
// The following are defines for the bit fields in the NVIC_MPU_NUMBER
12623
// register.
12624
//
12625
//*****************************************************************************
12626
#define NVIC_MPU_NUMBER_M 0x00000007
// MPU Region to Access
12627
#define NVIC_MPU_NUMBER_S 0
12628
12629
//*****************************************************************************
12630
//
12631
// The following are defines for the bit fields in the NVIC_MPU_BASE register.
12632
//
12633
//*****************************************************************************
12634
#define NVIC_MPU_BASE_ADDR_M 0xFFFFFFE0
// Base Address Mask
12635
#define NVIC_MPU_BASE_VALID 0x00000010
// Region Number Valid
12636
#define NVIC_MPU_BASE_REGION_M 0x00000007
// Region Number
12637
#define NVIC_MPU_BASE_ADDR_S 5
12638
#define NVIC_MPU_BASE_REGION_S 0
12639
12640
//*****************************************************************************
12641
//
12642
// The following are defines for the bit fields in the NVIC_MPU_ATTR register.
12643
//
12644
//*****************************************************************************
12645
#define NVIC_MPU_ATTR_XN 0x10000000
// Instruction Access Disable
12646
#define NVIC_MPU_ATTR_AP_M 0x07000000
// Access Privilege
12647
#define NVIC_MPU_ATTR_TEX_M 0x00380000
// Type Extension Mask
12648
#define NVIC_MPU_ATTR_SHAREABLE 0x00040000
// Shareable
12649
#define NVIC_MPU_ATTR_CACHEABLE 0x00020000
// Cacheable
12650
#define NVIC_MPU_ATTR_BUFFRABLE 0x00010000
// Bufferable
12651
#define NVIC_MPU_ATTR_SRD_M 0x0000FF00
// Subregion Disable Bits
12652
#define NVIC_MPU_ATTR_SIZE_M 0x0000003E
// Region Size Mask
12653
#define NVIC_MPU_ATTR_ENABLE 0x00000001
// Region Enable
12654
12655
//*****************************************************************************
12656
//
12657
// The following are defines for the bit fields in the NVIC_MPU_BASE1 register.
12658
//
12659
//*****************************************************************************
12660
#define NVIC_MPU_BASE1_ADDR_M 0xFFFFFFE0
// Base Address Mask
12661
#define NVIC_MPU_BASE1_VALID 0x00000010
// Region Number Valid
12662
#define NVIC_MPU_BASE1_REGION_M 0x00000007
// Region Number
12663
#define NVIC_MPU_BASE1_ADDR_S 5
12664
#define NVIC_MPU_BASE1_REGION_S 0
12665
12666
//*****************************************************************************
12667
//
12668
// The following are defines for the bit fields in the NVIC_MPU_ATTR1 register.
12669
//
12670
//*****************************************************************************
12671
#define NVIC_MPU_ATTR1_XN 0x10000000
// Instruction Access Disable
12672
#define NVIC_MPU_ATTR1_AP_M 0x07000000
// Access Privilege
12673
#define NVIC_MPU_ATTR1_TEX_M 0x00380000
// Type Extension Mask
12674
#define NVIC_MPU_ATTR1_SHAREABLE \
12675
0x00040000
// Shareable
12676
#define NVIC_MPU_ATTR1_CACHEABLE \
12677
0x00020000
// Cacheable
12678
#define NVIC_MPU_ATTR1_BUFFRABLE \
12679
0x00010000
// Bufferable
12680
#define NVIC_MPU_ATTR1_SRD_M 0x0000FF00
// Subregion Disable Bits
12681
#define NVIC_MPU_ATTR1_SIZE_M 0x0000003E
// Region Size Mask
12682
#define NVIC_MPU_ATTR1_ENABLE 0x00000001
// Region Enable
12683
12684
//*****************************************************************************
12685
//
12686
// The following are defines for the bit fields in the NVIC_MPU_BASE2 register.
12687
//
12688
//*****************************************************************************
12689
#define NVIC_MPU_BASE2_ADDR_M 0xFFFFFFE0
// Base Address Mask
12690
#define NVIC_MPU_BASE2_VALID 0x00000010
// Region Number Valid
12691
#define NVIC_MPU_BASE2_REGION_M 0x00000007
// Region Number
12692
#define NVIC_MPU_BASE2_ADDR_S 5
12693
#define NVIC_MPU_BASE2_REGION_S 0
12694
12695
//*****************************************************************************
12696
//
12697
// The following are defines for the bit fields in the NVIC_MPU_ATTR2 register.
12698
//
12699
//*****************************************************************************
12700
#define NVIC_MPU_ATTR2_XN 0x10000000
// Instruction Access Disable
12701
#define NVIC_MPU_ATTR2_AP_M 0x07000000
// Access Privilege
12702
#define NVIC_MPU_ATTR2_TEX_M 0x00380000
// Type Extension Mask
12703
#define NVIC_MPU_ATTR2_SHAREABLE \
12704
0x00040000
// Shareable
12705
#define NVIC_MPU_ATTR2_CACHEABLE \
12706
0x00020000
// Cacheable
12707
#define NVIC_MPU_ATTR2_BUFFRABLE \
12708
0x00010000
// Bufferable
12709
#define NVIC_MPU_ATTR2_SRD_M 0x0000FF00
// Subregion Disable Bits
12710
#define NVIC_MPU_ATTR2_SIZE_M 0x0000003E
// Region Size Mask
12711
#define NVIC_MPU_ATTR2_ENABLE 0x00000001
// Region Enable
12712
12713
//*****************************************************************************
12714
//
12715
// The following are defines for the bit fields in the NVIC_MPU_BASE3 register.
12716
//
12717
//*****************************************************************************
12718
#define NVIC_MPU_BASE3_ADDR_M 0xFFFFFFE0
// Base Address Mask
12719
#define NVIC_MPU_BASE3_VALID 0x00000010
// Region Number Valid
12720
#define NVIC_MPU_BASE3_REGION_M 0x00000007
// Region Number
12721
#define NVIC_MPU_BASE3_ADDR_S 5
12722
#define NVIC_MPU_BASE3_REGION_S 0
12723
12724
//*****************************************************************************
12725
//
12726
// The following are defines for the bit fields in the NVIC_MPU_ATTR3 register.
12727
//
12728
//*****************************************************************************
12729
#define NVIC_MPU_ATTR3_XN 0x10000000
// Instruction Access Disable
12730
#define NVIC_MPU_ATTR3_AP_M 0x07000000
// Access Privilege
12731
#define NVIC_MPU_ATTR3_TEX_M 0x00380000
// Type Extension Mask
12732
#define NVIC_MPU_ATTR3_SHAREABLE \
12733
0x00040000
// Shareable
12734
#define NVIC_MPU_ATTR3_CACHEABLE \
12735
0x00020000
// Cacheable
12736
#define NVIC_MPU_ATTR3_BUFFRABLE \
12737
0x00010000
// Bufferable
12738
#define NVIC_MPU_ATTR3_SRD_M 0x0000FF00
// Subregion Disable Bits
12739
#define NVIC_MPU_ATTR3_SIZE_M 0x0000003E
// Region Size Mask
12740
#define NVIC_MPU_ATTR3_ENABLE 0x00000001
// Region Enable
12741
12742
//*****************************************************************************
12743
//
12744
// The following are defines for the bit fields in the NVIC_DBG_CTRL register.
12745
//
12746
//*****************************************************************************
12747
#define NVIC_DBG_CTRL_DBGKEY_M 0xFFFF0000
// Debug key mask
12748
#define NVIC_DBG_CTRL_DBGKEY 0xA05F0000
// Debug key
12749
#define NVIC_DBG_CTRL_S_RESET_ST \
12750
0x02000000
// Core has reset since last read
12751
#define NVIC_DBG_CTRL_S_RETIRE_ST \
12752
0x01000000
// Core has executed insruction
12753
// since last read
12754
#define NVIC_DBG_CTRL_S_LOCKUP 0x00080000
// Core is locked up
12755
#define NVIC_DBG_CTRL_S_SLEEP 0x00040000
// Core is sleeping
12756
#define NVIC_DBG_CTRL_S_HALT 0x00020000
// Core status on halt
12757
#define NVIC_DBG_CTRL_S_REGRDY 0x00010000
// Register read/write available
12758
#define NVIC_DBG_CTRL_C_SNAPSTALL \
12759
0x00000020
// Breaks a stalled load/store
12760
#define NVIC_DBG_CTRL_C_MASKINT 0x00000008
// Mask interrupts when stepping
12761
#define NVIC_DBG_CTRL_C_STEP 0x00000004
// Step the core
12762
#define NVIC_DBG_CTRL_C_HALT 0x00000002
// Halt the core
12763
#define NVIC_DBG_CTRL_C_DEBUGEN 0x00000001
// Enable debug
12764
12765
//*****************************************************************************
12766
//
12767
// The following are defines for the bit fields in the NVIC_DBG_XFER register.
12768
//
12769
//*****************************************************************************
12770
#define NVIC_DBG_XFER_REG_WNR 0x00010000
// Write or not read
12771
#define NVIC_DBG_XFER_REG_SEL_M 0x0000001F
// Register
12772
#define NVIC_DBG_XFER_REG_R0 0x00000000
// Register R0
12773
#define NVIC_DBG_XFER_REG_R1 0x00000001
// Register R1
12774
#define NVIC_DBG_XFER_REG_R2 0x00000002
// Register R2
12775
#define NVIC_DBG_XFER_REG_R3 0x00000003
// Register R3
12776
#define NVIC_DBG_XFER_REG_R4 0x00000004
// Register R4
12777
#define NVIC_DBG_XFER_REG_R5 0x00000005
// Register R5
12778
#define NVIC_DBG_XFER_REG_R6 0x00000006
// Register R6
12779
#define NVIC_DBG_XFER_REG_R7 0x00000007
// Register R7
12780
#define NVIC_DBG_XFER_REG_R8 0x00000008
// Register R8
12781
#define NVIC_DBG_XFER_REG_R9 0x00000009
// Register R9
12782
#define NVIC_DBG_XFER_REG_R10 0x0000000A
// Register R10
12783
#define NVIC_DBG_XFER_REG_R11 0x0000000B
// Register R11
12784
#define NVIC_DBG_XFER_REG_R12 0x0000000C
// Register R12
12785
#define NVIC_DBG_XFER_REG_R13 0x0000000D
// Register R13
12786
#define NVIC_DBG_XFER_REG_R14 0x0000000E
// Register R14
12787
#define NVIC_DBG_XFER_REG_R15 0x0000000F
// Register R15
12788
#define NVIC_DBG_XFER_REG_FLAGS 0x00000010
// xPSR/Flags register
12789
#define NVIC_DBG_XFER_REG_MSP 0x00000011
// Main SP
12790
#define NVIC_DBG_XFER_REG_PSP 0x00000012
// Process SP
12791
#define NVIC_DBG_XFER_REG_DSP 0x00000013
// Deep SP
12792
#define NVIC_DBG_XFER_REG_CFBP 0x00000014
// Control/Fault/BasePri/PriMask
12793
12794
//*****************************************************************************
12795
//
12796
// The following are defines for the bit fields in the NVIC_DBG_DATA register.
12797
//
12798
//*****************************************************************************
12799
#define NVIC_DBG_DATA_M 0xFFFFFFFF
// Data temporary cache
12800
#define NVIC_DBG_DATA_S 0
12801
12802
//*****************************************************************************
12803
//
12804
// The following are defines for the bit fields in the NVIC_DBG_INT register.
12805
//
12806
//*****************************************************************************
12807
#define NVIC_DBG_INT_HARDERR 0x00000400
// Debug trap on hard fault
12808
#define NVIC_DBG_INT_INTERR 0x00000200
// Debug trap on interrupt errors
12809
#define NVIC_DBG_INT_BUSERR 0x00000100
// Debug trap on bus error
12810
#define NVIC_DBG_INT_STATERR 0x00000080
// Debug trap on usage fault state
12811
#define NVIC_DBG_INT_CHKERR 0x00000040
// Debug trap on usage fault check
12812
#define NVIC_DBG_INT_NOCPERR 0x00000020
// Debug trap on coprocessor error
12813
#define NVIC_DBG_INT_MMERR 0x00000010
// Debug trap on mem manage fault
12814
#define NVIC_DBG_INT_RESET 0x00000008
// Core reset status
12815
#define NVIC_DBG_INT_RSTPENDCLR 0x00000004
// Clear pending core reset
12816
#define NVIC_DBG_INT_RSTPENDING 0x00000002
// Core reset is pending
12817
#define NVIC_DBG_INT_RSTVCATCH 0x00000001
// Reset vector catch
12818
12819
//*****************************************************************************
12820
//
12821
// The following are defines for the bit fields in the NVIC_SW_TRIG register.
12822
//
12823
//*****************************************************************************
12824
#define NVIC_SW_TRIG_INTID_M 0x000000FF
// Interrupt ID
12825
#define NVIC_SW_TRIG_INTID_S 0
12826
12827
//*****************************************************************************
12828
//
12829
// The following are defines for the bit fields in the NVIC_FPCC register.
12830
//
12831
//*****************************************************************************
12832
#define NVIC_FPCC_ASPEN 0x80000000
// Automatic State Preservation
12833
// Enable
12834
#define NVIC_FPCC_LSPEN 0x40000000
// Lazy State Preservation Enable
12835
#define NVIC_FPCC_MONRDY 0x00000100
// Monitor Ready
12836
#define NVIC_FPCC_BFRDY 0x00000040
// Bus Fault Ready
12837
#define NVIC_FPCC_MMRDY 0x00000020
// Memory Management Fault Ready
12838
#define NVIC_FPCC_HFRDY 0x00000010
// Hard Fault Ready
12839
#define NVIC_FPCC_THREAD 0x00000008
// Thread Mode
12840
#define NVIC_FPCC_USER 0x00000002
// User Privilege Level
12841
#define NVIC_FPCC_LSPACT 0x00000001
// Lazy State Preservation Active
12842
12843
//*****************************************************************************
12844
//
12845
// The following are defines for the bit fields in the NVIC_FPCA register.
12846
//
12847
//*****************************************************************************
12848
#define NVIC_FPCA_ADDRESS_M 0xFFFFFFF8
// Address
12849
#define NVIC_FPCA_ADDRESS_S 3
12850
12851
//*****************************************************************************
12852
//
12853
// The following are defines for the bit fields in the NVIC_FPDSC register.
12854
//
12855
//*****************************************************************************
12856
#define NVIC_FPDSC_AHP 0x04000000
// AHP Bit Default
12857
#define NVIC_FPDSC_DN 0x02000000
// DN Bit Default
12858
#define NVIC_FPDSC_FZ 0x01000000
// FZ Bit Default
12859
#define NVIC_FPDSC_RMODE_M 0x00C00000
// RMODE Bit Default
12860
#define NVIC_FPDSC_RMODE_RN 0x00000000
// Round to Nearest (RN) mode
12861
#define NVIC_FPDSC_RMODE_RP 0x00400000
// Round towards Plus Infinity (RP)
12862
// mode
12863
#define NVIC_FPDSC_RMODE_RM 0x00800000
// Round towards Minus Infinity
12864
// (RM) mode
12865
#define NVIC_FPDSC_RMODE_RZ 0x00C00000
// Round towards Zero (RZ) mode
12866
12867
//*****************************************************************************
12868
//
12869
// The following definitions are deprecated.
12870
//
12871
//*****************************************************************************
12872
#ifndef DEPRECATED
12873
#define SYSCTL_DID0_CLASS_BLIZZARD \
12874
0x00050000
// Tiva(TM) C Series TM4C123-class
12875
// microcontrollers
12876
12877
#endif
12878
12879
#endif
// __TM4C123GH6PM_H__
SikendeRTOS
SikenderOS
HAL
inc
tm4c123gh6pm.h
Generated by
1.9.4