YAHAL
Yet Another Hardware Abstraction Library
Loading...
Searching...
No Matches
msp432p401r_classic.h
1/******************************************************************************
2*
3* Copyright (C) 2012 - 2017 Texas Instruments Incorporated - http://www.ti.com/
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions
7* are met:
8*
9* Redistributions of source code must retain the above copyright
10* notice, this list of conditions and the following disclaimer.
11*
12* Redistributions in binary form must reproduce the above copyright
13* notice, this list of conditions and the following disclaimer in the
14* documentation and/or other materials provided with the
15* distribution.
16*
17* Neither the name of Texas Instruments Incorporated nor the names of
18* its contributors may be used to endorse or promote products derived
19* from this software without specific prior written permission.
20*
21* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32*
33* MSP432P401R Register Definitions
34*
35* This file includes MSP430 style component and register definitions
36* for legacy components re-used in MSP432
37*
38* File creation date: 2017-12-06
39*
40******************************************************************************/
41
42#ifndef __MSP432P401R_CLASSIC_H__
43#define __MSP432P401R_CLASSIC_H__
44
45/* Use standard integer types with explicit width */
46#include <stdint.h>
47
48#ifdef __cplusplus
49 extern "C" {
50#endif
51
52/******************************************************************************
53* Device memory map *
54******************************************************************************/
55#define __MAIN_MEMORY_START__ (0x00000000)
56#define __MAIN_MEMORY_END__ (0x0003FFFF)
57#define __BSL_MEMORY_START__ (0x00202000)
58#define __BSL_MEMORY_END__ (0x00203FFF)
59#define __SRAM_START__ (0x20000000)
60#define __SRAM_END__ (0x2000FFFF)
62/******************************************************************************
63* MSP-format peripheral registers *
64******************************************************************************/
65
66/******************************************************************************
67* AES256 Registers
68******************************************************************************/
69#define AESACTL0 (HWREG16(0x40003C00))
70#define AESACTL1 (HWREG16(0x40003C02))
71#define AESASTAT (HWREG16(0x40003C04))
72#define AESAKEY (HWREG16(0x40003C06))
73#define AESADIN (HWREG16(0x40003C08))
74#define AESADOUT (HWREG16(0x40003C0A))
75#define AESAXDIN (HWREG16(0x40003C0C))
76#define AESAXIN (HWREG16(0x40003C0E))
78/* Register offsets from AES256_BASE address */
79#define OFS_AESACTL0 (0x0000)
80#define OFS_AESACTL1 (0x0002)
81#define OFS_AESASTAT (0x0004)
82#define OFS_AESAKEY (0x0006)
83#define OFS_AESADIN (0x0008)
84#define OFS_AESADOUT (0x000A)
85#define OFS_AESAXDIN (0x000C)
86#define OFS_AESAXIN (0x000E)
89/******************************************************************************
90* CAPTIO0 Registers
91******************************************************************************/
92#define CAPTIO0CTL (HWREG16(0x4000540E))
94/* Register offsets from CAPTIO0_BASE address */
95#define OFS_CAPTIO0CTL (0x000E)
97#define CAPTIO0CTL_L (HWREG8_L(CAPTIO0CTL))/* Capacitive Touch IO x Control Register */
98#define CAPTIO0CTL_H (HWREG8_H(CAPTIO0CTL))/* Capacitive Touch IO x Control Register */
99
100/******************************************************************************
101* CAPTIO1 Registers
102******************************************************************************/
103#define CAPTIO1CTL (HWREG16(0x4000580E))
105/* Register offsets from CAPTIO1_BASE address */
106#define OFS_CAPTIO1CTL (0x000E)
108#define CAPTIO1CTL_L (HWREG8_L(CAPTIO1CTL))/* Capacitive Touch IO x Control Register */
109#define CAPTIO1CTL_H (HWREG8_H(CAPTIO1CTL))/* Capacitive Touch IO x Control Register */
110
111/******************************************************************************
112* COMP_E0 Registers
113******************************************************************************/
114#define CE0CTL0 (HWREG16(0x40003400))
115#define CE0CTL1 (HWREG16(0x40003402))
116#define CE0CTL2 (HWREG16(0x40003404))
117#define CE0CTL3 (HWREG16(0x40003406))
118#define CE0INT (HWREG16(0x4000340C))
119#define CE0IV (HWREG16(0x4000340E))
121/* Register offsets from COMP_E0_BASE address */
122#define OFS_CE0CTL0 (0x0000)
123#define OFS_CE0CTL1 (0x0002)
124#define OFS_CE0CTL2 (0x0004)
125#define OFS_CE0CTL3 (0x0006)
126#define OFS_CE0INT (0x000C)
127#define OFS_CE0IV (0x000E)
130/******************************************************************************
131* COMP_E1 Registers
132******************************************************************************/
133#define CE1CTL0 (HWREG16(0x40003800))
134#define CE1CTL1 (HWREG16(0x40003802))
135#define CE1CTL2 (HWREG16(0x40003804))
136#define CE1CTL3 (HWREG16(0x40003806))
137#define CE1INT (HWREG16(0x4000380C))
138#define CE1IV (HWREG16(0x4000380E))
140/* Register offsets from COMP_E1_BASE address */
141#define OFS_CE1CTL0 (0x0000)
142#define OFS_CE1CTL1 (0x0002)
143#define OFS_CE1CTL2 (0x0004)
144#define OFS_CE1CTL3 (0x0006)
145#define OFS_CE1INT (0x000C)
146#define OFS_CE1IV (0x000E)
149/******************************************************************************
150* CRC32 Registers
151******************************************************************************/
152#define CRC32DI (HWREG16(0x40004000))
153#define CRC32DIRB (HWREG16(0x40004004))
154#define CRC32INIRES_LO (HWREG16(0x40004008))
155#define CRC32INIRES_HI (HWREG16(0x4000400A))
156#define CRC32RESR_LO (HWREG16(0x4000400C))
157#define CRC32RESR_HI (HWREG16(0x4000400E))
158#define CRC16DI (HWREG16(0x40004010))
159#define CRC16DIRB (HWREG16(0x40004014))
160#define CRC16INIRES (HWREG16(0x40004018))
161#define CRC16RESR (HWREG16(0x4000401E))
163/* Register offsets from CRC32_BASE address */
164#define OFS_CRC32DI (0x0000)
165#define OFS_CRC32DIRB (0x0004)
166#define OFS_CRC32INIRES_LO (0x0008)
167#define OFS_CRC32INIRES_HI (0x000A)
168#define OFS_CRC32RESR_LO (0x000C)
169#define OFS_CRC32RESR_HI (0x000E)
170#define OFS_CRC16DI (0x0010)
171#define OFS_CRC16DIRB (0x0014)
172#define OFS_CRC16INIRES (0x0018)
173#define OFS_CRC16RESR (0x001E)
176/******************************************************************************
177* DIO Registers
178******************************************************************************/
179#define PAIN (HWREG16(0x40004C00))
180#define PAOUT (HWREG16(0x40004C02))
181#define PADIR (HWREG16(0x40004C04))
182#define PAREN (HWREG16(0x40004C06))
183#define PADS (HWREG16(0x40004C08))
184#define PASEL0 (HWREG16(0x40004C0A))
185#define PASEL1 (HWREG16(0x40004C0C))
186#define P1IV (HWREG16(0x40004C0E))
187#define PASELC (HWREG16(0x40004C16))
188#define PAIES (HWREG16(0x40004C18))
189#define PAIE (HWREG16(0x40004C1A))
190#define PAIFG (HWREG16(0x40004C1C))
191#define P2IV (HWREG16(0x40004C1E))
192#define PBIN (HWREG16(0x40004C20))
193#define PBOUT (HWREG16(0x40004C22))
194#define PBDIR (HWREG16(0x40004C24))
195#define PBREN (HWREG16(0x40004C26))
196#define PBDS (HWREG16(0x40004C28))
197#define PBSEL0 (HWREG16(0x40004C2A))
198#define PBSEL1 (HWREG16(0x40004C2C))
199#define P3IV (HWREG16(0x40004C2E))
200#define PBSELC (HWREG16(0x40004C36))
201#define PBIES (HWREG16(0x40004C38))
202#define PBIE (HWREG16(0x40004C3A))
203#define PBIFG (HWREG16(0x40004C3C))
204#define P4IV (HWREG16(0x40004C3E))
205#define PCIN (HWREG16(0x40004C40))
206#define PCOUT (HWREG16(0x40004C42))
207#define PCDIR (HWREG16(0x40004C44))
208#define PCREN (HWREG16(0x40004C46))
209#define PCDS (HWREG16(0x40004C48))
210#define PCSEL0 (HWREG16(0x40004C4A))
211#define PCSEL1 (HWREG16(0x40004C4C))
212#define P5IV (HWREG16(0x40004C4E))
213#define PCSELC (HWREG16(0x40004C56))
214#define PCIES (HWREG16(0x40004C58))
215#define PCIE (HWREG16(0x40004C5A))
216#define PCIFG (HWREG16(0x40004C5C))
217#define P6IV (HWREG16(0x40004C5E))
218#define PDIN (HWREG16(0x40004C60))
219#define PDOUT (HWREG16(0x40004C62))
220#define PDDIR (HWREG16(0x40004C64))
221#define PDREN (HWREG16(0x40004C66))
222#define PDDS (HWREG16(0x40004C68))
223#define PDSEL0 (HWREG16(0x40004C6A))
224#define PDSEL1 (HWREG16(0x40004C6C))
225#define P7IV (HWREG16(0x40004C6E))
226#define PDSELC (HWREG16(0x40004C76))
227#define PDIES (HWREG16(0x40004C78))
228#define PDIE (HWREG16(0x40004C7A))
229#define PDIFG (HWREG16(0x40004C7C))
230#define P8IV (HWREG16(0x40004C7E))
231#define PEIN (HWREG16(0x40004C80))
232#define PEOUT (HWREG16(0x40004C82))
233#define PEDIR (HWREG16(0x40004C84))
234#define PEREN (HWREG16(0x40004C86))
235#define PEDS (HWREG16(0x40004C88))
236#define PESEL0 (HWREG16(0x40004C8A))
237#define PESEL1 (HWREG16(0x40004C8C))
238#define P9IV (HWREG16(0x40004C8E))
239#define PESELC (HWREG16(0x40004C96))
240#define PEIES (HWREG16(0x40004C98))
241#define PEIE (HWREG16(0x40004C9A))
242#define PEIFG (HWREG16(0x40004C9C))
243#define P10IV (HWREG16(0x40004C9E))
244#define PJIN (HWREG16(0x40004D20))
245#define PJOUT (HWREG16(0x40004D22))
246#define PJDIR (HWREG16(0x40004D24))
247#define PJREN (HWREG16(0x40004D26))
248#define PJDS (HWREG16(0x40004D28))
249#define PJSEL0 (HWREG16(0x40004D2A))
250#define PJSEL1 (HWREG16(0x40004D2C))
251#define PJSELC (HWREG16(0x40004D36))
252#define P1IN (HWREG8(0x40004C00))
253#define P2IN (HWREG8(0x40004C01))
254#define P2OUT (HWREG8(0x40004C03))
255#define P1OUT (HWREG8(0x40004C02))
256#define P1DIR (HWREG8(0x40004C04))
257#define P2DIR (HWREG8(0x40004C05))
258#define P1REN (HWREG8(0x40004C06))
259#define P2REN (HWREG8(0x40004C07))
260#define P1DS (HWREG8(0x40004C08))
261#define P2DS (HWREG8(0x40004C09))
262#define P1SEL0 (HWREG8(0x40004C0A))
263#define P2SEL0 (HWREG8(0x40004C0B))
264#define P1SEL1 (HWREG8(0x40004C0C))
265#define P2SEL1 (HWREG8(0x40004C0D))
266#define P1SELC (HWREG8(0x40004C16))
267#define P2SELC (HWREG8(0x40004C17))
268#define P1IES (HWREG8(0x40004C18))
269#define P2IES (HWREG8(0x40004C19))
270#define P1IE (HWREG8(0x40004C1A))
271#define P2IE (HWREG8(0x40004C1B))
272#define P1IFG (HWREG8(0x40004C1C))
273#define P2IFG (HWREG8(0x40004C1D))
274#define P3IN (HWREG8(0x40004C20))
275#define P4IN (HWREG8(0x40004C21))
276#define P3OUT (HWREG8(0x40004C22))
277#define P4OUT (HWREG8(0x40004C23))
278#define P3DIR (HWREG8(0x40004C24))
279#define P4DIR (HWREG8(0x40004C25))
280#define P3REN (HWREG8(0x40004C26))
281#define P4REN (HWREG8(0x40004C27))
282#define P3DS (HWREG8(0x40004C28))
283#define P4DS (HWREG8(0x40004C29))
284#define P4SEL0 (HWREG8(0x40004C2B))
285#define P3SEL0 (HWREG8(0x40004C2A))
286#define P3SEL1 (HWREG8(0x40004C2C))
287#define P4SEL1 (HWREG8(0x40004C2D))
288#define P3SELC (HWREG8(0x40004C36))
289#define P4SELC (HWREG8(0x40004C37))
290#define P3IES (HWREG8(0x40004C38))
291#define P4IES (HWREG8(0x40004C39))
292#define P3IE (HWREG8(0x40004C3A))
293#define P4IE (HWREG8(0x40004C3B))
294#define P3IFG (HWREG8(0x40004C3C))
295#define P4IFG (HWREG8(0x40004C3D))
296#define P5IN (HWREG8(0x40004C40))
297#define P6IN (HWREG8(0x40004C41))
298#define P5OUT (HWREG8(0x40004C42))
299#define P6OUT (HWREG8(0x40004C43))
300#define P5DIR (HWREG8(0x40004C44))
301#define P6DIR (HWREG8(0x40004C45))
302#define P5REN (HWREG8(0x40004C46))
303#define P6REN (HWREG8(0x40004C47))
304#define P5DS (HWREG8(0x40004C48))
305#define P6DS (HWREG8(0x40004C49))
306#define P5SEL0 (HWREG8(0x40004C4A))
307#define P6SEL0 (HWREG8(0x40004C4B))
308#define P5SEL1 (HWREG8(0x40004C4C))
309#define P6SEL1 (HWREG8(0x40004C4D))
310#define P5SELC (HWREG8(0x40004C56))
311#define P6SELC (HWREG8(0x40004C57))
312#define P5IES (HWREG8(0x40004C58))
313#define P6IES (HWREG8(0x40004C59))
314#define P5IE (HWREG8(0x40004C5A))
315#define P6IE (HWREG8(0x40004C5B))
316#define P5IFG (HWREG8(0x40004C5C))
317#define P6IFG (HWREG8(0x40004C5D))
318#define P7IN (HWREG8(0x40004C60))
319#define P8IN (HWREG8(0x40004C61))
320#define P7OUT (HWREG8(0x40004C62))
321#define P8OUT (HWREG8(0x40004C63))
322#define P7DIR (HWREG8(0x40004C64))
323#define P8DIR (HWREG8(0x40004C65))
324#define P7REN (HWREG8(0x40004C66))
325#define P8REN (HWREG8(0x40004C67))
326#define P7DS (HWREG8(0x40004C68))
327#define P8DS (HWREG8(0x40004C69))
328#define P7SEL0 (HWREG8(0x40004C6A))
329#define P8SEL0 (HWREG8(0x40004C6B))
330#define P7SEL1 (HWREG8(0x40004C6C))
331#define P8SEL1 (HWREG8(0x40004C6D))
332#define P7SELC (HWREG8(0x40004C76))
333#define P8SELC (HWREG8(0x40004C77))
334#define P7IES (HWREG8(0x40004C78))
335#define P8IES (HWREG8(0x40004C79))
336#define P7IE (HWREG8(0x40004C7A))
337#define P8IE (HWREG8(0x40004C7B))
338#define P7IFG (HWREG8(0x40004C7C))
339#define P8IFG (HWREG8(0x40004C7D))
340#define P9IN (HWREG8(0x40004C80))
341#define P10IN (HWREG8(0x40004C81))
342#define P9OUT (HWREG8(0x40004C82))
343#define P10OUT (HWREG8(0x40004C83))
344#define P9DIR (HWREG8(0x40004C84))
345#define P10DIR (HWREG8(0x40004C85))
346#define P9REN (HWREG8(0x40004C86))
347#define P10REN (HWREG8(0x40004C87))
348#define P9DS (HWREG8(0x40004C88))
349#define P10DS (HWREG8(0x40004C89))
350#define P9SEL0 (HWREG8(0x40004C8A))
351#define P10SEL0 (HWREG8(0x40004C8B))
352#define P9SEL1 (HWREG8(0x40004C8C))
353#define P10SEL1 (HWREG8(0x40004C8D))
354#define P9SELC (HWREG8(0x40004C96))
355#define P10SELC (HWREG8(0x40004C97))
356#define P9IES (HWREG8(0x40004C98))
357#define P10IES (HWREG8(0x40004C99))
358#define P9IE (HWREG8(0x40004C9A))
359#define P10IE (HWREG8(0x40004C9B))
360#define P9IFG (HWREG8(0x40004C9C))
361#define P10IFG (HWREG8(0x40004C9D))
363/* Register offsets from DIO_BASE address */
364#define OFS_PAIN (0x0000)
365#define OFS_PAOUT (0x0002)
366#define OFS_PADIR (0x0004)
367#define OFS_PAREN (0x0006)
368#define OFS_PADS (0x0008)
369#define OFS_PASEL0 (0x000A)
370#define OFS_PASEL1 (0x000C)
371#define OFS_P1IV (0x000E)
372#define OFS_PASELC (0x0016)
373#define OFS_PAIES (0x0018)
374#define OFS_PAIE (0x001A)
375#define OFS_PAIFG (0x001C)
376#define OFS_P2IV (0x001E)
377#define OFS_PBIN (0x0020)
378#define OFS_PBOUT (0x0022)
379#define OFS_PBDIR (0x0024)
380#define OFS_PBREN (0x0026)
381#define OFS_PBDS (0x0028)
382#define OFS_PBSEL0 (0x002A)
383#define OFS_PBSEL1 (0x002C)
384#define OFS_P3IV (0x002E)
385#define OFS_PBSELC (0x0036)
386#define OFS_PBIES (0x0038)
387#define OFS_PBIE (0x003A)
388#define OFS_PBIFG (0x003C)
389#define OFS_P4IV (0x003E)
390#define OFS_PCIN (0x0040)
391#define OFS_PCOUT (0x0042)
392#define OFS_PCDIR (0x0044)
393#define OFS_PCREN (0x0046)
394#define OFS_PCDS (0x0048)
395#define OFS_PCSEL0 (0x004A)
396#define OFS_PCSEL1 (0x004C)
397#define OFS_P5IV (0x004E)
398#define OFS_PCSELC (0x0056)
399#define OFS_PCIES (0x0058)
400#define OFS_PCIE (0x005A)
401#define OFS_PCIFG (0x005C)
402#define OFS_P6IV (0x005E)
403#define OFS_PDIN (0x0060)
404#define OFS_PDOUT (0x0062)
405#define OFS_PDDIR (0x0064)
406#define OFS_PDREN (0x0066)
407#define OFS_PDDS (0x0068)
408#define OFS_PDSEL0 (0x006A)
409#define OFS_PDSEL1 (0x006C)
410#define OFS_P7IV (0x006E)
411#define OFS_PDSELC (0x0076)
412#define OFS_PDIES (0x0078)
413#define OFS_PDIE (0x007A)
414#define OFS_PDIFG (0x007C)
415#define OFS_P8IV (0x007E)
416#define OFS_PEIN (0x0080)
417#define OFS_PEOUT (0x0082)
418#define OFS_PEDIR (0x0084)
419#define OFS_PEREN (0x0086)
420#define OFS_PEDS (0x0088)
421#define OFS_PESEL0 (0x008A)
422#define OFS_PESEL1 (0x008C)
423#define OFS_P9IV (0x008E)
424#define OFS_PESELC (0x0096)
425#define OFS_PEIES (0x0098)
426#define OFS_PEIE (0x009A)
427#define OFS_PEIFG (0x009C)
428#define OFS_P10IV (0x009E)
429#define OFS_PJIN (0x0120)
430#define OFS_PJOUT (0x0122)
431#define OFS_PJDIR (0x0124)
432#define OFS_PJREN (0x0126)
433#define OFS_PJDS (0x0128)
434#define OFS_PJSEL0 (0x012A)
435#define OFS_PJSEL1 (0x012C)
436#define OFS_PJSELC (0x0136)
437#define OFS_P1IN (0x0000)
438#define OFS_P2IN (0x0001)
439#define OFS_P2OUT (0x0003)
440#define OFS_P1OUT (0x0002)
441#define OFS_P1DIR (0x0004)
442#define OFS_P2DIR (0x0005)
443#define OFS_P1REN (0x0006)
444#define OFS_P2REN (0x0007)
445#define OFS_P1DS (0x0008)
446#define OFS_P2DS (0x0009)
447#define OFS_P1SEL0 (0x000A)
448#define OFS_P2SEL0 (0x000B)
449#define OFS_P1SEL1 (0x000C)
450#define OFS_P2SEL1 (0x000D)
451#define OFS_P1SELC (0x0016)
452#define OFS_P2SELC (0x0017)
453#define OFS_P1IES (0x0018)
454#define OFS_P2IES (0x0019)
455#define OFS_P1IE (0x001A)
456#define OFS_P2IE (0x001B)
457#define OFS_P1IFG (0x001C)
458#define OFS_P2IFG (0x001D)
459#define OFS_P3IN (0x0020)
460#define OFS_P4IN (0x0021)
461#define OFS_P3OUT (0x0022)
462#define OFS_P4OUT (0x0023)
463#define OFS_P3DIR (0x0024)
464#define OFS_P4DIR (0x0025)
465#define OFS_P3REN (0x0026)
466#define OFS_P4REN (0x0027)
467#define OFS_P3DS (0x0028)
468#define OFS_P4DS (0x0029)
469#define OFS_P4SEL0 (0x002B)
470#define OFS_P3SEL0 (0x002A)
471#define OFS_P3SEL1 (0x002C)
472#define OFS_P4SEL1 (0x002D)
473#define OFS_P3SELC (0x0036)
474#define OFS_P4SELC (0x0037)
475#define OFS_P3IES (0x0038)
476#define OFS_P4IES (0x0039)
477#define OFS_P3IE (0x003A)
478#define OFS_P4IE (0x003B)
479#define OFS_P3IFG (0x003C)
480#define OFS_P4IFG (0x003D)
481#define OFS_P5IN (0x0040)
482#define OFS_P6IN (0x0041)
483#define OFS_P5OUT (0x0042)
484#define OFS_P6OUT (0x0043)
485#define OFS_P5DIR (0x0044)
486#define OFS_P6DIR (0x0045)
487#define OFS_P5REN (0x0046)
488#define OFS_P6REN (0x0047)
489#define OFS_P5DS (0x0048)
490#define OFS_P6DS (0x0049)
491#define OFS_P5SEL0 (0x004A)
492#define OFS_P6SEL0 (0x004B)
493#define OFS_P5SEL1 (0x004C)
494#define OFS_P6SEL1 (0x004D)
495#define OFS_P5SELC (0x0056)
496#define OFS_P6SELC (0x0057)
497#define OFS_P5IES (0x0058)
498#define OFS_P6IES (0x0059)
499#define OFS_P5IE (0x005A)
500#define OFS_P6IE (0x005B)
501#define OFS_P5IFG (0x005C)
502#define OFS_P6IFG (0x005D)
503#define OFS_P7IN (0x0060)
504#define OFS_P8IN (0x0061)
505#define OFS_P7OUT (0x0062)
506#define OFS_P8OUT (0x0063)
507#define OFS_P7DIR (0x0064)
508#define OFS_P8DIR (0x0065)
509#define OFS_P7REN (0x0066)
510#define OFS_P8REN (0x0067)
511#define OFS_P7DS (0x0068)
512#define OFS_P8DS (0x0069)
513#define OFS_P7SEL0 (0x006A)
514#define OFS_P8SEL0 (0x006B)
515#define OFS_P7SEL1 (0x006C)
516#define OFS_P8SEL1 (0x006D)
517#define OFS_P7SELC (0x0076)
518#define OFS_P8SELC (0x0077)
519#define OFS_P7IES (0x0078)
520#define OFS_P8IES (0x0079)
521#define OFS_P7IE (0x007A)
522#define OFS_P8IE (0x007B)
523#define OFS_P7IFG (0x007C)
524#define OFS_P8IFG (0x007D)
525#define OFS_P9IN (0x0080)
526#define OFS_P10IN (0x0081)
527#define OFS_P9OUT (0x0082)
528#define OFS_P10OUT (0x0083)
529#define OFS_P9DIR (0x0084)
530#define OFS_P10DIR (0x0085)
531#define OFS_P9REN (0x0086)
532#define OFS_P10REN (0x0087)
533#define OFS_P9DS (0x0088)
534#define OFS_P10DS (0x0089)
535#define OFS_P9SEL0 (0x008A)
536#define OFS_P10SEL0 (0x008B)
537#define OFS_P9SEL1 (0x008C)
538#define OFS_P10SEL1 (0x008D)
539#define OFS_P9SELC (0x0096)
540#define OFS_P10SELC (0x0097)
541#define OFS_P9IES (0x0098)
542#define OFS_P10IES (0x0099)
543#define OFS_P9IE (0x009A)
544#define OFS_P10IE (0x009B)
545#define OFS_P9IFG (0x009C)
546#define OFS_P10IFG (0x009D)
549/******************************************************************************
550* EUSCI_A0 Registers
551******************************************************************************/
552#define UCA0CTLW0 (HWREG16(0x40001000))
553#define UCA0CTLW0_SPI (HWREG16(0x40001000))
554#define UCA0CTLW1 (HWREG16(0x40001002))
555#define UCA0BRW (HWREG16(0x40001006))
556#define UCA0BRW_SPI (HWREG16(0x40001006))
557#define UCA0MCTLW (HWREG16(0x40001008))
558#define UCA0STATW (HWREG16(0x4000100A))
559#define UCA0STATW_SPI (HWREG16(0x4000100A))
560#define UCA0RXBUF (HWREG16(0x4000100C))
561#define UCA0RXBUF_SPI (HWREG16(0x4000100C))
562#define UCA0TXBUF (HWREG16(0x4000100E))
563#define UCA0TXBUF_SPI (HWREG16(0x4000100E))
564#define UCA0ABCTL (HWREG16(0x40001010))
565#define UCA0IRCTL (HWREG16(0x40001012))
566#define UCA0IE (HWREG16(0x4000101A))
567#define UCA0IE_SPI (HWREG16(0x4000101A))
568#define UCA0IFG (HWREG16(0x4000101C))
569#define UCA0IFG_SPI (HWREG16(0x4000101C))
570#define UCA0IV (HWREG16(0x4000101E))
571#define UCA0IV_SPI (HWREG16(0x4000101E))
572
573/* Register offsets from EUSCI_A0_BASE address */
574#define OFS_UCA0CTLW0 (0x0000)
575#define OFS_UCA0CTLW0_SPI (0x0000)
576#define OFS_UCA0CTLW1 (0x0002)
577#define OFS_UCA0BRW (0x0006)
578#define OFS_UCA0BRW_SPI (0x0006)
579#define OFS_UCA0MCTLW (0x0008)
580#define OFS_UCA0STATW (0x000A)
581#define OFS_UCA0STATW_SPI (0x000A)
582#define OFS_UCA0RXBUF (0x000C)
583#define OFS_UCA0RXBUF_SPI (0x000C)
584#define OFS_UCA0TXBUF (0x000E)
585#define OFS_UCA0TXBUF_SPI (0x000E)
586#define OFS_UCA0ABCTL (0x0010)
587#define OFS_UCA0IRCTL (0x0012)
588#define OFS_UCA0IE (0x001A)
589#define OFS_UCA0IE_SPI (0x001A)
590#define OFS_UCA0IFG (0x001C)
591#define OFS_UCA0IFG_SPI (0x001C)
592#define OFS_UCA0IV (0x001E)
593#define OFS_UCA0IV_SPI (0x001E)
594
595#define UCA0CTL0 (HWREG8_L(UCA0CTLW0)) /* eUSCI_Ax Control 0 */
596#define UCA0CTL1 (HWREG8_H(UCA0CTLW0)) /* eUSCI_Ax Control 1 */
597#define UCA0BR0 (HWREG8_L(UCA0BRW)) /* eUSCI_Ax Baud Rate Control 0 */
598#define UCA0BR1 (HWREG8_H(UCA0BRW)) /* eUSCI_Ax Baud Rate Control 1 */
599#define UCA0IRTCTL (HWREG8_L(UCA0IRCTL)) /* eUSCI_Ax IrDA Transmit Control */
600#define UCA0IRRCTL (HWREG8_H(UCA0IRCTL)) /* eUSCI_Ax IrDA Receive Control */
601
602/******************************************************************************
603* EUSCI_A1 Registers
604******************************************************************************/
605#define UCA1CTLW0 (HWREG16(0x40001400))
606#define UCA1CTLW0_SPI (HWREG16(0x40001400))
607#define UCA1CTLW1 (HWREG16(0x40001402))
608#define UCA1BRW (HWREG16(0x40001406))
609#define UCA1BRW_SPI (HWREG16(0x40001406))
610#define UCA1MCTLW (HWREG16(0x40001408))
611#define UCA1STATW (HWREG16(0x4000140A))
612#define UCA1STATW_SPI (HWREG16(0x4000140A))
613#define UCA1RXBUF (HWREG16(0x4000140C))
614#define UCA1RXBUF_SPI (HWREG16(0x4000140C))
615#define UCA1TXBUF (HWREG16(0x4000140E))
616#define UCA1TXBUF_SPI (HWREG16(0x4000140E))
617#define UCA1ABCTL (HWREG16(0x40001410))
618#define UCA1IRCTL (HWREG16(0x40001412))
619#define UCA1IE (HWREG16(0x4000141A))
620#define UCA1IE_SPI (HWREG16(0x4000141A))
621#define UCA1IFG (HWREG16(0x4000141C))
622#define UCA1IFG_SPI (HWREG16(0x4000141C))
623#define UCA1IV (HWREG16(0x4000141E))
624#define UCA1IV_SPI (HWREG16(0x4000141E))
625
626/* Register offsets from EUSCI_A1_BASE address */
627#define OFS_UCA1CTLW0 (0x0000)
628#define OFS_UCA1CTLW0_SPI (0x0000)
629#define OFS_UCA1CTLW1 (0x0002)
630#define OFS_UCA1BRW (0x0006)
631#define OFS_UCA1BRW_SPI (0x0006)
632#define OFS_UCA1MCTLW (0x0008)
633#define OFS_UCA1STATW (0x000A)
634#define OFS_UCA1STATW_SPI (0x000A)
635#define OFS_UCA1RXBUF (0x000C)
636#define OFS_UCA1RXBUF_SPI (0x000C)
637#define OFS_UCA1TXBUF (0x000E)
638#define OFS_UCA1TXBUF_SPI (0x000E)
639#define OFS_UCA1ABCTL (0x0010)
640#define OFS_UCA1IRCTL (0x0012)
641#define OFS_UCA1IE (0x001A)
642#define OFS_UCA1IE_SPI (0x001A)
643#define OFS_UCA1IFG (0x001C)
644#define OFS_UCA1IFG_SPI (0x001C)
645#define OFS_UCA1IV (0x001E)
646#define OFS_UCA1IV_SPI (0x001E)
647
648#define UCA1CTL0 (HWREG8_L(UCA1CTLW0)) /* eUSCI_Ax Control 0 */
649#define UCA1CTL1 (HWREG8_H(UCA1CTLW0)) /* eUSCI_Ax Control 1 */
650#define UCA1BR0 (HWREG8_L(UCA1BRW)) /* eUSCI_Ax Baud Rate Control 0 */
651#define UCA1BR1 (HWREG8_H(UCA1BRW)) /* eUSCI_Ax Baud Rate Control 1 */
652#define UCA1IRTCTL (HWREG8_L(UCA1IRCTL)) /* eUSCI_Ax IrDA Transmit Control */
653#define UCA1IRRCTL (HWREG8_H(UCA1IRCTL)) /* eUSCI_Ax IrDA Receive Control */
654
655/******************************************************************************
656* EUSCI_A2 Registers
657******************************************************************************/
658#define UCA2CTLW0 (HWREG16(0x40001800))
659#define UCA2CTLW0_SPI (HWREG16(0x40001800))
660#define UCA2CTLW1 (HWREG16(0x40001802))
661#define UCA2BRW (HWREG16(0x40001806))
662#define UCA2BRW_SPI (HWREG16(0x40001806))
663#define UCA2MCTLW (HWREG16(0x40001808))
664#define UCA2STATW (HWREG16(0x4000180A))
665#define UCA2STATW_SPI (HWREG16(0x4000180A))
666#define UCA2RXBUF (HWREG16(0x4000180C))
667#define UCA2RXBUF_SPI (HWREG16(0x4000180C))
668#define UCA2TXBUF (HWREG16(0x4000180E))
669#define UCA2TXBUF_SPI (HWREG16(0x4000180E))
670#define UCA2ABCTL (HWREG16(0x40001810))
671#define UCA2IRCTL (HWREG16(0x40001812))
672#define UCA2IE (HWREG16(0x4000181A))
673#define UCA2IE_SPI (HWREG16(0x4000181A))
674#define UCA2IFG (HWREG16(0x4000181C))
675#define UCA2IFG_SPI (HWREG16(0x4000181C))
676#define UCA2IV (HWREG16(0x4000181E))
677#define UCA2IV_SPI (HWREG16(0x4000181E))
678
679/* Register offsets from EUSCI_A2_BASE address */
680#define OFS_UCA2CTLW0 (0x0000)
681#define OFS_UCA2CTLW0_SPI (0x0000)
682#define OFS_UCA2CTLW1 (0x0002)
683#define OFS_UCA2BRW (0x0006)
684#define OFS_UCA2BRW_SPI (0x0006)
685#define OFS_UCA2MCTLW (0x0008)
686#define OFS_UCA2STATW (0x000A)
687#define OFS_UCA2STATW_SPI (0x000A)
688#define OFS_UCA2RXBUF (0x000C)
689#define OFS_UCA2RXBUF_SPI (0x000C)
690#define OFS_UCA2TXBUF (0x000E)
691#define OFS_UCA2TXBUF_SPI (0x000E)
692#define OFS_UCA2ABCTL (0x0010)
693#define OFS_UCA2IRCTL (0x0012)
694#define OFS_UCA2IE (0x001A)
695#define OFS_UCA2IE_SPI (0x001A)
696#define OFS_UCA2IFG (0x001C)
697#define OFS_UCA2IFG_SPI (0x001C)
698#define OFS_UCA2IV (0x001E)
699#define OFS_UCA2IV_SPI (0x001E)
700
701#define UCA2CTL0 (HWREG8_L(UCA2CTLW0)) /* eUSCI_Ax Control 0 */
702#define UCA2CTL1 (HWREG8_H(UCA2CTLW0)) /* eUSCI_Ax Control 1 */
703#define UCA2BR0 (HWREG8_L(UCA2BRW)) /* eUSCI_Ax Baud Rate Control 0 */
704#define UCA2BR1 (HWREG8_H(UCA2BRW)) /* eUSCI_Ax Baud Rate Control 1 */
705#define UCA2IRTCTL (HWREG8_L(UCA2IRCTL)) /* eUSCI_Ax IrDA Transmit Control */
706#define UCA2IRRCTL (HWREG8_H(UCA2IRCTL)) /* eUSCI_Ax IrDA Receive Control */
707
708/******************************************************************************
709* EUSCI_A3 Registers
710******************************************************************************/
711#define UCA3CTLW0 (HWREG16(0x40001C00))
712#define UCA3CTLW0_SPI (HWREG16(0x40001C00))
713#define UCA3CTLW1 (HWREG16(0x40001C02))
714#define UCA3BRW (HWREG16(0x40001C06))
715#define UCA3BRW_SPI (HWREG16(0x40001C06))
716#define UCA3MCTLW (HWREG16(0x40001C08))
717#define UCA3STATW (HWREG16(0x40001C0A))
718#define UCA3STATW_SPI (HWREG16(0x40001C0A))
719#define UCA3RXBUF (HWREG16(0x40001C0C))
720#define UCA3RXBUF_SPI (HWREG16(0x40001C0C))
721#define UCA3TXBUF (HWREG16(0x40001C0E))
722#define UCA3TXBUF_SPI (HWREG16(0x40001C0E))
723#define UCA3ABCTL (HWREG16(0x40001C10))
724#define UCA3IRCTL (HWREG16(0x40001C12))
725#define UCA3IE (HWREG16(0x40001C1A))
726#define UCA3IE_SPI (HWREG16(0x40001C1A))
727#define UCA3IFG (HWREG16(0x40001C1C))
728#define UCA3IFG_SPI (HWREG16(0x40001C1C))
729#define UCA3IV (HWREG16(0x40001C1E))
730#define UCA3IV_SPI (HWREG16(0x40001C1E))
731
732/* Register offsets from EUSCI_A3_BASE address */
733#define OFS_UCA3CTLW0 (0x0000)
734#define OFS_UCA3CTLW0_SPI (0x0000)
735#define OFS_UCA3CTLW1 (0x0002)
736#define OFS_UCA3BRW (0x0006)
737#define OFS_UCA3BRW_SPI (0x0006)
738#define OFS_UCA3MCTLW (0x0008)
739#define OFS_UCA3STATW (0x000A)
740#define OFS_UCA3STATW_SPI (0x000A)
741#define OFS_UCA3RXBUF (0x000C)
742#define OFS_UCA3RXBUF_SPI (0x000C)
743#define OFS_UCA3TXBUF (0x000E)
744#define OFS_UCA3TXBUF_SPI (0x000E)
745#define OFS_UCA3ABCTL (0x0010)
746#define OFS_UCA3IRCTL (0x0012)
747#define OFS_UCA3IE (0x001A)
748#define OFS_UCA3IE_SPI (0x001A)
749#define OFS_UCA3IFG (0x001C)
750#define OFS_UCA3IFG_SPI (0x001C)
751#define OFS_UCA3IV (0x001E)
752#define OFS_UCA3IV_SPI (0x001E)
753
754#define UCA3CTL0 (HWREG8_L(UCA3CTLW0)) /* eUSCI_Ax Control 0 */
755#define UCA3CTL1 (HWREG8_H(UCA3CTLW0)) /* eUSCI_Ax Control 1 */
756#define UCA3BR0 (HWREG8_L(UCA3BRW)) /* eUSCI_Ax Baud Rate Control 0 */
757#define UCA3BR1 (HWREG8_H(UCA3BRW)) /* eUSCI_Ax Baud Rate Control 1 */
758#define UCA3IRTCTL (HWREG8_L(UCA3IRCTL)) /* eUSCI_Ax IrDA Transmit Control */
759#define UCA3IRRCTL (HWREG8_H(UCA3IRCTL)) /* eUSCI_Ax IrDA Receive Control */
760
761/******************************************************************************
762* EUSCI_B0 Registers
763******************************************************************************/
764#define UCB0CTLW0 (HWREG16(0x40002000))
765#define UCB0CTLW0_SPI (HWREG16(0x40002000))
766#define UCB0CTLW1 (HWREG16(0x40002002))
767#define UCB0BRW (HWREG16(0x40002006))
768#define UCB0BRW_SPI (HWREG16(0x40002006))
769#define UCB0STATW (HWREG16(0x40002008))
770#define UCB0STATW_SPI (HWREG16(0x40002008))
771#define UCB0TBCNT (HWREG16(0x4000200A))
772#define UCB0RXBUF (HWREG16(0x4000200C))
773#define UCB0RXBUF_SPI (HWREG16(0x4000200C))
774#define UCB0TXBUF (HWREG16(0x4000200E))
775#define UCB0TXBUF_SPI (HWREG16(0x4000200E))
776#define UCB0I2COA0 (HWREG16(0x40002014))
777#define UCB0I2COA1 (HWREG16(0x40002016))
778#define UCB0I2COA2 (HWREG16(0x40002018))
779#define UCB0I2COA3 (HWREG16(0x4000201A))
780#define UCB0ADDRX (HWREG16(0x4000201C))
781#define UCB0ADDMASK (HWREG16(0x4000201E))
782#define UCB0I2CSA (HWREG16(0x40002020))
783#define UCB0IE (HWREG16(0x4000202A))
784#define UCB0IE_SPI (HWREG16(0x4000202A))
785#define UCB0IFG (HWREG16(0x4000202C))
786#define UCB0IFG_SPI (HWREG16(0x4000202C))
787#define UCB0IV (HWREG16(0x4000202E))
788#define UCB0IV_SPI (HWREG16(0x4000202E))
789
790/* Register offsets from EUSCI_B0_BASE address */
791#define OFS_UCB0CTLW0 (0x0000)
792#define OFS_UCB0CTLW0_SPI (0x0000)
793#define OFS_UCB0CTLW1 (0x0002)
794#define OFS_UCB0BRW (0x0006)
795#define OFS_UCB0BRW_SPI (0x0006)
796#define OFS_UCB0STATW (0x0008)
797#define OFS_UCB0STATW_SPI (0x0008)
798#define OFS_UCB0TBCNT (0x000A)
799#define OFS_UCB0RXBUF (0x000C)
800#define OFS_UCB0RXBUF_SPI (0x000C)
801#define OFS_UCB0TXBUF (0x000E)
802#define OFS_UCB0TXBUF_SPI (0x000E)
803#define OFS_UCB0I2COA0 (0x0014)
804#define OFS_UCB0I2COA1 (0x0016)
805#define OFS_UCB0I2COA2 (0x0018)
806#define OFS_UCB0I2COA3 (0x001A)
807#define OFS_UCB0ADDRX (0x001C)
808#define OFS_UCB0ADDMASK (0x001E)
809#define OFS_UCB0I2CSA (0x0020)
810#define OFS_UCB0IE (0x002A)
811#define OFS_UCB0IE_SPI (0x002A)
812#define OFS_UCB0IFG (0x002C)
813#define OFS_UCB0IFG_SPI (0x002C)
814#define OFS_UCB0IV (0x002E)
815#define OFS_UCB0IV_SPI (0x002E)
816
817#define UCB0CTL0 (HWREG8_L(UCB0CTLW0)) /* eUSCI_Bx Control 1 */
818#define UCB0CTL1 (HWREG8_H(UCB0CTLW0)) /* eUSCI_Bx Control 0 */
819#define UCB0BR0 (HWREG8_L(UCB0BRW)) /* eUSCI_Bx Bit Rate Control 0 */
820#define UCB0BR1 (HWREG8_H(UCB0BRW)) /* eUSCI_Bx Bit Rate Control 1 */
821#define UCB0STAT (HWREG8_L(UCB0STATW)) /* eUSCI_Bx Status */
822#define UCB0BCNT (HWREG8_H(UCB0STATW)) /* eUSCI_Bx Byte Counter Register */
823
824/******************************************************************************
825* EUSCI_B1 Registers
826******************************************************************************/
827#define UCB1CTLW0 (HWREG16(0x40002400))
828#define UCB1CTLW0_SPI (HWREG16(0x40002400))
829#define UCB1CTLW1 (HWREG16(0x40002402))
830#define UCB1BRW (HWREG16(0x40002406))
831#define UCB1BRW_SPI (HWREG16(0x40002406))
832#define UCB1STATW (HWREG16(0x40002408))
833#define UCB1STATW_SPI (HWREG16(0x40002408))
834#define UCB1TBCNT (HWREG16(0x4000240A))
835#define UCB1RXBUF (HWREG16(0x4000240C))
836#define UCB1RXBUF_SPI (HWREG16(0x4000240C))
837#define UCB1TXBUF (HWREG16(0x4000240E))
838#define UCB1TXBUF_SPI (HWREG16(0x4000240E))
839#define UCB1I2COA0 (HWREG16(0x40002414))
840#define UCB1I2COA1 (HWREG16(0x40002416))
841#define UCB1I2COA2 (HWREG16(0x40002418))
842#define UCB1I2COA3 (HWREG16(0x4000241A))
843#define UCB1ADDRX (HWREG16(0x4000241C))
844#define UCB1ADDMASK (HWREG16(0x4000241E))
845#define UCB1I2CSA (HWREG16(0x40002420))
846#define UCB1IE (HWREG16(0x4000242A))
847#define UCB1IE_SPI (HWREG16(0x4000242A))
848#define UCB1IFG (HWREG16(0x4000242C))
849#define UCB1IFG_SPI (HWREG16(0x4000242C))
850#define UCB1IV (HWREG16(0x4000242E))
851#define UCB1IV_SPI (HWREG16(0x4000242E))
852
853/* Register offsets from EUSCI_B1_BASE address */
854#define OFS_UCB1CTLW0 (0x0000)
855#define OFS_UCB1CTLW0_SPI (0x0000)
856#define OFS_UCB1CTLW1 (0x0002)
857#define OFS_UCB1BRW (0x0006)
858#define OFS_UCB1BRW_SPI (0x0006)
859#define OFS_UCB1STATW (0x0008)
860#define OFS_UCB1STATW_SPI (0x0008)
861#define OFS_UCB1TBCNT (0x000A)
862#define OFS_UCB1RXBUF (0x000C)
863#define OFS_UCB1RXBUF_SPI (0x000C)
864#define OFS_UCB1TXBUF (0x000E)
865#define OFS_UCB1TXBUF_SPI (0x000E)
866#define OFS_UCB1I2COA0 (0x0014)
867#define OFS_UCB1I2COA1 (0x0016)
868#define OFS_UCB1I2COA2 (0x0018)
869#define OFS_UCB1I2COA3 (0x001A)
870#define OFS_UCB1ADDRX (0x001C)
871#define OFS_UCB1ADDMASK (0x001E)
872#define OFS_UCB1I2CSA (0x0020)
873#define OFS_UCB1IE (0x002A)
874#define OFS_UCB1IE_SPI (0x002A)
875#define OFS_UCB1IFG (0x002C)
876#define OFS_UCB1IFG_SPI (0x002C)
877#define OFS_UCB1IV (0x002E)
878#define OFS_UCB1IV_SPI (0x002E)
879
880#define UCB1CTL0 (HWREG8_L(UCB1CTLW0)) /* eUSCI_Bx Control 1 */
881#define UCB1CTL1 (HWREG8_H(UCB1CTLW0)) /* eUSCI_Bx Control 0 */
882#define UCB1BR0 (HWREG8_L(UCB1BRW)) /* eUSCI_Bx Bit Rate Control 0 */
883#define UCB1BR1 (HWREG8_H(UCB1BRW)) /* eUSCI_Bx Bit Rate Control 1 */
884#define UCB1STAT (HWREG8_L(UCB1STATW)) /* eUSCI_Bx Status */
885#define UCB1BCNT (HWREG8_H(UCB1STATW)) /* eUSCI_Bx Byte Counter Register */
886
887/******************************************************************************
888* EUSCI_B2 Registers
889******************************************************************************/
890#define UCB2CTLW0 (HWREG16(0x40002800))
891#define UCB2CTLW0_SPI (HWREG16(0x40002800))
892#define UCB2CTLW1 (HWREG16(0x40002802))
893#define UCB2BRW (HWREG16(0x40002806))
894#define UCB2BRW_SPI (HWREG16(0x40002806))
895#define UCB2STATW (HWREG16(0x40002808))
896#define UCB2STATW_SPI (HWREG16(0x40002808))
897#define UCB2TBCNT (HWREG16(0x4000280A))
898#define UCB2RXBUF (HWREG16(0x4000280C))
899#define UCB2RXBUF_SPI (HWREG16(0x4000280C))
900#define UCB2TXBUF (HWREG16(0x4000280E))
901#define UCB2TXBUF_SPI (HWREG16(0x4000280E))
902#define UCB2I2COA0 (HWREG16(0x40002814))
903#define UCB2I2COA1 (HWREG16(0x40002816))
904#define UCB2I2COA2 (HWREG16(0x40002818))
905#define UCB2I2COA3 (HWREG16(0x4000281A))
906#define UCB2ADDRX (HWREG16(0x4000281C))
907#define UCB2ADDMASK (HWREG16(0x4000281E))
908#define UCB2I2CSA (HWREG16(0x40002820))
909#define UCB2IE (HWREG16(0x4000282A))
910#define UCB2IE_SPI (HWREG16(0x4000282A))
911#define UCB2IFG (HWREG16(0x4000282C))
912#define UCB2IFG_SPI (HWREG16(0x4000282C))
913#define UCB2IV (HWREG16(0x4000282E))
914#define UCB2IV_SPI (HWREG16(0x4000282E))
915
916/* Register offsets from EUSCI_B2_BASE address */
917#define OFS_UCB2CTLW0 (0x0000)
918#define OFS_UCB2CTLW0_SPI (0x0000)
919#define OFS_UCB2CTLW1 (0x0002)
920#define OFS_UCB2BRW (0x0006)
921#define OFS_UCB2BRW_SPI (0x0006)
922#define OFS_UCB2STATW (0x0008)
923#define OFS_UCB2STATW_SPI (0x0008)
924#define OFS_UCB2TBCNT (0x000A)
925#define OFS_UCB2RXBUF (0x000C)
926#define OFS_UCB2RXBUF_SPI (0x000C)
927#define OFS_UCB2TXBUF (0x000E)
928#define OFS_UCB2TXBUF_SPI (0x000E)
929#define OFS_UCB2I2COA0 (0x0014)
930#define OFS_UCB2I2COA1 (0x0016)
931#define OFS_UCB2I2COA2 (0x0018)
932#define OFS_UCB2I2COA3 (0x001A)
933#define OFS_UCB2ADDRX (0x001C)
934#define OFS_UCB2ADDMASK (0x001E)
935#define OFS_UCB2I2CSA (0x0020)
936#define OFS_UCB2IE (0x002A)
937#define OFS_UCB2IE_SPI (0x002A)
938#define OFS_UCB2IFG (0x002C)
939#define OFS_UCB2IFG_SPI (0x002C)
940#define OFS_UCB2IV (0x002E)
941#define OFS_UCB2IV_SPI (0x002E)
942
943#define UCB2CTL0 (HWREG8_L(UCB2CTLW0)) /* eUSCI_Bx Control 1 */
944#define UCB2CTL1 (HWREG8_H(UCB2CTLW0)) /* eUSCI_Bx Control 0 */
945#define UCB2BR0 (HWREG8_L(UCB2BRW)) /* eUSCI_Bx Bit Rate Control 0 */
946#define UCB2BR1 (HWREG8_H(UCB2BRW)) /* eUSCI_Bx Bit Rate Control 1 */
947#define UCB2STAT (HWREG8_L(UCB2STATW)) /* eUSCI_Bx Status */
948#define UCB2BCNT (HWREG8_H(UCB2STATW)) /* eUSCI_Bx Byte Counter Register */
949
950/******************************************************************************
951* EUSCI_B3 Registers
952******************************************************************************/
953#define UCB3CTLW0 (HWREG16(0x40002C00))
954#define UCB3CTLW0_SPI (HWREG16(0x40002C00))
955#define UCB3CTLW1 (HWREG16(0x40002C02))
956#define UCB3BRW (HWREG16(0x40002C06))
957#define UCB3BRW_SPI (HWREG16(0x40002C06))
958#define UCB3STATW (HWREG16(0x40002C08))
959#define UCB3STATW_SPI (HWREG16(0x40002C08))
960#define UCB3TBCNT (HWREG16(0x40002C0A))
961#define UCB3RXBUF (HWREG16(0x40002C0C))
962#define UCB3RXBUF_SPI (HWREG16(0x40002C0C))
963#define UCB3TXBUF (HWREG16(0x40002C0E))
964#define UCB3TXBUF_SPI (HWREG16(0x40002C0E))
965#define UCB3I2COA0 (HWREG16(0x40002C14))
966#define UCB3I2COA1 (HWREG16(0x40002C16))
967#define UCB3I2COA2 (HWREG16(0x40002C18))
968#define UCB3I2COA3 (HWREG16(0x40002C1A))
969#define UCB3ADDRX (HWREG16(0x40002C1C))
970#define UCB3ADDMASK (HWREG16(0x40002C1E))
971#define UCB3I2CSA (HWREG16(0x40002C20))
972#define UCB3IE (HWREG16(0x40002C2A))
973#define UCB3IE_SPI (HWREG16(0x40002C2A))
974#define UCB3IFG (HWREG16(0x40002C2C))
975#define UCB3IFG_SPI (HWREG16(0x40002C2C))
976#define UCB3IV (HWREG16(0x40002C2E))
977#define UCB3IV_SPI (HWREG16(0x40002C2E))
978
979/* Register offsets from EUSCI_B3_BASE address */
980#define OFS_UCB3CTLW0 (0x0000)
981#define OFS_UCB3CTLW0_SPI (0x0000)
982#define OFS_UCB3CTLW1 (0x0002)
983#define OFS_UCB3BRW (0x0006)
984#define OFS_UCB3BRW_SPI (0x0006)
985#define OFS_UCB3STATW (0x0008)
986#define OFS_UCB3STATW_SPI (0x0008)
987#define OFS_UCB3TBCNT (0x000A)
988#define OFS_UCB3RXBUF (0x000C)
989#define OFS_UCB3RXBUF_SPI (0x000C)
990#define OFS_UCB3TXBUF (0x000E)
991#define OFS_UCB3TXBUF_SPI (0x000E)
992#define OFS_UCB3I2COA0 (0x0014)
993#define OFS_UCB3I2COA1 (0x0016)
994#define OFS_UCB3I2COA2 (0x0018)
995#define OFS_UCB3I2COA3 (0x001A)
996#define OFS_UCB3ADDRX (0x001C)
997#define OFS_UCB3ADDMASK (0x001E)
998#define OFS_UCB3I2CSA (0x0020)
999#define OFS_UCB3IE (0x002A)
1000#define OFS_UCB3IE_SPI (0x002A)
1001#define OFS_UCB3IFG (0x002C)
1002#define OFS_UCB3IFG_SPI (0x002C)
1003#define OFS_UCB3IV (0x002E)
1004#define OFS_UCB3IV_SPI (0x002E)
1005
1006#define UCB3CTL0 (HWREG8_L(UCB3CTLW0)) /* eUSCI_Bx Control 1 */
1007#define UCB3CTL1 (HWREG8_H(UCB3CTLW0)) /* eUSCI_Bx Control 0 */
1008#define UCB3BR0 (HWREG8_L(UCB3BRW)) /* eUSCI_Bx Bit Rate Control 0 */
1009#define UCB3BR1 (HWREG8_H(UCB3BRW)) /* eUSCI_Bx Bit Rate Control 1 */
1010#define UCB3STAT (HWREG8_L(UCB3STATW)) /* eUSCI_Bx Status */
1011#define UCB3BCNT (HWREG8_H(UCB3STATW)) /* eUSCI_Bx Byte Counter Register */
1012
1013/******************************************************************************
1014* PMAP Registers
1015******************************************************************************/
1016#define PMAPKEYID (HWREG16(0x40005000))
1017#define PMAPCTL (HWREG16(0x40005002))
1018#define P1MAP01 (HWREG16(0x40005008))
1019#define P1MAP23 (HWREG16(0x4000500A))
1020#define P1MAP45 (HWREG16(0x4000500C))
1021#define P1MAP67 (HWREG16(0x4000500E))
1022#define P2MAP01 (HWREG16(0x40005010))
1023#define P2MAP23 (HWREG16(0x40005012))
1024#define P2MAP45 (HWREG16(0x40005014))
1025#define P2MAP67 (HWREG16(0x40005016))
1026#define P3MAP01 (HWREG16(0x40005018))
1027#define P3MAP23 (HWREG16(0x4000501A))
1028#define P3MAP45 (HWREG16(0x4000501C))
1029#define P3MAP67 (HWREG16(0x4000501E))
1030#define P4MAP01 (HWREG16(0x40005020))
1031#define P4MAP23 (HWREG16(0x40005022))
1032#define P4MAP45 (HWREG16(0x40005024))
1033#define P4MAP67 (HWREG16(0x40005026))
1034#define P5MAP01 (HWREG16(0x40005028))
1035#define P5MAP23 (HWREG16(0x4000502A))
1036#define P5MAP45 (HWREG16(0x4000502C))
1037#define P5MAP67 (HWREG16(0x4000502E))
1038#define P6MAP01 (HWREG16(0x40005030))
1039#define P6MAP23 (HWREG16(0x40005032))
1040#define P6MAP45 (HWREG16(0x40005034))
1041#define P6MAP67 (HWREG16(0x40005036))
1042#define P7MAP01 (HWREG16(0x40005038))
1043#define P7MAP23 (HWREG16(0x4000503A))
1044#define P7MAP45 (HWREG16(0x4000503C))
1045#define P7MAP67 (HWREG16(0x4000503E))
1047/* Register offsets from PMAP_BASE address */
1048#define OFS_PMAPKEYID (0x0000)
1049#define OFS_PMAPCTL (0x0002)
1050#define OFS_P1MAP01 (0x0008)
1051#define OFS_P1MAP23 (0x000A)
1052#define OFS_P1MAP45 (0x000C)
1053#define OFS_P1MAP67 (0x000E)
1054#define OFS_P2MAP01 (0x0010)
1055#define OFS_P2MAP23 (0x0012)
1056#define OFS_P2MAP45 (0x0014)
1057#define OFS_P2MAP67 (0x0016)
1058#define OFS_P3MAP01 (0x0018)
1059#define OFS_P3MAP23 (0x001A)
1060#define OFS_P3MAP45 (0x001C)
1061#define OFS_P3MAP67 (0x001E)
1062#define OFS_P4MAP01 (0x0020)
1063#define OFS_P4MAP23 (0x0022)
1064#define OFS_P4MAP45 (0x0024)
1065#define OFS_P4MAP67 (0x0026)
1066#define OFS_P5MAP01 (0x0028)
1067#define OFS_P5MAP23 (0x002A)
1068#define OFS_P5MAP45 (0x002C)
1069#define OFS_P5MAP67 (0x002E)
1070#define OFS_P6MAP01 (0x0030)
1071#define OFS_P6MAP23 (0x0032)
1072#define OFS_P6MAP45 (0x0034)
1073#define OFS_P6MAP67 (0x0036)
1074#define OFS_P7MAP01 (0x0038)
1075#define OFS_P7MAP23 (0x003A)
1076#define OFS_P7MAP45 (0x003C)
1077#define OFS_P7MAP67 (0x003E)
1080/******************************************************************************
1081* REF_A Registers
1082******************************************************************************/
1083#define REFCTL0 (HWREG16(0x40003000))
1085/* Register offsets from REF_A_BASE address */
1086#define OFS_REFCTL0 (0x0000)
1088#define REFCTL0_L (HWREG8_L(REFCTL0)) /* REF Control Register 0 */
1089#define REFCTL0_H (HWREG8_H(REFCTL0)) /* REF Control Register 0 */
1090
1091/******************************************************************************
1092* RTC_C Registers
1093******************************************************************************/
1094#define RTCCTL0 (HWREG16(0x40004400))
1095#define RTCCTL13 (HWREG16(0x40004402))
1096#define RTCOCAL (HWREG16(0x40004404))
1097#define RTCTCMP (HWREG16(0x40004406))
1098#define RTCPS0CTL (HWREG16(0x40004408))
1099#define RTCPS1CTL (HWREG16(0x4000440A))
1100#define RTCPS (HWREG16(0x4000440C))
1101#define RTCIV (HWREG16(0x4000440E))
1102#define RTCTIM0 (HWREG16(0x40004410))
1103#define RTCTIM0_BCD (HWREG16(0x40004410))
1104#define RTCTIM1 (HWREG16(0x40004412))
1105#define RTCTIM1_BCD (HWREG16(0x40004412))
1106#define RTCDATE (HWREG16(0x40004414))
1107#define RTCDATE_BCD (HWREG16(0x40004414))
1108#define RTCYEAR (HWREG16(0x40004416))
1109#define RTCYEAR_BCD (HWREG16(0x40004416))
1110#define RTCAMINHR (HWREG16(0x40004418))
1111#define RTCAMINHR_BCD (HWREG16(0x40004418))
1112#define RTCADOWDAY (HWREG16(0x4000441A))
1113#define RTCADOWDAY_BCD (HWREG16(0x4000441A))
1114#define RTCBIN2BCD (HWREG16(0x4000441C))
1115#define RTCBCD2BIN (HWREG16(0x4000441E))
1117/* Register offsets from RTC_C_BASE address */
1118#define OFS_RTCCTL0 (0x0000)
1119#define OFS_RTCCTL13 (0x0002)
1120#define OFS_RTCOCAL (0x0004)
1121#define OFS_RTCTCMP (0x0006)
1122#define OFS_RTCPS0CTL (0x0008)
1123#define OFS_RTCPS1CTL (0x000A)
1124#define OFS_RTCPS (0x000C)
1125#define OFS_RTCIV (0x000E)
1126#define OFS_RTCTIM0 (0x0010)
1127#define OFS_RTCTIM0_BCD (0x0010)
1128#define OFS_RTCTIM1 (0x0012)
1129#define OFS_RTCTIM1_BCD (0x0012)
1130#define OFS_RTCDATE (0x0014)
1131#define OFS_RTCDATE_BCD (0x0014)
1132#define OFS_RTCYEAR (0x0016)
1133#define OFS_RTCYEAR_BCD (0x0016)
1134#define OFS_RTCAMINHR (0x0018)
1135#define OFS_RTCAMINHR_BCD (0x0018)
1136#define OFS_RTCADOWDAY (0x001A)
1137#define OFS_RTCADOWDAY_BCD (0x001A)
1138#define OFS_RTCBIN2BCD (0x001C)
1139#define OFS_RTCBCD2BIN (0x001E)
1141#define RTCCTL0_L (HWREG8_L(RTCCTL0)) /* RTCCTL0 Register */
1142#define RTCCTL0_H (HWREG8_H(RTCCTL0)) /* RTCCTL0 Register */
1143#define RTCCTL1 (HWREG8_L(RTCCTL13)) /* RTCCTL13 Register */
1144#define RTCCTL13_L (HWREG8_L(RTCCTL13)) /* RTCCTL13 Register */
1145#define RTCCTL3 (HWREG8_H(RTCCTL13)) /* RTCCTL13 Register */
1146#define RTCCTL13_H (HWREG8_H(RTCCTL13)) /* RTCCTL13 Register */
1147#define RTCOCAL_L (HWREG8_L(RTCOCAL)) /* RTCOCAL Register */
1148#define RTCOCAL_H (HWREG8_H(RTCOCAL)) /* RTCOCAL Register */
1149#define RTCTCMP_L (HWREG8_L(RTCTCMP)) /* RTCTCMP Register */
1150#define RTCTCMP_H (HWREG8_H(RTCTCMP)) /* RTCTCMP Register */
1151#define RTCPS0CTL_L (HWREG8_L(RTCPS0CTL)) /* Real-Time Clock Prescale Timer 0 Control Register */
1152#define RTCPS0CTL_H (HWREG8_H(RTCPS0CTL)) /* Real-Time Clock Prescale Timer 0 Control Register */
1153#define RTCPS1CTL_L (HWREG8_L(RTCPS1CTL)) /* Real-Time Clock Prescale Timer 1 Control Register */
1154#define RTCPS1CTL_H (HWREG8_H(RTCPS1CTL)) /* Real-Time Clock Prescale Timer 1 Control Register */
1155#define RTCPS0 (HWREG8_L(RTCPS)) /* Real-Time Clock Prescale Timer Counter Register */
1156#define RTCPS_L (HWREG8_L(RTCPS)) /* Real-Time Clock Prescale Timer Counter Register */
1157#define RTCPS1 (HWREG8_H(RTCPS)) /* Real-Time Clock Prescale Timer Counter Register */
1158#define RTCPS_H (HWREG8_H(RTCPS)) /* Real-Time Clock Prescale Timer Counter Register */
1159#define RTCSEC (HWREG8_L(RTCTIM0)) /* Real-Time Clock Seconds */
1160#define RTCTIM0_L (HWREG8_L(RTCTIM0)) /* Real-Time Clock Seconds */
1161#define RTCMIN (HWREG8_H(RTCTIM0)) /* Real-Time Clock Minutes */
1162#define RTCTIM0_H (HWREG8_H(RTCTIM0)) /* Real-Time Clock Minutes */
1163#define RTCHOUR (HWREG8_L(RTCTIM1)) /* Real-Time Clock Hour */
1164#define RTCTIM1_L (HWREG8_L(RTCTIM1)) /* Real-Time Clock Hour */
1165#define RTCDOW (HWREG8_H(RTCTIM1)) /* Real-Time Clock Day of Week */
1166#define RTCTIM1_H (HWREG8_H(RTCTIM1)) /* Real-Time Clock Day of Week */
1167#define RTCDAY (HWREG8_L(RTCDATE)) /* Real-Time Clock Day of Month */
1168#define RTCDATE_L (HWREG8_L(RTCDATE)) /* Real-Time Clock Day of Month */
1169#define RTCMON (HWREG8_H(RTCDATE)) /* Real-Time Clock Month */
1170#define RTCDATE_H (HWREG8_H(RTCDATE)) /* Real-Time Clock Month */
1171#define RTCAMIN (HWREG8_L(RTCAMINHR)) /* Real-Time Clock Minutes Alarm */
1172#define RTCAMINHR_L (HWREG8_L(RTCAMINHR)) /* Real-Time Clock Minutes Alarm */
1173#define RTCAHOUR (HWREG8_H(RTCAMINHR)) /* Real-Time Clock Hours Alarm */
1174#define RTCAMINHR_H (HWREG8_H(RTCAMINHR)) /* Real-Time Clock Hours Alarm */
1175#define RTCADOW (HWREG8_L(RTCADOWDAY))/* Real-Time Clock Day of Week Alarm */
1176#define RTCADOWDAY_L (HWREG8_L(RTCADOWDAY))/* Real-Time Clock Day of Week Alarm */
1177#define RTCADAY (HWREG8_H(RTCADOWDAY))/* Real-Time Clock Day of Month Alarm */
1178#define RTCADOWDAY_H (HWREG8_H(RTCADOWDAY))/* Real-Time Clock Day of Month Alarm */
1179
1180/******************************************************************************
1181* TIMER_A0 Registers
1182******************************************************************************/
1183#define TA0CTL (HWREG16(0x40000000))
1184#define TA0CCTL0 (HWREG16(0x40000002))
1185#define TA0CCTL1 (HWREG16(0x40000004))
1186#define TA0CCTL2 (HWREG16(0x40000006))
1187#define TA0CCTL3 (HWREG16(0x40000008))
1188#define TA0CCTL4 (HWREG16(0x4000000A))
1189#define TA0R (HWREG16(0x40000010))
1190#define TA0CCR0 (HWREG16(0x40000012))
1191#define TA0CCR1 (HWREG16(0x40000014))
1192#define TA0CCR2 (HWREG16(0x40000016))
1193#define TA0CCR3 (HWREG16(0x40000018))
1194#define TA0CCR4 (HWREG16(0x4000001A))
1195#define TA0EX0 (HWREG16(0x40000020))
1196#define TA0IV (HWREG16(0x4000002E))
1198/* Register offsets from TIMER_A0_BASE address */
1199#define OFS_TA0CTL (0x0000)
1200#define OFS_TA0CCTL0 (0x0002)
1201#define OFS_TA0CCTL1 (0x0004)
1202#define OFS_TA0CCTL2 (0x0006)
1203#define OFS_TA0CCTL3 (0x0008)
1204#define OFS_TA0CCTL4 (0x000A)
1205#define OFS_TA0R (0x0010)
1206#define OFS_TA0CCR0 (0x0012)
1207#define OFS_TA0CCR1 (0x0014)
1208#define OFS_TA0CCR2 (0x0016)
1209#define OFS_TA0CCR3 (0x0018)
1210#define OFS_TA0CCR4 (0x001A)
1211#define OFS_TA0EX0 (0x0020)
1212#define OFS_TA0IV (0x002E)
1215/******************************************************************************
1216* TIMER_A1 Registers
1217******************************************************************************/
1218#define TA1CTL (HWREG16(0x40000400))
1219#define TA1CCTL0 (HWREG16(0x40000402))
1220#define TA1CCTL1 (HWREG16(0x40000404))
1221#define TA1CCTL2 (HWREG16(0x40000406))
1222#define TA1CCTL3 (HWREG16(0x40000408))
1223#define TA1CCTL4 (HWREG16(0x4000040A))
1224#define TA1R (HWREG16(0x40000410))
1225#define TA1CCR0 (HWREG16(0x40000412))
1226#define TA1CCR1 (HWREG16(0x40000414))
1227#define TA1CCR2 (HWREG16(0x40000416))
1228#define TA1CCR3 (HWREG16(0x40000418))
1229#define TA1CCR4 (HWREG16(0x4000041A))
1230#define TA1EX0 (HWREG16(0x40000420))
1231#define TA1IV (HWREG16(0x4000042E))
1233/* Register offsets from TIMER_A1_BASE address */
1234#define OFS_TA1CTL (0x0000)
1235#define OFS_TA1CCTL0 (0x0002)
1236#define OFS_TA1CCTL1 (0x0004)
1237#define OFS_TA1CCTL2 (0x0006)
1238#define OFS_TA1CCTL3 (0x0008)
1239#define OFS_TA1CCTL4 (0x000A)
1240#define OFS_TA1R (0x0010)
1241#define OFS_TA1CCR0 (0x0012)
1242#define OFS_TA1CCR1 (0x0014)
1243#define OFS_TA1CCR2 (0x0016)
1244#define OFS_TA1CCR3 (0x0018)
1245#define OFS_TA1CCR4 (0x001A)
1246#define OFS_TA1EX0 (0x0020)
1247#define OFS_TA1IV (0x002E)
1250/******************************************************************************
1251* TIMER_A2 Registers
1252******************************************************************************/
1253#define TA2CTL (HWREG16(0x40000800))
1254#define TA2CCTL0 (HWREG16(0x40000802))
1255#define TA2CCTL1 (HWREG16(0x40000804))
1256#define TA2CCTL2 (HWREG16(0x40000806))
1257#define TA2CCTL3 (HWREG16(0x40000808))
1258#define TA2CCTL4 (HWREG16(0x4000080A))
1259#define TA2R (HWREG16(0x40000810))
1260#define TA2CCR0 (HWREG16(0x40000812))
1261#define TA2CCR1 (HWREG16(0x40000814))
1262#define TA2CCR2 (HWREG16(0x40000816))
1263#define TA2CCR3 (HWREG16(0x40000818))
1264#define TA2CCR4 (HWREG16(0x4000081A))
1265#define TA2EX0 (HWREG16(0x40000820))
1266#define TA2IV (HWREG16(0x4000082E))
1268/* Register offsets from TIMER_A2_BASE address */
1269#define OFS_TA2CTL (0x0000)
1270#define OFS_TA2CCTL0 (0x0002)
1271#define OFS_TA2CCTL1 (0x0004)
1272#define OFS_TA2CCTL2 (0x0006)
1273#define OFS_TA2CCTL3 (0x0008)
1274#define OFS_TA2CCTL4 (0x000A)
1275#define OFS_TA2R (0x0010)
1276#define OFS_TA2CCR0 (0x0012)
1277#define OFS_TA2CCR1 (0x0014)
1278#define OFS_TA2CCR2 (0x0016)
1279#define OFS_TA2CCR3 (0x0018)
1280#define OFS_TA2CCR4 (0x001A)
1281#define OFS_TA2EX0 (0x0020)
1282#define OFS_TA2IV (0x002E)
1285/******************************************************************************
1286* TIMER_A3 Registers
1287******************************************************************************/
1288#define TA3CTL (HWREG16(0x40000C00))
1289#define TA3CCTL0 (HWREG16(0x40000C02))
1290#define TA3CCTL1 (HWREG16(0x40000C04))
1291#define TA3CCTL2 (HWREG16(0x40000C06))
1292#define TA3CCTL3 (HWREG16(0x40000C08))
1293#define TA3CCTL4 (HWREG16(0x40000C0A))
1294#define TA3R (HWREG16(0x40000C10))
1295#define TA3CCR0 (HWREG16(0x40000C12))
1296#define TA3CCR1 (HWREG16(0x40000C14))
1297#define TA3CCR2 (HWREG16(0x40000C16))
1298#define TA3CCR3 (HWREG16(0x40000C18))
1299#define TA3CCR4 (HWREG16(0x40000C1A))
1300#define TA3EX0 (HWREG16(0x40000C20))
1301#define TA3IV (HWREG16(0x40000C2E))
1303/* Register offsets from TIMER_A3_BASE address */
1304#define OFS_TA3CTL (0x0000)
1305#define OFS_TA3CCTL0 (0x0002)
1306#define OFS_TA3CCTL1 (0x0004)
1307#define OFS_TA3CCTL2 (0x0006)
1308#define OFS_TA3CCTL3 (0x0008)
1309#define OFS_TA3CCTL4 (0x000A)
1310#define OFS_TA3R (0x0010)
1311#define OFS_TA3CCR0 (0x0012)
1312#define OFS_TA3CCR1 (0x0014)
1313#define OFS_TA3CCR2 (0x0016)
1314#define OFS_TA3CCR3 (0x0018)
1315#define OFS_TA3CCR4 (0x001A)
1316#define OFS_TA3EX0 (0x0020)
1317#define OFS_TA3IV (0x002E)
1320/******************************************************************************
1321* WDT_A Registers
1322******************************************************************************/
1323#define WDTCTL (HWREG16(0x4000480C))
1325/* Register offsets from WDT_A_BASE address */
1326#define OFS_WDTCTL (0x000C)
1329/******************************************************************************
1330* Peripheral register control bits (legacy section) *
1331******************************************************************************/
1332
1333/******************************************************************************
1334* AES256 Bits (legacy section)
1335******************************************************************************/
1336/* AESACTL0[AESOP] Bits */
1337#define AESOP_OFS AES256_CTL0_OP_OFS
1338#define AESOP_M AES256_CTL0_OP_MASK
1339#define AESOP0 AES256_CTL0_OP0
1340#define AESOP1 AES256_CTL0_OP1
1341#define AESOP_0 AES256_CTL0_OP_0
1342#define AESOP_1 AES256_CTL0_OP_1
1343#define AESOP_2 AES256_CTL0_OP_2
1344#define AESOP_3 AES256_CTL0_OP_3
1345/* AESACTL0[AESKL] Bits */
1346#define AESKL_OFS AES256_CTL0_KL_OFS
1347#define AESKL_M AES256_CTL0_KL_MASK
1348#define AESKL0 AES256_CTL0_KL0
1349#define AESKL1 AES256_CTL0_KL1
1350#define AESKL_0 AES256_CTL0_KL_0
1351#define AESKL_1 AES256_CTL0_KL_1
1352#define AESKL_2 AES256_CTL0_KL_2
1353#define AESKL__128BIT AES256_CTL0_KL__128BIT
1354#define AESKL__192BIT AES256_CTL0_KL__192BIT
1355#define AESKL__256BIT AES256_CTL0_KL__256BIT
1356/* AESACTL0[AESCM] Bits */
1357#define AESCM_OFS AES256_CTL0_CM_OFS
1358#define AESCM_M AES256_CTL0_CM_MASK
1359#define AESCM0 AES256_CTL0_CM0
1360#define AESCM1 AES256_CTL0_CM1
1361#define AESCM_0 AES256_CTL0_CM_0
1362#define AESCM_1 AES256_CTL0_CM_1
1363#define AESCM_2 AES256_CTL0_CM_2
1364#define AESCM_3 AES256_CTL0_CM_3
1365#define AESCM__ECB AES256_CTL0_CM__ECB
1366#define AESCM__CBC AES256_CTL0_CM__CBC
1367#define AESCM__OFB AES256_CTL0_CM__OFB
1368#define AESCM__CFB AES256_CTL0_CM__CFB
1369/* AESACTL0[AESSWRST] Bits */
1370#define AESSWRST_OFS AES256_CTL0_SWRST_OFS
1371#define AESSWRST AES256_CTL0_SWRST
1372/* AESACTL0[AESRDYIFG] Bits */
1373#define AESRDYIFG_OFS AES256_CTL0_RDYIFG_OFS
1374#define AESRDYIFG AES256_CTL0_RDYIFG
1375/* AESACTL0[AESERRFG] Bits */
1376#define AESERRFG_OFS AES256_CTL0_ERRFG_OFS
1377#define AESERRFG AES256_CTL0_ERRFG
1378/* AESACTL0[AESRDYIE] Bits */
1379#define AESRDYIE_OFS AES256_CTL0_RDYIE_OFS
1380#define AESRDYIE AES256_CTL0_RDYIE
1381/* AESACTL0[AESCMEN] Bits */
1382#define AESCMEN_OFS AES256_CTL0_CMEN_OFS
1383#define AESCMEN AES256_CTL0_CMEN
1384/* AESACTL1[AESBLKCNT] Bits */
1385#define AESBLKCNT_OFS AES256_CTL1_BLKCNT_OFS
1386#define AESBLKCNT_M AES256_CTL1_BLKCNT_MASK
1387#define AESBLKCNT0 AES256_CTL1_BLKCNT0
1388#define AESBLKCNT1 AES256_CTL1_BLKCNT1
1389#define AESBLKCNT2 AES256_CTL1_BLKCNT2
1390#define AESBLKCNT3 AES256_CTL1_BLKCNT3
1391#define AESBLKCNT4 AES256_CTL1_BLKCNT4
1392#define AESBLKCNT5 AES256_CTL1_BLKCNT5
1393#define AESBLKCNT6 AES256_CTL1_BLKCNT6
1394#define AESBLKCNT7 AES256_CTL1_BLKCNT7
1395/* AESASTAT[AESBUSY] Bits */
1396#define AESBUSY_OFS AES256_STAT_BUSY_OFS
1397#define AESBUSY AES256_STAT_BUSY
1398/* AESASTAT[AESKEYWR] Bits */
1399#define AESKEYWR_OFS AES256_STAT_KEYWR_OFS
1400#define AESKEYWR AES256_STAT_KEYWR
1401/* AESASTAT[AESDINWR] Bits */
1402#define AESDINWR_OFS AES256_STAT_DINWR_OFS
1403#define AESDINWR AES256_STAT_DINWR
1404/* AESASTAT[AESDOUTRD] Bits */
1405#define AESDOUTRD_OFS AES256_STAT_DOUTRD_OFS
1406#define AESDOUTRD AES256_STAT_DOUTRD
1407/* AESASTAT[AESKEYCNT] Bits */
1408#define AESKEYCNT_OFS AES256_STAT_KEYCNT_OFS
1409#define AESKEYCNT_M AES256_STAT_KEYCNT_MASK
1410#define AESKEYCNT0 AES256_STAT_KEYCNT0
1411#define AESKEYCNT1 AES256_STAT_KEYCNT1
1412#define AESKEYCNT2 AES256_STAT_KEYCNT2
1413#define AESKEYCNT3 AES256_STAT_KEYCNT3
1414/* AESASTAT[AESDINCNT] Bits */
1415#define AESDINCNT_OFS AES256_STAT_DINCNT_OFS
1416#define AESDINCNT_M AES256_STAT_DINCNT_MASK
1417#define AESDINCNT0 AES256_STAT_DINCNT0
1418#define AESDINCNT1 AES256_STAT_DINCNT1
1419#define AESDINCNT2 AES256_STAT_DINCNT2
1420#define AESDINCNT3 AES256_STAT_DINCNT3
1421/* AESASTAT[AESDOUTCNT] Bits */
1422#define AESDOUTCNT_OFS AES256_STAT_DOUTCNT_OFS
1423#define AESDOUTCNT_M AES256_STAT_DOUTCNT_MASK
1424#define AESDOUTCNT0 AES256_STAT_DOUTCNT0
1425#define AESDOUTCNT1 AES256_STAT_DOUTCNT1
1426#define AESDOUTCNT2 AES256_STAT_DOUTCNT2
1427#define AESDOUTCNT3 AES256_STAT_DOUTCNT3
1428/* AESAKEY[AESKEY0] Bits */
1429#define AESKEY0_OFS AES256_KEY_KEY0_OFS
1430#define AESKEY0_M AES256_KEY_KEY0_MASK
1431#define AESKEY00 AES256_KEY_KEY00
1432#define AESKEY01 AES256_KEY_KEY01
1433#define AESKEY02 AES256_KEY_KEY02
1434#define AESKEY03 AES256_KEY_KEY03
1435#define AESKEY04 AES256_KEY_KEY04
1436#define AESKEY05 AES256_KEY_KEY05
1437#define AESKEY06 AES256_KEY_KEY06
1438#define AESKEY07 AES256_KEY_KEY07
1439/* AESAKEY[AESKEY1] Bits */
1440#define AESKEY1_OFS AES256_KEY_KEY1_OFS
1441#define AESKEY1_M AES256_KEY_KEY1_MASK
1442#define AESKEY10 AES256_KEY_KEY10
1443#define AESKEY11 AES256_KEY_KEY11
1444#define AESKEY12 AES256_KEY_KEY12
1445#define AESKEY13 AES256_KEY_KEY13
1446#define AESKEY14 AES256_KEY_KEY14
1447#define AESKEY15 AES256_KEY_KEY15
1448#define AESKEY16 AES256_KEY_KEY16
1449#define AESKEY17 AES256_KEY_KEY17
1450/* AESADIN[AESDIN0] Bits */
1451#define AESDIN0_OFS AES256_DIN_DIN0_OFS
1452#define AESDIN0_M AES256_DIN_DIN0_MASK
1453#define AESDIN00 AES256_DIN_DIN00
1454#define AESDIN01 AES256_DIN_DIN01
1455#define AESDIN02 AES256_DIN_DIN02
1456#define AESDIN03 AES256_DIN_DIN03
1457#define AESDIN04 AES256_DIN_DIN04
1458#define AESDIN05 AES256_DIN_DIN05
1459#define AESDIN06 AES256_DIN_DIN06
1460#define AESDIN07 AES256_DIN_DIN07
1461/* AESADIN[AESDIN1] Bits */
1462#define AESDIN1_OFS AES256_DIN_DIN1_OFS
1463#define AESDIN1_M AES256_DIN_DIN1_MASK
1464#define AESDIN10 AES256_DIN_DIN10
1465#define AESDIN11 AES256_DIN_DIN11
1466#define AESDIN12 AES256_DIN_DIN12
1467#define AESDIN13 AES256_DIN_DIN13
1468#define AESDIN14 AES256_DIN_DIN14
1469#define AESDIN15 AES256_DIN_DIN15
1470#define AESDIN16 AES256_DIN_DIN16
1471#define AESDIN17 AES256_DIN_DIN17
1472/* AESADOUT[AESDOUT0] Bits */
1473#define AESDOUT0_OFS AES256_DOUT_DOUT0_OFS
1474#define AESDOUT0_M AES256_DOUT_DOUT0_MASK
1475#define AESDOUT00 AES256_DOUT_DOUT00
1476#define AESDOUT01 AES256_DOUT_DOUT01
1477#define AESDOUT02 AES256_DOUT_DOUT02
1478#define AESDOUT03 AES256_DOUT_DOUT03
1479#define AESDOUT04 AES256_DOUT_DOUT04
1480#define AESDOUT05 AES256_DOUT_DOUT05
1481#define AESDOUT06 AES256_DOUT_DOUT06
1482#define AESDOUT07 AES256_DOUT_DOUT07
1483/* AESADOUT[AESDOUT1] Bits */
1484#define AESDOUT1_OFS AES256_DOUT_DOUT1_OFS
1485#define AESDOUT1_M AES256_DOUT_DOUT1_MASK
1486#define AESDOUT10 AES256_DOUT_DOUT10
1487#define AESDOUT11 AES256_DOUT_DOUT11
1488#define AESDOUT12 AES256_DOUT_DOUT12
1489#define AESDOUT13 AES256_DOUT_DOUT13
1490#define AESDOUT14 AES256_DOUT_DOUT14
1491#define AESDOUT15 AES256_DOUT_DOUT15
1492#define AESDOUT16 AES256_DOUT_DOUT16
1493#define AESDOUT17 AES256_DOUT_DOUT17
1494/* AESAXDIN[AESXDIN0] Bits */
1495#define AESXDIN0_OFS AES256_XDIN_XDIN0_OFS
1496#define AESXDIN0_M AES256_XDIN_XDIN0_MASK
1497#define AESXDIN00 AES256_XDIN_XDIN00
1498#define AESXDIN01 AES256_XDIN_XDIN01
1499#define AESXDIN02 AES256_XDIN_XDIN02
1500#define AESXDIN03 AES256_XDIN_XDIN03
1501#define AESXDIN04 AES256_XDIN_XDIN04
1502#define AESXDIN05 AES256_XDIN_XDIN05
1503#define AESXDIN06 AES256_XDIN_XDIN06
1504#define AESXDIN07 AES256_XDIN_XDIN07
1505/* AESAXDIN[AESXDIN1] Bits */
1506#define AESXDIN1_OFS AES256_XDIN_XDIN1_OFS
1507#define AESXDIN1_M AES256_XDIN_XDIN1_MASK
1508#define AESXDIN10 AES256_XDIN_XDIN10
1509#define AESXDIN11 AES256_XDIN_XDIN11
1510#define AESXDIN12 AES256_XDIN_XDIN12
1511#define AESXDIN13 AES256_XDIN_XDIN13
1512#define AESXDIN14 AES256_XDIN_XDIN14
1513#define AESXDIN15 AES256_XDIN_XDIN15
1514#define AESXDIN16 AES256_XDIN_XDIN16
1515#define AESXDIN17 AES256_XDIN_XDIN17
1516/* AESAXIN[AESXIN0] Bits */
1517#define AESXIN0_OFS AES256_XIN_XIN0_OFS
1518#define AESXIN0_M AES256_XIN_XIN0_MASK
1519#define AESXIN00 AES256_XIN_XIN00
1520#define AESXIN01 AES256_XIN_XIN01
1521#define AESXIN02 AES256_XIN_XIN02
1522#define AESXIN03 AES256_XIN_XIN03
1523#define AESXIN04 AES256_XIN_XIN04
1524#define AESXIN05 AES256_XIN_XIN05
1525#define AESXIN06 AES256_XIN_XIN06
1526#define AESXIN07 AES256_XIN_XIN07
1527/* AESAXIN[AESXIN1] Bits */
1528#define AESXIN1_OFS AES256_XIN_XIN1_OFS
1529#define AESXIN1_M AES256_XIN_XIN1_MASK
1530#define AESXIN10 AES256_XIN_XIN10
1531#define AESXIN11 AES256_XIN_XIN11
1532#define AESXIN12 AES256_XIN_XIN12
1533#define AESXIN13 AES256_XIN_XIN13
1534#define AESXIN14 AES256_XIN_XIN14
1535#define AESXIN15 AES256_XIN_XIN15
1536#define AESXIN16 AES256_XIN_XIN16
1537#define AESXIN17 AES256_XIN_XIN17
1539/******************************************************************************
1540* CAPTIO Bits (legacy section)
1541******************************************************************************/
1542/* CAPTIO0CTL[CAPTIOPISEL] Bits */
1543#define CAPTIOPISEL_OFS CAPTIO_CTL_PISEL_OFS
1544#define CAPTIOPISEL_M CAPTIO_CTL_PISEL_MASK
1545#define CAPTIOPISEL0 CAPTIO_CTL_PISEL0
1546#define CAPTIOPISEL1 CAPTIO_CTL_PISEL1
1547#define CAPTIOPISEL2 CAPTIO_CTL_PISEL2
1548#define CAPTIOPISEL_0 CAPTIO_CTL_PISEL_0
1549#define CAPTIOPISEL_1 CAPTIO_CTL_PISEL_1
1550#define CAPTIOPISEL_2 CAPTIO_CTL_PISEL_2
1551#define CAPTIOPISEL_3 CAPTIO_CTL_PISEL_3
1552#define CAPTIOPISEL_4 CAPTIO_CTL_PISEL_4
1553#define CAPTIOPISEL_5 CAPTIO_CTL_PISEL_5
1554#define CAPTIOPISEL_6 CAPTIO_CTL_PISEL_6
1555#define CAPTIOPISEL_7 CAPTIO_CTL_PISEL_7
1556/* CAPTIO0CTL[CAPTIOPOSEL] Bits */
1557#define CAPTIOPOSEL_OFS CAPTIO_CTL_POSEL_OFS
1558#define CAPTIOPOSEL_M CAPTIO_CTL_POSEL_MASK
1559#define CAPTIOPOSEL0 CAPTIO_CTL_POSEL0
1560#define CAPTIOPOSEL1 CAPTIO_CTL_POSEL1
1561#define CAPTIOPOSEL2 CAPTIO_CTL_POSEL2
1562#define CAPTIOPOSEL3 CAPTIO_CTL_POSEL3
1563#define CAPTIOPOSEL_0 CAPTIO_CTL_POSEL_0
1564#define CAPTIOPOSEL_1 CAPTIO_CTL_POSEL_1
1565#define CAPTIOPOSEL_2 CAPTIO_CTL_POSEL_2
1566#define CAPTIOPOSEL_3 CAPTIO_CTL_POSEL_3
1567#define CAPTIOPOSEL_4 CAPTIO_CTL_POSEL_4
1568#define CAPTIOPOSEL_5 CAPTIO_CTL_POSEL_5
1569#define CAPTIOPOSEL_6 CAPTIO_CTL_POSEL_6
1570#define CAPTIOPOSEL_7 CAPTIO_CTL_POSEL_7
1571#define CAPTIOPOSEL_8 CAPTIO_CTL_POSEL_8
1572#define CAPTIOPOSEL_9 CAPTIO_CTL_POSEL_9
1573#define CAPTIOPOSEL_10 CAPTIO_CTL_POSEL_10
1574#define CAPTIOPOSEL_11 CAPTIO_CTL_POSEL_11
1575#define CAPTIOPOSEL_12 CAPTIO_CTL_POSEL_12
1576#define CAPTIOPOSEL_13 CAPTIO_CTL_POSEL_13
1577#define CAPTIOPOSEL_14 CAPTIO_CTL_POSEL_14
1578#define CAPTIOPOSEL_15 CAPTIO_CTL_POSEL_15
1579#define CAPTIOPOSEL__PJ CAPTIO_CTL_POSEL__PJ
1580#define CAPTIOPOSEL__P1 CAPTIO_CTL_POSEL__P1
1581#define CAPTIOPOSEL__P2 CAPTIO_CTL_POSEL__P2
1582#define CAPTIOPOSEL__P3 CAPTIO_CTL_POSEL__P3
1583#define CAPTIOPOSEL__P4 CAPTIO_CTL_POSEL__P4
1584#define CAPTIOPOSEL__P5 CAPTIO_CTL_POSEL__P5
1585#define CAPTIOPOSEL__P6 CAPTIO_CTL_POSEL__P6
1586#define CAPTIOPOSEL__P7 CAPTIO_CTL_POSEL__P7
1587#define CAPTIOPOSEL__P8 CAPTIO_CTL_POSEL__P8
1588#define CAPTIOPOSEL__P9 CAPTIO_CTL_POSEL__P9
1589#define CAPTIOPOSEL__P10 CAPTIO_CTL_POSEL__P10
1590#define CAPTIOPOSEL__P11 CAPTIO_CTL_POSEL__P11
1591#define CAPTIOPOSEL__P12 CAPTIO_CTL_POSEL__P12
1592#define CAPTIOPOSEL__P13 CAPTIO_CTL_POSEL__P13
1593#define CAPTIOPOSEL__P14 CAPTIO_CTL_POSEL__P14
1594#define CAPTIOPOSEL__P15 CAPTIO_CTL_POSEL__P15
1595/* CAPTIO0CTL[CAPTIOEN] Bits */
1596#define CAPTIOEN_OFS CAPTIO_CTL_EN_OFS
1597#define CAPTIOEN CAPTIO_CTL_EN
1598/* CAPTIO0CTL[CAPTIOSTATE] Bits */
1599#define CAPTIOSTATE_OFS CAPTIO_CTL_STATE_OFS
1600#define CAPTIOSTATE CAPTIO_CTL_STATE
1602/******************************************************************************
1603* COMP_E Bits (legacy section)
1604******************************************************************************/
1605/* CE0CTL0[CEIPSEL] Bits */
1606#define CEIPSEL_OFS COMP_E_CTL0_IPSEL_OFS
1607#define CEIPSEL_M COMP_E_CTL0_IPSEL_MASK
1608#define CEIPSEL0 COMP_E_CTL0_IPSEL0
1609#define CEIPSEL1 COMP_E_CTL0_IPSEL1
1610#define CEIPSEL2 COMP_E_CTL0_IPSEL2
1611#define CEIPSEL3 COMP_E_CTL0_IPSEL3
1612#define CEIPSEL_0 COMP_E_CTL0_IPSEL_0
1613#define CEIPSEL_1 COMP_E_CTL0_IPSEL_1
1614#define CEIPSEL_2 COMP_E_CTL0_IPSEL_2
1615#define CEIPSEL_3 COMP_E_CTL0_IPSEL_3
1616#define CEIPSEL_4 COMP_E_CTL0_IPSEL_4
1617#define CEIPSEL_5 COMP_E_CTL0_IPSEL_5
1618#define CEIPSEL_6 COMP_E_CTL0_IPSEL_6
1619#define CEIPSEL_7 COMP_E_CTL0_IPSEL_7
1620#define CEIPSEL_8 COMP_E_CTL0_IPSEL_8
1621#define CEIPSEL_9 COMP_E_CTL0_IPSEL_9
1622#define CEIPSEL_10 COMP_E_CTL0_IPSEL_10
1623#define CEIPSEL_11 COMP_E_CTL0_IPSEL_11
1624#define CEIPSEL_12 COMP_E_CTL0_IPSEL_12
1625#define CEIPSEL_13 COMP_E_CTL0_IPSEL_13
1626#define CEIPSEL_14 COMP_E_CTL0_IPSEL_14
1627#define CEIPSEL_15 COMP_E_CTL0_IPSEL_15
1628/* CE0CTL0[CEIPEN] Bits */
1629#define CEIPEN_OFS COMP_E_CTL0_IPEN_OFS
1630#define CEIPEN COMP_E_CTL0_IPEN
1631/* CE0CTL0[CEIMSEL] Bits */
1632#define CEIMSEL_OFS COMP_E_CTL0_IMSEL_OFS
1633#define CEIMSEL_M COMP_E_CTL0_IMSEL_MASK
1634#define CEIMSEL0 COMP_E_CTL0_IMSEL0
1635#define CEIMSEL1 COMP_E_CTL0_IMSEL1
1636#define CEIMSEL2 COMP_E_CTL0_IMSEL2
1637#define CEIMSEL3 COMP_E_CTL0_IMSEL3
1638#define CEIMSEL_0 COMP_E_CTL0_IMSEL_0
1639#define CEIMSEL_1 COMP_E_CTL0_IMSEL_1
1640#define CEIMSEL_2 COMP_E_CTL0_IMSEL_2
1641#define CEIMSEL_3 COMP_E_CTL0_IMSEL_3
1642#define CEIMSEL_4 COMP_E_CTL0_IMSEL_4
1643#define CEIMSEL_5 COMP_E_CTL0_IMSEL_5
1644#define CEIMSEL_6 COMP_E_CTL0_IMSEL_6
1645#define CEIMSEL_7 COMP_E_CTL0_IMSEL_7
1646#define CEIMSEL_8 COMP_E_CTL0_IMSEL_8
1647#define CEIMSEL_9 COMP_E_CTL0_IMSEL_9
1648#define CEIMSEL_10 COMP_E_CTL0_IMSEL_10
1649#define CEIMSEL_11 COMP_E_CTL0_IMSEL_11
1650#define CEIMSEL_12 COMP_E_CTL0_IMSEL_12
1651#define CEIMSEL_13 COMP_E_CTL0_IMSEL_13
1652#define CEIMSEL_14 COMP_E_CTL0_IMSEL_14
1653#define CEIMSEL_15 COMP_E_CTL0_IMSEL_15
1654/* CE0CTL0[CEIMEN] Bits */
1655#define CEIMEN_OFS COMP_E_CTL0_IMEN_OFS
1656#define CEIMEN COMP_E_CTL0_IMEN
1657/* CE0CTL1[CEOUT] Bits */
1658#define CEOUT_OFS COMP_E_CTL1_OUT_OFS
1659#define CEOUT COMP_E_CTL1_OUT
1660/* CE0CTL1[CEOUTPOL] Bits */
1661#define CEOUTPOL_OFS COMP_E_CTL1_OUTPOL_OFS
1662#define CEOUTPOL COMP_E_CTL1_OUTPOL
1663/* CE0CTL1[CEF] Bits */
1664#define CEF_OFS COMP_E_CTL1_F_OFS
1665#define CEF COMP_E_CTL1_F
1666/* CE0CTL1[CEIES] Bits */
1667#define CEIES_OFS COMP_E_CTL1_IES_OFS
1668#define CEIES COMP_E_CTL1_IES
1669/* CE0CTL1[CESHORT] Bits */
1670#define CESHORT_OFS COMP_E_CTL1_SHORT_OFS
1671#define CESHORT COMP_E_CTL1_SHORT
1672/* CE0CTL1[CEEX] Bits */
1673#define CEEX_OFS COMP_E_CTL1_EX_OFS
1674#define CEEX COMP_E_CTL1_EX
1675/* CE0CTL1[CEFDLY] Bits */
1676#define CEFDLY_OFS COMP_E_CTL1_FDLY_OFS
1677#define CEFDLY_M COMP_E_CTL1_FDLY_MASK
1678#define CEFDLY0 COMP_E_CTL1_FDLY0
1679#define CEFDLY1 COMP_E_CTL1_FDLY1
1680#define CEFDLY_0 COMP_E_CTL1_FDLY_0
1681#define CEFDLY_1 COMP_E_CTL1_FDLY_1
1682#define CEFDLY_2 COMP_E_CTL1_FDLY_2
1683#define CEFDLY_3 COMP_E_CTL1_FDLY_3
1684/* CE0CTL1[CEPWRMD] Bits */
1685#define CEPWRMD_OFS COMP_E_CTL1_PWRMD_OFS
1686#define CEPWRMD_M COMP_E_CTL1_PWRMD_MASK
1687#define CEPWRMD0 COMP_E_CTL1_PWRMD0
1688#define CEPWRMD1 COMP_E_CTL1_PWRMD1
1689#define CEPWRMD_0 COMP_E_CTL1_PWRMD_0
1690#define CEPWRMD_1 COMP_E_CTL1_PWRMD_1
1691#define CEPWRMD_2 COMP_E_CTL1_PWRMD_2
1692/* CE0CTL1[CEON] Bits */
1693#define CEON_OFS COMP_E_CTL1_ON_OFS
1694#define CEON COMP_E_CTL1_ON
1695/* CE0CTL1[CEMRVL] Bits */
1696#define CEMRVL_OFS COMP_E_CTL1_MRVL_OFS
1697#define CEMRVL COMP_E_CTL1_MRVL
1698/* CE0CTL1[CEMRVS] Bits */
1699#define CEMRVS_OFS COMP_E_CTL1_MRVS_OFS
1700#define CEMRVS COMP_E_CTL1_MRVS
1701/* CE0CTL2[CEREF0] Bits */
1702#define CEREF0_OFS COMP_E_CTL2_REF0_OFS
1703#define CEREF0_M COMP_E_CTL2_REF0_MASK
1704#define CEREF00 COMP_E_CTL2_REF00
1705#define CEREF01 COMP_E_CTL2_REF01
1706#define CEREF02 COMP_E_CTL2_REF02
1707#define CEREF03 COMP_E_CTL2_REF03
1708#define CEREF04 COMP_E_CTL2_REF04
1709#define CEREF0_0 COMP_E_CTL2_REF0_0
1710#define CEREF0_1 COMP_E_CTL2_REF0_1
1711#define CEREF0_2 COMP_E_CTL2_REF0_2
1712#define CEREF0_3 COMP_E_CTL2_REF0_3
1713#define CEREF0_4 COMP_E_CTL2_REF0_4
1714#define CEREF0_5 COMP_E_CTL2_REF0_5
1715#define CEREF0_6 COMP_E_CTL2_REF0_6
1716#define CEREF0_7 COMP_E_CTL2_REF0_7
1717#define CEREF0_8 COMP_E_CTL2_REF0_8
1718#define CEREF0_9 COMP_E_CTL2_REF0_9
1719#define CEREF0_10 COMP_E_CTL2_REF0_10
1720#define CEREF0_11 COMP_E_CTL2_REF0_11
1721#define CEREF0_12 COMP_E_CTL2_REF0_12
1722#define CEREF0_13 COMP_E_CTL2_REF0_13
1723#define CEREF0_14 COMP_E_CTL2_REF0_14
1724#define CEREF0_15 COMP_E_CTL2_REF0_15
1725#define CEREF0_16 COMP_E_CTL2_REF0_16
1726#define CEREF0_17 COMP_E_CTL2_REF0_17
1727#define CEREF0_18 COMP_E_CTL2_REF0_18
1728#define CEREF0_19 COMP_E_CTL2_REF0_19
1729#define CEREF0_20 COMP_E_CTL2_REF0_20
1730#define CEREF0_21 COMP_E_CTL2_REF0_21
1731#define CEREF0_22 COMP_E_CTL2_REF0_22
1732#define CEREF0_23 COMP_E_CTL2_REF0_23
1733#define CEREF0_24 COMP_E_CTL2_REF0_24
1734#define CEREF0_25 COMP_E_CTL2_REF0_25
1735#define CEREF0_26 COMP_E_CTL2_REF0_26
1736#define CEREF0_27 COMP_E_CTL2_REF0_27
1737#define CEREF0_28 COMP_E_CTL2_REF0_28
1738#define CEREF0_29 COMP_E_CTL2_REF0_29
1739#define CEREF0_30 COMP_E_CTL2_REF0_30
1740#define CEREF0_31 COMP_E_CTL2_REF0_31
1741/* CE0CTL2[CERSEL] Bits */
1742#define CERSEL_OFS COMP_E_CTL2_RSEL_OFS
1743#define CERSEL COMP_E_CTL2_RSEL
1744/* CE0CTL2[CERS] Bits */
1745#define CERS_OFS COMP_E_CTL2_RS_OFS
1746#define CERS_M COMP_E_CTL2_RS_MASK
1747#define CERS0 COMP_E_CTL2_RS0
1748#define CERS1 COMP_E_CTL2_RS1
1749#define CERS_0 COMP_E_CTL2_RS_0
1750#define CERS_1 COMP_E_CTL2_RS_1
1751#define CERS_2 COMP_E_CTL2_RS_2
1752#define CERS_3 COMP_E_CTL2_RS_3
1753/* CE0CTL2[CEREF1] Bits */
1754#define CEREF1_OFS COMP_E_CTL2_REF1_OFS
1755#define CEREF1_M COMP_E_CTL2_REF1_MASK
1756#define CEREF10 COMP_E_CTL2_REF10
1757#define CEREF11 COMP_E_CTL2_REF11
1758#define CEREF12 COMP_E_CTL2_REF12
1759#define CEREF13 COMP_E_CTL2_REF13
1760#define CEREF14 COMP_E_CTL2_REF14
1761#define CEREF1_0 COMP_E_CTL2_REF1_0
1762#define CEREF1_1 COMP_E_CTL2_REF1_1
1763#define CEREF1_2 COMP_E_CTL2_REF1_2
1764#define CEREF1_3 COMP_E_CTL2_REF1_3
1765#define CEREF1_4 COMP_E_CTL2_REF1_4
1766#define CEREF1_5 COMP_E_CTL2_REF1_5
1767#define CEREF1_6 COMP_E_CTL2_REF1_6
1768#define CEREF1_7 COMP_E_CTL2_REF1_7
1769#define CEREF1_8 COMP_E_CTL2_REF1_8
1770#define CEREF1_9 COMP_E_CTL2_REF1_9
1771#define CEREF1_10 COMP_E_CTL2_REF1_10
1772#define CEREF1_11 COMP_E_CTL2_REF1_11
1773#define CEREF1_12 COMP_E_CTL2_REF1_12
1774#define CEREF1_13 COMP_E_CTL2_REF1_13
1775#define CEREF1_14 COMP_E_CTL2_REF1_14
1776#define CEREF1_15 COMP_E_CTL2_REF1_15
1777#define CEREF1_16 COMP_E_CTL2_REF1_16
1778#define CEREF1_17 COMP_E_CTL2_REF1_17
1779#define CEREF1_18 COMP_E_CTL2_REF1_18
1780#define CEREF1_19 COMP_E_CTL2_REF1_19
1781#define CEREF1_20 COMP_E_CTL2_REF1_20
1782#define CEREF1_21 COMP_E_CTL2_REF1_21
1783#define CEREF1_22 COMP_E_CTL2_REF1_22
1784#define CEREF1_23 COMP_E_CTL2_REF1_23
1785#define CEREF1_24 COMP_E_CTL2_REF1_24
1786#define CEREF1_25 COMP_E_CTL2_REF1_25
1787#define CEREF1_26 COMP_E_CTL2_REF1_26
1788#define CEREF1_27 COMP_E_CTL2_REF1_27
1789#define CEREF1_28 COMP_E_CTL2_REF1_28
1790#define CEREF1_29 COMP_E_CTL2_REF1_29
1791#define CEREF1_30 COMP_E_CTL2_REF1_30
1792#define CEREF1_31 COMP_E_CTL2_REF1_31
1793/* CE0CTL2[CEREFL] Bits */
1794#define CEREFL_OFS COMP_E_CTL2_REFL_OFS
1795#define CEREFL_M COMP_E_CTL2_REFL_MASK
1796#define CEREFL0 COMP_E_CTL2_REFL0
1797#define CEREFL1 COMP_E_CTL2_REFL1
1798#define CEREFL_0 COMP_E_CTL2_CEREFL_0
1799#define CEREFL_1 COMP_E_CTL2_CEREFL_1
1800#define CEREFL_2 COMP_E_CTL2_CEREFL_2
1801#define CEREFL_3 COMP_E_CTL2_CEREFL_3
1802#define CEREFL__OFF COMP_E_CTL2_REFL__OFF
1803#define CEREFL__1P2V COMP_E_CTL2_REFL__1P2V
1804#define CEREFL__2P0V COMP_E_CTL2_REFL__2P0V
1805#define CEREFL__2P5V COMP_E_CTL2_REFL__2P5V
1806/* CE0CTL2[CEREFACC] Bits */
1807#define CEREFACC_OFS COMP_E_CTL2_REFACC_OFS
1808#define CEREFACC COMP_E_CTL2_REFACC
1809/* CE0CTL3[CEPD0] Bits */
1810#define CEPD0_OFS COMP_E_CTL3_PD0_OFS
1811#define CEPD0 COMP_E_CTL3_PD0
1812/* CE0CTL3[CEPD1] Bits */
1813#define CEPD1_OFS COMP_E_CTL3_PD1_OFS
1814#define CEPD1 COMP_E_CTL3_PD1
1815/* CE0CTL3[CEPD2] Bits */
1816#define CEPD2_OFS COMP_E_CTL3_PD2_OFS
1817#define CEPD2 COMP_E_CTL3_PD2
1818/* CE0CTL3[CEPD3] Bits */
1819#define CEPD3_OFS COMP_E_CTL3_PD3_OFS
1820#define CEPD3 COMP_E_CTL3_PD3
1821/* CE0CTL3[CEPD4] Bits */
1822#define CEPD4_OFS COMP_E_CTL3_PD4_OFS
1823#define CEPD4 COMP_E_CTL3_PD4
1824/* CE0CTL3[CEPD5] Bits */
1825#define CEPD5_OFS COMP_E_CTL3_PD5_OFS
1826#define CEPD5 COMP_E_CTL3_PD5
1827/* CE0CTL3[CEPD6] Bits */
1828#define CEPD6_OFS COMP_E_CTL3_PD6_OFS
1829#define CEPD6 COMP_E_CTL3_PD6
1830/* CE0CTL3[CEPD7] Bits */
1831#define CEPD7_OFS COMP_E_CTL3_PD7_OFS
1832#define CEPD7 COMP_E_CTL3_PD7
1833/* CE0CTL3[CEPD8] Bits */
1834#define CEPD8_OFS COMP_E_CTL3_PD8_OFS
1835#define CEPD8 COMP_E_CTL3_PD8
1836/* CE0CTL3[CEPD9] Bits */
1837#define CEPD9_OFS COMP_E_CTL3_PD9_OFS
1838#define CEPD9 COMP_E_CTL3_PD9
1839/* CE0CTL3[CEPD10] Bits */
1840#define CEPD10_OFS COMP_E_CTL3_PD10_OFS
1841#define CEPD10 COMP_E_CTL3_PD10
1842/* CE0CTL3[CEPD11] Bits */
1843#define CEPD11_OFS COMP_E_CTL3_PD11_OFS
1844#define CEPD11 COMP_E_CTL3_PD11
1845/* CE0CTL3[CEPD12] Bits */
1846#define CEPD12_OFS COMP_E_CTL3_PD12_OFS
1847#define CEPD12 COMP_E_CTL3_PD12
1848/* CE0CTL3[CEPD13] Bits */
1849#define CEPD13_OFS COMP_E_CTL3_PD13_OFS
1850#define CEPD13 COMP_E_CTL3_PD13
1851/* CE0CTL3[CEPD14] Bits */
1852#define CEPD14_OFS COMP_E_CTL3_PD14_OFS
1853#define CEPD14 COMP_E_CTL3_PD14
1854/* CE0CTL3[CEPD15] Bits */
1855#define CEPD15_OFS COMP_E_CTL3_PD15_OFS
1856#define CEPD15 COMP_E_CTL3_PD15
1857/* CE0INT[CEIFG] Bits */
1858#define CEIFG_OFS COMP_E_INT_IFG_OFS
1859#define CEIFG COMP_E_INT_IFG
1860/* CE0INT[CEIIFG] Bits */
1861#define CEIIFG_OFS COMP_E_INT_IIFG_OFS
1862#define CEIIFG COMP_E_INT_IIFG
1863/* CE0INT[CERDYIFG] Bits */
1864#define CERDYIFG_OFS COMP_E_INT_RDYIFG_OFS
1865#define CERDYIFG COMP_E_INT_RDYIFG
1866/* CE0INT[CEIE] Bits */
1867#define CEIE_OFS COMP_E_INT_IE_OFS
1868#define CEIE COMP_E_INT_IE
1869/* CE0INT[CEIIE] Bits */
1870#define CEIIE_OFS COMP_E_INT_IIE_OFS
1871#define CEIIE COMP_E_INT_IIE
1872/* CE0INT[CERDYIE] Bits */
1873#define CERDYIE_OFS COMP_E_INT_RDYIE_OFS
1874#define CERDYIE COMP_E_INT_RDYIE
1876/******************************************************************************
1877* CRC32 Bits (legacy section)
1878******************************************************************************/
1879/* DIO_PAIN[P1IN] Bits */
1880#define P1IN_OFS ( 0)
1881#define P1IN_M (0x00ff)
1882/* DIO_PAIN[P2IN] Bits */
1883#define P2IN_OFS ( 8)
1884#define P2IN_M (0xff00)
1885/* DIO_PAOUT[P2OUT] Bits */
1886#define P2OUT_OFS ( 8)
1887#define P2OUT_M (0xff00)
1888/* DIO_PAOUT[P1OUT] Bits */
1889#define P1OUT_OFS ( 0)
1890#define P1OUT_M (0x00ff)
1891/* DIO_PADIR[P1DIR] Bits */
1892#define P1DIR_OFS ( 0)
1893#define P1DIR_M (0x00ff)
1894/* DIO_PADIR[P2DIR] Bits */
1895#define P2DIR_OFS ( 8)
1896#define P2DIR_M (0xff00)
1897/* DIO_PAREN[P1REN] Bits */
1898#define P1REN_OFS ( 0)
1899#define P1REN_M (0x00ff)
1900/* DIO_PAREN[P2REN] Bits */
1901#define P2REN_OFS ( 8)
1902#define P2REN_M (0xff00)
1903/* DIO_PADS[P1DS] Bits */
1904#define P1DS_OFS ( 0)
1905#define P1DS_M (0x00ff)
1906/* DIO_PADS[P2DS] Bits */
1907#define P2DS_OFS ( 8)
1908#define P2DS_M (0xff00)
1909/* DIO_PASEL0[P1SEL0] Bits */
1910#define P1SEL0_OFS ( 0)
1911#define P1SEL0_M (0x00ff)
1912/* DIO_PASEL0[P2SEL0] Bits */
1913#define P2SEL0_OFS ( 8)
1914#define P2SEL0_M (0xff00)
1915/* DIO_PASEL1[P1SEL1] Bits */
1916#define P1SEL1_OFS ( 0)
1917#define P1SEL1_M (0x00ff)
1918/* DIO_PASEL1[P2SEL1] Bits */
1919#define P2SEL1_OFS ( 8)
1920#define P2SEL1_M (0xff00)
1921/* DIO_P1IV[P1IV] Bits */
1922#define P1IV_OFS ( 0)
1923#define P1IV_M (0x001f)
1924#define P1IV0 (0x0001)
1925#define P1IV1 (0x0002)
1926#define P1IV2 (0x0004)
1927#define P1IV3 (0x0008)
1928#define P1IV4 (0x0010)
1929#define P1IV_0 (0x0000)
1930#define P1IV_2 (0x0002)
1931#define P1IV_4 (0x0004)
1932#define P1IV_6 (0x0006)
1933#define P1IV_8 (0x0008)
1934#define P1IV_10 (0x000a)
1935#define P1IV_12 (0x000c)
1936#define P1IV_14 (0x000e)
1937#define P1IV_16 (0x0010)
1938#define P1IV__NONE (0x0000)
1939#define P1IV__P1IFG0 (0x0002)
1940#define P1IV__P1IFG1 (0x0004)
1941#define P1IV__P1IFG2 (0x0006)
1942#define P1IV__P1IFG3 (0x0008)
1943#define P1IV__P1IFG4 (0x000a)
1944#define P1IV__P1IFG5 (0x000c)
1945#define P1IV__P1IFG6 (0x000e)
1946#define P1IV__P1IFG7 (0x0010)
1947/* DIO_PASELC[P1SELC] Bits */
1948#define P1SELC_OFS ( 0)
1949#define P1SELC_M (0x00ff)
1950/* DIO_PASELC[P2SELC] Bits */
1951#define P2SELC_OFS ( 8)
1952#define P2SELC_M (0xff00)
1953/* DIO_PAIES[P1IES] Bits */
1954#define P1IES_OFS ( 0)
1955#define P1IES_M (0x00ff)
1956/* DIO_PAIES[P2IES] Bits */
1957#define P2IES_OFS ( 8)
1958#define P2IES_M (0xff00)
1959/* DIO_PAIE[P1IE] Bits */
1960#define P1IE_OFS ( 0)
1961#define P1IE_M (0x00ff)
1962/* DIO_PAIE[P2IE] Bits */
1963#define P2IE_OFS ( 8)
1964#define P2IE_M (0xff00)
1965/* DIO_PAIFG[P1IFG] Bits */
1966#define P1IFG_OFS ( 0)
1967#define P1IFG_M (0x00ff)
1968/* DIO_PAIFG[P2IFG] Bits */
1969#define P2IFG_OFS ( 8)
1970#define P2IFG_M (0xff00)
1971/* DIO_P2IV[P2IV] Bits */
1972#define P2IV_OFS ( 0)
1973#define P2IV_M (0x001f)
1974#define P2IV0 (0x0001)
1975#define P2IV1 (0x0002)
1976#define P2IV2 (0x0004)
1977#define P2IV3 (0x0008)
1978#define P2IV4 (0x0010)
1979#define P2IV_0 (0x0000)
1980#define P2IV_2 (0x0002)
1981#define P2IV_4 (0x0004)
1982#define P2IV_6 (0x0006)
1983#define P2IV_8 (0x0008)
1984#define P2IV_10 (0x000a)
1985#define P2IV_12 (0x000c)
1986#define P2IV_14 (0x000e)
1987#define P2IV_16 (0x0010)
1988#define P2IV__NONE (0x0000)
1989#define P2IV__P2IFG0 (0x0002)
1990#define P2IV__P2IFG1 (0x0004)
1991#define P2IV__P2IFG2 (0x0006)
1992#define P2IV__P2IFG3 (0x0008)
1993#define P2IV__P2IFG4 (0x000a)
1994#define P2IV__P2IFG5 (0x000c)
1995#define P2IV__P2IFG6 (0x000e)
1996#define P2IV__P2IFG7 (0x0010)
1997/* DIO_PBIN[P3IN] Bits */
1998#define P3IN_OFS ( 0)
1999#define P3IN_M (0x00ff)
2000/* DIO_PBIN[P4IN] Bits */
2001#define P4IN_OFS ( 8)
2002#define P4IN_M (0xff00)
2003/* DIO_PBOUT[P3OUT] Bits */
2004#define P3OUT_OFS ( 0)
2005#define P3OUT_M (0x00ff)
2006/* DIO_PBOUT[P4OUT] Bits */
2007#define P4OUT_OFS ( 8)
2008#define P4OUT_M (0xff00)
2009/* DIO_PBDIR[P3DIR] Bits */
2010#define P3DIR_OFS ( 0)
2011#define P3DIR_M (0x00ff)
2012/* DIO_PBDIR[P4DIR] Bits */
2013#define P4DIR_OFS ( 8)
2014#define P4DIR_M (0xff00)
2015/* DIO_PBREN[P3REN] Bits */
2016#define P3REN_OFS ( 0)
2017#define P3REN_M (0x00ff)
2018/* DIO_PBREN[P4REN] Bits */
2019#define P4REN_OFS ( 8)
2020#define P4REN_M (0xff00)
2021/* DIO_PBDS[P3DS] Bits */
2022#define P3DS_OFS ( 0)
2023#define P3DS_M (0x00ff)
2024/* DIO_PBDS[P4DS] Bits */
2025#define P4DS_OFS ( 8)
2026#define P4DS_M (0xff00)
2027/* DIO_PBSEL0[P4SEL0] Bits */
2028#define P4SEL0_OFS ( 8)
2029#define P4SEL0_M (0xff00)
2030/* DIO_PBSEL0[P3SEL0] Bits */
2031#define P3SEL0_OFS ( 0)
2032#define P3SEL0_M (0x00ff)
2033/* DIO_PBSEL1[P3SEL1] Bits */
2034#define P3SEL1_OFS ( 0)
2035#define P3SEL1_M (0x00ff)
2036/* DIO_PBSEL1[P4SEL1] Bits */
2037#define P4SEL1_OFS ( 8)
2038#define P4SEL1_M (0xff00)
2039/* DIO_P3IV[P3IV] Bits */
2040#define P3IV_OFS ( 0)
2041#define P3IV_M (0x001f)
2042#define P3IV0 (0x0001)
2043#define P3IV1 (0x0002)
2044#define P3IV2 (0x0004)
2045#define P3IV3 (0x0008)
2046#define P3IV4 (0x0010)
2047#define P3IV_0 (0x0000)
2048#define P3IV_2 (0x0002)
2049#define P3IV_4 (0x0004)
2050#define P3IV_6 (0x0006)
2051#define P3IV_8 (0x0008)
2052#define P3IV_10 (0x000a)
2053#define P3IV_12 (0x000c)
2054#define P3IV_14 (0x000e)
2055#define P3IV_16 (0x0010)
2056#define P3IV__NONE (0x0000)
2057#define P3IV__P3IFG0 (0x0002)
2058#define P3IV__P3IFG1 (0x0004)
2059#define P3IV__P3IFG2 (0x0006)
2060#define P3IV__P3IFG3 (0x0008)
2061#define P3IV__P3IFG4 (0x000a)
2062#define P3IV__P3IFG5 (0x000c)
2063#define P3IV__P3IFG6 (0x000e)
2064#define P3IV__P3IFG7 (0x0010)
2065/* DIO_PBSELC[P3SELC] Bits */
2066#define P3SELC_OFS ( 0)
2067#define P3SELC_M (0x00ff)
2068/* DIO_PBSELC[P4SELC] Bits */
2069#define P4SELC_OFS ( 8)
2070#define P4SELC_M (0xff00)
2071/* DIO_PBIES[P3IES] Bits */
2072#define P3IES_OFS ( 0)
2073#define P3IES_M (0x00ff)
2074/* DIO_PBIES[P4IES] Bits */
2075#define P4IES_OFS ( 8)
2076#define P4IES_M (0xff00)
2077/* DIO_PBIE[P3IE] Bits */
2078#define P3IE_OFS ( 0)
2079#define P3IE_M (0x00ff)
2080/* DIO_PBIE[P4IE] Bits */
2081#define P4IE_OFS ( 8)
2082#define P4IE_M (0xff00)
2083/* DIO_PBIFG[P3IFG] Bits */
2084#define P3IFG_OFS ( 0)
2085#define P3IFG_M (0x00ff)
2086/* DIO_PBIFG[P4IFG] Bits */
2087#define P4IFG_OFS ( 8)
2088#define P4IFG_M (0xff00)
2089/* DIO_P4IV[P4IV] Bits */
2090#define P4IV_OFS ( 0)
2091#define P4IV_M (0x001f)
2092#define P4IV0 (0x0001)
2093#define P4IV1 (0x0002)
2094#define P4IV2 (0x0004)
2095#define P4IV3 (0x0008)
2096#define P4IV4 (0x0010)
2097#define P4IV_0 (0x0000)
2098#define P4IV_2 (0x0002)
2099#define P4IV_4 (0x0004)
2100#define P4IV_6 (0x0006)
2101#define P4IV_8 (0x0008)
2102#define P4IV_10 (0x000a)
2103#define P4IV_12 (0x000c)
2104#define P4IV_14 (0x000e)
2105#define P4IV_16 (0x0010)
2106#define P4IV__NONE (0x0000)
2107#define P4IV__P4IFG0 (0x0002)
2108#define P4IV__P4IFG1 (0x0004)
2109#define P4IV__P4IFG2 (0x0006)
2110#define P4IV__P4IFG3 (0x0008)
2111#define P4IV__P4IFG4 (0x000a)
2112#define P4IV__P4IFG5 (0x000c)
2113#define P4IV__P4IFG6 (0x000e)
2114#define P4IV__P4IFG7 (0x0010)
2115/* DIO_PCIN[P5IN] Bits */
2116#define P5IN_OFS ( 0)
2117#define P5IN_M (0x00ff)
2118/* DIO_PCIN[P6IN] Bits */
2119#define P6IN_OFS ( 8)
2120#define P6IN_M (0xff00)
2121/* DIO_PCOUT[P5OUT] Bits */
2122#define P5OUT_OFS ( 0)
2123#define P5OUT_M (0x00ff)
2124/* DIO_PCOUT[P6OUT] Bits */
2125#define P6OUT_OFS ( 8)
2126#define P6OUT_M (0xff00)
2127/* DIO_PCDIR[P5DIR] Bits */
2128#define P5DIR_OFS ( 0)
2129#define P5DIR_M (0x00ff)
2130/* DIO_PCDIR[P6DIR] Bits */
2131#define P6DIR_OFS ( 8)
2132#define P6DIR_M (0xff00)
2133/* DIO_PCREN[P5REN] Bits */
2134#define P5REN_OFS ( 0)
2135#define P5REN_M (0x00ff)
2136/* DIO_PCREN[P6REN] Bits */
2137#define P6REN_OFS ( 8)
2138#define P6REN_M (0xff00)
2139/* DIO_PCDS[P5DS] Bits */
2140#define P5DS_OFS ( 0)
2141#define P5DS_M (0x00ff)
2142/* DIO_PCDS[P6DS] Bits */
2143#define P6DS_OFS ( 8)
2144#define P6DS_M (0xff00)
2145/* DIO_PCSEL0[P5SEL0] Bits */
2146#define P5SEL0_OFS ( 0)
2147#define P5SEL0_M (0x00ff)
2148/* DIO_PCSEL0[P6SEL0] Bits */
2149#define P6SEL0_OFS ( 8)
2150#define P6SEL0_M (0xff00)
2151/* DIO_PCSEL1[P5SEL1] Bits */
2152#define P5SEL1_OFS ( 0)
2153#define P5SEL1_M (0x00ff)
2154/* DIO_PCSEL1[P6SEL1] Bits */
2155#define P6SEL1_OFS ( 8)
2156#define P6SEL1_M (0xff00)
2157/* DIO_P5IV[P5IV] Bits */
2158#define P5IV_OFS ( 0)
2159#define P5IV_M (0x001f)
2160#define P5IV0 (0x0001)
2161#define P5IV1 (0x0002)
2162#define P5IV2 (0x0004)
2163#define P5IV3 (0x0008)
2164#define P5IV4 (0x0010)
2165#define P5IV_0 (0x0000)
2166#define P5IV_2 (0x0002)
2167#define P5IV_4 (0x0004)
2168#define P5IV_6 (0x0006)
2169#define P5IV_8 (0x0008)
2170#define P5IV_10 (0x000a)
2171#define P5IV_12 (0x000c)
2172#define P5IV_14 (0x000e)
2173#define P5IV_16 (0x0010)
2174#define P5IV__NONE (0x0000)
2175#define P5IV__P5IFG0 (0x0002)
2176#define P5IV__P5IFG1 (0x0004)
2177#define P5IV__P5IFG2 (0x0006)
2178#define P5IV__P5IFG3 (0x0008)
2179#define P5IV__P5IFG4 (0x000a)
2180#define P5IV__P5IFG5 (0x000c)
2181#define P5IV__P5IFG6 (0x000e)
2182#define P5IV__P5IFG7 (0x0010)
2183/* DIO_PCSELC[P5SELC] Bits */
2184#define P5SELC_OFS ( 0)
2185#define P5SELC_M (0x00ff)
2186/* DIO_PCSELC[P6SELC] Bits */
2187#define P6SELC_OFS ( 8)
2188#define P6SELC_M (0xff00)
2189/* DIO_PCIES[P5IES] Bits */
2190#define P5IES_OFS ( 0)
2191#define P5IES_M (0x00ff)
2192/* DIO_PCIES[P6IES] Bits */
2193#define P6IES_OFS ( 8)
2194#define P6IES_M (0xff00)
2195/* DIO_PCIE[P5IE] Bits */
2196#define P5IE_OFS ( 0)
2197#define P5IE_M (0x00ff)
2198/* DIO_PCIE[P6IE] Bits */
2199#define P6IE_OFS ( 8)
2200#define P6IE_M (0xff00)
2201/* DIO_PCIFG[P5IFG] Bits */
2202#define P5IFG_OFS ( 0)
2203#define P5IFG_M (0x00ff)
2204/* DIO_PCIFG[P6IFG] Bits */
2205#define P6IFG_OFS ( 8)
2206#define P6IFG_M (0xff00)
2207/* DIO_P6IV[P6IV] Bits */
2208#define P6IV_OFS ( 0)
2209#define P6IV_M (0x001f)
2210#define P6IV0 (0x0001)
2211#define P6IV1 (0x0002)
2212#define P6IV2 (0x0004)
2213#define P6IV3 (0x0008)
2214#define P6IV4 (0x0010)
2215#define P6IV_0 (0x0000)
2216#define P6IV_2 (0x0002)
2217#define P6IV_4 (0x0004)
2218#define P6IV_6 (0x0006)
2219#define P6IV_8 (0x0008)
2220#define P6IV_10 (0x000a)
2221#define P6IV_12 (0x000c)
2222#define P6IV_14 (0x000e)
2223#define P6IV_16 (0x0010)
2224#define P6IV__NONE (0x0000)
2225#define P6IV__P6IFG0 (0x0002)
2226#define P6IV__P6IFG1 (0x0004)
2227#define P6IV__P6IFG2 (0x0006)
2228#define P6IV__P6IFG3 (0x0008)
2229#define P6IV__P6IFG4 (0x000a)
2230#define P6IV__P6IFG5 (0x000c)
2231#define P6IV__P6IFG6 (0x000e)
2232#define P6IV__P6IFG7 (0x0010)
2233/* DIO_PDIN[P7IN] Bits */
2234#define P7IN_OFS ( 0)
2235#define P7IN_M (0x00ff)
2236/* DIO_PDIN[P8IN] Bits */
2237#define P8IN_OFS ( 8)
2238#define P8IN_M (0xff00)
2239/* DIO_PDOUT[P7OUT] Bits */
2240#define P7OUT_OFS ( 0)
2241#define P7OUT_M (0x00ff)
2242/* DIO_PDOUT[P8OUT] Bits */
2243#define P8OUT_OFS ( 8)
2244#define P8OUT_M (0xff00)
2245/* DIO_PDDIR[P7DIR] Bits */
2246#define P7DIR_OFS ( 0)
2247#define P7DIR_M (0x00ff)
2248/* DIO_PDDIR[P8DIR] Bits */
2249#define P8DIR_OFS ( 8)
2250#define P8DIR_M (0xff00)
2251/* DIO_PDREN[P7REN] Bits */
2252#define P7REN_OFS ( 0)
2253#define P7REN_M (0x00ff)
2254/* DIO_PDREN[P8REN] Bits */
2255#define P8REN_OFS ( 8)
2256#define P8REN_M (0xff00)
2257/* DIO_PDDS[P7DS] Bits */
2258#define P7DS_OFS ( 0)
2259#define P7DS_M (0x00ff)
2260/* DIO_PDDS[P8DS] Bits */
2261#define P8DS_OFS ( 8)
2262#define P8DS_M (0xff00)
2263/* DIO_PDSEL0[P7SEL0] Bits */
2264#define P7SEL0_OFS ( 0)
2265#define P7SEL0_M (0x00ff)
2266/* DIO_PDSEL0[P8SEL0] Bits */
2267#define P8SEL0_OFS ( 8)
2268#define P8SEL0_M (0xff00)
2269/* DIO_PDSEL1[P7SEL1] Bits */
2270#define P7SEL1_OFS ( 0)
2271#define P7SEL1_M (0x00ff)
2272/* DIO_PDSEL1[P8SEL1] Bits */
2273#define P8SEL1_OFS ( 8)
2274#define P8SEL1_M (0xff00)
2275/* DIO_P7IV[P7IV] Bits */
2276#define P7IV_OFS ( 0)
2277#define P7IV_M (0x001f)
2278#define P7IV0 (0x0001)
2279#define P7IV1 (0x0002)
2280#define P7IV2 (0x0004)
2281#define P7IV3 (0x0008)
2282#define P7IV4 (0x0010)
2283#define P7IV_0 (0x0000)
2284#define P7IV_2 (0x0002)
2285#define P7IV_4 (0x0004)
2286#define P7IV_6 (0x0006)
2287#define P7IV_8 (0x0008)
2288#define P7IV_10 (0x000a)
2289#define P7IV_12 (0x000c)
2290#define P7IV_14 (0x000e)
2291#define P7IV_16 (0x0010)
2292#define P7IV__NONE (0x0000)
2293#define P7IV__P7IFG0 (0x0002)
2294#define P7IV__P7IFG1 (0x0004)
2295#define P7IV__P7IFG2 (0x0006)
2296#define P7IV__P7IFG3 (0x0008)
2297#define P7IV__P7IFG4 (0x000a)
2298#define P7IV__P7IFG5 (0x000c)
2299#define P7IV__P7IFG6 (0x000e)
2300#define P7IV__P7IFG7 (0x0010)
2301/* DIO_PDSELC[P7SELC] Bits */
2302#define P7SELC_OFS ( 0)
2303#define P7SELC_M (0x00ff)
2304/* DIO_PDSELC[P8SELC] Bits */
2305#define P8SELC_OFS ( 8)
2306#define P8SELC_M (0xff00)
2307/* DIO_PDIES[P7IES] Bits */
2308#define P7IES_OFS ( 0)
2309#define P7IES_M (0x00ff)
2310/* DIO_PDIES[P8IES] Bits */
2311#define P8IES_OFS ( 8)
2312#define P8IES_M (0xff00)
2313/* DIO_PDIE[P7IE] Bits */
2314#define P7IE_OFS ( 0)
2315#define P7IE_M (0x00ff)
2316/* DIO_PDIE[P8IE] Bits */
2317#define P8IE_OFS ( 8)
2318#define P8IE_M (0xff00)
2319/* DIO_PDIFG[P7IFG] Bits */
2320#define P7IFG_OFS ( 0)
2321#define P7IFG_M (0x00ff)
2322/* DIO_PDIFG[P8IFG] Bits */
2323#define P8IFG_OFS ( 8)
2324#define P8IFG_M (0xff00)
2325/* DIO_P8IV[P8IV] Bits */
2326#define P8IV_OFS ( 0)
2327#define P8IV_M (0x001f)
2328#define P8IV0 (0x0001)
2329#define P8IV1 (0x0002)
2330#define P8IV2 (0x0004)
2331#define P8IV3 (0x0008)
2332#define P8IV4 (0x0010)
2333#define P8IV_0 (0x0000)
2334#define P8IV_2 (0x0002)
2335#define P8IV_4 (0x0004)
2336#define P8IV_6 (0x0006)
2337#define P8IV_8 (0x0008)
2338#define P8IV_10 (0x000a)
2339#define P8IV_12 (0x000c)
2340#define P8IV_14 (0x000e)
2341#define P8IV_16 (0x0010)
2342#define P8IV__NONE (0x0000)
2343#define P8IV__P8IFG0 (0x0002)
2344#define P8IV__P8IFG1 (0x0004)
2345#define P8IV__P8IFG2 (0x0006)
2346#define P8IV__P8IFG3 (0x0008)
2347#define P8IV__P8IFG4 (0x000a)
2348#define P8IV__P8IFG5 (0x000c)
2349#define P8IV__P8IFG6 (0x000e)
2350#define P8IV__P8IFG7 (0x0010)
2351/* DIO_PEIN[P9IN] Bits */
2352#define P9IN_OFS ( 0)
2353#define P9IN_M (0x00ff)
2354/* DIO_PEIN[P10IN] Bits */
2355#define P10IN_OFS ( 8)
2356#define P10IN_M (0xff00)
2357/* DIO_PEOUT[P9OUT] Bits */
2358#define P9OUT_OFS ( 0)
2359#define P9OUT_M (0x00ff)
2360/* DIO_PEOUT[P10OUT] Bits */
2361#define P10OUT_OFS ( 8)
2362#define P10OUT_M (0xff00)
2363/* DIO_PEDIR[P9DIR] Bits */
2364#define P9DIR_OFS ( 0)
2365#define P9DIR_M (0x00ff)
2366/* DIO_PEDIR[P10DIR] Bits */
2367#define P10DIR_OFS ( 8)
2368#define P10DIR_M (0xff00)
2369/* DIO_PEREN[P9REN] Bits */
2370#define P9REN_OFS ( 0)
2371#define P9REN_M (0x00ff)
2372/* DIO_PEREN[P10REN] Bits */
2373#define P10REN_OFS ( 8)
2374#define P10REN_M (0xff00)
2375/* DIO_PEDS[P9DS] Bits */
2376#define P9DS_OFS ( 0)
2377#define P9DS_M (0x00ff)
2378/* DIO_PEDS[P10DS] Bits */
2379#define P10DS_OFS ( 8)
2380#define P10DS_M (0xff00)
2381/* DIO_PESEL0[P9SEL0] Bits */
2382#define P9SEL0_OFS ( 0)
2383#define P9SEL0_M (0x00ff)
2384/* DIO_PESEL0[P10SEL0] Bits */
2385#define P10SEL0_OFS ( 8)
2386#define P10SEL0_M (0xff00)
2387/* DIO_PESEL1[P9SEL1] Bits */
2388#define P9SEL1_OFS ( 0)
2389#define P9SEL1_M (0x00ff)
2390/* DIO_PESEL1[P10SEL1] Bits */
2391#define P10SEL1_OFS ( 8)
2392#define P10SEL1_M (0xff00)
2393/* DIO_P9IV[P9IV] Bits */
2394#define P9IV_OFS ( 0)
2395#define P9IV_M (0x001f)
2396#define P9IV0 (0x0001)
2397#define P9IV1 (0x0002)
2398#define P9IV2 (0x0004)
2399#define P9IV3 (0x0008)
2400#define P9IV4 (0x0010)
2401#define P9IV_0 (0x0000)
2402#define P9IV_2 (0x0002)
2403#define P9IV_4 (0x0004)
2404#define P9IV_6 (0x0006)
2405#define P9IV_8 (0x0008)
2406#define P9IV_10 (0x000a)
2407#define P9IV_12 (0x000c)
2408#define P9IV_14 (0x000e)
2409#define P9IV_16 (0x0010)
2410#define P9IV__NONE (0x0000)
2411#define P9IV__P9IFG0 (0x0002)
2412#define P9IV__P9IFG1 (0x0004)
2413#define P9IV__P9IFG2 (0x0006)
2414#define P9IV__P9IFG3 (0x0008)
2415#define P9IV__P9IFG4 (0x000a)
2416#define P9IV__P9IFG5 (0x000c)
2417#define P9IV__P9IFG6 (0x000e)
2418#define P9IV__P9IFG7 (0x0010)
2419/* DIO_PESELC[P9SELC] Bits */
2420#define P9SELC_OFS ( 0)
2421#define P9SELC_M (0x00ff)
2422/* DIO_PESELC[P10SELC] Bits */
2423#define P10SELC_OFS ( 8)
2424#define P10SELC_M (0xff00)
2425/* DIO_PEIES[P9IES] Bits */
2426#define P9IES_OFS ( 0)
2427#define P9IES_M (0x00ff)
2428/* DIO_PEIES[P10IES] Bits */
2429#define P10IES_OFS ( 8)
2430#define P10IES_M (0xff00)
2431/* DIO_PEIE[P9IE] Bits */
2432#define P9IE_OFS ( 0)
2433#define P9IE_M (0x00ff)
2434/* DIO_PEIE[P10IE] Bits */
2435#define P10IE_OFS ( 8)
2436#define P10IE_M (0xff00)
2437/* DIO_PEIFG[P9IFG] Bits */
2438#define P9IFG_OFS ( 0)
2439#define P9IFG_M (0x00ff)
2440/* DIO_PEIFG[P10IFG] Bits */
2441#define P10IFG_OFS ( 8)
2442#define P10IFG_M (0xff00)
2443/* DIO_P10IV[P10IV] Bits */
2444#define P10IV_OFS ( 0)
2445#define P10IV_M (0x001f)
2446#define P10IV0 (0x0001)
2447#define P10IV1 (0x0002)
2448#define P10IV2 (0x0004)
2449#define P10IV3 (0x0008)
2450#define P10IV4 (0x0010)
2451#define P10IV_0 (0x0000)
2452#define P10IV_2 (0x0002)
2453#define P10IV_4 (0x0004)
2454#define P10IV_6 (0x0006)
2455#define P10IV_8 (0x0008)
2456#define P10IV_10 (0x000a)
2457#define P10IV_12 (0x000c)
2458#define P10IV_14 (0x000e)
2459#define P10IV_16 (0x0010)
2460#define P10IV__NONE (0x0000)
2461#define P10IV__P10IFG0 (0x0002)
2462#define P10IV__P10IFG1 (0x0004)
2463#define P10IV__P10IFG2 (0x0006)
2464#define P10IV__P10IFG3 (0x0008)
2465#define P10IV__P10IFG4 (0x000a)
2466#define P10IV__P10IFG5 (0x000c)
2467#define P10IV__P10IFG6 (0x000e)
2468#define P10IV__P10IFG7 (0x0010)
2471/******************************************************************************
2472* EUSCI_A Bits (legacy section)
2473******************************************************************************/
2474/* UCA0CTLW0[UCSWRST] Bits */
2475#define UCSWRST_OFS EUSCI_A_CTLW0_SWRST_OFS
2476#define UCSWRST EUSCI_A_CTLW0_SWRST
2477/* UCA0CTLW0[UCTXBRK] Bits */
2478#define UCTXBRK_OFS EUSCI_A_CTLW0_TXBRK_OFS
2479#define UCTXBRK EUSCI_A_CTLW0_TXBRK
2480/* UCA0CTLW0[UCTXADDR] Bits */
2481#define UCTXADDR_OFS EUSCI_A_CTLW0_TXADDR_OFS
2482#define UCTXADDR EUSCI_A_CTLW0_TXADDR
2483/* UCA0CTLW0[UCDORM] Bits */
2484#define UCDORM_OFS EUSCI_A_CTLW0_DORM_OFS
2485#define UCDORM EUSCI_A_CTLW0_DORM
2486/* UCA0CTLW0[UCBRKIE] Bits */
2487#define UCBRKIE_OFS EUSCI_A_CTLW0_BRKIE_OFS
2488#define UCBRKIE EUSCI_A_CTLW0_BRKIE
2489/* UCA0CTLW0[UCRXEIE] Bits */
2490#define UCRXEIE_OFS EUSCI_A_CTLW0_RXEIE_OFS
2491#define UCRXEIE EUSCI_A_CTLW0_RXEIE
2492/* UCA0CTLW0[UCSSEL] Bits */
2493#define UCSSEL_OFS EUSCI_A_CTLW0_SSEL_OFS
2494#define UCSSEL_M EUSCI_A_CTLW0_SSEL_MASK
2495#define UCSSEL0 EUSCI_A_CTLW0_SSEL0
2496#define UCSSEL1 EUSCI_A_CTLW0_SSEL1
2497#define UCSSEL_0 EUSCI_A_CTLW0_UCSSEL_0
2498#define UCSSEL_1 EUSCI_A_CTLW0_UCSSEL_1
2499#define UCSSEL_2 EUSCI_A_CTLW0_UCSSEL_2
2500#define UCSSEL__UCLK EUSCI_A_CTLW0_SSEL__UCLK
2501#define UCSSEL__ACLK EUSCI_A_CTLW0_SSEL__ACLK
2502#define UCSSEL__SMCLK EUSCI_A_CTLW0_SSEL__SMCLK
2503/* UCA0CTLW0[UCSYNC] Bits */
2504#define UCSYNC_OFS EUSCI_A_CTLW0_SYNC_OFS
2505#define UCSYNC EUSCI_A_CTLW0_SYNC
2506/* UCA0CTLW0[UCMODE] Bits */
2507#define UCMODE_OFS EUSCI_A_CTLW0_MODE_OFS
2508#define UCMODE_M EUSCI_A_CTLW0_MODE_MASK
2509#define UCMODE0 EUSCI_A_CTLW0_MODE0
2510#define UCMODE1 EUSCI_A_CTLW0_MODE1
2511#define UCMODE_0 EUSCI_A_CTLW0_MODE_0
2512#define UCMODE_1 EUSCI_A_CTLW0_MODE_1
2513#define UCMODE_2 EUSCI_A_CTLW0_MODE_2
2514#define UCMODE_3 EUSCI_A_CTLW0_MODE_3
2515/* UCA0CTLW0[UCSPB] Bits */
2516#define UCSPB_OFS EUSCI_A_CTLW0_SPB_OFS
2517#define UCSPB EUSCI_A_CTLW0_SPB
2518/* UCA0CTLW0[UC7BIT] Bits */
2519#define UC7BIT_OFS EUSCI_A_CTLW0_SEVENBIT_OFS
2520#define UC7BIT EUSCI_A_CTLW0_SEVENBIT
2521/* UCA0CTLW0[UCMSB] Bits */
2522#define UCMSB_OFS EUSCI_A_CTLW0_MSB_OFS
2523#define UCMSB EUSCI_A_CTLW0_MSB
2524/* UCA0CTLW0[UCPAR] Bits */
2525#define UCPAR_OFS EUSCI_A_CTLW0_PAR_OFS
2526#define UCPAR EUSCI_A_CTLW0_PAR
2527/* UCA0CTLW0[UCPEN] Bits */
2528#define UCPEN_OFS EUSCI_A_CTLW0_PEN_OFS
2529#define UCPEN EUSCI_A_CTLW0_PEN
2530/* UCA0CTLW0_SPI[UCSWRST] Bits */
2531//#define UCSWRST_OFS EUSCI_A_CTLW0_SWRST_OFS /*!< UCSWRST Offset */
2532//#define UCSWRST EUSCI_A_CTLW0_SWRST /*!< Software reset enable */
2533/* UCA0CTLW0_SPI[UCSTEM] Bits */
2534#define UCSTEM_OFS EUSCI_A_CTLW0_STEM_OFS
2535#define UCSTEM EUSCI_A_CTLW0_STEM
2536/* UCA0CTLW0_SPI[UCSSEL] Bits */
2537//#define UCSSEL_OFS EUSCI_A_CTLW0_SSEL_OFS /*!< UCSSEL Offset */
2538//#define UCSSEL_M EUSCI_A_CTLW0_SSEL_MASK /*!< eUSCI_A clock source select */
2539//#define UCSSEL0 EUSCI_A_CTLW0_SSEL0 /*!< UCSSEL Bit 0 */
2540//#define UCSSEL1 EUSCI_A_CTLW0_SSEL1 /*!< UCSSEL Bit 1 */
2541//#define UCSSEL_0 EUSCI_A_CTLW0_UCSSEL_0 /*!< Reserved */
2542//#define UCSSEL_1 EUSCI_A_CTLW0_UCSSEL_1 /*!< ACLK */
2543//#define UCSSEL_2 EUSCI_A_CTLW0_UCSSEL_2 /*!< SMCLK */
2544//#define UCSSEL__ACLK EUSCI_A_CTLW0_SSEL__ACLK /*!< ACLK */
2545//#define UCSSEL__SMCLK EUSCI_A_CTLW0_SSEL__SMCLK /*!< SMCLK */
2546/* UCA0CTLW0_SPI[UCSYNC] Bits */
2547//#define UCSYNC_OFS EUSCI_A_CTLW0_SYNC_OFS /*!< UCSYNC Offset */
2548//#define UCSYNC EUSCI_A_CTLW0_SYNC /*!< Synchronous mode enable */
2549/* UCA0CTLW0_SPI[UCMODE] Bits */
2550//#define UCMODE_OFS EUSCI_A_CTLW0_MODE_OFS /*!< UCMODE Offset */
2551//#define UCMODE_M EUSCI_A_CTLW0_MODE_MASK /*!< eUSCI mode */
2552//#define UCMODE0 EUSCI_A_CTLW0_MODE0 /*!< UCMODE Bit 0 */
2553//#define UCMODE1 EUSCI_A_CTLW0_MODE1 /*!< UCMODE Bit 1 */
2554//#define UCMODE_0 EUSCI_A_CTLW0_MODE_0 /*!< 3-pin SPI */
2555//#define UCMODE_1 EUSCI_A_CTLW0_MODE_1 /*!< 4-pin SPI with UCxSTE active high: Slave enabled when UCxSTE = 1 */
2556//#define UCMODE_2 EUSCI_A_CTLW0_MODE_2 /*!< 4-pin SPI with UCxSTE active low: Slave enabled when UCxSTE = 0 */
2557/* UCA0CTLW0_SPI[UCMST] Bits */
2558#define UCMST_OFS EUSCI_A_CTLW0_MST_OFS
2559#define UCMST EUSCI_A_CTLW0_MST
2560/* UCA0CTLW0_SPI[UC7BIT] Bits */
2561//#define UC7BIT_OFS EUSCI_A_CTLW0_SEVENBIT_OFS /*!< UC7BIT Offset */
2562//#define UC7BIT EUSCI_A_CTLW0_SEVENBIT /*!< Character length */
2563/* UCA0CTLW0_SPI[UCMSB] Bits */
2564//#define UCMSB_OFS EUSCI_A_CTLW0_MSB_OFS /*!< UCMSB Offset */
2565//#define UCMSB EUSCI_A_CTLW0_MSB /*!< MSB first select */
2566/* UCA0CTLW0_SPI[UCCKPL] Bits */
2567#define UCCKPL_OFS EUSCI_A_CTLW0_CKPL_OFS
2568#define UCCKPL EUSCI_A_CTLW0_CKPL
2569/* UCA0CTLW0_SPI[UCCKPH] Bits */
2570#define UCCKPH_OFS EUSCI_A_CTLW0_CKPH_OFS
2571#define UCCKPH EUSCI_A_CTLW0_CKPH
2572/* UCA0CTLW1[UCGLIT] Bits */
2573#define UCGLIT_OFS EUSCI_A_CTLW1_GLIT_OFS
2574#define UCGLIT_M EUSCI_A_CTLW1_GLIT_MASK
2575#define UCGLIT0 EUSCI_A_CTLW1_GLIT0
2576#define UCGLIT1 EUSCI_A_CTLW1_GLIT1
2577#define UCGLIT_0 EUSCI_A_CTLW1_GLIT_0
2578#define UCGLIT_1 EUSCI_A_CTLW1_GLIT_1
2579#define UCGLIT_2 EUSCI_A_CTLW1_GLIT_2
2580#define UCGLIT_3 EUSCI_A_CTLW1_GLIT_3
2581/* UCA0MCTLW[UCOS16] Bits */
2582#define UCOS16_OFS EUSCI_A_MCTLW_OS16_OFS
2583#define UCOS16 EUSCI_A_MCTLW_OS16
2584/* UCA0MCTLW[UCBRF] Bits */
2585#define UCBRF_OFS EUSCI_A_MCTLW_BRF_OFS
2586#define UCBRF_M EUSCI_A_MCTLW_BRF_MASK
2587/* UCA0MCTLW[UCBRS] Bits */
2588#define UCBRS_OFS EUSCI_A_MCTLW_BRS_OFS
2589#define UCBRS_M EUSCI_A_MCTLW_BRS_MASK
2590/* UCA0STATW[UCBUSY] Bits */
2591#define UCBUSY_OFS EUSCI_A_STATW_BUSY_OFS
2592#define UCBUSY EUSCI_A_STATW_BUSY
2593/* UCA0STATW[UCADDR_UCIDLE] Bits */
2594#define UCADDR_UCIDLE_OFS EUSCI_A_STATW_ADDR_IDLE_OFS
2595#define UCADDR_UCIDLE EUSCI_A_STATW_ADDR_IDLE
2596/* UCA0STATW[UCRXERR] Bits */
2597#define UCRXERR_OFS EUSCI_A_STATW_RXERR_OFS
2598#define UCRXERR EUSCI_A_STATW_RXERR
2599/* UCA0STATW[UCBRK] Bits */
2600#define UCBRK_OFS EUSCI_A_STATW_BRK_OFS
2601#define UCBRK EUSCI_A_STATW_BRK
2602/* UCA0STATW[UCPE] Bits */
2603#define UCPE_OFS EUSCI_A_STATW_PE_OFS
2604#define UCPE EUSCI_A_STATW_PE
2605/* UCA0STATW[UCOE] Bits */
2606#define UCOE_OFS EUSCI_A_STATW_OE_OFS
2607#define UCOE EUSCI_A_STATW_OE
2608/* UCA0STATW[UCFE] Bits */
2609#define UCFE_OFS EUSCI_A_STATW_FE_OFS
2610#define UCFE EUSCI_A_STATW_FE
2611/* UCA0STATW[UCLISTEN] Bits */
2612#define UCLISTEN_OFS EUSCI_A_STATW_LISTEN_OFS
2613#define UCLISTEN EUSCI_A_STATW_LISTEN
2614/* UCA0STATW_SPI[UCBUSY] Bits */
2615//#define UCBUSY_OFS EUSCI_A_STATW_SPI_BUSY_OFS /*!< UCBUSY Offset */
2616//#define UCBUSY EUSCI_A_STATW_SPI_BUSY /*!< eUSCI_A busy */
2617/* UCA0STATW_SPI[UCOE] Bits */
2618//#define UCOE_OFS EUSCI_A_STATW_OE_OFS /*!< UCOE Offset */
2619//#define UCOE EUSCI_A_STATW_OE /*!< Overrun error flag */
2620/* UCA0STATW_SPI[UCFE] Bits */
2621//#define UCFE_OFS EUSCI_A_STATW_FE_OFS /*!< UCFE Offset */
2622//#define UCFE EUSCI_A_STATW_FE /*!< Framing error flag */
2623/* UCA0STATW_SPI[UCLISTEN] Bits */
2624//#define UCLISTEN_OFS EUSCI_A_STATW_LISTEN_OFS /*!< UCLISTEN Offset */
2625//#define UCLISTEN EUSCI_A_STATW_LISTEN /*!< Listen enable */
2626/* UCA0RXBUF[UCRXBUF] Bits */
2627#define UCRXBUF_OFS EUSCI_A_RXBUF_RXBUF_OFS
2628#define UCRXBUF_M EUSCI_A_RXBUF_RXBUF_MASK
2629/* UCA0RXBUF_SPI[UCRXBUF] Bits */
2630//#define UCRXBUF_OFS EUSCI_A_RXBUF_RXBUF_OFS /*!< UCRXBUF Offset */
2631//#define UCRXBUF_M EUSCI_A_RXBUF_RXBUF_MASK /*!< Receive data buffer */
2632/* UCA0TXBUF[UCTXBUF] Bits */
2633#define UCTXBUF_OFS EUSCI_A_TXBUF_TXBUF_OFS
2634#define UCTXBUF_M EUSCI_A_TXBUF_TXBUF_MASK
2635/* UCA0TXBUF_SPI[UCTXBUF] Bits */
2636//#define UCTXBUF_OFS EUSCI_A_TXBUF_TXBUF_OFS /*!< UCTXBUF Offset */
2637//#define UCTXBUF_M EUSCI_A_TXBUF_TXBUF_MASK /*!< Transmit data buffer */
2638/* UCA0ABCTL[UCABDEN] Bits */
2639#define UCABDEN_OFS EUSCI_A_ABCTL_ABDEN_OFS
2640#define UCABDEN EUSCI_A_ABCTL_ABDEN
2641/* UCA0ABCTL[UCBTOE] Bits */
2642#define UCBTOE_OFS EUSCI_A_ABCTL_BTOE_OFS
2643#define UCBTOE EUSCI_A_ABCTL_BTOE
2644/* UCA0ABCTL[UCSTOE] Bits */
2645#define UCSTOE_OFS EUSCI_A_ABCTL_STOE_OFS
2646#define UCSTOE EUSCI_A_ABCTL_STOE
2647/* UCA0ABCTL[UCDELIM] Bits */
2648#define UCDELIM_OFS EUSCI_A_ABCTL_DELIM_OFS
2649#define UCDELIM_M EUSCI_A_ABCTL_DELIM_MASK
2650#define UCDELIM0 EUSCI_A_ABCTL_DELIM0
2651#define UCDELIM1 EUSCI_A_ABCTL_DELIM1
2652#define UCDELIM_0 EUSCI_A_ABCTL_DELIM_0
2653#define UCDELIM_1 EUSCI_A_ABCTL_DELIM_1
2654#define UCDELIM_2 EUSCI_A_ABCTL_DELIM_2
2655#define UCDELIM_3 EUSCI_A_ABCTL_DELIM_3
2656/* UCA0IRCTL[UCIREN] Bits */
2657#define UCIREN_OFS EUSCI_A_IRCTL_IREN_OFS
2658#define UCIREN EUSCI_A_IRCTL_IREN
2659/* UCA0IRCTL[UCIRTXCLK] Bits */
2660#define UCIRTXCLK_OFS EUSCI_A_IRCTL_IRTXCLK_OFS
2661#define UCIRTXCLK EUSCI_A_IRCTL_IRTXCLK
2662/* UCA0IRCTL[UCIRTXPL] Bits */
2663#define UCIRTXPL_OFS EUSCI_A_IRCTL_IRTXPL_OFS
2664#define UCIRTXPL_M EUSCI_A_IRCTL_IRTXPL_MASK
2665/* UCA0IRCTL[UCIRRXFE] Bits */
2666#define UCIRRXFE_OFS EUSCI_A_IRCTL_IRRXFE_OFS
2667#define UCIRRXFE EUSCI_A_IRCTL_IRRXFE
2668/* UCA0IRCTL[UCIRRXPL] Bits */
2669#define UCIRRXPL_OFS EUSCI_A_IRCTL_IRRXPL_OFS
2670#define UCIRRXPL EUSCI_A_IRCTL_IRRXPL
2671/* UCA0IRCTL[UCIRRXFL] Bits */
2672#define UCIRRXFL_OFS EUSCI_A_IRCTL_IRRXFL_OFS
2673#define UCIRRXFL_M EUSCI_A_IRCTL_IRRXFL_MASK
2674/* UCA0IE[UCRXIE] Bits */
2675#define UCRXIE_OFS EUSCI_A_IE_RXIE_OFS
2676#define UCRXIE EUSCI_A_IE_RXIE
2677/* UCA0IE[UCTXIE] Bits */
2678#define UCTXIE_OFS EUSCI_A_IE_TXIE_OFS
2679#define UCTXIE EUSCI_A_IE_TXIE
2680/* UCA0IE[UCSTTIE] Bits */
2681#define UCSTTIE_OFS EUSCI_A_IE_STTIE_OFS
2682#define UCSTTIE EUSCI_A_IE_STTIE
2683/* UCA0IE[UCTXCPTIE] Bits */
2684#define UCTXCPTIE_OFS EUSCI_A_IE_TXCPTIE_OFS
2685#define UCTXCPTIE EUSCI_A_IE_TXCPTIE
2686/* UCA0IE_SPI[UCRXIE] Bits */
2687//#define UCRXIE_OFS EUSCI_A_IE_RXIE_OFS /*!< UCRXIE Offset */
2688//#define UCRXIE EUSCI_A_IE_RXIE /*!< Receive interrupt enable */
2689/* UCA0IE_SPI[UCTXIE] Bits */
2690//#define UCTXIE_OFS EUSCI_A_IE_TXIE_OFS /*!< UCTXIE Offset */
2691//#define UCTXIE EUSCI_A_IE_TXIE /*!< Transmit interrupt enable */
2692/* UCA0IFG[UCRXIFG] Bits */
2693#define UCRXIFG_OFS EUSCI_A_IFG_RXIFG_OFS
2694#define UCRXIFG EUSCI_A_IFG_RXIFG
2695/* UCA0IFG[UCTXIFG] Bits */
2696#define UCTXIFG_OFS EUSCI_A_IFG_TXIFG_OFS
2697#define UCTXIFG EUSCI_A_IFG_TXIFG
2698/* UCA0IFG[UCSTTIFG] Bits */
2699#define UCSTTIFG_OFS EUSCI_A_IFG_STTIFG_OFS
2700#define UCSTTIFG EUSCI_A_IFG_STTIFG
2701/* UCA0IFG[UCTXCPTIFG] Bits */
2702#define UCTXCPTIFG_OFS EUSCI_A_IFG_TXCPTIFG_OFS
2703#define UCTXCPTIFG EUSCI_A_IFG_TXCPTIFG
2704/* UCA0IFG_SPI[UCRXIFG] Bits */
2705//#define UCRXIFG_OFS EUSCI_A_IFG_RXIFG_OFS /*!< UCRXIFG Offset */
2706//#define UCRXIFG EUSCI_A_IFG_RXIFG /*!< Receive interrupt flag */
2707/* UCA0IFG_SPI[UCTXIFG] Bits */
2708//#define UCTXIFG_OFS EUSCI_A_IFG_TXIFG_OFS /*!< UCTXIFG Offset */
2709//#define UCTXIFG EUSCI_A_IFG_TXIFG /*!< Transmit interrupt flag */
2710
2711/******************************************************************************
2712* EUSCI_B Bits (legacy section)
2713******************************************************************************/
2714/* UCB0CTLW0[UCSWRST] Bits */
2715//#define UCSWRST_OFS EUSCI_B_CTLW0_SWRST_OFS /*!< UCSWRST Offset */
2716//#define UCSWRST EUSCI_B_CTLW0_SWRST /*!< Software reset enable */
2717/* UCB0CTLW0[UCTXSTT] Bits */
2718#define UCTXSTT_OFS EUSCI_B_CTLW0_TXSTT_OFS
2719#define UCTXSTT EUSCI_B_CTLW0_TXSTT
2720/* UCB0CTLW0[UCTXSTP] Bits */
2721#define UCTXSTP_OFS EUSCI_B_CTLW0_TXSTP_OFS
2722#define UCTXSTP EUSCI_B_CTLW0_TXSTP
2723/* UCB0CTLW0[UCTXNACK] Bits */
2724#define UCTXNACK_OFS EUSCI_B_CTLW0_TXNACK_OFS
2725#define UCTXNACK EUSCI_B_CTLW0_TXNACK
2726/* UCB0CTLW0[UCTR] Bits */
2727#define UCTR_OFS EUSCI_B_CTLW0_TR_OFS
2728#define UCTR EUSCI_B_CTLW0_TR
2729/* UCB0CTLW0[UCTXACK] Bits */
2730#define UCTXACK_OFS EUSCI_B_CTLW0_TXACK_OFS
2731#define UCTXACK EUSCI_B_CTLW0_TXACK
2732/* UCB0CTLW0[UCSSEL] Bits */
2733//#define UCSSEL_OFS EUSCI_B_CTLW0_SSEL_OFS /*!< UCSSEL Offset */
2734//#define UCSSEL_M EUSCI_B_CTLW0_SSEL_MASK /*!< eUSCI_B clock source select */
2735//#define UCSSEL0 EUSCI_B_CTLW0_SSEL0 /*!< UCSSEL Bit 0 */
2736//#define UCSSEL1 EUSCI_B_CTLW0_SSEL1 /*!< UCSSEL Bit 1 */
2737//#define UCSSEL_0 EUSCI_B_CTLW0_UCSSEL_0 /*!< UCLKI */
2738//#define UCSSEL_1 EUSCI_B_CTLW0_UCSSEL_1 /*!< ACLK */
2739//#define UCSSEL_2 EUSCI_B_CTLW0_UCSSEL_2 /*!< SMCLK */
2740#define UCSSEL_3 EUSCI_B_CTLW0_UCSSEL_3
2741#define UCSSEL__UCLKI EUSCI_B_CTLW0_SSEL__UCLKI
2742//#define UCSSEL__ACLK EUSCI_B_CTLW0_SSEL__ACLK /*!< ACLK */
2743//#define UCSSEL__SMCLK EUSCI_B_CTLW0_SSEL__SMCLK /*!< SMCLK */
2744/* UCB0CTLW0[UCSYNC] Bits */
2745//#define UCSYNC_OFS EUSCI_B_CTLW0_SYNC_OFS /*!< UCSYNC Offset */
2746//#define UCSYNC EUSCI_B_CTLW0_SYNC /*!< Synchronous mode enable */
2747/* UCB0CTLW0[UCMODE] Bits */
2748//#define UCMODE_OFS EUSCI_B_CTLW0_MODE_OFS /*!< UCMODE Offset */
2749//#define UCMODE_M EUSCI_B_CTLW0_MODE_MASK /*!< eUSCI_B mode */
2750//#define UCMODE0 EUSCI_B_CTLW0_MODE0 /*!< UCMODE Bit 0 */
2751//#define UCMODE1 EUSCI_B_CTLW0_MODE1 /*!< UCMODE Bit 1 */
2752//#define UCMODE_0 EUSCI_B_CTLW0_MODE_0 /*!< 3-pin SPI */
2753//#define UCMODE_1 EUSCI_B_CTLW0_MODE_1 /*!< 4-pin SPI (master or slave enabled if STE = 1) */
2754//#define UCMODE_2 EUSCI_B_CTLW0_MODE_2 /*!< 4-pin SPI (master or slave enabled if STE = 0) */
2755//#define UCMODE_3 EUSCI_B_CTLW0_MODE_3 /*!< I2C mode */
2756/* UCB0CTLW0[UCMST] Bits */
2757//#define UCMST_OFS EUSCI_B_CTLW0_MST_OFS /*!< UCMST Offset */
2758//#define UCMST EUSCI_B_CTLW0_MST /*!< Master mode select */
2759/* UCB0CTLW0[UCMM] Bits */
2760#define UCMM_OFS EUSCI_B_CTLW0_MM_OFS
2761#define UCMM EUSCI_B_CTLW0_MM
2762/* UCB0CTLW0[UCSLA10] Bits */
2763#define UCSLA10_OFS EUSCI_B_CTLW0_SLA10_OFS
2764#define UCSLA10 EUSCI_B_CTLW0_SLA10
2765/* UCB0CTLW0[UCA10] Bits */
2766#define UCA10_OFS EUSCI_B_CTLW0_A10_OFS
2767#define UCA10 EUSCI_B_CTLW0_A10
2768/* UCB0CTLW0_SPI[UCSWRST] Bits */
2769//#define UCSWRST_OFS EUSCI_B_CTLW0_SWRST_OFS /*!< UCSWRST Offset */
2770//#define UCSWRST EUSCI_B_CTLW0_SWRST /*!< Software reset enable */
2771/* UCB0CTLW0_SPI[UCSTEM] Bits */
2772//#define UCSTEM_OFS EUSCI_B_CTLW0_STEM_OFS /*!< UCSTEM Offset */
2773//#define UCSTEM EUSCI_B_CTLW0_STEM /*!< STE mode select in master mode. */
2774/* UCB0CTLW0_SPI[UCSSEL] Bits */
2775//#define UCSSEL_OFS EUSCI_B_CTLW0_SSEL_OFS /*!< UCSSEL Offset */
2776//#define UCSSEL_M EUSCI_B_CTLW0_SSEL_MASK /*!< eUSCI_B clock source select */
2777//#define UCSSEL0 EUSCI_B_CTLW0_SSEL0 /*!< UCSSEL Bit 0 */
2778//#define UCSSEL1 EUSCI_B_CTLW0_SSEL1 /*!< UCSSEL Bit 1 */
2779//#define UCSSEL_0 EUSCI_B_CTLW0_UCSSEL_0 /*!< Reserved */
2780//#define UCSSEL_1 EUSCI_B_CTLW0_UCSSEL_1 /*!< ACLK */
2781//#define UCSSEL_2 EUSCI_B_CTLW0_UCSSEL_2 /*!< SMCLK */
2782//#define UCSSEL_3 EUSCI_B_CTLW0_UCSSEL_3 /*!< SMCLK */
2783//#define UCSSEL__ACLK EUSCI_B_CTLW0_SSEL__ACLK /*!< ACLK */
2784//#define UCSSEL__SMCLK EUSCI_B_CTLW0_SSEL__SMCLK /*!< SMCLK */
2785/* UCB0CTLW0_SPI[UCSYNC] Bits */
2786//#define UCSYNC_OFS EUSCI_B_CTLW0_SYNC_OFS /*!< UCSYNC Offset */
2787//#define UCSYNC EUSCI_B_CTLW0_SYNC /*!< Synchronous mode enable */
2788/* UCB0CTLW0_SPI[UCMODE] Bits */
2789//#define UCMODE_OFS EUSCI_B_CTLW0_MODE_OFS /*!< UCMODE Offset */
2790//#define UCMODE_M EUSCI_B_CTLW0_MODE_MASK /*!< eUSCI mode */
2791//#define UCMODE0 EUSCI_B_CTLW0_MODE0 /*!< UCMODE Bit 0 */
2792//#define UCMODE1 EUSCI_B_CTLW0_MODE1 /*!< UCMODE Bit 1 */
2793//#define UCMODE_0 EUSCI_B_CTLW0_MODE_0 /*!< 3-pin SPI */
2794//#define UCMODE_1 EUSCI_B_CTLW0_MODE_1 /*!< 4-pin SPI with UCxSTE active high: Slave enabled when UCxSTE = 1 */
2795//#define UCMODE_2 EUSCI_B_CTLW0_MODE_2 /*!< 4-pin SPI with UCxSTE active low: Slave enabled when UCxSTE = 0 */
2796//#define UCMODE_3 EUSCI_B_CTLW0_MODE_3 /*!< I2C mode */
2797/* UCB0CTLW0_SPI[UCMST] Bits */
2798//#define UCMST_OFS EUSCI_B_CTLW0_MST_OFS /*!< UCMST Offset */
2799//#define UCMST EUSCI_B_CTLW0_MST /*!< Master mode select */
2800/* UCB0CTLW0_SPI[UC7BIT] Bits */
2801//#define UC7BIT_OFS EUSCI_B_CTLW0_SEVENBIT_OFS /*!< UC7BIT Offset */
2802//#define UC7BIT EUSCI_B_CTLW0_SEVENBIT /*!< Character length */
2803/* UCB0CTLW0_SPI[UCMSB] Bits */
2804//#define UCMSB_OFS EUSCI_B_CTLW0_MSB_OFS /*!< UCMSB Offset */
2805//#define UCMSB EUSCI_B_CTLW0_MSB /*!< MSB first select */
2806/* UCB0CTLW0_SPI[UCCKPL] Bits */
2807//#define UCCKPL_OFS EUSCI_B_CTLW0_CKPL_OFS /*!< UCCKPL Offset */
2808//#define UCCKPL EUSCI_B_CTLW0_CKPL /*!< Clock polarity select */
2809/* UCB0CTLW0_SPI[UCCKPH] Bits */
2810//#define UCCKPH_OFS EUSCI_B_CTLW0_CKPH_OFS /*!< UCCKPH Offset */
2811//#define UCCKPH EUSCI_B_CTLW0_CKPH /*!< Clock phase select */
2812/* UCB0CTLW1[UCGLIT] Bits */
2813//#define UCGLIT_OFS EUSCI_B_CTLW1_GLIT_OFS /*!< UCGLIT Offset */
2814//#define UCGLIT_M EUSCI_B_CTLW1_GLIT_MASK /*!< Deglitch time */
2815//#define UCGLIT0 EUSCI_B_CTLW1_GLIT0 /*!< UCGLIT Bit 0 */
2816//#define UCGLIT1 EUSCI_B_CTLW1_GLIT1 /*!< UCGLIT Bit 1 */
2817//#define UCGLIT_0 EUSCI_B_CTLW1_GLIT_0 /*!< 50 ns */
2818//#define UCGLIT_1 EUSCI_B_CTLW1_GLIT_1 /*!< 25 ns */
2819//#define UCGLIT_2 EUSCI_B_CTLW1_GLIT_2 /*!< 12.5 ns */
2820//#define UCGLIT_3 EUSCI_B_CTLW1_GLIT_3 /*!< 6.25 ns */
2821/* UCB0CTLW1[UCASTP] Bits */
2822#define UCASTP_OFS EUSCI_B_CTLW1_ASTP_OFS
2823#define UCASTP_M EUSCI_B_CTLW1_ASTP_MASK
2824#define UCASTP0 EUSCI_B_CTLW1_ASTP0
2825#define UCASTP1 EUSCI_B_CTLW1_ASTP1
2826#define UCASTP_0 EUSCI_B_CTLW1_ASTP_0
2827 /* sets the UCTXSTP bit. The value in UCBxTBCNT is a don't care. */
2828#define UCASTP_1 EUSCI_B_CTLW1_ASTP_1
2829 /* UCBxTBCNT */
2830#define UCASTP_2 EUSCI_B_CTLW1_ASTP_2
2831 /* reached UCBxTBCNT. UCBCNTIFG is set with the byte counter reaching the */
2832 /* threshold */
2833/* UCB0CTLW1[UCSWACK] Bits */
2834#define UCSWACK_OFS EUSCI_B_CTLW1_SWACK_OFS
2835#define UCSWACK EUSCI_B_CTLW1_SWACK
2836/* UCB0CTLW1[UCSTPNACK] Bits */
2837#define UCSTPNACK_OFS EUSCI_B_CTLW1_STPNACK_OFS
2838#define UCSTPNACK EUSCI_B_CTLW1_STPNACK
2839/* UCB0CTLW1[UCCLTO] Bits */
2840#define UCCLTO_OFS EUSCI_B_CTLW1_CLTO_OFS
2841#define UCCLTO_M EUSCI_B_CTLW1_CLTO_MASK
2842#define UCCLTO0 EUSCI_B_CTLW1_CLTO0
2843#define UCCLTO1 EUSCI_B_CTLW1_CLTO1
2844#define UCCLTO_0 EUSCI_B_CTLW1_CLTO_0
2845#define UCCLTO_1 EUSCI_B_CTLW1_CLTO_1
2846#define UCCLTO_2 EUSCI_B_CTLW1_CLTO_2
2847#define UCCLTO_3 EUSCI_B_CTLW1_CLTO_3
2848/* UCB0CTLW1[UCETXINT] Bits */
2849#define UCETXINT_OFS EUSCI_B_CTLW1_ETXINT_OFS
2850#define UCETXINT EUSCI_B_CTLW1_ETXINT
2851/* UCB0STATW[UCBBUSY] Bits */
2852#define UCBBUSY_OFS EUSCI_B_STATW_BBUSY_OFS
2853#define UCBBUSY EUSCI_B_STATW_BBUSY
2854/* UCB0STATW[UCGC] Bits */
2855#define UCGC_OFS EUSCI_B_STATW_GC_OFS
2856#define UCGC EUSCI_B_STATW_GC
2857/* UCB0STATW[UCSCLLOW] Bits */
2858#define UCSCLLOW_OFS EUSCI_B_STATW_SCLLOW_OFS
2859#define UCSCLLOW EUSCI_B_STATW_SCLLOW
2860/* UCB0STATW[UCBCNT] Bits */
2861#define UCBCNT_OFS EUSCI_B_STATW_BCNT_OFS
2862#define UCBCNT_M EUSCI_B_STATW_BCNT_MASK
2863/* UCB0STATW_SPI[UCBUSY] Bits */
2864//#define UCBUSY_OFS EUSCI_B_STATW_SPI_BUSY_OFS /*!< UCBUSY Offset */
2865//#define UCBUSY EUSCI_B_STATW_SPI_BUSY /*!< eUSCI_B busy */
2866/* UCB0STATW_SPI[UCOE] Bits */
2867//#define UCOE_OFS EUSCI_B_STATW_OE_OFS /*!< UCOE Offset */
2868//#define UCOE EUSCI_B_STATW_OE /*!< Overrun error flag */
2869/* UCB0STATW_SPI[UCFE] Bits */
2870//#define UCFE_OFS EUSCI_B_STATW_FE_OFS /*!< UCFE Offset */
2871//#define UCFE EUSCI_B_STATW_FE /*!< Framing error flag */
2872/* UCB0STATW_SPI[UCLISTEN] Bits */
2873//#define UCLISTEN_OFS EUSCI_B_STATW_LISTEN_OFS /*!< UCLISTEN Offset */
2874//#define UCLISTEN EUSCI_B_STATW_LISTEN /*!< Listen enable */
2875/* UCB0TBCNT[UCTBCNT] Bits */
2876#define UCTBCNT_OFS EUSCI_B_TBCNT_TBCNT_OFS
2877#define UCTBCNT_M EUSCI_B_TBCNT_TBCNT_MASK
2878/* UCB0RXBUF[UCRXBUF] Bits */
2879//#define UCRXBUF_OFS EUSCI_B_RXBUF_RXBUF_OFS /*!< UCRXBUF Offset */
2880//#define UCRXBUF_M EUSCI_B_RXBUF_RXBUF_MASK /*!< Receive data buffer */
2881/* UCB0RXBUF_SPI[UCRXBUF] Bits */
2882//#define UCRXBUF_OFS EUSCI_B_RXBUF_RXBUF_OFS /*!< UCRXBUF Offset */
2883//#define UCRXBUF_M EUSCI_B_RXBUF_RXBUF_MASK /*!< Receive data buffer */
2884/* UCB0TXBUF[UCTXBUF] Bits */
2885//#define UCTXBUF_OFS EUSCI_B_TXBUF_TXBUF_OFS /*!< UCTXBUF Offset */
2886//#define UCTXBUF_M EUSCI_B_TXBUF_TXBUF_MASK /*!< Transmit data buffer */
2887/* UCB0TXBUF_SPI[UCTXBUF] Bits */
2888//#define UCTXBUF_OFS EUSCI_B_TXBUF_TXBUF_OFS /*!< UCTXBUF Offset */
2889//#define UCTXBUF_M EUSCI_B_TXBUF_TXBUF_MASK /*!< Transmit data buffer */
2890/* UCB0I2COA0[I2COA0] Bits */
2891#define I2COA0_OFS EUSCI_B_I2COA0_I2COA0_OFS
2892#define I2COA0_M EUSCI_B_I2COA0_I2COA0_MASK
2893/* UCB0I2COA0[UCOAEN] Bits */
2894#define UCOAEN_OFS EUSCI_B_I2COA0_OAEN_OFS
2895#define UCOAEN EUSCI_B_I2COA0_OAEN
2896/* UCB0I2COA0[UCGCEN] Bits */
2897#define UCGCEN_OFS EUSCI_B_I2COA0_GCEN_OFS
2898#define UCGCEN EUSCI_B_I2COA0_GCEN
2899/* UCB0I2COA1[I2COA1] Bits */
2900#define I2COA1_OFS EUSCI_B_I2COA1_I2COA1_OFS
2901#define I2COA1_M EUSCI_B_I2COA1_I2COA1_MASK
2902/* UCB0I2COA1[UCOAEN] Bits */
2903//#define UCOAEN_OFS EUSCI_B_I2COA1_OAEN_OFS /*!< UCOAEN Offset */
2904//#define UCOAEN EUSCI_B_I2COA1_OAEN /*!< Own Address enable register */
2905/* UCB0I2COA2[I2COA2] Bits */
2906#define I2COA2_OFS EUSCI_B_I2COA2_I2COA2_OFS
2907#define I2COA2_M EUSCI_B_I2COA2_I2COA2_MASK
2908/* UCB0I2COA2[UCOAEN] Bits */
2909//#define UCOAEN_OFS EUSCI_B_I2COA2_OAEN_OFS /*!< UCOAEN Offset */
2910//#define UCOAEN EUSCI_B_I2COA2_OAEN /*!< Own Address enable register */
2911/* UCB0I2COA3[I2COA3] Bits */
2912#define I2COA3_OFS EUSCI_B_I2COA3_I2COA3_OFS
2913#define I2COA3_M EUSCI_B_I2COA3_I2COA3_MASK
2914/* UCB0I2COA3[UCOAEN] Bits */
2915//#define UCOAEN_OFS EUSCI_B_I2COA3_OAEN_OFS /*!< UCOAEN Offset */
2916//#define UCOAEN EUSCI_B_I2COA3_OAEN /*!< Own Address enable register */
2917/* UCB0ADDRX[ADDRX] Bits */
2918#define ADDRX_OFS EUSCI_B_ADDRX_ADDRX_OFS
2919#define ADDRX_M EUSCI_B_ADDRX_ADDRX_MASK
2920#define ADDRX0 EUSCI_B_ADDRX_ADDRX0
2921#define ADDRX1 EUSCI_B_ADDRX_ADDRX1
2922#define ADDRX2 EUSCI_B_ADDRX_ADDRX2
2923#define ADDRX3 EUSCI_B_ADDRX_ADDRX3
2924#define ADDRX4 EUSCI_B_ADDRX_ADDRX4
2925#define ADDRX5 EUSCI_B_ADDRX_ADDRX5
2926#define ADDRX6 EUSCI_B_ADDRX_ADDRX6
2927#define ADDRX7 EUSCI_B_ADDRX_ADDRX7
2928#define ADDRX8 EUSCI_B_ADDRX_ADDRX8
2929#define ADDRX9 EUSCI_B_ADDRX_ADDRX9
2930/* UCB0ADDMASK[ADDMASK] Bits */
2931#define ADDMASK_OFS EUSCI_B_ADDMASK_ADDMASK_OFS
2932#define ADDMASK_M EUSCI_B_ADDMASK_ADDMASK_MASK
2933/* UCB0I2CSA[I2CSA] Bits */
2934#define I2CSA_OFS EUSCI_B_I2CSA_I2CSA_OFS
2935#define I2CSA_M EUSCI_B_I2CSA_I2CSA_MASK
2936/* UCB0IE[UCRXIE0] Bits */
2937#define UCRXIE0_OFS EUSCI_B_IE_RXIE0_OFS
2938#define UCRXIE0 EUSCI_B_IE_RXIE0
2939/* UCB0IE[UCTXIE0] Bits */
2940#define UCTXIE0_OFS EUSCI_B_IE_TXIE0_OFS
2941#define UCTXIE0 EUSCI_B_IE_TXIE0
2942/* UCB0IE[UCSTTIE] Bits */
2943//#define UCSTTIE_OFS EUSCI_B_IE_STTIE_OFS /*!< UCSTTIE Offset */
2944//#define UCSTTIE EUSCI_B_IE_STTIE /*!< START condition interrupt enable */
2945/* UCB0IE[UCSTPIE] Bits */
2946#define UCSTPIE_OFS EUSCI_B_IE_STPIE_OFS
2947#define UCSTPIE EUSCI_B_IE_STPIE
2948/* UCB0IE[UCALIE] Bits */
2949#define UCALIE_OFS EUSCI_B_IE_ALIE_OFS
2950#define UCALIE EUSCI_B_IE_ALIE
2951/* UCB0IE[UCNACKIE] Bits */
2952#define UCNACKIE_OFS EUSCI_B_IE_NACKIE_OFS
2953#define UCNACKIE EUSCI_B_IE_NACKIE
2954/* UCB0IE[UCBCNTIE] Bits */
2955#define UCBCNTIE_OFS EUSCI_B_IE_BCNTIE_OFS
2956#define UCBCNTIE EUSCI_B_IE_BCNTIE
2957/* UCB0IE[UCCLTOIE] Bits */
2958#define UCCLTOIE_OFS EUSCI_B_IE_CLTOIE_OFS
2959#define UCCLTOIE EUSCI_B_IE_CLTOIE
2960/* UCB0IE[UCRXIE1] Bits */
2961#define UCRXIE1_OFS EUSCI_B_IE_RXIE1_OFS
2962#define UCRXIE1 EUSCI_B_IE_RXIE1
2963/* UCB0IE[UCTXIE1] Bits */
2964#define UCTXIE1_OFS EUSCI_B_IE_TXIE1_OFS
2965#define UCTXIE1 EUSCI_B_IE_TXIE1
2966/* UCB0IE[UCRXIE2] Bits */
2967#define UCRXIE2_OFS EUSCI_B_IE_RXIE2_OFS
2968#define UCRXIE2 EUSCI_B_IE_RXIE2
2969/* UCB0IE[UCTXIE2] Bits */
2970#define UCTXIE2_OFS EUSCI_B_IE_TXIE2_OFS
2971#define UCTXIE2 EUSCI_B_IE_TXIE2
2972/* UCB0IE[UCRXIE3] Bits */
2973#define UCRXIE3_OFS EUSCI_B_IE_RXIE3_OFS
2974#define UCRXIE3 EUSCI_B_IE_RXIE3
2975/* UCB0IE[UCTXIE3] Bits */
2976#define UCTXIE3_OFS EUSCI_B_IE_TXIE3_OFS
2977#define UCTXIE3 EUSCI_B_IE_TXIE3
2978/* UCB0IE[UCBIT9IE] Bits */
2979#define UCBIT9IE_OFS EUSCI_B_IE_BIT9IE_OFS
2980#define UCBIT9IE EUSCI_B_IE_BIT9IE
2981/* UCB0IE_SPI[UCRXIE] Bits */
2982//#define UCRXIE_OFS EUSCI_B_IE_RXIE_OFS /*!< UCRXIE Offset */
2983//#define UCRXIE EUSCI_B_IE_RXIE /*!< Receive interrupt enable */
2984/* UCB0IE_SPI[UCTXIE] Bits */
2985//#define UCTXIE_OFS EUSCI_B_IE_TXIE_OFS /*!< UCTXIE Offset */
2986//#define UCTXIE EUSCI_B_IE_TXIE /*!< Transmit interrupt enable */
2987/* UCB0IFG[UCRXIFG0] Bits */
2988#define UCRXIFG0_OFS EUSCI_B_IFG_RXIFG0_OFS
2989#define UCRXIFG0 EUSCI_B_IFG_RXIFG0
2990/* UCB0IFG[UCTXIFG0] Bits */
2991#define UCTXIFG0_OFS EUSCI_B_IFG_TXIFG0_OFS
2992#define UCTXIFG0 EUSCI_B_IFG_TXIFG0
2993/* UCB0IFG[UCSTTIFG] Bits */
2994//#define UCSTTIFG_OFS EUSCI_B_IFG_STTIFG_OFS /*!< UCSTTIFG Offset */
2995//#define UCSTTIFG EUSCI_B_IFG_STTIFG /*!< START condition interrupt flag */
2996/* UCB0IFG[UCSTPIFG] Bits */
2997#define UCSTPIFG_OFS EUSCI_B_IFG_STPIFG_OFS
2998#define UCSTPIFG EUSCI_B_IFG_STPIFG
2999/* UCB0IFG[UCALIFG] Bits */
3000#define UCALIFG_OFS EUSCI_B_IFG_ALIFG_OFS
3001#define UCALIFG EUSCI_B_IFG_ALIFG
3002/* UCB0IFG[UCNACKIFG] Bits */
3003#define UCNACKIFG_OFS EUSCI_B_IFG_NACKIFG_OFS
3004#define UCNACKIFG EUSCI_B_IFG_NACKIFG
3005/* UCB0IFG[UCBCNTIFG] Bits */
3006#define UCBCNTIFG_OFS EUSCI_B_IFG_BCNTIFG_OFS
3007#define UCBCNTIFG EUSCI_B_IFG_BCNTIFG
3008/* UCB0IFG[UCCLTOIFG] Bits */
3009#define UCCLTOIFG_OFS EUSCI_B_IFG_CLTOIFG_OFS
3010#define UCCLTOIFG EUSCI_B_IFG_CLTOIFG
3011/* UCB0IFG[UCRXIFG1] Bits */
3012#define UCRXIFG1_OFS EUSCI_B_IFG_RXIFG1_OFS
3013#define UCRXIFG1 EUSCI_B_IFG_RXIFG1
3014/* UCB0IFG[UCTXIFG1] Bits */
3015#define UCTXIFG1_OFS EUSCI_B_IFG_TXIFG1_OFS
3016#define UCTXIFG1 EUSCI_B_IFG_TXIFG1
3017/* UCB0IFG[UCRXIFG2] Bits */
3018#define UCRXIFG2_OFS EUSCI_B_IFG_RXIFG2_OFS
3019#define UCRXIFG2 EUSCI_B_IFG_RXIFG2
3020/* UCB0IFG[UCTXIFG2] Bits */
3021#define UCTXIFG2_OFS EUSCI_B_IFG_TXIFG2_OFS
3022#define UCTXIFG2 EUSCI_B_IFG_TXIFG2
3023/* UCB0IFG[UCRXIFG3] Bits */
3024#define UCRXIFG3_OFS EUSCI_B_IFG_RXIFG3_OFS
3025#define UCRXIFG3 EUSCI_B_IFG_RXIFG3
3026/* UCB0IFG[UCTXIFG3] Bits */
3027#define UCTXIFG3_OFS EUSCI_B_IFG_TXIFG3_OFS
3028#define UCTXIFG3 EUSCI_B_IFG_TXIFG3
3029/* UCB0IFG[UCBIT9IFG] Bits */
3030#define UCBIT9IFG_OFS EUSCI_B_IFG_BIT9IFG_OFS
3031#define UCBIT9IFG EUSCI_B_IFG_BIT9IFG
3032/* UCB0IFG_SPI[UCRXIFG] Bits */
3033//#define UCRXIFG_OFS EUSCI_B_IFG_RXIFG_OFS /*!< UCRXIFG Offset */
3034//#define UCRXIFG EUSCI_B_IFG_RXIFG /*!< Receive interrupt flag */
3035/* UCB0IFG_SPI[UCTXIFG] Bits */
3036//#define UCTXIFG_OFS EUSCI_B_IFG_TXIFG_OFS /*!< UCTXIFG Offset */
3037//#define UCTXIFG EUSCI_B_IFG_TXIFG /*!< Transmit interrupt flag */
3038
3039/******************************************************************************
3040* PMAP Bits (legacy section)
3041******************************************************************************/
3042/* PMAPCTL[PMAPLOCKED] Bits */
3043#define PMAPLOCKED_OFS PMAP_CTL_LOCKED_OFS
3044#define PMAPLOCKED PMAP_CTL_LOCKED
3045/* PMAPCTL[PMAPRECFG] Bits */
3046#define PMAPRECFG_OFS PMAP_CTL_PRECFG_OFS
3047#define PMAPRECFG PMAP_CTL_PRECFG
3048/* Pre-defined bitfield values */
3049/* PMAP_PMAPCTL[PMAPLOCKED] Bits */
3050#define PMAPLOCKED_OFS PMAP_CTL_LOCKED_OFS
3051#define PMAPLOCKED PMAP_CTL_LOCKED
3052/* PMAP_PMAPCTL[PMAPRECFG] Bits */
3053#define PMAPRECFG_OFS PMAP_CTL_PRECFG_OFS
3054#define PMAPRECFG PMAP_CTL_PRECFG
3056#define PM_NONE PMAP_NONE
3057#define PM_UCA0CLK PMAP_UCA0CLK
3058#define PM_UCA0RXD PMAP_UCA0RXD
3059#define PM_UCA0SOMI PMAP_UCA0SOMI
3060#define PM_UCA0TXD PMAP_UCA0TXD
3061#define PM_UCA0SIMO PMAP_UCA0SIMO
3062#define PM_UCB0CLK PMAP_UCB0CLK
3063#define PM_UCB0SDA PMAP_UCB0SDA
3064#define PM_UCB0SIMO PMAP_UCB0SIMO
3065#define PM_UCB0SCL PMAP_UCB0SCL
3066#define PM_UCB0SOMI PMAP_UCB0SOMI
3067#define PM_UCA1STE PMAP_UCA1STE
3068#define PM_UCA1CLK PMAP_UCA1CLK
3069#define PM_UCA1RXD PMAP_UCA1RXD
3070#define PM_UCA1SOMI PMAP_UCA1SOMI
3071#define PM_UCA1TXD PMAP_UCA1TXD
3072#define PM_UCA1SIMO PMAP_UCA1SIMO
3073#define PM_UCA2STE PMAP_UCA2STE
3074#define PM_UCA2CLK PMAP_UCA2CLK
3075#define PM_UCA2RXD PMAP_UCA2RXD
3076#define PM_UCA2SOMI PMAP_UCA2SOMI
3077#define PM_UCA2TXD PMAP_UCA2TXD
3078#define PM_UCA2SIMO PMAP_UCA2SIMO
3079#define PM_UCB2STE PMAP_UCB2STE
3080#define PM_UCB2CLK PMAP_UCB2CLK
3081#define PM_UCB2SDA PMAP_UCB2SDA
3082#define PM_UCB2SIMO PMAP_UCB2SIMO
3083#define PM_UCB2SCL PMAP_UCB2SCL
3084#define PM_UCB2SOMI PMAP_UCB2SOMI
3085#define PM_TA0CCR0A PMAP_TA0CCR0A
3086#define PM_TA0CCR1A PMAP_TA0CCR1A
3087#define PM_TA0CCR2A PMAP_TA0CCR2A
3088#define PM_TA0CCR3A PMAP_TA0CCR3A
3089#define PM_TA0CCR4A PMAP_TA0CCR4A
3090#define PM_TA1CCR1A PMAP_TA1CCR1A
3091#define PM_TA1CCR2A PMAP_TA1CCR2A
3092#define PM_TA1CCR3A PMAP_TA1CCR3A
3093#define PM_TA1CCR4A PMAP_TA1CCR4A
3094#define PM_TA0CLK PMAP_TA0CLK
3095#define PM_CE0OUT PMAP_CE0OUT
3096#define PM_TA1CLK PMAP_TA1CLK
3097#define PM_CE1OUT PMAP_CE1OUT
3098#define PM_DMAE0 PMAP_DMAE0
3099#define PM_SMCLK PMAP_SMCLK
3100#define PM_ANALOG PMAP_ANALOG
3101
3102#define PMAPKEY PMAP_KEYID_VAL
3103#define PMAPPWD PMAP_KEYID_VAL
3104#define PMAPPW PMAP_KEYID_VAL
3107/******************************************************************************
3108* REF_A Bits (legacy section)
3109******************************************************************************/
3110/* REFCTL0[REFON] Bits */
3111#define REFON_OFS REF_A_CTL0_ON_OFS
3112#define REFON REF_A_CTL0_ON
3113/* REFCTL0[REFOUT] Bits */
3114#define REFOUT_OFS REF_A_CTL0_OUT_OFS
3115#define REFOUT REF_A_CTL0_OUT
3116/* REFCTL0[REFTCOFF] Bits */
3117#define REFTCOFF_OFS REF_A_CTL0_TCOFF_OFS
3118#define REFTCOFF REF_A_CTL0_TCOFF
3119/* REFCTL0[REFVSEL] Bits */
3120#define REFVSEL_OFS REF_A_CTL0_VSEL_OFS
3121#define REFVSEL_M REF_A_CTL0_VSEL_MASK
3122#define REFVSEL0 REF_A_CTL0_VSEL0
3123#define REFVSEL1 REF_A_CTL0_VSEL1
3124#define REFVSEL_0 REF_A_CTL0_VSEL_0
3125#define REFVSEL_1 REF_A_CTL0_VSEL_1
3126#define REFVSEL_3 REF_A_CTL0_VSEL_3
3127/* REFCTL0[REFGENOT] Bits */
3128#define REFGENOT_OFS REF_A_CTL0_GENOT_OFS
3129#define REFGENOT REF_A_CTL0_GENOT
3130/* REFCTL0[REFBGOT] Bits */
3131#define REFBGOT_OFS REF_A_CTL0_BGOT_OFS
3132#define REFBGOT REF_A_CTL0_BGOT
3133/* REFCTL0[REFGENACT] Bits */
3134#define REFGENACT_OFS REF_A_CTL0_GENACT_OFS
3135#define REFGENACT REF_A_CTL0_GENACT
3136/* REFCTL0[REFBGACT] Bits */
3137#define REFBGACT_OFS REF_A_CTL0_BGACT_OFS
3138#define REFBGACT REF_A_CTL0_BGACT
3139/* REFCTL0[REFGENBUSY] Bits */
3140#define REFGENBUSY_OFS REF_A_CTL0_GENBUSY_OFS
3141#define REFGENBUSY REF_A_CTL0_GENBUSY
3142/* REFCTL0[BGMODE] Bits */
3143#define BGMODE_OFS REF_A_CTL0_BGMODE_OFS
3144#define BGMODE REF_A_CTL0_BGMODE
3145/* REFCTL0[REFGENRDY] Bits */
3146#define REFGENRDY_OFS REF_A_CTL0_GENRDY_OFS
3147#define REFGENRDY REF_A_CTL0_GENRDY
3148/* REFCTL0[REFBGRDY] Bits */
3149#define REFBGRDY_OFS REF_A_CTL0_BGRDY_OFS
3150#define REFBGRDY REF_A_CTL0_BGRDY
3152/******************************************************************************
3153* RTC_C Bits (legacy section)
3154******************************************************************************/
3155/* RTCCTL0[RTCRDYIFG] Bits */
3156#define RTCRDYIFG_OFS RTC_C_CTL0_RDYIFG_OFS
3157#define RTCRDYIFG RTC_C_CTL0_RDYIFG
3158/* RTCCTL0[RTCAIFG] Bits */
3159#define RTCAIFG_OFS RTC_C_CTL0_AIFG_OFS
3160#define RTCAIFG RTC_C_CTL0_AIFG
3161/* RTCCTL0[RTCTEVIFG] Bits */
3162#define RTCTEVIFG_OFS RTC_C_CTL0_TEVIFG_OFS
3163#define RTCTEVIFG RTC_C_CTL0_TEVIFG
3164/* RTCCTL0[RTCOFIFG] Bits */
3165#define RTCOFIFG_OFS RTC_C_CTL0_OFIFG_OFS
3166#define RTCOFIFG RTC_C_CTL0_OFIFG
3167/* RTCCTL0[RTCRDYIE] Bits */
3168#define RTCRDYIE_OFS RTC_C_CTL0_RDYIE_OFS
3169#define RTCRDYIE RTC_C_CTL0_RDYIE
3170/* RTCCTL0[RTCAIE] Bits */
3171#define RTCAIE_OFS RTC_C_CTL0_AIE_OFS
3172#define RTCAIE RTC_C_CTL0_AIE
3173/* RTCCTL0[RTCTEVIE] Bits */
3174#define RTCTEVIE_OFS RTC_C_CTL0_TEVIE_OFS
3175#define RTCTEVIE RTC_C_CTL0_TEVIE
3176/* RTCCTL0[RTCOFIE] Bits */
3177#define RTCOFIE_OFS RTC_C_CTL0_OFIE_OFS
3178#define RTCOFIE RTC_C_CTL0_OFIE
3179/* RTCCTL0[RTCKEY] Bits */
3180#define RTCKEY_OFS RTC_C_CTL0_KEY_OFS
3181#define RTCKEY_M RTC_C_CTL0_KEY_MASK
3182/* RTCCTL13[RTCTEV] Bits */
3183#define RTCTEV_OFS RTC_C_CTL13_TEV_OFS
3184#define RTCTEV_M RTC_C_CTL13_TEV_MASK
3185#define RTCTEV0 RTC_C_CTL13_TEV0
3186#define RTCTEV1 RTC_C_CTL13_TEV1
3187#define RTCTEV_0 RTC_C_CTL13_TEV_0
3188#define RTCTEV_1 RTC_C_CTL13_TEV_1
3189#define RTCTEV_2 RTC_C_CTL13_TEV_2
3190#define RTCTEV_3 RTC_C_CTL13_TEV_3
3191/* RTCCTL13[RTCSSEL] Bits */
3192#define RTCSSEL_OFS RTC_C_CTL13_SSEL_OFS
3193#define RTCSSEL_M RTC_C_CTL13_SSEL_MASK
3194#define RTCSSEL0 RTC_C_CTL13_SSEL0
3195#define RTCSSEL1 RTC_C_CTL13_SSEL1
3196#define RTCSSEL_0 RTC_C_CTL13_SSEL_0
3197#define RTCSSEL__BCLK RTC_C_CTL13_SSEL__BCLK
3198/* RTCCTL13[RTCRDY] Bits */
3199#define RTCRDY_OFS RTC_C_CTL13_RDY_OFS
3200#define RTCRDY RTC_C_CTL13_RDY
3201/* RTCCTL13[RTCMODE] Bits */
3202#define RTCMODE_OFS RTC_C_CTL13_MODE_OFS
3203#define RTCMODE RTC_C_CTL13_MODE
3204/* RTCCTL13[RTCHOLD] Bits */
3205#define RTCHOLD_OFS RTC_C_CTL13_HOLD_OFS
3206#define RTCHOLD RTC_C_CTL13_HOLD
3207/* RTCCTL13[RTCBCD] Bits */
3208#define RTCBCD_OFS RTC_C_CTL13_BCD_OFS
3209#define RTCBCD RTC_C_CTL13_BCD
3210/* RTCCTL13[RTCCALF] Bits */
3211#define RTCCALF_OFS RTC_C_CTL13_CALF_OFS
3212#define RTCCALF_M RTC_C_CTL13_CALF_MASK
3213#define RTCCALF0 RTC_C_CTL13_CALF0
3214#define RTCCALF1 RTC_C_CTL13_CALF1
3215#define RTCCALF_0 RTC_C_CTL13_CALF_0
3216#define RTCCALF_1 RTC_C_CTL13_CALF_1
3217#define RTCCALF_2 RTC_C_CTL13_CALF_2
3218#define RTCCALF_3 RTC_C_CTL13_CALF_3
3219#define RTCCALF__NONE RTC_C_CTL13_CALF__NONE
3220#define RTCCALF__512 RTC_C_CTL13_CALF__512
3221#define RTCCALF__256 RTC_C_CTL13_CALF__256
3222#define RTCCALF__1 RTC_C_CTL13_CALF__1
3223/* RTCOCAL[RTCOCAL] Bits */
3224#define RTCOCAL_OFS RTC_C_OCAL_OCAL_OFS
3225#define RTCOCAL_M RTC_C_OCAL_OCAL_MASK
3226/* RTCOCAL[RTCOCALS] Bits */
3227#define RTCOCALS_OFS RTC_C_OCAL_OCALS_OFS
3228#define RTCOCALS RTC_C_OCAL_OCALS
3229/* RTCTCMP[RTCTCMP] Bits */
3230#define RTCTCMP_OFS RTC_C_TCMP_TCMPX_OFS
3231#define RTCTCMP_M RTC_C_TCMP_TCMPX_MASK
3232/* RTCTCMP[RTCTCOK] Bits */
3233#define RTCTCOK_OFS RTC_C_TCMP_TCOK_OFS
3234#define RTCTCOK RTC_C_TCMP_TCOK
3235/* RTCTCMP[RTCTCRDY] Bits */
3236#define RTCTCRDY_OFS RTC_C_TCMP_TCRDY_OFS
3237#define RTCTCRDY RTC_C_TCMP_TCRDY
3238/* RTCTCMP[RTCTCMPS] Bits */
3239#define RTCTCMPS_OFS RTC_C_TCMP_TCMPS_OFS
3240#define RTCTCMPS RTC_C_TCMP_TCMPS
3241/* RTCPS0CTL[RT0PSIFG] Bits */
3242#define RT0PSIFG_OFS RTC_C_PS0CTL_RT0PSIFG_OFS
3243#define RT0PSIFG RTC_C_PS0CTL_RT0PSIFG
3244/* RTCPS0CTL[RT0PSIE] Bits */
3245#define RT0PSIE_OFS RTC_C_PS0CTL_RT0PSIE_OFS
3246#define RT0PSIE RTC_C_PS0CTL_RT0PSIE
3247/* RTCPS0CTL[RT0IP] Bits */
3248#define RT0IP_OFS RTC_C_PS0CTL_RT0IP_OFS
3249#define RT0IP_M RTC_C_PS0CTL_RT0IP_MASK
3250#define RT0IP0 RTC_C_PS0CTL_RT0IP0
3251#define RT0IP1 RTC_C_PS0CTL_RT0IP1
3252#define RT0IP2 RTC_C_PS0CTL_RT0IP2
3253#define RT0IP_0 RTC_C_PS0CTL_RT0IP_0
3254#define RT0IP_1 RTC_C_PS0CTL_RT0IP_1
3255#define RT0IP_2 RTC_C_PS0CTL_RT0IP_2
3256#define RT0IP_3 RTC_C_PS0CTL_RT0IP_3
3257#define RT0IP_4 RTC_C_PS0CTL_RT0IP_4
3258#define RT0IP_5 RTC_C_PS0CTL_RT0IP_5
3259#define RT0IP_6 RTC_C_PS0CTL_RT0IP_6
3260#define RT0IP_7 RTC_C_PS0CTL_RT0IP_7
3261#define RT0IP__2 RTC_C_PS0CTL_RT0IP__2
3262#define RT0IP__4 RTC_C_PS0CTL_RT0IP__4
3263#define RT0IP__8 RTC_C_PS0CTL_RT0IP__8
3264#define RT0IP__16 RTC_C_PS0CTL_RT0IP__16
3265#define RT0IP__32 RTC_C_PS0CTL_RT0IP__32
3266#define RT0IP__64 RTC_C_PS0CTL_RT0IP__64
3267#define RT0IP__128 RTC_C_PS0CTL_RT0IP__128
3268#define RT0IP__256 RTC_C_PS0CTL_RT0IP__256
3269/* RTCPS1CTL[RT1PSIFG] Bits */
3270#define RT1PSIFG_OFS RTC_C_PS1CTL_RT1PSIFG_OFS
3271#define RT1PSIFG RTC_C_PS1CTL_RT1PSIFG
3272/* RTCPS1CTL[RT1PSIE] Bits */
3273#define RT1PSIE_OFS RTC_C_PS1CTL_RT1PSIE_OFS
3274#define RT1PSIE RTC_C_PS1CTL_RT1PSIE
3275/* RTCPS1CTL[RT1IP] Bits */
3276#define RT1IP_OFS RTC_C_PS1CTL_RT1IP_OFS
3277#define RT1IP_M RTC_C_PS1CTL_RT1IP_MASK
3278#define RT1IP0 RTC_C_PS1CTL_RT1IP0
3279#define RT1IP1 RTC_C_PS1CTL_RT1IP1
3280#define RT1IP2 RTC_C_PS1CTL_RT1IP2
3281#define RT1IP_0 RTC_C_PS1CTL_RT1IP_0
3282#define RT1IP_1 RTC_C_PS1CTL_RT1IP_1
3283#define RT1IP_2 RTC_C_PS1CTL_RT1IP_2
3284#define RT1IP_3 RTC_C_PS1CTL_RT1IP_3
3285#define RT1IP_4 RTC_C_PS1CTL_RT1IP_4
3286#define RT1IP_5 RTC_C_PS1CTL_RT1IP_5
3287#define RT1IP_6 RTC_C_PS1CTL_RT1IP_6
3288#define RT1IP_7 RTC_C_PS1CTL_RT1IP_7
3289#define RT1IP__2 RTC_C_PS1CTL_RT1IP__2
3290#define RT1IP__4 RTC_C_PS1CTL_RT1IP__4
3291#define RT1IP__8 RTC_C_PS1CTL_RT1IP__8
3292#define RT1IP__16 RTC_C_PS1CTL_RT1IP__16
3293#define RT1IP__32 RTC_C_PS1CTL_RT1IP__32
3294#define RT1IP__64 RTC_C_PS1CTL_RT1IP__64
3295#define RT1IP__128 RTC_C_PS1CTL_RT1IP__128
3296#define RT1IP__256 RTC_C_PS1CTL_RT1IP__256
3297/* RTCPS[RT0PS] Bits */
3298#define RT0PS_OFS RTC_C_PS_RT0PS_OFS
3299#define RT0PS_M RTC_C_PS_RT0PS_MASK
3300/* RTCPS[RT1PS] Bits */
3301#define RT1PS_OFS RTC_C_PS_RT1PS_OFS
3302#define RT1PS_M RTC_C_PS_RT1PS_MASK
3303/* RTCTIM0[SECONDS] Bits */
3304#define SECONDS_OFS RTC_C_TIM0_SEC_OFS
3305#define SECONDS_M RTC_C_TIM0_SEC_MASK
3306/* RTCTIM0[MINUTES] Bits */
3307#define MINUTES_OFS RTC_C_TIM0_MIN_OFS
3308#define MINUTES_M RTC_C_TIM0_MIN_MASK
3309/* RTCTIM0_BCD[SECONDSLOWDIGIT] Bits */
3310#define SECONDSLOWDIGIT_OFS RTC_C_TIM0_SEC_LD_OFS
3311#define SECONDSLOWDIGIT_M RTC_C_TIM0_SEC_LD_MASK
3312/* RTCTIM0_BCD[SECONDSHIGHDIGIT] Bits */
3313#define SECONDSHIGHDIGIT_OFS RTC_C_TIM0_SEC_HD_OFS
3314#define SECONDSHIGHDIGIT_M RTC_C_TIM0_SEC_HD_MASK
3315/* RTCTIM0_BCD[MINUTESLOWDIGIT] Bits */
3316#define MINUTESLOWDIGIT_OFS RTC_C_TIM0_MIN_LD_OFS
3317#define MINUTESLOWDIGIT_M RTC_C_TIM0_MIN_LD_MASK
3318/* RTCTIM0_BCD[MINUTESHIGHDIGIT] Bits */
3319#define MINUTESHIGHDIGIT_OFS RTC_C_TIM0_MIN_HD_OFS
3320#define MINUTESHIGHDIGIT_M RTC_C_TIM0_MIN_HD_MASK
3321/* RTCTIM1[HOURS] Bits */
3322#define HOURS_OFS RTC_C_TIM1_HOUR_OFS
3323#define HOURS_M RTC_C_TIM1_HOUR_MASK
3324/* RTCTIM1[DAYOFWEEK] Bits */
3325#define DAYOFWEEK_OFS RTC_C_TIM1_DOW_OFS
3326#define DAYOFWEEK_M RTC_C_TIM1_DOW_MASK
3327/* RTCTIM1_BCD[HOURSLOWDIGIT] Bits */
3328#define HOURSLOWDIGIT_OFS RTC_C_TIM1_HOUR_LD_OFS
3329#define HOURSLOWDIGIT_M RTC_C_TIM1_HOUR_LD_MASK
3330/* RTCTIM1_BCD[HOURSHIGHDIGIT] Bits */
3331#define HOURSHIGHDIGIT_OFS RTC_C_TIM1_HOUR_HD_OFS
3332#define HOURSHIGHDIGIT_M RTC_C_TIM1_HOUR_HD_MASK
3333/* RTCTIM1_BCD[DAYOFWEEK] Bits */
3334//#define DAYOFWEEK_OFS RTC_C_TIM1_DOW_OFS /*!< DayofWeek Offset */
3335//#define DAYOFWEEK_M RTC_C_TIM1_DOW_MASK /*!< Day of week (0 to 6) */
3336/* RTCDATE[DAY] Bits */
3337#define DAY_OFS RTC_C_DATE_DAY_OFS
3338#define DAY_M RTC_C_DATE_DAY_MASK
3339/* RTCDATE[MONTH] Bits */
3340#define MONTH_OFS RTC_C_DATE_MON_OFS
3341#define MONTH_M RTC_C_DATE_MON_MASK
3342/* RTCDATE_BCD[DAYLOWDIGIT] Bits */
3343#define DAYLOWDIGIT_OFS RTC_C_DATE_DAY_LD_OFS
3344#define DAYLOWDIGIT_M RTC_C_DATE_DAY_LD_MASK
3345/* RTCDATE_BCD[DAYHIGHDIGIT] Bits */
3346#define DAYHIGHDIGIT_OFS RTC_C_DATE_DAY_HD_OFS
3347#define DAYHIGHDIGIT_M RTC_C_DATE_DAY_HD_MASK
3348/* RTCDATE_BCD[MONTHLOWDIGIT] Bits */
3349#define MONTHLOWDIGIT_OFS RTC_C_DATE_MON_LD_OFS
3350#define MONTHLOWDIGIT_M RTC_C_DATE_MON_LD_MASK
3351/* RTCDATE_BCD[MONTHHIGHDIGIT] Bits */
3352#define MONTHHIGHDIGIT_OFS RTC_C_DATE_MON_HD_OFS
3353#define MONTHHIGHDIGIT RTC_C_DATE_MON_HD
3354/* RTCYEAR[YEARLOWBYTE] Bits */
3355#define YEARLOWBYTE_OFS RTC_C_YEAR_YEAR_LB_OFS
3356#define YEARLOWBYTE_M RTC_C_YEAR_YEAR_LB_MASK
3357/* RTCYEAR[YEARHIGHBYTE] Bits */
3358#define YEARHIGHBYTE_OFS RTC_C_YEAR_YEAR_HB_OFS
3359#define YEARHIGHBYTE_M RTC_C_YEAR_YEAR_HB_MASK
3360/* RTCYEAR_BCD[YEAR] Bits */
3361#define YEAR_OFS RTC_C_YEAR_YEAR_OFS
3362#define YEAR_M RTC_C_YEAR_YEAR_MASK
3363/* RTCYEAR_BCD[DECADE] Bits */
3364#define DECADE_OFS RTC_C_YEAR_DEC_OFS
3365#define DECADE_M RTC_C_YEAR_DEC_MASK
3366/* RTCYEAR_BCD[CENTURYLOWDIGIT] Bits */
3367#define CENTURYLOWDIGIT_OFS RTC_C_YEAR_CENT_LD_OFS
3368#define CENTURYLOWDIGIT_M RTC_C_YEAR_CENT_LD_MASK
3369/* RTCYEAR_BCD[CENTURYHIGHDIGIT] Bits */
3370#define CENTURYHIGHDIGIT_OFS RTC_C_YEAR_CENT_HD_OFS
3371#define CENTURYHIGHDIGIT_M RTC_C_YEAR_CENT_HD_MASK
3372/* RTCAMINHR[MINUTES] Bits */
3373//#define MINUTES_OFS RTC_C_AMINHR_MIN_OFS /*!< Minutes Offset */
3374//#define MINUTES_M RTC_C_AMINHR_MIN_MASK /*!< Minutes (0 to 59) */
3375/* RTCAMINHR[MINAE] Bits */
3376#define MINAE_OFS RTC_C_AMINHR_MINAE_OFS
3377#define MINAE RTC_C_AMINHR_MINAE
3378/* RTCAMINHR[HOURS] Bits */
3379//#define HOURS_OFS RTC_C_AMINHR_HOUR_OFS /*!< Hours Offset */
3380//#define HOURS_M RTC_C_AMINHR_HOUR_MASK /*!< Hours (0 to 23) */
3381/* RTCAMINHR[HOURAE] Bits */
3382#define HOURAE_OFS RTC_C_AMINHR_HOURAE_OFS
3383#define HOURAE RTC_C_AMINHR_HOURAE
3384/* RTCAMINHR_BCD[MINUTESLOWDIGIT] Bits */
3385//#define MINUTESLOWDIGIT_OFS RTC_C_AMINHR_MIN_LD_OFS /*!< MinutesLowDigit Offset */
3386//#define MINUTESLOWDIGIT_M RTC_C_AMINHR_MIN_LD_MASK /*!< Minutes low digit (0 to 9) */
3387/* RTCAMINHR_BCD[MINUTESHIGHDIGIT] Bits */
3388//#define MINUTESHIGHDIGIT_OFS RTC_C_AMINHR_MIN_HD_OFS /*!< MinutesHighDigit Offset */
3389//#define MINUTESHIGHDIGIT_M RTC_C_AMINHR_MIN_HD_MASK /*!< Minutes high digit (0 to 5) */
3390/* RTCAMINHR_BCD[MINAE] Bits */
3391//#define MINAE_OFS RTC_C_AMINHR_MINAE_OFS /*!< MINAE Offset */
3392//#define MINAE RTC_C_AMINHR_MINAE /*!< Alarm enable */
3393/* RTCAMINHR_BCD[HOURSLOWDIGIT] Bits */
3394//#define HOURSLOWDIGIT_OFS RTC_C_AMINHR_HOUR_LD_OFS /*!< HoursLowDigit Offset */
3395//#define HOURSLOWDIGIT_M RTC_C_AMINHR_HOUR_LD_MASK /*!< Hours low digit (0 to 9) */
3396/* RTCAMINHR_BCD[HOURSHIGHDIGIT] Bits */
3397//#define HOURSHIGHDIGIT_OFS RTC_C_AMINHR_HOUR_HD_OFS /*!< HoursHighDigit Offset */
3398//#define HOURSHIGHDIGIT_M RTC_C_AMINHR_HOUR_HD_MASK /*!< Hours high digit (0 to 2) */
3399/* RTCAMINHR_BCD[HOURAE] Bits */
3400//#define HOURAE_OFS RTC_C_AMINHR_HOURAE_OFS /*!< HOURAE Offset */
3401//#define HOURAE RTC_C_AMINHR_HOURAE /*!< Alarm enable */
3402/* RTCADOWDAY[DAYOFWEEK] Bits */
3403//#define DAYOFWEEK_OFS RTC_C_ADOWDAY_DOW_OFS /*!< DayofWeek Offset */
3404//#define DAYOFWEEK_M RTC_C_ADOWDAY_DOW_MASK /*!< Day of week (0 to 6) */
3405/* RTCADOWDAY[DOWAE] Bits */
3406#define DOWAE_OFS RTC_C_ADOWDAY_DOWAE_OFS
3407#define DOWAE RTC_C_ADOWDAY_DOWAE
3408/* RTCADOWDAY[DAYOFMONTH] Bits */
3409#define DAYOFMONTH_OFS RTC_C_ADOWDAY_DAY_OFS
3410#define DAYOFMONTH_M RTC_C_ADOWDAY_DAY_MASK
3411/* RTCADOWDAY[DAYAE] Bits */
3412#define DAYAE_OFS RTC_C_ADOWDAY_DAYAE_OFS
3413#define DAYAE RTC_C_ADOWDAY_DAYAE
3414/* RTCADOWDAY_BCD[DAYOFWEEK] Bits */
3415//#define DAYOFWEEK_OFS RTC_C_ADOWDAY_DOW_OFS /*!< DayofWeek Offset */
3416//#define DAYOFWEEK_M RTC_C_ADOWDAY_DOW_MASK /*!< Day of week (0 to 6) */
3417/* RTCADOWDAY_BCD[DOWAE] Bits */
3418//#define DOWAE_OFS RTC_C_ADOWDAY_DOWAE_OFS /*!< DOWAE Offset */
3419//#define DOWAE RTC_C_ADOWDAY_DOWAE /*!< Alarm enable */
3420/* RTCADOWDAY_BCD[DAYLOWDIGIT] Bits */
3421//#define DAYLOWDIGIT_OFS RTC_C_ADOWDAY_DAY_LD_OFS /*!< DayLowDigit Offset */
3422//#define DAYLOWDIGIT_M RTC_C_ADOWDAY_DAY_LD_MASK /*!< Day of month low digit (0 to 9) */
3423/* RTCADOWDAY_BCD[DAYHIGHDIGIT] Bits */
3424//#define DAYHIGHDIGIT_OFS RTC_C_ADOWDAY_DAY_HD_OFS /*!< DayHighDigit Offset */
3425//#define DAYHIGHDIGIT_M RTC_C_ADOWDAY_DAY_HD_MASK /*!< Day of month high digit (0 to 3) */
3426/* RTCADOWDAY_BCD[DAYAE] Bits */
3427//#define DAYAE_OFS RTC_C_ADOWDAY_DAYAE_OFS /*!< DAYAE Offset */
3428//#define DAYAE RTC_C_ADOWDAY_DAYAE /*!< Alarm enable */
3429/* Pre-defined bitfield values */
3430#define RTCKEY RTC_C_KEY
3431#define RTCKEY_H RTC_C_KEY_H
3432#define RTCKEY_VAL RTC_C_KEY_VAL
3435/******************************************************************************
3436* TIMER_A Bits (legacy section)
3437******************************************************************************/
3438/* TA0CTL[TAIFG] Bits */
3439#define TAIFG_OFS TIMER_A_CTL_IFG_OFS
3440#define TAIFG TIMER_A_CTL_IFG
3441/* TA0CTL[TAIE] Bits */
3442#define TAIE_OFS TIMER_A_CTL_IE_OFS
3443#define TAIE TIMER_A_CTL_IE
3444/* TA0CTL[TACLR] Bits */
3445#define TACLR_OFS TIMER_A_CTL_CLR_OFS
3446#define TACLR TIMER_A_CTL_CLR
3447/* TA0CTL[MC] Bits */
3448#define MC_OFS TIMER_A_CTL_MC_OFS
3449#define MC_M TIMER_A_CTL_MC_MASK
3450#define MC0 TIMER_A_CTL_MC0
3451#define MC1 TIMER_A_CTL_MC1
3452#define MC_0 TIMER_A_CTL_MC_0
3453#define MC_1 TIMER_A_CTL_MC_1
3454#define MC_2 TIMER_A_CTL_MC_2
3455#define MC_3 TIMER_A_CTL_MC_3
3456#define MC__STOP TIMER_A_CTL_MC__STOP
3457#define MC__UP TIMER_A_CTL_MC__UP
3458#define MC__CONTINUOUS TIMER_A_CTL_MC__CONTINUOUS
3459#define MC__UPDOWN TIMER_A_CTL_MC__UPDOWN
3460/* TA0CTL[ID] Bits */
3461#define ID_OFS TIMER_A_CTL_ID_OFS
3462#define ID_M TIMER_A_CTL_ID_MASK
3463#define ID0 TIMER_A_CTL_ID0
3464#define ID1 TIMER_A_CTL_ID1
3465#define ID_0 TIMER_A_CTL_ID_0
3466#define ID_1 TIMER_A_CTL_ID_1
3467#define ID_2 TIMER_A_CTL_ID_2
3468#define ID_3 TIMER_A_CTL_ID_3
3469#define ID__1 TIMER_A_CTL_ID__1
3470#define ID__2 TIMER_A_CTL_ID__2
3471#define ID__4 TIMER_A_CTL_ID__4
3472#define ID__8 TIMER_A_CTL_ID__8
3473/* TA0CTL[TASSEL] Bits */
3474#define TASSEL_OFS TIMER_A_CTL_SSEL_OFS
3475#define TASSEL_M TIMER_A_CTL_SSEL_MASK
3476#define TASSEL0 TIMER_A_CTL_SSEL0
3477#define TASSEL1 TIMER_A_CTL_SSEL1
3478#define TASSEL_0 TIMER_A_CTL_TASSEL_0
3479#define TASSEL_1 TIMER_A_CTL_TASSEL_1
3480#define TASSEL_2 TIMER_A_CTL_TASSEL_2
3481#define TASSEL_3 TIMER_A_CTL_TASSEL_3
3482#define TASSEL__TACLK TIMER_A_CTL_SSEL__TACLK
3483#define TASSEL__ACLK TIMER_A_CTL_SSEL__ACLK
3484#define TASSEL__SMCLK TIMER_A_CTL_SSEL__SMCLK
3485#define TASSEL__INCLK TIMER_A_CTL_SSEL__INCLK
3486/* TA0CCTLn[CCIFG] Bits */
3487#define CCIFG_OFS TIMER_A_CCTLN_CCIFG_OFS
3488#define CCIFG TIMER_A_CCTLN_CCIFG
3489/* TA0CCTLn[COV] Bits */
3490#define COV_OFS TIMER_A_CCTLN_COV_OFS
3491#define COV TIMER_A_CCTLN_COV
3492/* TA0CCTLn[OUT] Bits */
3493#define OUT_OFS TIMER_A_CCTLN_OUT_OFS
3494//#define OUT TIMER_A_CCTLN_OUT /*!< Output */
3495/* TA0CCTLn[CCI] Bits */
3496#define CCI_OFS TIMER_A_CCTLN_CCI_OFS
3497#define CCI TIMER_A_CCTLN_CCI
3498/* TA0CCTLn[CCIE] Bits */
3499#define CCIE_OFS TIMER_A_CCTLN_CCIE_OFS
3500#define CCIE TIMER_A_CCTLN_CCIE
3501/* TA0CCTLn[OUTMOD] Bits */
3502#define OUTMOD_OFS TIMER_A_CCTLN_OUTMOD_OFS
3503#define OUTMOD_M TIMER_A_CCTLN_OUTMOD_MASK
3504#define OUTMOD0 TIMER_A_CCTLN_OUTMOD0
3505#define OUTMOD1 TIMER_A_CCTLN_OUTMOD1
3506#define OUTMOD2 TIMER_A_CCTLN_OUTMOD2
3507#define OUTMOD_0 TIMER_A_CCTLN_OUTMOD_0
3508#define OUTMOD_1 TIMER_A_CCTLN_OUTMOD_1
3509#define OUTMOD_2 TIMER_A_CCTLN_OUTMOD_2
3510#define OUTMOD_3 TIMER_A_CCTLN_OUTMOD_3
3511#define OUTMOD_4 TIMER_A_CCTLN_OUTMOD_4
3512#define OUTMOD_5 TIMER_A_CCTLN_OUTMOD_5
3513#define OUTMOD_6 TIMER_A_CCTLN_OUTMOD_6
3514#define OUTMOD_7 TIMER_A_CCTLN_OUTMOD_7
3515/* TA0CCTLn[CAP] Bits */
3516#define CAP_OFS TIMER_A_CCTLN_CAP_OFS
3517#define CAP TIMER_A_CCTLN_CAP
3518/* TA0CCTLn[SCCI] Bits */
3519#define SCCI_OFS TIMER_A_CCTLN_SCCI_OFS
3520#define SCCI TIMER_A_CCTLN_SCCI
3521/* TA0CCTLn[SCS] Bits */
3522#define SCS_OFS TIMER_A_CCTLN_SCS_OFS
3523#define SCS TIMER_A_CCTLN_SCS
3524/* TA0CCTLn[CCIS] Bits */
3525#define CCIS_OFS TIMER_A_CCTLN_CCIS_OFS
3526#define CCIS_M TIMER_A_CCTLN_CCIS_MASK
3527#define CCIS0 TIMER_A_CCTLN_CCIS0
3528#define CCIS1 TIMER_A_CCTLN_CCIS1
3529#define CCIS_0 TIMER_A_CCTLN_CCIS_0
3530#define CCIS_1 TIMER_A_CCTLN_CCIS_1
3531#define CCIS_2 TIMER_A_CCTLN_CCIS_2
3532#define CCIS_3 TIMER_A_CCTLN_CCIS_3
3533#define CCIS__CCIA TIMER_A_CCTLN_CCIS__CCIA
3534#define CCIS__CCIB TIMER_A_CCTLN_CCIS__CCIB
3535#define CCIS__GND TIMER_A_CCTLN_CCIS__GND
3536#define CCIS__VCC TIMER_A_CCTLN_CCIS__VCC
3537/* TA0CCTLn[CM] Bits */
3538#define CM_OFS TIMER_A_CCTLN_CM_OFS
3539#define CM_M TIMER_A_CCTLN_CM_MASK
3540#define CM0 TIMER_A_CCTLN_CM0
3541#define CM1 TIMER_A_CCTLN_CM1
3542#define CM_0 TIMER_A_CCTLN_CM_0
3543#define CM_1 TIMER_A_CCTLN_CM_1
3544#define CM_2 TIMER_A_CCTLN_CM_2
3545#define CM_3 TIMER_A_CCTLN_CM_3
3546#define CM__NONE TIMER_A_CCTLN_CM__NONE
3547#define CM__RISING TIMER_A_CCTLN_CM__RISING
3548#define CM__FALLING TIMER_A_CCTLN_CM__FALLING
3549#define CM__BOTH TIMER_A_CCTLN_CM__BOTH
3550/* TA0EX0[TAIDEX] Bits */
3551#define TAIDEX_OFS TIMER_A_EX0_IDEX_OFS
3552#define TAIDEX_M TIMER_A_EX0_IDEX_MASK
3553#define TAIDEX0 TIMER_A_EX0_IDEX0
3554#define TAIDEX1 TIMER_A_EX0_IDEX1
3555#define TAIDEX2 TIMER_A_EX0_IDEX2
3556#define TAIDEX_0 TIMER_A_EX0_TAIDEX_0
3557#define TAIDEX_1 TIMER_A_EX0_TAIDEX_1
3558#define TAIDEX_2 TIMER_A_EX0_TAIDEX_2
3559#define TAIDEX_3 TIMER_A_EX0_TAIDEX_3
3560#define TAIDEX_4 TIMER_A_EX0_TAIDEX_4
3561#define TAIDEX_5 TIMER_A_EX0_TAIDEX_5
3562#define TAIDEX_6 TIMER_A_EX0_TAIDEX_6
3563#define TAIDEX_7 TIMER_A_EX0_TAIDEX_7
3564#define TAIDEX__1 TIMER_A_EX0_IDEX__1
3565#define TAIDEX__2 TIMER_A_EX0_IDEX__2
3566#define TAIDEX__3 TIMER_A_EX0_IDEX__3
3567#define TAIDEX__4 TIMER_A_EX0_IDEX__4
3568#define TAIDEX__5 TIMER_A_EX0_IDEX__5
3569#define TAIDEX__6 TIMER_A_EX0_IDEX__6
3570#define TAIDEX__7 TIMER_A_EX0_IDEX__7
3571#define TAIDEX__8 TIMER_A_EX0_IDEX__8
3573/******************************************************************************
3574* WDT_A Bits (legacy section)
3575******************************************************************************/
3576/* WDTCTL[WDTIS] Bits */
3577#define WDTIS_OFS WDT_A_CTL_IS_OFS
3578#define WDTIS_M WDT_A_CTL_IS_MASK
3579#define WDTIS0 WDT_A_CTL_IS0
3580#define WDTIS1 WDT_A_CTL_IS1
3581#define WDTIS2 WDT_A_CTL_IS2
3582#define WDTIS_0 WDT_A_CTL_IS_0
3583#define WDTIS_1 WDT_A_CTL_IS_1
3584#define WDTIS_2 WDT_A_CTL_IS_2
3585#define WDTIS_3 WDT_A_CTL_IS_3
3586#define WDTIS_4 WDT_A_CTL_IS_4
3587#define WDTIS_5 WDT_A_CTL_IS_5
3588#define WDTIS_6 WDT_A_CTL_IS_6
3589#define WDTIS_7 WDT_A_CTL_IS_7
3590/* WDTCTL[WDTCNTCL] Bits */
3591#define WDTCNTCL_OFS WDT_A_CTL_CNTCL_OFS
3592#define WDTCNTCL WDT_A_CTL_CNTCL
3593/* WDTCTL[WDTTMSEL] Bits */
3594#define WDTTMSEL_OFS WDT_A_CTL_TMSEL_OFS
3595#define WDTTMSEL WDT_A_CTL_TMSEL
3596/* WDTCTL[WDTSSEL] Bits */
3597#define WDTSSEL_OFS WDT_A_CTL_SSEL_OFS
3598#define WDTSSEL_M WDT_A_CTL_SSEL_MASK
3599#define WDTSSEL0 WDT_A_CTL_SSEL0
3600#define WDTSSEL1 WDT_A_CTL_SSEL1
3601#define WDTSSEL_0 WDT_A_CTL_SSEL_0
3602#define WDTSSEL_1 WDT_A_CTL_SSEL_1
3603#define WDTSSEL_2 WDT_A_CTL_SSEL_2
3604#define WDTSSEL_3 WDT_A_CTL_SSEL_3
3605#define WDTSSEL__SMCLK WDT_A_CTL_SSEL__SMCLK
3606#define WDTSSEL__ACLK WDT_A_CTL_SSEL__ACLK
3607#define WDTSSEL__VLOCLK WDT_A_CTL_SSEL__VLOCLK
3608#define WDTSSEL__BCLK WDT_A_CTL_SSEL__BCLK
3609/* WDTCTL[WDTHOLD] Bits */
3610#define WDTHOLD_OFS WDT_A_CTL_HOLD_OFS
3611#define WDTHOLD WDT_A_CTL_HOLD
3612/* WDTCTL[WDTPW] Bits */
3613#define WDTPW_OFS WDT_A_CTL_PW_OFS
3614#define WDTPW_M WDT_A_CTL_PW_MASK
3615/* Pre-defined bitfield values */
3616#define WDTPW WDT_A_CTL_PW
3619#ifdef __cplusplus
3620}
3621#endif
3622
3623#endif /* __MSP432P401R_CLASSIC_H__ */