16 #ifndef __msp430F5XX_F6XXGENERIC
17 #define __msp430F5XX_F6XXGENERIC
21 #ifdef __IAR_SYSTEMS_ICC__
23 #pragma system_include
27 #if (((__TID__ >> 8) & 0x7F) != 0x2b)
28 #error msp430f5xx_6xxgeneric.h file for use with ICC430/A430 only
32 #ifdef __IAR_SYSTEMS_ICC__
34 #pragma language=extended
36 #define DEFC(name, address) __no_init volatile unsigned char name @ address;
37 #define DEFW(name, address) __no_init volatile unsigned short name @ address;
39 #define DEFCW(name, address) __no_init union \
43 volatile unsigned char name##_L; \
44 volatile unsigned char name##_H; \
46 volatile unsigned short name; \
49 #define READ_ONLY_DEFCW(name, address) __no_init union \
53 volatile READ_ONLY unsigned char name##_L; \
54 volatile READ_ONLY unsigned char name##_H; \
56 volatile READ_ONLY unsigned short name; \
60 #if __REGISTER_MODEL__ == __REGISTER_MODEL_REG20__
61 #define __ACCESS_20BIT_REG__ void __data20 * volatile
63 #define __ACCESS_20BIT_REG__ volatile unsigned short
66 #define DEFA(name, address) __no_init union \
70 volatile unsigned char name##_L; \
71 volatile unsigned char name##_H; \
75 volatile unsigned short name##L; \
76 volatile unsigned short name##H; \
78 __ACCESS_20BIT_REG__ name; \
84 #ifdef __IAR_SYSTEMS_ASM__
85 #define DEFC(name, address) sfrb name = address;
86 #define DEFW(name, address) sfrw name = address;
88 #define DEFCW(name, address) sfrbw name, name##_L, name##_H, address;
89 sfrbw macro name, name_L, name_H, address;
90 sfrb name_L = address;
91 sfrb name_H = address+1;
95 #define READ_ONLY_DEFCW(name, address) const_sfrbw name, name##_L, name##_H, address;
96 const_sfrbw macro name, name_L, name_H, address;
97 const sfrb name_L = address;
98 const sfrb name_H = address+1;
99 const sfrw name = address;
102 #define DEFA(name, address) sfrba name, name##L, name##H, name##_L, name##_H, address;
103 sfrba macro name, nameL, nameH, name_L, name_H, address;
104 sfrb name_L = address;
105 sfrb name_H = address+1;
106 sfrw nameL = address;
107 sfrw nameH = address+2;
116 #define READ_ONLY const
123 #define BIT0 (0x0001u)
124 #define BIT1 (0x0002u)
125 #define BIT2 (0x0004u)
126 #define BIT3 (0x0008u)
127 #define BIT4 (0x0010u)
128 #define BIT5 (0x0020u)
129 #define BIT6 (0x0040u)
130 #define BIT7 (0x0080u)
131 #define BIT8 (0x0100u)
132 #define BIT9 (0x0200u)
133 #define BITA (0x0400u)
134 #define BITB (0x0800u)
135 #define BITC (0x1000u)
136 #define BITD (0x2000u)
137 #define BITE (0x4000u)
138 #define BITF (0x8000u)
148 #define GIE (0x0008u)
149 #define CPUOFF (0x0010u)
150 #define OSCOFF (0x0020u)
151 #define SCG0 (0x0040u)
152 #define SCG1 (0x0080u)
156 #ifndef __IAR_SYSTEMS_ICC__
157 #define LPM0 (CPUOFF)
158 #define LPM1 (SCG0+CPUOFF)
159 #define LPM2 (SCG1+CPUOFF)
160 #define LPM3 (SCG1+SCG0+CPUOFF)
161 #define LPM4 (SCG1+SCG0+OSCOFF+CPUOFF)
165 #define LPM0_bits (CPUOFF)
166 #define LPM1_bits (SCG0+CPUOFF)
167 #define LPM2_bits (SCG1+CPUOFF)
168 #define LPM3_bits (SCG1+SCG0+CPUOFF)
169 #define LPM4_bits (SCG1+SCG0+OSCOFF+CPUOFF)
173 #define LPM0 _BIS_SR(LPM0_bits)
174 #define LPM0_EXIT _BIC_SR_IRQ(LPM0_bits)
175 #define LPM1 _BIS_SR(LPM1_bits)
176 #define LPM1_EXIT _BIC_SR_IRQ(LPM1_bits)
177 #define LPM2 _BIS_SR(LPM2_bits)
178 #define LPM2_EXIT _BIC_SR_IRQ(LPM2_bits)
179 #define LPM3 _BIS_SR(LPM3_bits)
180 #define LPM3_EXIT _BIC_SR_IRQ(LPM3_bits)
181 #define LPM4 _BIS_SR(LPM4_bits)
182 #define LPM4_EXIT _BIC_SR_IRQ(LPM4_bits)
188 #define __MSP430_HAS_MSP430XV2_CPU__
190 #if defined(__MSP430_HAS_T0A2__) || defined(__MSP430_HAS_T1A2__) || defined(__MSP430_HAS_T2A2__) || defined(__MSP430_HAS_T3A2__) \
191 || defined(__MSP430_HAS_T0A3__) || defined(__MSP430_HAS_T1A3__) || defined(__MSP430_HAS_T2A3__) || defined(__MSP430_HAS_T3A3__) \
192 || defined(__MSP430_HAS_T0A5__) || defined(__MSP430_HAS_T1A5__) || defined(__MSP430_HAS_T2A5__) || defined(__MSP430_HAS_T3A5__) \
193 || defined(__MSP430_HAS_T0A7__) || defined(__MSP430_HAS_T1A7__) || defined(__MSP430_HAS_T2A7__) || defined(__MSP430_HAS_T3A7__)
194 #define __MSP430_HAS_TxA7__
196 #if defined(__MSP430_HAS_T0B3__) || defined(__MSP430_HAS_T0B5__) || defined(__MSP430_HAS_T0B7__) \
197 || defined(__MSP430_HAS_T1B3__) || defined(__MSP430_HAS_T1B5__) || defined(__MSP430_HAS_T1B7__)
198 #define __MSP430_HAS_TxB7__
200 #if defined(__MSP430_HAS_T0D3__) || defined(__MSP430_HAS_T0D5__) || defined(__MSP430_HAS_T0D7__) \
201 || defined(__MSP430_HAS_T1D3__) || defined(__MSP430_HAS_T1D5__) || defined(__MSP430_HAS_T1D7__)
202 #define __MSP430_HAS_TxD7__
204 #if defined(__MSP430_HAS_USCI_A0__) || defined(__MSP430_HAS_USCI_A1__) || defined(__MSP430_HAS_USCI_A2__) || defined(__MSP430_HAS_USCI_A3__)
205 #define __MSP430_HAS_USCI_Ax__
207 #if defined(__MSP430_HAS_USCI_B0__) || defined(__MSP430_HAS_USCI_B1__) || defined(__MSP430_HAS_USCI_B2__) || defined(__MSP430_HAS_USCI_B3__)
208 #define __MSP430_HAS_USCI_Bx__
210 #if defined(__MSP430_HAS_EUSCI_A0__) || defined(__MSP430_HAS_EUSCI_A1__) || defined(__MSP430_HAS_EUSCI_A2__) || defined(__MSP430_HAS_EUSCI_A3__)
211 #define __MSP430_HAS_EUSCI_Ax__
213 #if defined(__MSP430_HAS_EUSCI_B0__) || defined(__MSP430_HAS_EUSCI_B1__) || defined(__MSP430_HAS_EUSCI_B2__) || defined(__MSP430_HAS_EUSCI_B3__)
214 #define __MSP430_HAS_EUSCI_Bx__
216 #ifdef __MSP430_HAS_EUSCI_B0__
217 #define __MSP430_HAS_EUSCI_Bx__
223 #ifdef __MSP430_HAS_ADC10_A__
225 #define OFS_ADC10CTL0 (0x0000u)
226 #define OFS_ADC10CTL0_L OFS_ADC10CTL0
227 #define OFS_ADC10CTL0_H OFS_ADC10CTL0+1
228 #define OFS_ADC10CTL1 (0x0002u)
229 #define OFS_ADC10CTL1_L OFS_ADC10CTL1
230 #define OFS_ADC10CTL1_H OFS_ADC10CTL1+1
231 #define OFS_ADC10CTL2 (0x0004u)
232 #define OFS_ADC10CTL2_L OFS_ADC10CTL2
233 #define OFS_ADC10CTL2_H OFS_ADC10CTL2+1
234 #define OFS_ADC10LO (0x0006u)
235 #define OFS_ADC10LO_L OFS_ADC10LO
236 #define OFS_ADC10LO_H OFS_ADC10LO+1
237 #define OFS_ADC10HI (0x0008u)
238 #define OFS_ADC10HI_L OFS_ADC10HI
239 #define OFS_ADC10HI_H OFS_ADC10HI+1
240 #define OFS_ADC10MCTL0 (0x000Au)
241 #define OFS_ADC10MCTL0_L OFS_ADC10MCTL0
242 #define OFS_ADC10MCTL0_H OFS_ADC10MCTL0+1
243 #define OFS_ADC10MEM0 (0x0012u)
244 #define OFS_ADC10MEM0_L OFS_ADC10MEM0
245 #define OFS_ADC10MEM0_H OFS_ADC10MEM0+1
246 #define OFS_ADC10IE (0x001Au)
247 #define OFS_ADC10IE_L OFS_ADC10IE
248 #define OFS_ADC10IE_H OFS_ADC10IE+1
249 #define OFS_ADC10IFG (0x001Cu)
250 #define OFS_ADC10IFG_L OFS_ADC10IFG
251 #define OFS_ADC10IFG_H OFS_ADC10IFG+1
252 #define OFS_ADC10IV (0x001Eu)
253 #define OFS_ADC10IV_L OFS_ADC10IV
254 #define OFS_ADC10IV_H OFS_ADC10IV+1
257 #define ADC10SC (0x0001u)
258 #define ADC10ENC (0x0002u)
259 #define ADC10ON (0x0010u)
260 #define ADC10MSC (0x0080u)
261 #define ADC10SHT0 (0x0100u)
262 #define ADC10SHT1 (0x0200u)
263 #define ADC10SHT2 (0x0400u)
264 #define ADC10SHT3 (0x0800u)
267 #define ADC10SC_L (0x0001u)
268 #define ADC10ENC_L (0x0002u)
269 #define ADC10ON_L (0x0010u)
270 #define ADC10MSC_L (0x0080u)
273 #define ADC10SHT0_H (0x0001u)
274 #define ADC10SHT1_H (0x0002u)
275 #define ADC10SHT2_H (0x0004u)
276 #define ADC10SHT3_H (0x0008u)
278 #define ADC10SHT_0 (0*0x100u)
279 #define ADC10SHT_1 (1*0x100u)
280 #define ADC10SHT_2 (2*0x100u)
281 #define ADC10SHT_3 (3*0x100u)
282 #define ADC10SHT_4 (4*0x100u)
283 #define ADC10SHT_5 (5*0x100u)
284 #define ADC10SHT_6 (6*0x100u)
285 #define ADC10SHT_7 (7*0x100u)
286 #define ADC10SHT_8 (8*0x100u)
287 #define ADC10SHT_9 (9*0x100u)
288 #define ADC10SHT_10 (10*0x100u)
289 #define ADC10SHT_11 (11*0x100u)
290 #define ADC10SHT_12 (12*0x100u)
291 #define ADC10SHT_13 (13*0x100u)
292 #define ADC10SHT_14 (14*0x100u)
293 #define ADC10SHT_15 (15*0x100u)
296 #define ADC10BUSY (0x0001u)
297 #define ADC10CONSEQ0 (0x0002u)
298 #define ADC10CONSEQ1 (0x0004u)
299 #define ADC10SSEL0 (0x0008u)
300 #define ADC10SSEL1 (0x0010u)
301 #define ADC10DIV0 (0x0020u)
302 #define ADC10DIV1 (0x0040u)
303 #define ADC10DIV2 (0x0080u)
304 #define ADC10ISSH (0x0100u)
305 #define ADC10SHP (0x0200u)
306 #define ADC10SHS0 (0x0400u)
307 #define ADC10SHS1 (0x0800u)
310 #define ADC10BUSY_L (0x0001u)
311 #define ADC10CONSEQ0_L (0x0002u)
312 #define ADC10CONSEQ1_L (0x0004u)
313 #define ADC10SSEL0_L (0x0008u)
314 #define ADC10SSEL1_L (0x0010u)
315 #define ADC10DIV0_L (0x0020u)
316 #define ADC10DIV1_L (0x0040u)
317 #define ADC10DIV2_L (0x0080u)
320 #define ADC10ISSH_H (0x0001u)
321 #define ADC10SHP_H (0x0002u)
322 #define ADC10SHS0_H (0x0004u)
323 #define ADC10SHS1_H (0x0008u)
325 #define ADC10CONSEQ_0 (0*2u)
326 #define ADC10CONSEQ_1 (1*2u)
327 #define ADC10CONSEQ_2 (2*2u)
328 #define ADC10CONSEQ_3 (3*2u)
330 #define ADC10SSEL_0 (0*8u)
331 #define ADC10SSEL_1 (1*8u)
332 #define ADC10SSEL_2 (2*8u)
333 #define ADC10SSEL_3 (3*8u)
335 #define ADC10DIV_0 (0*0x20u)
336 #define ADC10DIV_1 (1*0x20u)
337 #define ADC10DIV_2 (2*0x20u)
338 #define ADC10DIV_3 (3*0x20u)
339 #define ADC10DIV_4 (4*0x20u)
340 #define ADC10DIV_5 (5*0x20u)
341 #define ADC10DIV_6 (6*0x20u)
342 #define ADC10DIV_7 (7*0x20u)
344 #define ADC10SHS_0 (0*0x400u)
345 #define ADC10SHS_1 (1*0x400u)
346 #define ADC10SHS_2 (2*0x400u)
347 #define ADC10SHS_3 (3*0x400u)
350 #define ADC10REFBURST (0x0001u)
351 #define ADC10SR (0x0004u)
352 #define ADC10DF (0x0008u)
353 #define ADC10RES (0x0010u)
354 #define ADC10PDIV0 (0x0100u)
355 #define ADC10PDIV1 (0x0200u)
358 #define ADC10REFBURST_L (0x0001u)
359 #define ADC10SR_L (0x0004u)
360 #define ADC10DF_L (0x0008u)
361 #define ADC10RES_L (0x0010u)
364 #define ADC10PDIV0_H (0x0001u)
365 #define ADC10PDIV1_H (0x0002u)
367 #define ADC10PDIV_0 (0x0000u)
368 #define ADC10PDIV_1 (0x0100u)
369 #define ADC10PDIV_2 (0x0200u)
370 #define ADC10PDIV_3 (0x0300u)
372 #define ADC10PDIV__1 (0x0000u)
373 #define ADC10PDIV__4 (0x0100u)
374 #define ADC10PDIV__64 (0x0200u)
377 #define ADC10INCH0 (0x0001u)
378 #define ADC10INCH1 (0x0002u)
379 #define ADC10INCH2 (0x0004u)
380 #define ADC10INCH3 (0x0008u)
381 #define ADC10SREF0 (0x0010u)
382 #define ADC10SREF1 (0x0020u)
383 #define ADC10SREF2 (0x0040u)
386 #define ADC10INCH0_L (0x0001u)
387 #define ADC10INCH1_L (0x0002u)
388 #define ADC10INCH2_L (0x0004u)
389 #define ADC10INCH3_L (0x0008u)
390 #define ADC10SREF0_L (0x0010u)
391 #define ADC10SREF1_L (0x0020u)
392 #define ADC10SREF2_L (0x0040u)
394 #define ADC10INCH_0 (0)
395 #define ADC10INCH_1 (1)
396 #define ADC10INCH_2 (2)
397 #define ADC10INCH_3 (3)
398 #define ADC10INCH_4 (4)
399 #define ADC10INCH_5 (5)
400 #define ADC10INCH_6 (6)
401 #define ADC10INCH_7 (7)
402 #define ADC10INCH_8 (8)
403 #define ADC10INCH_9 (9)
404 #define ADC10INCH_10 (10)
405 #define ADC10INCH_11 (11)
406 #define ADC10INCH_12 (12)
407 #define ADC10INCH_13 (13)
408 #define ADC10INCH_14 (14)
409 #define ADC10INCH_15 (15)
411 #define ADC10SREF_0 (0*0x10u)
412 #define ADC10SREF_1 (1*0x10u)
413 #define ADC10SREF_2 (2*0x10u)
414 #define ADC10SREF_3 (3*0x10u)
415 #define ADC10SREF_4 (4*0x10u)
416 #define ADC10SREF_5 (5*0x10u)
417 #define ADC10SREF_6 (6*0x10u)
418 #define ADC10SREF_7 (7*0x10u)
421 #define ADC10IE0 (0x0001u)
422 #define ADC10INIE (0x0002u)
423 #define ADC10LOIE (0x0004u)
424 #define ADC10HIIE (0x0008u)
425 #define ADC10OVIE (0x0010u)
426 #define ADC10TOVIE (0x0020u)
429 #define ADC10IE0_L (0x0001u)
430 #define ADC10INIE_L (0x0002u)
431 #define ADC10LOIE_L (0x0004u)
432 #define ADC10HIIE_L (0x0008u)
433 #define ADC10OVIE_L (0x0010u)
434 #define ADC10TOVIE_L (0x0020u)
437 #define ADC10IFG0 (0x0001u)
438 #define ADC10INIFG (0x0002u)
439 #define ADC10LOIFG (0x0004u)
440 #define ADC10HIIFG (0x0008u)
441 #define ADC10OVIFG (0x0010u)
442 #define ADC10TOVIFG (0x0020u)
445 #define ADC10IFG0_L (0x0001u)
446 #define ADC10INIFG_L (0x0002u)
447 #define ADC10LOIFG_L (0x0004u)
448 #define ADC10HIIFG_L (0x0008u)
449 #define ADC10OVIFG_L (0x0010u)
450 #define ADC10TOVIFG_L (0x0020u)
453 #define ADC10IV_NONE (0x0000u)
454 #define ADC10IV_ADC10OVIFG (0x0002u)
455 #define ADC10IV_ADC10TOVIFG (0x0004u)
456 #define ADC10IV_ADC10HIIFG (0x0006u)
457 #define ADC10IV_ADC10LOIFG (0x0008u)
458 #define ADC10IV_ADC10INIFG (0x000Au)
459 #define ADC10IV_ADC10IFG (0x000Cu)
465 #ifdef __MSP430_HAS_ADC12_PLUS__
467 #define OFS_ADC12CTL0 (0x0000u)
468 #define OFS_ADC12CTL0_L OFS_ADC12CTL0
469 #define OFS_ADC12CTL0_H OFS_ADC12CTL0+1
470 #define OFS_ADC12CTL1 (0x0002u)
471 #define OFS_ADC12CTL1_L OFS_ADC12CTL1
472 #define OFS_ADC12CTL1_H OFS_ADC12CTL1+1
473 #define OFS_ADC12CTL2 (0x0004u)
474 #define OFS_ADC12CTL2_L OFS_ADC12CTL2
475 #define OFS_ADC12CTL2_H OFS_ADC12CTL2+1
476 #define OFS_ADC12IFG (0x000Au)
477 #define OFS_ADC12IFG_L OFS_ADC12IFG
478 #define OFS_ADC12IFG_H OFS_ADC12IFG+1
479 #define OFS_ADC12IE (0x000Cu)
480 #define OFS_ADC12IE_L OFS_ADC12IE
481 #define OFS_ADC12IE_H OFS_ADC12IE+1
482 #define OFS_ADC12IV (0x000Eu)
483 #define OFS_ADC12IV_L OFS_ADC12IV
484 #define OFS_ADC12IV_H OFS_ADC12IV+1
486 #define OFS_ADC12MEM0 (0x0020u)
487 #define OFS_ADC12MEM0_L OFS_ADC12MEM0
488 #define OFS_ADC12MEM0_H OFS_ADC12MEM0+1
489 #define OFS_ADC12MEM1 (0x0022u)
490 #define OFS_ADC12MEM1_L OFS_ADC12MEM1
491 #define OFS_ADC12MEM1_H OFS_ADC12MEM1+1
492 #define OFS_ADC12MEM2 (0x0024u)
493 #define OFS_ADC12MEM2_L OFS_ADC12MEM2
494 #define OFS_ADC12MEM2_H OFS_ADC12MEM2+1
495 #define OFS_ADC12MEM3 (0x0026u)
496 #define OFS_ADC12MEM3_L OFS_ADC12MEM3
497 #define OFS_ADC12MEM3_H OFS_ADC12MEM3+1
498 #define OFS_ADC12MEM4 (0x0028u)
499 #define OFS_ADC12MEM4_L OFS_ADC12MEM4
500 #define OFS_ADC12MEM4_H OFS_ADC12MEM4+1
501 #define OFS_ADC12MEM5 (0x002Au)
502 #define OFS_ADC12MEM5_L OFS_ADC12MEM5
503 #define OFS_ADC12MEM5_H OFS_ADC12MEM5+1
504 #define OFS_ADC12MEM6 (0x002Cu)
505 #define OFS_ADC12MEM6_L OFS_ADC12MEM6
506 #define OFS_ADC12MEM6_H OFS_ADC12MEM6+1
507 #define OFS_ADC12MEM7 (0x002Eu)
508 #define OFS_ADC12MEM7_L OFS_ADC12MEM7
509 #define OFS_ADC12MEM7_H OFS_ADC12MEM7+1
510 #define OFS_ADC12MEM8 (0x0030u)
511 #define OFS_ADC12MEM8_L OFS_ADC12MEM8
512 #define OFS_ADC12MEM8_H OFS_ADC12MEM8+1
513 #define OFS_ADC12MEM9 (0x0032u)
514 #define OFS_ADC12MEM9_L OFS_ADC12MEM9
515 #define OFS_ADC12MEM9_H OFS_ADC12MEM9+1
516 #define OFS_ADC12MEM10 (0x0034u)
517 #define OFS_ADC12MEM10_L OFS_ADC12MEM10
518 #define OFS_ADC12MEM10_H OFS_ADC12MEM10+1
519 #define OFS_ADC12MEM11 (0x0036u)
520 #define OFS_ADC12MEM11_L OFS_ADC12MEM11
521 #define OFS_ADC12MEM11_H OFS_ADC12MEM11+1
522 #define OFS_ADC12MEM12 (0x0038u)
523 #define OFS_ADC12MEM12_L OFS_ADC12MEM12
524 #define OFS_ADC12MEM12_H OFS_ADC12MEM12+1
525 #define OFS_ADC12MEM13 (0x003Au)
526 #define OFS_ADC12MEM13_L OFS_ADC12MEM13
527 #define OFS_ADC12MEM13_H OFS_ADC12MEM13+1
528 #define OFS_ADC12MEM14 (0x003Cu)
529 #define OFS_ADC12MEM14_L OFS_ADC12MEM14
530 #define OFS_ADC12MEM14_H OFS_ADC12MEM14+1
531 #define OFS_ADC12MEM15 (0x003Eu)
532 #define OFS_ADC12MEM15_L OFS_ADC12MEM15
533 #define OFS_ADC12MEM15_H OFS_ADC12MEM15+1
534 #define ADC12MEM_ ADC12MEM
535 #ifndef __IAR_SYSTEMS_ICC__
536 #define ADC12MEM ADC12MEM0
538 #define ADC12MEM ((int*) &ADC12MEM0)
541 #define OFS_ADC12MCTL0 (0x0010u)
542 #define OFS_ADC12MCTL1 (0x0011u)
543 #define OFS_ADC12MCTL2 (0x0012u)
544 #define OFS_ADC12MCTL3 (0x0013u)
545 #define OFS_ADC12MCTL4 (0x0014u)
546 #define OFS_ADC12MCTL5 (0x0015u)
547 #define OFS_ADC12MCTL6 (0x0016u)
548 #define OFS_ADC12MCTL7 (0x0017u)
549 #define OFS_ADC12MCTL8 (0x0018u)
550 #define OFS_ADC12MCTL9 (0x0019u)
551 #define OFS_ADC12MCTL10 (0x001Au)
552 #define OFS_ADC12MCTL11 (0x001Bu)
553 #define OFS_ADC12MCTL12 (0x001Cu)
554 #define OFS_ADC12MCTL13 (0x001Du)
555 #define OFS_ADC12MCTL14 (0x001Eu)
556 #define OFS_ADC12MCTL15 (0x001Fu)
557 #define ADC12MCTL_ ADC12MCTL
558 #ifndef __IAR_SYSTEMS_ICC__
559 #define ADC12MCTL ADC12MCTL0
561 #define ADC12MCTL ((char*) &ADC12MCTL0)
565 #define ADC12SC (0x0001u)
566 #define ADC12ENC (0x0002u)
567 #define ADC12TOVIE (0x0004u)
568 #define ADC12OVIE (0x0008u)
569 #define ADC12ON (0x0010u)
570 #define ADC12REFON (0x0020u)
571 #define ADC12REF2_5V (0x0040u)
572 #define ADC12MSC (0x0080u)
573 #define ADC12SHT00 (0x0100u)
574 #define ADC12SHT01 (0x0200u)
575 #define ADC12SHT02 (0x0400u)
576 #define ADC12SHT03 (0x0800u)
577 #define ADC12SHT10 (0x1000u)
578 #define ADC12SHT11 (0x2000u)
579 #define ADC12SHT12 (0x4000u)
580 #define ADC12SHT13 (0x8000u)
583 #define ADC12SC_L (0x0001u)
584 #define ADC12ENC_L (0x0002u)
585 #define ADC12TOVIE_L (0x0004u)
586 #define ADC12OVIE_L (0x0008u)
587 #define ADC12ON_L (0x0010u)
588 #define ADC12REFON_L (0x0020u)
589 #define ADC12REF2_5V_L (0x0040u)
590 #define ADC12MSC_L (0x0080u)
593 #define ADC12SHT00_H (0x0001u)
594 #define ADC12SHT01_H (0x0002u)
595 #define ADC12SHT02_H (0x0004u)
596 #define ADC12SHT03_H (0x0008u)
597 #define ADC12SHT10_H (0x0010u)
598 #define ADC12SHT11_H (0x0020u)
599 #define ADC12SHT12_H (0x0040u)
600 #define ADC12SHT13_H (0x0080u)
602 #define ADC12SHT0_0 (0*0x100u)
603 #define ADC12SHT0_1 (1*0x100u)
604 #define ADC12SHT0_2 (2*0x100u)
605 #define ADC12SHT0_3 (3*0x100u)
606 #define ADC12SHT0_4 (4*0x100u)
607 #define ADC12SHT0_5 (5*0x100u)
608 #define ADC12SHT0_6 (6*0x100u)
609 #define ADC12SHT0_7 (7*0x100u)
610 #define ADC12SHT0_8 (8*0x100u)
611 #define ADC12SHT0_9 (9*0x100u)
612 #define ADC12SHT0_10 (10*0x100u)
613 #define ADC12SHT0_11 (11*0x100u)
614 #define ADC12SHT0_12 (12*0x100u)
615 #define ADC12SHT0_13 (13*0x100u)
616 #define ADC12SHT0_14 (14*0x100u)
617 #define ADC12SHT0_15 (15*0x100u)
619 #define ADC12SHT1_0 (0*0x1000u)
620 #define ADC12SHT1_1 (1*0x1000u)
621 #define ADC12SHT1_2 (2*0x1000u)
622 #define ADC12SHT1_3 (3*0x1000u)
623 #define ADC12SHT1_4 (4*0x1000u)
624 #define ADC12SHT1_5 (5*0x1000u)
625 #define ADC12SHT1_6 (6*0x1000u)
626 #define ADC12SHT1_7 (7*0x1000u)
627 #define ADC12SHT1_8 (8*0x1000u)
628 #define ADC12SHT1_9 (9*0x1000u)
629 #define ADC12SHT1_10 (10*0x1000u)
630 #define ADC12SHT1_11 (11*0x1000u)
631 #define ADC12SHT1_12 (12*0x1000u)
632 #define ADC12SHT1_13 (13*0x1000u)
633 #define ADC12SHT1_14 (14*0x1000u)
634 #define ADC12SHT1_15 (15*0x1000u)
637 #define ADC12BUSY (0x0001u)
638 #define ADC12CONSEQ0 (0x0002u)
639 #define ADC12CONSEQ1 (0x0004u)
640 #define ADC12SSEL0 (0x0008u)
641 #define ADC12SSEL1 (0x0010u)
642 #define ADC12DIV0 (0x0020u)
643 #define ADC12DIV1 (0x0040u)
644 #define ADC12DIV2 (0x0080u)
645 #define ADC12ISSH (0x0100u)
646 #define ADC12SHP (0x0200u)
647 #define ADC12SHS0 (0x0400u)
648 #define ADC12SHS1 (0x0800u)
649 #define ADC12CSTARTADD0 (0x1000u)
650 #define ADC12CSTARTADD1 (0x2000u)
651 #define ADC12CSTARTADD2 (0x4000u)
652 #define ADC12CSTARTADD3 (0x8000u)
655 #define ADC12BUSY_L (0x0001u)
656 #define ADC12CONSEQ0_L (0x0002u)
657 #define ADC12CONSEQ1_L (0x0004u)
658 #define ADC12SSEL0_L (0x0008u)
659 #define ADC12SSEL1_L (0x0010u)
660 #define ADC12DIV0_L (0x0020u)
661 #define ADC12DIV1_L (0x0040u)
662 #define ADC12DIV2_L (0x0080u)
665 #define ADC12ISSH_H (0x0001u)
666 #define ADC12SHP_H (0x0002u)
667 #define ADC12SHS0_H (0x0004u)
668 #define ADC12SHS1_H (0x0008u)
669 #define ADC12CSTARTADD0_H (0x0010u)
670 #define ADC12CSTARTADD1_H (0x0020u)
671 #define ADC12CSTARTADD2_H (0x0040u)
672 #define ADC12CSTARTADD3_H (0x0080u)
674 #define ADC12CONSEQ_0 (0*2u)
675 #define ADC12CONSEQ_1 (1*2u)
676 #define ADC12CONSEQ_2 (2*2u)
677 #define ADC12CONSEQ_3 (3*2u)
679 #define ADC12SSEL_0 (0*8u)
680 #define ADC12SSEL_1 (1*8u)
681 #define ADC12SSEL_2 (2*8u)
682 #define ADC12SSEL_3 (3*8u)
684 #define ADC12DIV_0 (0*0x20u)
685 #define ADC12DIV_1 (1*0x20u)
686 #define ADC12DIV_2 (2*0x20u)
687 #define ADC12DIV_3 (3*0x20u)
688 #define ADC12DIV_4 (4*0x20u)
689 #define ADC12DIV_5 (5*0x20u)
690 #define ADC12DIV_6 (6*0x20u)
691 #define ADC12DIV_7 (7*0x20u)
693 #define ADC12SHS_0 (0*0x400u)
694 #define ADC12SHS_1 (1*0x400u)
695 #define ADC12SHS_2 (2*0x400u)
696 #define ADC12SHS_3 (3*0x400u)
698 #define ADC12CSTARTADD_0 (0*0x1000u)
699 #define ADC12CSTARTADD_1 (1*0x1000u)
700 #define ADC12CSTARTADD_2 (2*0x1000u)
701 #define ADC12CSTARTADD_3 (3*0x1000u)
702 #define ADC12CSTARTADD_4 (4*0x1000u)
703 #define ADC12CSTARTADD_5 (5*0x1000u)
704 #define ADC12CSTARTADD_6 (6*0x1000u)
705 #define ADC12CSTARTADD_7 (7*0x1000u)
706 #define ADC12CSTARTADD_8 (8*0x1000u)
707 #define ADC12CSTARTADD_9 (9*0x1000u)
708 #define ADC12CSTARTADD_10 (10*0x1000u)
709 #define ADC12CSTARTADD_11 (11*0x1000u)
710 #define ADC12CSTARTADD_12 (12*0x1000u)
711 #define ADC12CSTARTADD_13 (13*0x1000u)
712 #define ADC12CSTARTADD_14 (14*0x1000u)
713 #define ADC12CSTARTADD_15 (15*0x1000u)
716 #define ADC12REFBURST (0x0001u)
717 #define ADC12REFOUT (0x0002u)
718 #define ADC12SR (0x0004u)
719 #define ADC12DF (0x0008u)
720 #define ADC12RES0 (0x0010u)
721 #define ADC12RES1 (0x0020u)
722 #define ADC12TCOFF (0x0080u)
723 #define ADC12PDIV (0x0100u)
726 #define ADC12REFBURST_L (0x0001u)
727 #define ADC12REFOUT_L (0x0002u)
728 #define ADC12SR_L (0x0004u)
729 #define ADC12DF_L (0x0008u)
730 #define ADC12RES0_L (0x0010u)
731 #define ADC12RES1_L (0x0020u)
732 #define ADC12TCOFF_L (0x0080u)
735 #define ADC12PDIV_H (0x0001u)
737 #define ADC12RES_0 (0x0000u)
738 #define ADC12RES_1 (0x0010u)
739 #define ADC12RES_2 (0x0020u)
740 #define ADC12RES_3 (0x0030u)
743 #define ADC12INCH0 (0x0001u)
744 #define ADC12INCH1 (0x0002u)
745 #define ADC12INCH2 (0x0004u)
746 #define ADC12INCH3 (0x0008u)
747 #define ADC12SREF0 (0x0010u)
748 #define ADC12SREF1 (0x0020u)
749 #define ADC12SREF2 (0x0040u)
750 #define ADC12EOS (0x0080u)
752 #define ADC12INCH_0 (0x0000u)
753 #define ADC12INCH_1 (0x0001u)
754 #define ADC12INCH_2 (0x0002u)
755 #define ADC12INCH_3 (0x0003u)
756 #define ADC12INCH_4 (0x0004u)
757 #define ADC12INCH_5 (0x0005u)
758 #define ADC12INCH_6 (0x0006u)
759 #define ADC12INCH_7 (0x0007u)
760 #define ADC12INCH_8 (0x0008u)
761 #define ADC12INCH_9 (0x0009u)
762 #define ADC12INCH_10 (0x000Au)
763 #define ADC12INCH_11 (0x000Bu)
764 #define ADC12INCH_12 (0x000Cu)
765 #define ADC12INCH_13 (0x000Du)
766 #define ADC12INCH_14 (0x000Eu)
767 #define ADC12INCH_15 (0x000Fu)
769 #define ADC12SREF_0 (0*0x10u)
770 #define ADC12SREF_1 (1*0x10u)
771 #define ADC12SREF_2 (2*0x10u)
772 #define ADC12SREF_3 (3*0x10u)
773 #define ADC12SREF_4 (4*0x10u)
774 #define ADC12SREF_5 (5*0x10u)
775 #define ADC12SREF_6 (6*0x10u)
776 #define ADC12SREF_7 (7*0x10u)
778 #define ADC12IE0 (0x0001u)
779 #define ADC12IE1 (0x0002u)
780 #define ADC12IE2 (0x0004u)
781 #define ADC12IE3 (0x0008u)
782 #define ADC12IE4 (0x0010u)
783 #define ADC12IE5 (0x0020u)
784 #define ADC12IE6 (0x0040u)
785 #define ADC12IE7 (0x0080u)
786 #define ADC12IE8 (0x0100u)
787 #define ADC12IE9 (0x0200u)
788 #define ADC12IE10 (0x0400u)
789 #define ADC12IE11 (0x0800u)
790 #define ADC12IE12 (0x1000u)
791 #define ADC12IE13 (0x2000u)
792 #define ADC12IE14 (0x4000u)
793 #define ADC12IE15 (0x8000u)
795 #define ADC12IE0_L (0x0001u)
796 #define ADC12IE1_L (0x0002u)
797 #define ADC12IE2_L (0x0004u)
798 #define ADC12IE3_L (0x0008u)
799 #define ADC12IE4_L (0x0010u)
800 #define ADC12IE5_L (0x0020u)
801 #define ADC12IE6_L (0x0040u)
802 #define ADC12IE7_L (0x0080u)
804 #define ADC12IE8_H (0x0001u)
805 #define ADC12IE9_H (0x0002u)
806 #define ADC12IE10_H (0x0004u)
807 #define ADC12IE11_H (0x0008u)
808 #define ADC12IE12_H (0x0010u)
809 #define ADC12IE13_H (0x0020u)
810 #define ADC12IE14_H (0x0040u)
811 #define ADC12IE15_H (0x0080u)
813 #define ADC12IFG0 (0x0001u)
814 #define ADC12IFG1 (0x0002u)
815 #define ADC12IFG2 (0x0004u)
816 #define ADC12IFG3 (0x0008u)
817 #define ADC12IFG4 (0x0010u)
818 #define ADC12IFG5 (0x0020u)
819 #define ADC12IFG6 (0x0040u)
820 #define ADC12IFG7 (0x0080u)
821 #define ADC12IFG8 (0x0100u)
822 #define ADC12IFG9 (0x0200u)
823 #define ADC12IFG10 (0x0400u)
824 #define ADC12IFG11 (0x0800u)
825 #define ADC12IFG12 (0x1000u)
826 #define ADC12IFG13 (0x2000u)
827 #define ADC12IFG14 (0x4000u)
828 #define ADC12IFG15 (0x8000u)
830 #define ADC12IFG0_L (0x0001u)
831 #define ADC12IFG1_L (0x0002u)
832 #define ADC12IFG2_L (0x0004u)
833 #define ADC12IFG3_L (0x0008u)
834 #define ADC12IFG4_L (0x0010u)
835 #define ADC12IFG5_L (0x0020u)
836 #define ADC12IFG6_L (0x0040u)
837 #define ADC12IFG7_L (0x0080u)
839 #define ADC12IFG8_H (0x0001u)
840 #define ADC12IFG9_H (0x0002u)
841 #define ADC12IFG10_H (0x0004u)
842 #define ADC12IFG11_H (0x0008u)
843 #define ADC12IFG12_H (0x0010u)
844 #define ADC12IFG13_H (0x0020u)
845 #define ADC12IFG14_H (0x0040u)
846 #define ADC12IFG15_H (0x0080u)
849 #define ADC12IV_NONE (0x0000u)
850 #define ADC12IV_ADC12OVIFG (0x0002u)
851 #define ADC12IV_ADC12TOVIFG (0x0004u)
852 #define ADC12IV_ADC12IFG0 (0x0006u)
853 #define ADC12IV_ADC12IFG1 (0x0008u)
854 #define ADC12IV_ADC12IFG2 (0x000Au)
855 #define ADC12IV_ADC12IFG3 (0x000Cu)
856 #define ADC12IV_ADC12IFG4 (0x000Eu)
857 #define ADC12IV_ADC12IFG5 (0x0010u)
858 #define ADC12IV_ADC12IFG6 (0x0012u)
859 #define ADC12IV_ADC12IFG7 (0x0014u)
860 #define ADC12IV_ADC12IFG8 (0x0016u)
861 #define ADC12IV_ADC12IFG9 (0x0018u)
862 #define ADC12IV_ADC12IFG10 (0x001Au)
863 #define ADC12IV_ADC12IFG11 (0x001Cu)
864 #define ADC12IV_ADC12IFG12 (0x001Eu)
865 #define ADC12IV_ADC12IFG13 (0x0020u)
866 #define ADC12IV_ADC12IFG14 (0x0022u)
867 #define ADC12IV_ADC12IFG15 (0x0024u)
873 #ifdef __MSP430_HAS_AES__
875 #define OFS_AESACTL0 (0x0000u)
876 #define OFS_AESACTL0_L OFS_AESACTL0
877 #define OFS_AESACTL0_H OFS_AESACTL0+1
878 #define OFS_AESASTAT (0x0004u)
879 #define OFS_AESASTAT_L OFS_AESASTAT
880 #define OFS_AESASTAT_H OFS_AESASTAT+1
881 #define OFS_AESAKEY (0x0006u)
882 #define OFS_AESAKEY_L OFS_AESAKEY
883 #define OFS_AESAKEY_H OFS_AESAKEY+1
884 #define OFS_AESADIN (0x0008u)
885 #define OFS_AESADIN_L OFS_AESADIN
886 #define OFS_AESADIN_H OFS_AESADIN+1
887 #define OFS_AESADOUT (0x000Au)
888 #define OFS_AESADOUT_L OFS_AESADOUT
889 #define OFS_AESADOUT_H OFS_AESADOUT+1
892 #define AESOP0 (0x0001u)
893 #define AESOP1 (0x0002u)
894 #define AESSWRST (0x0080u)
895 #define AESRDYIFG (0x0100u)
896 #define AESERRFG (0x0800u)
897 #define AESRDYIE (0x1000u)
900 #define AESOP0_L (0x0001u)
901 #define AESOP1_L (0x0002u)
902 #define AESSWRST_L (0x0080u)
905 #define AESRDYIFG_H (0x0001u)
906 #define AESERRFG_H (0x0008u)
907 #define AESRDYIE_H (0x0010u)
909 #define AESOP_0 (0x0000u)
910 #define AESOP_1 (0x0001u)
911 #define AESOP_2 (0x0002u)
912 #define AESOP_3 (0x0003u)
915 #define AESBUSY (0x0001u)
916 #define AESKEYWR (0x0002u)
917 #define AESDINWR (0x0004u)
918 #define AESDOUTRD (0x0008u)
919 #define AESKEYCNT0 (0x0010u)
920 #define AESKEYCNT1 (0x0020u)
921 #define AESKEYCNT2 (0x0040u)
922 #define AESKEYCNT3 (0x0080u)
923 #define AESDINCNT0 (0x0100u)
924 #define AESDINCNT1 (0x0200u)
925 #define AESDINCNT2 (0x0400u)
926 #define AESDINCNT3 (0x0800u)
927 #define AESDOUTCNT0 (0x1000u)
928 #define AESDOUTCNT1 (0x2000u)
929 #define AESDOUTCNT2 (0x4000u)
930 #define AESDOUTCNT3 (0x8000u)
933 #define AESBUSY_L (0x0001u)
934 #define AESKEYWR_L (0x0002u)
935 #define AESDINWR_L (0x0004u)
936 #define AESDOUTRD_L (0x0008u)
937 #define AESKEYCNT0_L (0x0010u)
938 #define AESKEYCNT1_L (0x0020u)
939 #define AESKEYCNT2_L (0x0040u)
940 #define AESKEYCNT3_L (0x0080u)
943 #define AESDINCNT0_H (0x0001u)
944 #define AESDINCNT1_H (0x0002u)
945 #define AESDINCNT2_H (0x0004u)
946 #define AESDINCNT3_H (0x0008u)
947 #define AESDOUTCNT0_H (0x0010u)
948 #define AESDOUTCNT1_H (0x0020u)
949 #define AESDOUTCNT2_H (0x0040u)
950 #define AESDOUTCNT3_H (0x0080u)
956 #ifdef __MSP430_HAS_BACKUP_RAM__
958 #define OFS_BAKMEM0 (0x0000u)
959 #define OFS_BAKMEM0_L OFS_BAKMEM0
960 #define OFS_BAKMEM0_H OFS_BAKMEM0+1
961 #define OFS_BAKMEM1 (0x0002u)
962 #define OFS_BAKMEM1_L OFS_BAKMEM1
963 #define OFS_BAKMEM1_H OFS_BAKMEM1+1
964 #define OFS_BAKMEM2 (0x0004u)
965 #define OFS_BAKMEM2_L OFS_BAKMEM2
966 #define OFS_BAKMEM2_H OFS_BAKMEM2+1
967 #define OFS_BAKMEM3 (0x0006u)
968 #define OFS_BAKMEM3_L OFS_BAKMEM3
969 #define OFS_BAKMEM3_H OFS_BAKMEM3+1
975 #ifdef __MSP430_HAS_BATTERY_CHARGER__
977 #define OFS_BAKCTL (0x0000u)
978 #define OFS_BAKCTL_L OFS_BAKCTL
979 #define OFS_BAKCTL_H OFS_BAKCTL+1
980 #define OFS_BAKCHCTL (0x0002u)
981 #define OFS_BAKCHCTL_L OFS_BAKCHCTL
982 #define OFS_BAKCHCTL_H OFS_BAKCHCTL+1
985 #define LOCKBAK (0x0001u)
986 #define BAKSW (0x0002u)
987 #define BAKADC (0x0004u)
988 #define BAKDIS (0x0008u)
991 #define LOCKBAK_L (0x0001u)
992 #define BAKSW_L (0x0002u)
993 #define BAKADC_L (0x0004u)
994 #define BAKDIS_L (0x0008u)
997 #define CHEN (0x0001u)
998 #define CHC0 (0x0002u)
999 #define CHC1 (0x0004u)
1000 #define CHV0 (0x0010u)
1001 #define CHV1 (0x0020u)
1004 #define CHEN_L (0x0001u)
1005 #define CHC0_L (0x0002u)
1006 #define CHC1_L (0x0004u)
1007 #define CHV0_L (0x0010u)
1008 #define CHV1_L (0x0020u)
1010 #define CHPWD (0x6900u)
1016 #ifdef __MSP430_HAS_COMPB__
1018 #define OFS_CBCTL0 (0x0000u)
1019 #define OFS_CBCTL0_L OFS_CBCTL0
1020 #define OFS_CBCTL0_H OFS_CBCTL0+1
1021 #define OFS_CBCTL1 (0x0002u)
1022 #define OFS_CBCTL1_L OFS_CBCTL1
1023 #define OFS_CBCTL1_H OFS_CBCTL1+1
1024 #define OFS_CBCTL2 (0x0004u)
1025 #define OFS_CBCTL2_L OFS_CBCTL2
1026 #define OFS_CBCTL2_H OFS_CBCTL2+1
1027 #define OFS_CBCTL3 (0x0006u)
1028 #define OFS_CBCTL3_L OFS_CBCTL3
1029 #define OFS_CBCTL3_H OFS_CBCTL3+1
1030 #define OFS_CBINT (0x000Cu)
1031 #define OFS_CBINT_L OFS_CBINT
1032 #define OFS_CBINT_H OFS_CBINT+1
1033 #define OFS_CBIV (0x000Eu)
1036 #define CBIPSEL0 (0x0001u)
1037 #define CBIPSEL1 (0x0002u)
1038 #define CBIPSEL2 (0x0004u)
1039 #define CBIPSEL3 (0x0008u)
1043 #define CBIPEN (0x0080u)
1044 #define CBIMSEL0 (0x0100u)
1045 #define CBIMSEL1 (0x0200u)
1046 #define CBIMSEL2 (0x0400u)
1047 #define CBIMSEL3 (0x0800u)
1051 #define CBIMEN (0x8000u)
1054 #define CBIPSEL0_L (0x0001u)
1055 #define CBIPSEL1_L (0x0002u)
1056 #define CBIPSEL2_L (0x0004u)
1057 #define CBIPSEL3_L (0x0008u)
1061 #define CBIPEN_L (0x0080u)
1070 #define CBIMSEL0_H (0x0001u)
1071 #define CBIMSEL1_H (0x0002u)
1072 #define CBIMSEL2_H (0x0004u)
1073 #define CBIMSEL3_H (0x0008u)
1077 #define CBIMEN_H (0x0080u)
1079 #define CBIPSEL_0 (0x0000u)
1080 #define CBIPSEL_1 (0x0001u)
1081 #define CBIPSEL_2 (0x0002u)
1082 #define CBIPSEL_3 (0x0003u)
1083 #define CBIPSEL_4 (0x0004u)
1084 #define CBIPSEL_5 (0x0005u)
1085 #define CBIPSEL_6 (0x0006u)
1086 #define CBIPSEL_7 (0x0007u)
1087 #define CBIPSEL_8 (0x0008u)
1088 #define CBIPSEL_9 (0x0009u)
1089 #define CBIPSEL_10 (0x000Au)
1090 #define CBIPSEL_11 (0x000Bu)
1091 #define CBIPSEL_12 (0x000Cu)
1092 #define CBIPSEL_13 (0x000Du)
1093 #define CBIPSEL_14 (0x000Eu)
1094 #define CBIPSEL_15 (0x000Fu)
1096 #define CBIMSEL_0 (0x0000u)
1097 #define CBIMSEL_1 (0x0100u)
1098 #define CBIMSEL_2 (0x0200u)
1099 #define CBIMSEL_3 (0x0300u)
1100 #define CBIMSEL_4 (0x0400u)
1101 #define CBIMSEL_5 (0x0500u)
1102 #define CBIMSEL_6 (0x0600u)
1103 #define CBIMSEL_7 (0x0700u)
1104 #define CBIMSEL_8 (0x0800u)
1105 #define CBIMSEL_9 (0x0900u)
1106 #define CBIMSEL_10 (0x0A00u)
1107 #define CBIMSEL_11 (0x0B00u)
1108 #define CBIMSEL_12 (0x0C00u)
1109 #define CBIMSEL_13 (0x0D00u)
1110 #define CBIMSEL_14 (0x0E00u)
1111 #define CBIMSEL_15 (0x0F00u)
1114 #define CBOUT (0x0001u)
1115 #define CBOUTPOL (0x0002u)
1116 #define CBF (0x0004u)
1117 #define CBIES (0x0008u)
1118 #define CBSHORT (0x0010u)
1119 #define CBEX (0x0020u)
1120 #define CBFDLY0 (0x0040u)
1121 #define CBFDLY1 (0x0080u)
1122 #define CBPWRMD0 (0x0100u)
1123 #define CBPWRMD1 (0x0200u)
1124 #define CBON (0x0400u)
1125 #define CBMRVL (0x0800u)
1126 #define CBMRVS (0x1000u)
1132 #define CBOUT_L (0x0001u)
1133 #define CBOUTPOL_L (0x0002u)
1134 #define CBF_L (0x0004u)
1135 #define CBIES_L (0x0008u)
1136 #define CBSHORT_L (0x0010u)
1137 #define CBEX_L (0x0020u)
1138 #define CBFDLY0_L (0x0040u)
1139 #define CBFDLY1_L (0x0080u)
1145 #define CBPWRMD0_H (0x0001u)
1146 #define CBPWRMD1_H (0x0002u)
1147 #define CBON_H (0x0004u)
1148 #define CBMRVL_H (0x0008u)
1149 #define CBMRVS_H (0x0010u)
1154 #define CBFDLY_0 (0x0000u)
1155 #define CBFDLY_1 (0x0040u)
1156 #define CBFDLY_2 (0x0080u)
1157 #define CBFDLY_3 (0x00C0u)
1159 #define CBPWRMD_0 (0x0000u)
1160 #define CBPWRMD_1 (0x0100u)
1161 #define CBPWRMD_2 (0x0200u)
1162 #define CBPWRMD_3 (0x0300u)
1165 #define CBREF00 (0x0001u)
1166 #define CBREF01 (0x0002u)
1167 #define CBREF02 (0x0004u)
1168 #define CBREF03 (0x0008u)
1169 #define CBREF04 (0x0010u)
1170 #define CBRSEL (0x0020u)
1171 #define CBRS0 (0x0040u)
1172 #define CBRS1 (0x0080u)
1173 #define CBREF10 (0x0100u)
1174 #define CBREF11 (0x0200u)
1175 #define CBREF12 (0x0400u)
1176 #define CBREF13 (0x0800u)
1177 #define CBREF14 (0x1000u)
1178 #define CBREFL0 (0x2000u)
1179 #define CBREFL1 (0x4000u)
1180 #define CBREFACC (0x8000u)
1183 #define CBREF00_L (0x0001u)
1184 #define CBREF01_L (0x0002u)
1185 #define CBREF02_L (0x0004u)
1186 #define CBREF03_L (0x0008u)
1187 #define CBREF04_L (0x0010u)
1188 #define CBRSEL_L (0x0020u)
1189 #define CBRS0_L (0x0040u)
1190 #define CBRS1_L (0x0080u)
1193 #define CBREF10_H (0x0001u)
1194 #define CBREF11_H (0x0002u)
1195 #define CBREF12_H (0x0004u)
1196 #define CBREF13_H (0x0008u)
1197 #define CBREF14_H (0x0010u)
1198 #define CBREFL0_H (0x0020u)
1199 #define CBREFL1_H (0x0040u)
1200 #define CBREFACC_H (0x0080u)
1202 #define CBREF0_0 (0x0000u)
1203 #define CBREF0_1 (0x0001u)
1204 #define CBREF0_2 (0x0002u)
1205 #define CBREF0_3 (0x0003u)
1206 #define CBREF0_4 (0x0004u)
1207 #define CBREF0_5 (0x0005u)
1208 #define CBREF0_6 (0x0006u)
1209 #define CBREF0_7 (0x0007u)
1210 #define CBREF0_8 (0x0008u)
1211 #define CBREF0_9 (0x0009u)
1212 #define CBREF0_10 (0x000Au)
1213 #define CBREF0_11 (0x000Bu)
1214 #define CBREF0_12 (0x000Cu)
1215 #define CBREF0_13 (0x000Du)
1216 #define CBREF0_14 (0x000Eu)
1217 #define CBREF0_15 (0x000Fu)
1218 #define CBREF0_16 (0x0010u)
1219 #define CBREF0_17 (0x0011u)
1220 #define CBREF0_18 (0x0012u)
1221 #define CBREF0_19 (0x0013u)
1222 #define CBREF0_20 (0x0014u)
1223 #define CBREF0_21 (0x0015u)
1224 #define CBREF0_22 (0x0016u)
1225 #define CBREF0_23 (0x0017u)
1226 #define CBREF0_24 (0x0018u)
1227 #define CBREF0_25 (0x0019u)
1228 #define CBREF0_26 (0x001Au)
1229 #define CBREF0_27 (0x001Bu)
1230 #define CBREF0_28 (0x001Cu)
1231 #define CBREF0_29 (0x001Du)
1232 #define CBREF0_30 (0x001Eu)
1233 #define CBREF0_31 (0x001Fu)
1235 #define CBRS_0 (0x0000u)
1236 #define CBRS_1 (0x0040u)
1237 #define CBRS_2 (0x0080u)
1238 #define CBRS_3 (0x00C0u)
1240 #define CBREF1_0 (0x0000u)
1241 #define CBREF1_1 (0x0100u)
1242 #define CBREF1_2 (0x0200u)
1243 #define CBREF1_3 (0x0300u)
1244 #define CBREF1_4 (0x0400u)
1245 #define CBREF1_5 (0x0500u)
1246 #define CBREF1_6 (0x0600u)
1247 #define CBREF1_7 (0x0700u)
1248 #define CBREF1_8 (0x0800u)
1249 #define CBREF1_9 (0x0900u)
1250 #define CBREF1_10 (0x0A00u)
1251 #define CBREF1_11 (0x0B00u)
1252 #define CBREF1_12 (0x0C00u)
1253 #define CBREF1_13 (0x0D00u)
1254 #define CBREF1_14 (0x0E00u)
1255 #define CBREF1_15 (0x0F00u)
1256 #define CBREF1_16 (0x1000u)
1257 #define CBREF1_17 (0x1100u)
1258 #define CBREF1_18 (0x1200u)
1259 #define CBREF1_19 (0x1300u)
1260 #define CBREF1_20 (0x1400u)
1261 #define CBREF1_21 (0x1500u)
1262 #define CBREF1_22 (0x1600u)
1263 #define CBREF1_23 (0x1700u)
1264 #define CBREF1_24 (0x1800u)
1265 #define CBREF1_25 (0x1900u)
1266 #define CBREF1_26 (0x1A00u)
1267 #define CBREF1_27 (0x1B00u)
1268 #define CBREF1_28 (0x1C00u)
1269 #define CBREF1_29 (0x1D00u)
1270 #define CBREF1_30 (0x1E00u)
1271 #define CBREF1_31 (0x1F00u)
1273 #define CBREFL_0 (0x0000u)
1274 #define CBREFL_1 (0x2000u)
1275 #define CBREFL_2 (0x4000u)
1276 #define CBREFL_3 (0x6000u)
1278 #define CBPD0 (0x0001u)
1279 #define CBPD1 (0x0002u)
1280 #define CBPD2 (0x0004u)
1281 #define CBPD3 (0x0008u)
1282 #define CBPD4 (0x0010u)
1283 #define CBPD5 (0x0020u)
1284 #define CBPD6 (0x0040u)
1285 #define CBPD7 (0x0080u)
1286 #define CBPD8 (0x0100u)
1287 #define CBPD9 (0x0200u)
1288 #define CBPD10 (0x0400u)
1289 #define CBPD11 (0x0800u)
1290 #define CBPD12 (0x1000u)
1291 #define CBPD13 (0x2000u)
1292 #define CBPD14 (0x4000u)
1293 #define CBPD15 (0x8000u)
1295 #define CBPD0_L (0x0001u)
1296 #define CBPD1_L (0x0002u)
1297 #define CBPD2_L (0x0004u)
1298 #define CBPD3_L (0x0008u)
1299 #define CBPD4_L (0x0010u)
1300 #define CBPD5_L (0x0020u)
1301 #define CBPD6_L (0x0040u)
1302 #define CBPD7_L (0x0080u)
1304 #define CBPD8_H (0x0001u)
1305 #define CBPD9_H (0x0002u)
1306 #define CBPD10_H (0x0004u)
1307 #define CBPD11_H (0x0008u)
1308 #define CBPD12_H (0x0010u)
1309 #define CBPD13_H (0x0020u)
1310 #define CBPD14_H (0x0040u)
1311 #define CBPD15_H (0x0080u)
1314 #define CBIFG (0x0001u)
1315 #define CBIIFG (0x0002u)
1322 #define CBIE (0x0100u)
1323 #define CBIIE (0x0200u)
1332 #define CBIFG_L (0x0001u)
1333 #define CBIIFG_L (0x0002u)
1354 #define CBIE_H (0x0001u)
1355 #define CBIIE_H (0x0002u)
1364 #define CBIV_NONE (0x0000u)
1365 #define CBIV_CBIFG (0x0002u)
1366 #define CBIV_CBIIFG (0x0004u)
1372 #ifdef __MSP430_HAS_CC1101__
1374 #define OFS_RF1AIFCTL0 (0x0000u)
1375 #define OFS_RF1AIFCTL0_L OFS_RF1AIFCTL0
1376 #define OFS_RF1AIFCTL0_H OFS_RF1AIFCTL0+1
1377 #define OFS_RF1AIFCTL1 (0x0002u)
1378 #define OFS_RF1AIFCTL1_L OFS_RF1AIFCTL1
1379 #define OFS_RF1AIFCTL1_H OFS_RF1AIFCTL1+1
1380 #define RF1AIFIFG RF1AIFCTL1_L
1381 #define RF1AIFIE RF1AIFCTL1_H
1382 #define OFS_RF1AIFCTL2 (0x0004u)
1383 #define OFS_RF1AIFCTL2_L OFS_RF1AIFCTL2
1384 #define OFS_RF1AIFCTL2_H OFS_RF1AIFCTL2+1
1385 #define OFS_RF1AIFERR (0x0006u)
1386 #define OFS_RF1AIFERR_L OFS_RF1AIFERR
1387 #define OFS_RF1AIFERR_H OFS_RF1AIFERR+1
1388 #define OFS_RF1AIFERRV (0x000Cu)
1389 #define OFS_RF1AIFERRV_L OFS_RF1AIFERRV
1390 #define OFS_RF1AIFERRV_H OFS_RF1AIFERRV+1
1391 #define OFS_RF1AIFIV (0x000Eu)
1392 #define OFS_RF1AIFIV_L OFS_RF1AIFIV
1393 #define OFS_RF1AIFIV_H OFS_RF1AIFIV+1
1394 #define OFS_RF1AINSTRW (0x0010u)
1395 #define OFS_RF1AINSTRW_L OFS_RF1AINSTRW
1396 #define OFS_RF1AINSTRW_H OFS_RF1AINSTRW+1
1397 #define RF1ADINB RF1AINSTRW_L
1398 #define RF1AINSTRB RF1AINSTRW_H
1399 #define OFS_RF1AINSTR1W (0x0012u)
1400 #define OFS_RF1AINSTR1W_L OFS_RF1AINSTR1W
1401 #define OFS_RF1AINSTR1W_H OFS_RF1AINSTR1W+1
1402 #define RF1AINSTR1B RF1AINSTR1W_H
1403 #define OFS_RF1AINSTR2W (0x0014u)
1404 #define OFS_RF1AINSTR2W_L OFS_RF1AINSTR2W
1405 #define OFS_RF1AINSTR2W_H OFS_RF1AINSTR2W+1
1406 #define RF1AINSTR2B RF1AINSTR1W_H
1407 #define OFS_RF1ADINW (0x0016u)
1408 #define OFS_RF1ADINW_L OFS_RF1ADINW
1409 #define OFS_RF1ADINW_H OFS_RF1ADINW+1
1411 #define OFS_RF1ASTAT0W (0x0020u)
1412 #define OFS_RF1ASTAT0W_L OFS_RF1ASTAT0W
1413 #define OFS_RF1ASTAT0W_H OFS_RF1ASTAT0W+1
1414 #define RF1ADOUT0B RF1ASTAT0W_L
1415 #define RF1ASTAT0B RF1ASTAT0W_H
1416 #define RF1ASTATW RF1ASTAT0W
1417 #define RF1ADOUTB RF1ASTAT0W_L
1418 #define RF1ASTATB RF1ASTAT0W_H
1419 #define OFS_RF1ASTAT1W (0x0022u)
1420 #define OFS_RF1ASTAT1W_L OFS_RF1ASTAT1W
1421 #define OFS_RF1ASTAT1W_H OFS_RF1ASTAT1W+1
1422 #define RF1ADOUT1B RF1ASTAT1W_L
1423 #define RF1ASTAT1B RF1ASTAT1W_H
1424 #define OFS_RF1ASTAT2W (0x0024u)
1425 #define OFS_RF1ASTAT2W_L OFS_RF1ASTAT2W
1426 #define OFS_RF1ASTAT2W_H OFS_RF1ASTAT2W+1
1427 #define RF1ADOUT2B RF1ASTAT2W_L
1428 #define RF1ASTAT2B RF1ASTAT2W_H
1429 #define OFS_RF1ADOUT0W (0x0028u)
1430 #define OFS_RF1ADOUT0W_L OFS_RF1ADOUT0W
1431 #define OFS_RF1ADOUT0W_H OFS_RF1ADOUT0W+1
1432 #define RF1ADOUTW RF1ADOUT0W
1433 #define RF1ADOUTW_L RF1ADOUT0W_L
1434 #define RF1ADOUTW_H RF1ADOUT0W_H
1435 #define OFS_RF1ADOUT1W (0x002Au)
1436 #define OFS_RF1ADOUT1W_L OFS_RF1ADOUT1W
1437 #define OFS_RF1ADOUT1W_H OFS_RF1ADOUT1W+1
1438 #define OFS_RF1ADOUT2W (0x002Cu)
1439 #define OFS_RF1ADOUT2W_L OFS_RF1ADOUT2W
1440 #define OFS_RF1ADOUT2W_H OFS_RF1ADOUT2W+1
1441 #define OFS_RF1AIN (0x0030u)
1442 #define OFS_RF1AIN_L OFS_RF1AIN
1443 #define OFS_RF1AIN_H OFS_RF1AIN+1
1444 #define OFS_RF1AIFG (0x0032u)
1445 #define OFS_RF1AIFG_L OFS_RF1AIFG
1446 #define OFS_RF1AIFG_H OFS_RF1AIFG+1
1447 #define OFS_RF1AIES (0x0034u)
1448 #define OFS_RF1AIES_L OFS_RF1AIES
1449 #define OFS_RF1AIES_H OFS_RF1AIES+1
1450 #define OFS_RF1AIE (0x0036u)
1451 #define OFS_RF1AIE_L OFS_RF1AIE
1452 #define OFS_RF1AIE_H OFS_RF1AIE+1
1453 #define OFS_RF1AIV (0x0038u)
1454 #define OFS_RF1AIV_L OFS_RF1AIV
1455 #define OFS_RF1AIV_H OFS_RF1AIV+1
1456 #define OFS_RF1ARXFIFO (0x003Cu)
1457 #define OFS_RF1ARXFIFO_L OFS_RF1ARXFIFO
1458 #define OFS_RF1ARXFIFO_H OFS_RF1ARXFIFO+1
1459 #define OFS_RF1ATXFIFO (0x003Eu)
1460 #define OFS_RF1ATXFIFO_L OFS_RF1ATXFIFO
1461 #define OFS_RF1ATXFIFO_H OFS_RF1ATXFIFO+1
1464 #define RFFIFOEN (0x0001u)
1465 #define RFENDIAN (0x0002u)
1468 #define RFFIFOEN_L (0x0001u)
1469 #define RFENDIAN_L (0x0002u)
1472 #define RFRXIFG (0x0001u)
1473 #define RFTXIFG (0x0002u)
1474 #define RFERRIFG (0x0004u)
1475 #define RFINSTRIFG (0x0010u)
1476 #define RFDINIFG (0x0020u)
1477 #define RFSTATIFG (0x0040u)
1478 #define RFDOUTIFG (0x0080u)
1479 #define RFRXIE (0x0100u)
1480 #define RFTXIE (0x0200u)
1481 #define RFERRIE (0x0400u)
1482 #define RFINSTRIE (0x1000u)
1483 #define RFDINIE (0x2000u)
1484 #define RFSTATIE (0x4000u)
1485 #define RFDOUTIE (0x8000u)
1488 #define RFRXIFG_L (0x0001u)
1489 #define RFTXIFG_L (0x0002u)
1490 #define RFERRIFG_L (0x0004u)
1491 #define RFINSTRIFG_L (0x0010u)
1492 #define RFDINIFG_L (0x0020u)
1493 #define RFSTATIFG_L (0x0040u)
1494 #define RFDOUTIFG_L (0x0080u)
1497 #define RFRXIE_H (0x0001u)
1498 #define RFTXIE_H (0x0002u)
1499 #define RFERRIE_H (0x0004u)
1500 #define RFINSTRIE_H (0x0010u)
1501 #define RFDINIE_H (0x0020u)
1502 #define RFSTATIE_H (0x0040u)
1503 #define RFDOUTIE_H (0x0080u)
1506 #define LVERR (0x0001u)
1507 #define OPERR (0x0002u)
1508 #define OUTERR (0x0004u)
1509 #define OPOVERR (0x0008u)
1512 #define LVERR_L (0x0001u)
1513 #define OPERR_L (0x0002u)
1514 #define OUTERR_L (0x0004u)
1515 #define OPOVERR_L (0x0008u)
1518 #define RF1AIFERRV_NONE (0x0000u)
1519 #define RF1AIFERRV_LVERR (0x0002u)
1520 #define RF1AIFERRV_OPERR (0x0004u)
1521 #define RF1AIFERRV_OUTERR (0x0006u)
1522 #define RF1AIFERRV_OPOVERR (0x0008u)
1525 #define RF1AIFIV_NONE (0x0000u)
1526 #define RF1AIFIV_RFERRIFG (0x0002u)
1527 #define RF1AIFIV_RFDOUTIFG (0x0004u)
1528 #define RF1AIFIV_RFSTATIFG (0x0006u)
1529 #define RF1AIFIV_RFDINIFG (0x0008u)
1530 #define RF1AIFIV_RFINSTRIFG (0x000Au)
1533 #define RF1AIV_NONE (0x0000u)
1534 #define RF1AIV_RFIFG0 (0x0002u)
1535 #define RF1AIV_RFIFG1 (0x0004u)
1536 #define RF1AIV_RFIFG2 (0x0006u)
1537 #define RF1AIV_RFIFG3 (0x0008u)
1538 #define RF1AIV_RFIFG4 (0x000Au)
1539 #define RF1AIV_RFIFG5 (0x000Cu)
1540 #define RF1AIV_RFIFG6 (0x000Eu)
1541 #define RF1AIV_RFIFG7 (0x0010u)
1542 #define RF1AIV_RFIFG8 (0x0012u)
1543 #define RF1AIV_RFIFG9 (0x0014u)
1544 #define RF1AIV_RFIFG10 (0x0016u)
1545 #define RF1AIV_RFIFG11 (0x0018u)
1546 #define RF1AIV_RFIFG12 (0x001Au)
1547 #define RF1AIV_RFIFG13 (0x001Cu)
1548 #define RF1AIV_RFIFG14 (0x001Eu)
1549 #define RF1AIV_RFIFG15 (0x0020u)
1555 #define FIFOTHR 0x03
1559 #define PKTCTRL1 0x07
1560 #define PKTCTRL0 0x08
1563 #define FSCTRL1 0x0B
1564 #define FSCTRL0 0x0C
1568 #define MDMCFG4 0x10
1569 #define MDMCFG3 0x11
1570 #define MDMCFG2 0x12
1571 #define MDMCFG1 0x13
1572 #define MDMCFG0 0x14
1573 #define DEVIATN 0x15
1579 #define AGCCTRL2 0x1B
1580 #define AGCCTRL1 0x1C
1581 #define AGCCTRL0 0x1D
1582 #define WOREVT1 0x1E
1583 #define WOREVT0 0x1F
1584 #define WORCTRL 0x20
1595 #define AGCTEST 0x2B
1601 #define PARTNUM 0x30
1602 #define VERSION 0x31
1603 #define FREQEST 0x32
1606 #define MARCSTATE 0x35
1607 #define WORTIME1 0x36
1608 #define WORTIME0 0x37
1609 #define PKTSTATUS 0x38
1610 #define VCO_VC_DAC 0x39
1611 #define TXBYTES 0x3A
1612 #define RXBYTES 0x3B
1615 #define PATABLE 0x3E
1621 #define RF_SRES 0x30
1622 #define RF_SFSTXON 0x31
1623 #define RF_SXOFF 0x32
1624 #define RF_SCAL 0x33
1627 #define RF_SIDLE 0x36
1629 #define RF_SWOR 0x38
1630 #define RF_SPWD 0x39
1631 #define RF_SFRX 0x3A
1632 #define RF_SFTX 0x3B
1633 #define RF_SWORRST 0x3C
1634 #define RF_SNOP 0x3D
1636 #define RF_RXSTAT 0x80
1637 #define RF_TXSTAT 0x00
1640 #define RF_SNGLREGRD 0x80
1641 #define RF_SNGLREGWR 0x00
1642 #define RF_REGRD 0xC0
1643 #define RF_REGWR 0x40
1644 #define RF_STATREGRD 0xC0
1645 #define RF_SNGLPATABRD (RF_SNGLREGRD+PATABLE)
1646 #define RF_SNGLPATABWR (RF_SNGLREGWR+PATABLE)
1647 #define RF_PATABRD (RF_REGRD+PATABLE)
1648 #define RF_PATABWR (RF_REGWR+PATABLE)
1649 #define RF_SNGLRXRD (RF_SNGLREGRD+RXFIFO)
1650 #define RF_SNGLTXWR (RF_SNGLREGWR+TXFIFO)
1651 #define RF_RXFIFORD (RF_REGRD+RXFIFO)
1652 #define RF_TXFIFOWR (RF_REGWR+TXFIFO)
1658 #ifdef __MSP430_HAS_CRC__
1660 #define OFS_CRCDI (0x0000u)
1661 #define OFS_CRCDI_L OFS_CRCDI
1662 #define OFS_CRCDI_H OFS_CRCDI+1
1663 #define OFS_CRCDIRB (0x0002u)
1664 #define OFS_CRCDIRB_L OFS_CRCDIRB
1665 #define OFS_CRCDIRB_H OFS_CRCDIRB+1
1666 #define OFS_CRCINIRES (0x0004u)
1667 #define OFS_CRCINIRES_L OFS_CRCINIRES
1668 #define OFS_CRCINIRES_H OFS_CRCINIRES+1
1669 #define OFS_CRCRESR (0x0006u)
1670 #define OFS_CRCRESR_L OFS_CRCRESR
1671 #define OFS_CRCRESR_H OFS_CRCRESR+1
1677 #ifdef __MSP430_HAS_DAC12_2__
1679 #define OFS_DAC12_0CTL0 (0x0000u)
1680 #define OFS_DAC12_0CTL1 (0x0002u)
1681 #define OFS_DAC12_0DAT (0x0004u)
1682 #define OFS_DAC12_0CALCTL (0x0006u)
1683 #define OFS_DAC12_0CALDAT (0x0008u)
1684 #define OFS_DAC12_1CTL0 (0x0010u)
1685 #define OFS_DAC12_1CTL1 (0x0012u)
1686 #define OFS_DAC12_1DAT (0x0014u)
1687 #define OFS_DAC12_1CALCTL (0x0016u)
1688 #define OFS_DAC12_1CALDAT (0x0018u)
1689 #define OFS_DAC12_IV (0x001Eu)
1692 #define DAC12GRP (0x0001u)
1693 #define DAC12ENC (0x0002u)
1694 #define DAC12IFG (0x0004u)
1695 #define DAC12IE (0x0008u)
1696 #define DAC12DF (0x0010u)
1697 #define DAC12AMP0 (0x0020u)
1698 #define DAC12AMP1 (0x0040u)
1699 #define DAC12AMP2 (0x0080u)
1700 #define DAC12IR (0x0100u)
1701 #define DAC12CALON (0x0200u)
1702 #define DAC12LSEL0 (0x0400u)
1703 #define DAC12LSEL1 (0x0800u)
1704 #define DAC12RES (0x1000u)
1705 #define DAC12SREF0 (0x2000u)
1706 #define DAC12SREF1 (0x4000u)
1707 #define DAC12OPS (0x8000u)
1709 #define DAC12AMP_0 (0*0x0020u)
1710 #define DAC12AMP_1 (1*0x0020u)
1711 #define DAC12AMP_2 (2*0x0020u)
1712 #define DAC12AMP_3 (3*0x0020u)
1713 #define DAC12AMP_4 (4*0x0020u)
1714 #define DAC12AMP_5 (5*0x0020u)
1715 #define DAC12AMP_6 (6*0x0020u)
1716 #define DAC12AMP_7 (7*0x0020u)
1718 #define DAC12LSEL_0 (0*0x0400u)
1719 #define DAC12LSEL_1 (1*0x0400u)
1720 #define DAC12LSEL_2 (2*0x0400u)
1721 #define DAC12LSEL_3 (3*0x0400u)
1723 #define DAC12SREF_0 (0*0x2000u)
1724 #define DAC12SREF_1 (1*0x2000u)
1725 #define DAC12SREF_2 (2*0x2000u)
1726 #define DAC12SREF_3 (3*0x2000u)
1729 #define DAC12DFJ (0x0001u)
1730 #define DAC12OG (0x0002u)
1733 #define DAC12LOCK (0x0001u)
1735 #define DAC12PW (0xA500u)
1738 #define DACIV_NONE (0x0000u)
1739 #define DACIV_DAC12IFG_0 (0x0002u)
1740 #define DACIV_DAC12IFG_1 (0x0004u)
1746 #ifdef __MSP430_HAS_DMAX_3__
1748 #define OFS_DMACTL0 (0x0000u)
1749 #define OFS_DMACTL0_L OFS_DMACTL0
1750 #define OFS_DMACTL0_H OFS_DMACTL0+1
1751 #define OFS_DMACTL1 (0x0002u)
1752 #define OFS_DMACTL1_L OFS_DMACTL1
1753 #define OFS_DMACTL1_H OFS_DMACTL1+1
1754 #define OFS_DMACTL2 (0x0004u)
1755 #define OFS_DMACTL2_L OFS_DMACTL2
1756 #define OFS_DMACTL2_H OFS_DMACTL2+1
1757 #define OFS_DMACTL3 (0x0006u)
1758 #define OFS_DMACTL3_L OFS_DMACTL3
1759 #define OFS_DMACTL3_H OFS_DMACTL3+1
1760 #define OFS_DMACTL4 (0x0008u)
1761 #define OFS_DMACTL4_L OFS_DMACTL4
1762 #define OFS_DMACTL4_H OFS_DMACTL4+1
1763 #define OFS_DMAIV (0x000Eu)
1764 #define OFS_DMAIV_L OFS_DMAIV
1765 #define OFS_DMAIV_H OFS_DMAIV+1
1767 #define OFS_DMA0CTL (0x0010u)
1768 #define OFS_DMA0CTL_L OFS_DMA0CTL
1769 #define OFS_DMA0CTL_H OFS_DMA0CTL+1
1770 #define OFS_DMA0SA (0x0012u)
1771 #define OFS_DMA0DA (0x0016u)
1772 #define OFS_DMA0SZ (0x001Au)
1774 #define OFS_DMA1CTL (0x0020u)
1775 #define OFS_DMA1CTL_L OFS_DMA1CTL
1776 #define OFS_DMA1CTL_H OFS_DMA1CTL+1
1777 #define OFS_DMA1SA (0x0022u)
1778 #define OFS_DMA1DA (0x0026u)
1779 #define OFS_DMA1SZ (0x002Au)
1781 #define OFS_DMA2CTL (0x0030u)
1782 #define OFS_DMA2CTL_L OFS_DMA2CTL
1783 #define OFS_DMA2CTL_H OFS_DMA2CTL+1
1784 #define OFS_DMA2SA (0x0032u)
1785 #define OFS_DMA2DA (0x0036u)
1786 #define OFS_DMA2SZ (0x003Au)
1789 #define DMA0TSEL0 (0x0001u)
1790 #define DMA0TSEL1 (0x0002u)
1791 #define DMA0TSEL2 (0x0004u)
1792 #define DMA0TSEL3 (0x0008u)
1793 #define DMA0TSEL4 (0x0010u)
1794 #define DMA1TSEL0 (0x0100u)
1795 #define DMA1TSEL1 (0x0200u)
1796 #define DMA1TSEL2 (0x0400u)
1797 #define DMA1TSEL3 (0x0800u)
1798 #define DMA1TSEL4 (0x1000u)
1801 #define DMA0TSEL0_L (0x0001u)
1802 #define DMA0TSEL1_L (0x0002u)
1803 #define DMA0TSEL2_L (0x0004u)
1804 #define DMA0TSEL3_L (0x0008u)
1805 #define DMA0TSEL4_L (0x0010u)
1808 #define DMA1TSEL0_H (0x0001u)
1809 #define DMA1TSEL1_H (0x0002u)
1810 #define DMA1TSEL2_H (0x0004u)
1811 #define DMA1TSEL3_H (0x0008u)
1812 #define DMA1TSEL4_H (0x0010u)
1815 #define DMA2TSEL0 (0x0001u)
1816 #define DMA2TSEL1 (0x0002u)
1817 #define DMA2TSEL2 (0x0004u)
1818 #define DMA2TSEL3 (0x0008u)
1819 #define DMA2TSEL4 (0x0010u)
1822 #define DMA2TSEL0_L (0x0001u)
1823 #define DMA2TSEL1_L (0x0002u)
1824 #define DMA2TSEL2_L (0x0004u)
1825 #define DMA2TSEL3_L (0x0008u)
1826 #define DMA2TSEL4_L (0x0010u)
1829 #define ENNMI (0x0001u)
1830 #define ROUNDROBIN (0x0002u)
1831 #define DMARMWDIS (0x0004u)
1834 #define ENNMI_L (0x0001u)
1835 #define ROUNDROBIN_L (0x0002u)
1836 #define DMARMWDIS_L (0x0004u)
1839 #define DMAREQ (0x0001u)
1840 #define DMAABORT (0x0002u)
1841 #define DMAIE (0x0004u)
1842 #define DMAIFG (0x0008u)
1843 #define DMAEN (0x0010u)
1844 #define DMALEVEL (0x0020u)
1845 #define DMASRCBYTE (0x0040u)
1846 #define DMADSTBYTE (0x0080u)
1847 #define DMASRCINCR0 (0x0100u)
1848 #define DMASRCINCR1 (0x0200u)
1849 #define DMADSTINCR0 (0x0400u)
1850 #define DMADSTINCR1 (0x0800u)
1851 #define DMADT0 (0x1000u)
1852 #define DMADT1 (0x2000u)
1853 #define DMADT2 (0x4000u)
1856 #define DMAREQ_L (0x0001u)
1857 #define DMAABORT_L (0x0002u)
1858 #define DMAIE_L (0x0004u)
1859 #define DMAIFG_L (0x0008u)
1860 #define DMAEN_L (0x0010u)
1861 #define DMALEVEL_L (0x0020u)
1862 #define DMASRCBYTE_L (0x0040u)
1863 #define DMADSTBYTE_L (0x0080u)
1866 #define DMASRCINCR0_H (0x0001u)
1867 #define DMASRCINCR1_H (0x0002u)
1868 #define DMADSTINCR0_H (0x0004u)
1869 #define DMADSTINCR1_H (0x0008u)
1870 #define DMADT0_H (0x0010u)
1871 #define DMADT1_H (0x0020u)
1872 #define DMADT2_H (0x0040u)
1874 #define DMASWDW (0*0x0040u)
1875 #define DMASBDW (1*0x0040u)
1876 #define DMASWDB (2*0x0040u)
1877 #define DMASBDB (3*0x0040u)
1879 #define DMASRCINCR_0 (0*0x0100u)
1880 #define DMASRCINCR_1 (1*0x0100u)
1881 #define DMASRCINCR_2 (2*0x0100u)
1882 #define DMASRCINCR_3 (3*0x0100u)
1884 #define DMADSTINCR_0 (0*0x0400u)
1885 #define DMADSTINCR_1 (1*0x0400u)
1886 #define DMADSTINCR_2 (2*0x0400u)
1887 #define DMADSTINCR_3 (3*0x0400u)
1889 #define DMADT_0 (0*0x1000u)
1890 #define DMADT_1 (1*0x1000u)
1891 #define DMADT_2 (2*0x1000u)
1892 #define DMADT_3 (3*0x1000u)
1893 #define DMADT_4 (4*0x1000u)
1894 #define DMADT_5 (5*0x1000u)
1895 #define DMADT_6 (6*0x1000u)
1896 #define DMADT_7 (7*0x1000u)
1899 #define DMAIV_NONE (0x0000u)
1900 #define DMAIV_DMA0IFG (0x0002u)
1901 #define DMAIV_DMA1IFG (0x0004u)
1902 #define DMAIV_DMA2IFG (0x0006u)
1908 #ifdef __MSP430_HAS_DMAX_6__
1910 #define OFS_DMACTL0 (0x0000u)
1911 #define OFS_DMACTL0_L OFS_DMACTL0
1912 #define OFS_DMACTL0_H OFS_DMACTL0+1
1913 #define OFS_DMACTL1 (0x0002u)
1914 #define OFS_DMACTL1_L OFS_DMACTL1
1915 #define OFS_DMACTL1_H OFS_DMACTL1+1
1916 #define OFS_DMACTL2 (0x0004u)
1917 #define OFS_DMACTL2_L OFS_DMACTL2
1918 #define OFS_DMACTL2_H OFS_DMACTL2+1
1919 #define OFS_DMACTL3 (0x0006u)
1920 #define OFS_DMACTL3_L OFS_DMACTL3
1921 #define OFS_DMACTL3_H OFS_DMACTL3+1
1922 #define OFS_DMACTL4 (0x0008u)
1923 #define OFS_DMACTL4_L OFS_DMACTL4
1924 #define OFS_DMACTL4_H OFS_DMACTL4+1
1925 #define OFS_DMAIV (0x000Eu)
1926 #define OFS_DMAIV_L OFS_DMAIV
1927 #define OFS_DMAIV_H OFS_DMAIV+1
1929 #define OFS_DMA0CTL (0x0010u)
1930 #define OFS_DMA0CTL_L OFS_DMA0CTL
1931 #define OFS_DMA0CTL_H OFS_DMA0CTL+1
1932 #define OFS_DMA0SA (0x0012u)
1933 #define OFS_DMA0DA (0x0016u)
1934 #define OFS_DMA0SZ (0x001Au)
1936 #define OFS_DMA1CTL (0x0020u)
1937 #define OFS_DMA1CTL_L OFS_DMA1CTL
1938 #define OFS_DMA1CTL_H OFS_DMA1CTL+1
1939 #define OFS_DMA1SA (0x0022u)
1940 #define OFS_DMA1DA (0x0026u)
1941 #define OFS_DMA1SZ (0x002Au)
1943 #define OFS_DMA2CTL (0x0030u)
1944 #define OFS_DMA2CTL_L OFS_DMA2CTL
1945 #define OFS_DMA2CTL_H OFS_DMA2CTL+1
1946 #define OFS_DMA2SA (0x0032u)
1947 #define OFS_DMA2DA (0x0036u)
1948 #define OFS_DMA2SZ (0x003Au)
1950 #define OFS_DMA3CTL (0x0040u)
1951 #define OFS_DMA3CTL_L OFS_DMA3CTL
1952 #define OFS_DMA3CTL_H OFS_DMA3CTL+1
1953 #define OFS_DMA3SA (0x0042u)
1954 #define OFS_DMA3DA (0x0046u)
1955 #define OFS_DMA3SZ (0x004Au)
1957 #define OFS_DMA4CTL (0x0050u)
1958 #define OFS_DMA4CTL_L OFS_DMA4CTL
1959 #define OFS_DMA4CTL_H OFS_DMA4CTL+1
1960 #define OFS_DMA4SA (0x0052u)
1961 #define OFS_DMA4DA (0x0056u)
1962 #define OFS_DMA4SZ (0x005Au)
1964 #define OFS_DMA5CTL (0x0060u)
1965 #define OFS_DMA5CTL_L OFS_DMA5CTL
1966 #define OFS_DMA5CTL_H OFS_DMA5CTL+1
1967 #define OFS_DMA5SA (0x0062u)
1968 #define OFS_DMA5DA (0x0066u)
1969 #define OFS_DMA5SZ (0x006Au)
1972 #define DMA0TSEL0 (0x0001u)
1973 #define DMA0TSEL1 (0x0002u)
1974 #define DMA0TSEL2 (0x0004u)
1975 #define DMA0TSEL3 (0x0008u)
1976 #define DMA0TSEL4 (0x0010u)
1977 #define DMA1TSEL0 (0x0100u)
1978 #define DMA1TSEL1 (0x0200u)
1979 #define DMA1TSEL2 (0x0400u)
1980 #define DMA1TSEL3 (0x0800u)
1981 #define DMA1TSEL4 (0x1000u)
1984 #define DMA0TSEL0_L (0x0001u)
1985 #define DMA0TSEL1_L (0x0002u)
1986 #define DMA0TSEL2_L (0x0004u)
1987 #define DMA0TSEL3_L (0x0008u)
1988 #define DMA0TSEL4_L (0x0010u)
1991 #define DMA1TSEL0_H (0x0001u)
1992 #define DMA1TSEL1_H (0x0002u)
1993 #define DMA1TSEL2_H (0x0004u)
1994 #define DMA1TSEL3_H (0x0008u)
1995 #define DMA1TSEL4_H (0x0010u)
1998 #define DMA2TSEL0 (0x0001u)
1999 #define DMA2TSEL1 (0x0002u)
2000 #define DMA2TSEL2 (0x0004u)
2001 #define DMA2TSEL3 (0x0008u)
2002 #define DMA2TSEL4 (0x0010u)
2003 #define DMA3TSEL0 (0x0100u)
2004 #define DMA3TSEL1 (0x0200u)
2005 #define DMA3TSEL2 (0x0400u)
2006 #define DMA3TSEL3 (0x0800u)
2007 #define DMA3TSEL4 (0x1000u)
2010 #define DMA2TSEL0_L (0x0001u)
2011 #define DMA2TSEL1_L (0x0002u)
2012 #define DMA2TSEL2_L (0x0004u)
2013 #define DMA2TSEL3_L (0x0008u)
2014 #define DMA2TSEL4_L (0x0010u)
2017 #define DMA3TSEL0_H (0x0001u)
2018 #define DMA3TSEL1_H (0x0002u)
2019 #define DMA3TSEL2_H (0x0004u)
2020 #define DMA3TSEL3_H (0x0008u)
2021 #define DMA3TSEL4_H (0x0010u)
2024 #define DMA4TSEL0 (0x0001u)
2025 #define DMA4TSEL1 (0x0002u)
2026 #define DMA4TSEL2 (0x0004u)
2027 #define DMA4TSEL3 (0x0008u)
2028 #define DMA4TSEL4 (0x0010u)
2029 #define DMA5TSEL0 (0x0100u)
2030 #define DMA5TSEL1 (0x0200u)
2031 #define DMA5TSEL2 (0x0400u)
2032 #define DMA5TSEL3 (0x0800u)
2033 #define DMA5TSEL4 (0x1000u)
2036 #define DMA4TSEL0_L (0x0001u)
2037 #define DMA4TSEL1_L (0x0002u)
2038 #define DMA4TSEL2_L (0x0004u)
2039 #define DMA4TSEL3_L (0x0008u)
2040 #define DMA4TSEL4_L (0x0010u)
2043 #define DMA5TSEL0_H (0x0001u)
2044 #define DMA5TSEL1_H (0x0002u)
2045 #define DMA5TSEL2_H (0x0004u)
2046 #define DMA5TSEL3_H (0x0008u)
2047 #define DMA5TSEL4_H (0x0010u)
2050 #define ENNMI (0x0001u)
2051 #define ROUNDROBIN (0x0002u)
2052 #define DMARMWDIS (0x0004u)
2055 #define ENNMI_L (0x0001u)
2056 #define ROUNDROBIN_L (0x0002u)
2057 #define DMARMWDIS_L (0x0004u)
2060 #define DMAREQ (0x0001u)
2061 #define DMAABORT (0x0002u)
2062 #define DMAIE (0x0004u)
2063 #define DMAIFG (0x0008u)
2064 #define DMAEN (0x0010u)
2065 #define DMALEVEL (0x0020u)
2066 #define DMASRCBYTE (0x0040u)
2067 #define DMADSTBYTE (0x0080u)
2068 #define DMASRCINCR0 (0x0100u)
2069 #define DMASRCINCR1 (0x0200u)
2070 #define DMADSTINCR0 (0x0400u)
2071 #define DMADSTINCR1 (0x0800u)
2072 #define DMADT0 (0x1000u)
2073 #define DMADT1 (0x2000u)
2074 #define DMADT2 (0x4000u)
2077 #define DMAREQ_L (0x0001u)
2078 #define DMAABORT_L (0x0002u)
2079 #define DMAIE_L (0x0004u)
2080 #define DMAIFG_L (0x0008u)
2081 #define DMAEN_L (0x0010u)
2082 #define DMALEVEL_L (0x0020u)
2083 #define DMASRCBYTE_L (0x0040u)
2084 #define DMADSTBYTE_L (0x0080u)
2087 #define DMASRCINCR0_H (0x0001u)
2088 #define DMASRCINCR1_H (0x0002u)
2089 #define DMADSTINCR0_H (0x0004u)
2090 #define DMADSTINCR1_H (0x0008u)
2091 #define DMADT0_H (0x0010u)
2092 #define DMADT1_H (0x0020u)
2093 #define DMADT2_H (0x0040u)
2095 #define DMASWDW (0*0x0040u)
2096 #define DMASBDW (1*0x0040u)
2097 #define DMASWDB (2*0x0040u)
2098 #define DMASBDB (3*0x0040u)
2100 #define DMASRCINCR_0 (0*0x0100u)
2101 #define DMASRCINCR_1 (1*0x0100u)
2102 #define DMASRCINCR_2 (2*0x0100u)
2103 #define DMASRCINCR_3 (3*0x0100u)
2105 #define DMADSTINCR_0 (0*0x0400u)
2106 #define DMADSTINCR_1 (1*0x0400u)
2107 #define DMADSTINCR_2 (2*0x0400u)
2108 #define DMADSTINCR_3 (3*0x0400u)
2110 #define DMADT_0 (0*0x1000u)
2111 #define DMADT_1 (1*0x1000u)
2112 #define DMADT_2 (2*0x1000u)
2113 #define DMADT_3 (3*0x1000u)
2114 #define DMADT_4 (4*0x1000u)
2115 #define DMADT_5 (5*0x1000u)
2116 #define DMADT_6 (6*0x1000u)
2117 #define DMADT_7 (7*0x1000u)
2120 #define DMAIV_NONE (0x0000u)
2121 #define DMAIV_DMA0IFG (0x0002u)
2122 #define DMAIV_DMA1IFG (0x0004u)
2123 #define DMAIV_DMA2IFG (0x0006u)
2124 #define DMAIV_DMA3IFG (0x0008u)
2125 #define DMAIV_DMA4IFG (0x000Au)
2126 #define DMAIV_DMA5IFG (0x000Cu)
2132 #ifdef __MSP430_HAS_FLASH__
2134 #define OFS_FCTL1 (0x0000u)
2135 #define OFS_FCTL1_L OFS_FCTL1
2136 #define OFS_FCTL1_H OFS_FCTL1+1
2138 #define OFS_FCTL3 (0x0004u)
2139 #define OFS_FCTL3_L OFS_FCTL3
2140 #define OFS_FCTL3_H OFS_FCTL3+1
2141 #define OFS_FCTL4 (0x0006u)
2142 #define OFS_FCTL4_L OFS_FCTL4
2143 #define OFS_FCTL4_H OFS_FCTL4+1
2145 #define FRPW (0x9600u)
2146 #define FWPW (0xA500u)
2147 #define FXPW (0x3300u)
2148 #define FRKEY (0x9600u)
2149 #define FWKEY (0xA500u)
2150 #define FXKEY (0x3300u)
2154 #define ERASE (0x0002u)
2155 #define MERAS (0x0004u)
2158 #define SWRT (0x0020u)
2159 #define WRT (0x0040u)
2160 #define BLKWRT (0x0080u)
2164 #define ERASE_L (0x0002u)
2165 #define MERAS_L (0x0004u)
2168 #define SWRT_L (0x0020u)
2169 #define WRT_L (0x0040u)
2170 #define BLKWRT_L (0x0080u)
2173 #define BUSY (0x0001u)
2174 #define KEYV (0x0002u)
2175 #define ACCVIFG (0x0004u)
2176 #define WAIT (0x0008u)
2177 #define LOCK (0x0010u)
2178 #define EMEX (0x0020u)
2179 #define LOCKA (0x0040u)
2183 #define BUSY_L (0x0001u)
2184 #define KEYV_L (0x0002u)
2185 #define ACCVIFG_L (0x0004u)
2186 #define WAIT_L (0x0008u)
2187 #define LOCK_L (0x0010u)
2188 #define EMEX_L (0x0020u)
2189 #define LOCKA_L (0x0040u)
2193 #define VPE (0x0001u)
2194 #define MGR0 (0x0010u)
2195 #define MGR1 (0x0020u)
2196 #define LOCKINFO (0x0080u)
2199 #define VPE_L (0x0001u)
2200 #define MGR0_L (0x0010u)
2201 #define MGR1_L (0x0020u)
2202 #define LOCKINFO_L (0x0080u)
2208 #ifdef __MSP430_HAS_LCD_B__
2210 #define OFS_LCDBCTL0 (0x0000u)
2211 #define OFS_LCDBCTL0_L OFS_LCDBCTL0
2212 #define OFS_LCDBCTL0_H OFS_LCDBCTL0+1
2213 #define OFS_LCDBCTL1 (0x0002u)
2214 #define OFS_LCDBCTL1_L OFS_LCDBCTL1
2215 #define OFS_LCDBCTL1_H OFS_LCDBCTL1+1
2216 #define OFS_LCDBBLKCTL (0x0004u)
2217 #define OFS_LCDBBLKCTL_L OFS_LCDBBLKCTL
2218 #define OFS_LCDBBLKCTL_H OFS_LCDBBLKCTL+1
2219 #define OFS_LCDBMEMCTL (0x0006u)
2220 #define OFS_LCDBMEMCTL_L OFS_LCDBMEMCTL
2221 #define OFS_LCDBMEMCTL_H OFS_LCDBMEMCTL+1
2222 #define OFS_LCDBVCTL (0x0008u)
2223 #define OFS_LCDBVCTL_L OFS_LCDBVCTL
2224 #define OFS_LCDBVCTL_H OFS_LCDBVCTL+1
2225 #define OFS_LCDBPCTL0 (0x000Au)
2226 #define OFS_LCDBPCTL0_L OFS_LCDBPCTL0
2227 #define OFS_LCDBPCTL0_H OFS_LCDBPCTL0+1
2228 #define OFS_LCDBPCTL1 (0x000Cu)
2229 #define OFS_LCDBPCTL1_L OFS_LCDBPCTL1
2230 #define OFS_LCDBPCTL1_H OFS_LCDBPCTL1+1
2231 #define OFS_LCDBPCTL2 (0x000Eu)
2232 #define OFS_LCDBPCTL2_L OFS_LCDBPCTL2
2233 #define OFS_LCDBPCTL2_H OFS_LCDBPCTL2+1
2234 #define OFS_LCDBPCTL3 (0x0010u)
2235 #define OFS_LCDBPCTL3_L OFS_LCDBPCTL3
2236 #define OFS_LCDBPCTL3_H OFS_LCDBPCTL3+1
2237 #define OFS_LCDBCPCTL (0x0012u)
2238 #define OFS_LCDBCPCTL_L OFS_LCDBCPCTL
2239 #define OFS_LCDBCPCTL_H OFS_LCDBCPCTL+1
2240 #define OFS_LCDBIV (0x001Eu)
2243 #define LCDON (0x0001u)
2244 #define LCDSON (0x0004u)
2245 #define LCDMX0 (0x0008u)
2246 #define LCDMX1 (0x0010u)
2249 #define LCDSSEL (0x0080u)
2250 #define LCDPRE0 (0x0100u)
2251 #define LCDPRE1 (0x0200u)
2252 #define LCDPRE2 (0x0400u)
2253 #define LCDDIV0 (0x0800u)
2254 #define LCDDIV1 (0x1000u)
2255 #define LCDDIV2 (0x2000u)
2256 #define LCDDIV3 (0x4000u)
2257 #define LCDDIV4 (0x8000u)
2260 #define LCDON_L (0x0001u)
2261 #define LCDSON_L (0x0004u)
2262 #define LCDMX0_L (0x0008u)
2263 #define LCDMX1_L (0x0010u)
2266 #define LCDSSEL_L (0x0080u)
2271 #define LCDPRE0_H (0x0001u)
2272 #define LCDPRE1_H (0x0002u)
2273 #define LCDPRE2_H (0x0004u)
2274 #define LCDDIV0_H (0x0008u)
2275 #define LCDDIV1_H (0x0010u)
2276 #define LCDDIV2_H (0x0020u)
2277 #define LCDDIV3_H (0x0040u)
2278 #define LCDDIV4_H (0x0080u)
2280 #define LCDPRE_0 (0x0000u)
2281 #define LCDPRE_1 (0x0100u)
2282 #define LCDPRE_2 (0x0200u)
2283 #define LCDPRE_3 (0x0300u)
2284 #define LCDPRE_4 (0x0400u)
2285 #define LCDPRE_5 (0x0500u)
2286 #define LCDPRE__1 (0x0000u)
2287 #define LCDPRE__2 (0x0100u)
2288 #define LCDPRE__4 (0x0200u)
2289 #define LCDPRE__8 (0x0300u)
2290 #define LCDPRE__16 (0x0400u)
2291 #define LCDPRE__32 (0x0500u)
2293 #define LCDDIV_0 (0x0000u)
2294 #define LCDDIV_1 (0x0800u)
2295 #define LCDDIV_2 (0x1000u)
2296 #define LCDDIV_3 (0x1800u)
2297 #define LCDDIV_4 (0x2000u)
2298 #define LCDDIV_5 (0x2800u)
2299 #define LCDDIV_6 (0x3000u)
2300 #define LCDDIV_7 (0x3800u)
2301 #define LCDDIV_8 (0x4000u)
2302 #define LCDDIV_9 (0x4800u)
2303 #define LCDDIV_10 (0x5000u)
2304 #define LCDDIV_11 (0x5800u)
2305 #define LCDDIV_12 (0x6000u)
2306 #define LCDDIV_13 (0x6800u)
2307 #define LCDDIV_14 (0x7000u)
2308 #define LCDDIV_15 (0x7800u)
2309 #define LCDDIV_16 (0x8000u)
2310 #define LCDDIV_17 (0x8800u)
2311 #define LCDDIV_18 (0x9000u)
2312 #define LCDDIV_19 (0x9800u)
2313 #define LCDDIV_20 (0xA000u)
2314 #define LCDDIV_21 (0xA800u)
2315 #define LCDDIV_22 (0xB000u)
2316 #define LCDDIV_23 (0xB800u)
2317 #define LCDDIV_24 (0xC000u)
2318 #define LCDDIV_25 (0xC800u)
2319 #define LCDDIV_26 (0xD000u)
2320 #define LCDDIV_27 (0xD800u)
2321 #define LCDDIV_28 (0xE000u)
2322 #define LCDDIV_29 (0xE800u)
2323 #define LCDDIV_30 (0xF000u)
2324 #define LCDDIV_31 (0xF800u)
2325 #define LCDDIV__1 (0x0000u)
2326 #define LCDDIV__2 (0x0800u)
2327 #define LCDDIV__3 (0x1000u)
2328 #define LCDDIV__4 (0x1800u)
2329 #define LCDDIV__5 (0x2000u)
2330 #define LCDDIV__6 (0x2800u)
2331 #define LCDDIV__7 (0x3000u)
2332 #define LCDDIV__8 (0x3800u)
2333 #define LCDDIV__9 (0x4000u)
2334 #define LCDDIV__10 (0x4800u)
2335 #define LCDDIV__11 (0x5000u)
2336 #define LCDDIV__12 (0x5800u)
2337 #define LCDDIV__13 (0x6000u)
2338 #define LCDDIV__14 (0x6800u)
2339 #define LCDDIV__15 (0x7000u)
2340 #define LCDDIV__16 (0x7800u)
2341 #define LCDDIV__17 (0x8000u)
2342 #define LCDDIV__18 (0x8800u)
2343 #define LCDDIV__19 (0x9000u)
2344 #define LCDDIV__20 (0x9800u)
2345 #define LCDDIV__21 (0xA000u)
2346 #define LCDDIV__22 (0xA800u)
2347 #define LCDDIV__23 (0xB000u)
2348 #define LCDDIV__24 (0xB800u)
2349 #define LCDDIV__25 (0xC000u)
2350 #define LCDDIV__26 (0xC800u)
2351 #define LCDDIV__27 (0xD000u)
2352 #define LCDDIV__28 (0xD800u)
2353 #define LCDDIV__29 (0xE000u)
2354 #define LCDDIV__30 (0xE800u)
2355 #define LCDDIV__31 (0xF000u)
2356 #define LCDDIV__32 (0xF800u)
2359 #define LCDSTATIC (LCDSON)
2360 #define LCD2MUX (LCDMX0+LCDSON)
2361 #define LCD3MUX (LCDMX1+LCDSON)
2362 #define LCD4MUX (LCDMX1+LCDMX0+LCDSON)
2365 #define LCDFRMIFG (0x0001u)
2366 #define LCDBLKOFFIFG (0x0002u)
2367 #define LCDBLKONIFG (0x0004u)
2368 #define LCDNOCAPIFG (0x0008u)
2369 #define LCDFRMIE (0x0100u)
2370 #define LCDBLKOFFIE (0x0200u)
2371 #define LCDBLKONIE (0x0400u)
2372 #define LCDNOCAPIE (0x0800u)
2375 #define LCDFRMIFG_L (0x0001u)
2376 #define LCDBLKOFFIFG_L (0x0002u)
2377 #define LCDBLKONIFG_L (0x0004u)
2378 #define LCDNOCAPIFG_L (0x0008u)
2381 #define LCDFRMIE_H (0x0001u)
2382 #define LCDBLKOFFIE_H (0x0002u)
2383 #define LCDBLKONIE_H (0x0004u)
2384 #define LCDNOCAPIE_H (0x0008u)
2387 #define LCDBLKMOD0 (0x0001u)
2388 #define LCDBLKMOD1 (0x0002u)
2389 #define LCDBLKPRE0 (0x0004u)
2390 #define LCDBLKPRE1 (0x0008u)
2391 #define LCDBLKPRE2 (0x0010u)
2392 #define LCDBLKDIV0 (0x0020u)
2393 #define LCDBLKDIV1 (0x0040u)
2394 #define LCDBLKDIV2 (0x0080u)
2397 #define LCDBLKMOD0_L (0x0001u)
2398 #define LCDBLKMOD1_L (0x0002u)
2399 #define LCDBLKPRE0_L (0x0004u)
2400 #define LCDBLKPRE1_L (0x0008u)
2401 #define LCDBLKPRE2_L (0x0010u)
2402 #define LCDBLKDIV0_L (0x0020u)
2403 #define LCDBLKDIV1_L (0x0040u)
2404 #define LCDBLKDIV2_L (0x0080u)
2406 #define LCDBLKMOD_0 (0x0000u)
2407 #define LCDBLKMOD_1 (0x0001u)
2408 #define LCDBLKMOD_2 (0x0002u)
2409 #define LCDBLKMOD_3 (0x0003u)
2412 #define LCDDISP (0x0001u)
2413 #define LCDCLRM (0x0002u)
2414 #define LCDCLRBM (0x0004u)
2417 #define LCDDISP_L (0x0001u)
2418 #define LCDCLRM_L (0x0002u)
2419 #define LCDCLRBM_L (0x0004u)
2422 #define LCD2B (0x0001u)
2423 #define VLCDREF0 (0x0002u)
2424 #define VLCDREF1 (0x0004u)
2425 #define LCDCPEN (0x0008u)
2426 #define VLCDEXT (0x0010u)
2427 #define LCDEXTBIAS (0x0020u)
2428 #define R03EXT (0x0040u)
2429 #define LCDREXT (0x0080u)
2430 #define VLCD0 (0x0200u)
2431 #define VLCD1 (0x0400u)
2432 #define VLCD2 (0x0800u)
2433 #define VLCD3 (0x1000u)
2436 #define LCD2B_L (0x0001u)
2437 #define VLCDREF0_L (0x0002u)
2438 #define VLCDREF1_L (0x0004u)
2439 #define LCDCPEN_L (0x0008u)
2440 #define VLCDEXT_L (0x0010u)
2441 #define LCDEXTBIAS_L (0x0020u)
2442 #define R03EXT_L (0x0040u)
2443 #define LCDREXT_L (0x0080u)
2446 #define VLCD0_H (0x0002u)
2447 #define VLCD1_H (0x0004u)
2448 #define VLCD2_H (0x0008u)
2449 #define VLCD3_H (0x0010u)
2452 #define VLCDREF_0 (0<<1)
2453 #define VLCDREF_1 (1<<1)
2454 #define VLCDREF_2 (2<<1)
2455 #define VLCDREF_3 (3<<1)
2458 #define VLCD_0 (0<<9)
2459 #define VLCD_1 (1<<9)
2460 #define VLCD_2 (2<<9)
2461 #define VLCD_3 (3<<9)
2462 #define VLCD_4 (4<<9)
2463 #define VLCD_5 (5<<9)
2464 #define VLCD_6 (6<<9)
2465 #define VLCD_7 (7<<9)
2466 #define VLCD_8 (8<<9)
2467 #define VLCD_9 (9<<9)
2468 #define VLCD_10 (10<<9)
2469 #define VLCD_11 (11<<9)
2470 #define VLCD_12 (12<<9)
2471 #define VLCD_13 (13<<9)
2472 #define VLCD_14 (14<<9)
2473 #define VLCD_15 (15<<9)
2475 #define VLCD_DISABLED (0<<9)
2476 #define VLCD_2_60 (1<<9)
2477 #define VLCD_2_66 (2<<9)
2478 #define VLCD_2_72 (3<<9)
2479 #define VLCD_2_78 (4<<9)
2480 #define VLCD_2_84 (5<<9)
2481 #define VLCD_2_90 (6<<9)
2482 #define VLCD_2_96 (7<<9)
2483 #define VLCD_3_02 (8<<9)
2484 #define VLCD_3_08 (9<<9)
2485 #define VLCD_3_14 (10<<9)
2486 #define VLCD_3_20 (11<<9)
2487 #define VLCD_3_26 (12<<9)
2488 #define VLCD_3_32 (13<<9)
2489 #define VLCD_3_38 (14<<9)
2490 #define VLCD_3_44 (15<<9)
2493 #define LCDS0 (0x0001u)
2494 #define LCDS1 (0x0002u)
2495 #define LCDS2 (0x0004u)
2496 #define LCDS3 (0x0008u)
2497 #define LCDS4 (0x0010u)
2498 #define LCDS5 (0x0020u)
2499 #define LCDS6 (0x0040u)
2500 #define LCDS7 (0x0080u)
2501 #define LCDS8 (0x0100u)
2502 #define LCDS9 (0x0200u)
2503 #define LCDS10 (0x0400u)
2504 #define LCDS11 (0x0800u)
2505 #define LCDS12 (0x1000u)
2506 #define LCDS13 (0x2000u)
2507 #define LCDS14 (0x4000u)
2508 #define LCDS15 (0x8000u)
2511 #define LCDS0_L (0x0001u)
2512 #define LCDS1_L (0x0002u)
2513 #define LCDS2_L (0x0004u)
2514 #define LCDS3_L (0x0008u)
2515 #define LCDS4_L (0x0010u)
2516 #define LCDS5_L (0x0020u)
2517 #define LCDS6_L (0x0040u)
2518 #define LCDS7_L (0x0080u)
2521 #define LCDS8_H (0x0001u)
2522 #define LCDS9_H (0x0002u)
2523 #define LCDS10_H (0x0004u)
2524 #define LCDS11_H (0x0008u)
2525 #define LCDS12_H (0x0010u)
2526 #define LCDS13_H (0x0020u)
2527 #define LCDS14_H (0x0040u)
2528 #define LCDS15_H (0x0080u)
2531 #define LCDS16 (0x0001u)
2532 #define LCDS17 (0x0002u)
2533 #define LCDS18 (0x0004u)
2534 #define LCDS19 (0x0008u)
2535 #define LCDS20 (0x0010u)
2536 #define LCDS21 (0x0020u)
2537 #define LCDS22 (0x0040u)
2538 #define LCDS23 (0x0080u)
2539 #define LCDS24 (0x0100u)
2540 #define LCDS25 (0x0200u)
2541 #define LCDS26 (0x0400u)
2542 #define LCDS27 (0x0800u)
2543 #define LCDS28 (0x1000u)
2544 #define LCDS29 (0x2000u)
2545 #define LCDS30 (0x4000u)
2546 #define LCDS31 (0x8000u)
2549 #define LCDS16_L (0x0001u)
2550 #define LCDS17_L (0x0002u)
2551 #define LCDS18_L (0x0004u)
2552 #define LCDS19_L (0x0008u)
2553 #define LCDS20_L (0x0010u)
2554 #define LCDS21_L (0x0020u)
2555 #define LCDS22_L (0x0040u)
2556 #define LCDS23_L (0x0080u)
2559 #define LCDS24_H (0x0001u)
2560 #define LCDS25_H (0x0002u)
2561 #define LCDS26_H (0x0004u)
2562 #define LCDS27_H (0x0008u)
2563 #define LCDS28_H (0x0010u)
2564 #define LCDS29_H (0x0020u)
2565 #define LCDS30_H (0x0040u)
2566 #define LCDS31_H (0x0080u)
2569 #define LCDS32 (0x0001u)
2570 #define LCDS33 (0x0002u)
2571 #define LCDS34 (0x0004u)
2572 #define LCDS35 (0x0008u)
2573 #define LCDS36 (0x0010u)
2574 #define LCDS37 (0x0020u)
2575 #define LCDS38 (0x0040u)
2576 #define LCDS39 (0x0080u)
2577 #define LCDS40 (0x0100u)
2578 #define LCDS41 (0x0200u)
2579 #define LCDS42 (0x0400u)
2580 #define LCDS43 (0x0800u)
2581 #define LCDS44 (0x1000u)
2582 #define LCDS45 (0x2000u)
2583 #define LCDS46 (0x4000u)
2584 #define LCDS47 (0x8000u)
2587 #define LCDS32_L (0x0001u)
2588 #define LCDS33_L (0x0002u)
2589 #define LCDS34_L (0x0004u)
2590 #define LCDS35_L (0x0008u)
2591 #define LCDS36_L (0x0010u)
2592 #define LCDS37_L (0x0020u)
2593 #define LCDS38_L (0x0040u)
2594 #define LCDS39_L (0x0080u)
2597 #define LCDS40_H (0x0001u)
2598 #define LCDS41_H (0x0002u)
2599 #define LCDS42_H (0x0004u)
2600 #define LCDS43_H (0x0008u)
2601 #define LCDS44_H (0x0010u)
2602 #define LCDS45_H (0x0020u)
2603 #define LCDS46_H (0x0040u)
2604 #define LCDS47_H (0x0080u)
2607 #define LCDS48 (0x0001u)
2608 #define LCDS49 (0x0002u)
2609 #define LCDS50 (0x0004u)
2612 #define LCDS48_L (0x0001u)
2613 #define LCDS49_L (0x0002u)
2614 #define LCDS50_L (0x0004u)
2617 #define LCDCPDIS0 (0x0001u)
2618 #define LCDCPDIS1 (0x0002u)
2619 #define LCDCPDIS2 (0x0004u)
2620 #define LCDCPDIS3 (0x0008u)
2621 #define LCDCPDIS4 (0x0010u)
2622 #define LCDCPDIS5 (0x0020u)
2623 #define LCDCPDIS6 (0x0040u)
2624 #define LCDCPDIS7 (0x0080u)
2625 #define LCDCPCLKSYNC (0x8000u)
2628 #define LCDCPDIS0_L (0x0001u)
2629 #define LCDCPDIS1_L (0x0002u)
2630 #define LCDCPDIS2_L (0x0004u)
2631 #define LCDCPDIS3_L (0x0008u)
2632 #define LCDCPDIS4_L (0x0010u)
2633 #define LCDCPDIS5_L (0x0020u)
2634 #define LCDCPDIS6_L (0x0040u)
2635 #define LCDCPDIS7_L (0x0080u)
2638 #define LCDCPCLKSYNC_H (0x0080u)
2640 #define OFS_LCDM1 (0x0020u)
2641 #define LCDMEM_ LCDM1
2642 #ifndef __IAR_SYSTEMS_ICC__
2643 #define LCDMEM LCDM1
2645 #define LCDMEM ((char*) &LCDM1)
2647 #define OFS_LCDM2 (0x0021u)
2648 #define OFS_LCDM3 (0x0022u)
2649 #define OFS_LCDM4 (0x0023u)
2650 #define OFS_LCDM5 (0x0024u)
2651 #define OFS_LCDM6 (0x0025u)
2652 #define OFS_LCDM7 (0x0026u)
2653 #define OFS_LCDM8 (0x0027u)
2654 #define OFS_LCDM9 (0x0028u)
2655 #define OFS_LCDM10 (0x0029u)
2656 #define OFS_LCDM11 (0x002Au)
2657 #define OFS_LCDM12 (0x002Bu)
2658 #define OFS_LCDM13 (0x002Cu)
2659 #define OFS_LCDM14 (0x002Du)
2660 #define OFS_LCDM15 (0x002Eu)
2661 #define OFS_LCDM16 (0x002Fu)
2662 #define OFS_LCDM17 (0x0030u)
2663 #define OFS_LCDM18 (0x0031u)
2664 #define OFS_LCDM19 (0x0032u)
2665 #define OFS_LCDM20 (0x0033u)
2666 #define OFS_LCDM21 (0x0034u)
2667 #define OFS_LCDM22 (0x0035u)
2668 #define OFS_LCDM23 (0x0036u)
2669 #define OFS_LCDM24 (0x0037u)
2671 #define OFS_LCDBM1 (0x0040u)
2672 #define LCDBMEM_ LCDBM1
2673 #ifndef __IAR_SYSTEMS_ICC__
2674 #define LCDBMEM (LCDBM1)
2676 #define LCDBMEM ((char*) &LCDBM1)
2678 #define OFS_LCDBM2 (0x0041u)
2679 #define OFS_LCDBM3 (0x0042u)
2680 #define OFS_LCDBM4 (0x0043u)
2681 #define OFS_LCDBM5 (0x0044u)
2682 #define OFS_LCDBM6 (0x0045u)
2683 #define OFS_LCDBM7 (0x0046u)
2684 #define OFS_LCDBM8 (0x0047u)
2685 #define OFS_LCDBM9 (0x0048u)
2686 #define OFS_LCDBM10 (0x0049u)
2687 #define OFS_LCDBM11 (0x004Au)
2688 #define OFS_LCDBM12 (0x004Bu)
2689 #define OFS_LCDBM13 (0x004Cu)
2690 #define OFS_LCDBM14 (0x004Du)
2691 #define OFS_LCDBM15 (0x004Eu)
2692 #define OFS_LCDBM16 (0x004Fu)
2693 #define OFS_LCDBM17 (0x0050u)
2694 #define OFS_LCDBM18 (0x0051u)
2695 #define OFS_LCDBM19 (0x0052u)
2696 #define OFS_LCDBM20 (0x0053u)
2697 #define OFS_LCDBM21 (0x0054u)
2698 #define OFS_LCDBM22 (0x0055u)
2699 #define OFS_LCDBM23 (0x0056u)
2700 #define OFS_LCDBM24 (0x0057u)
2703 #define LCDBIV_NONE (0x0000u)
2704 #define LCDBIV_LCDNOCAPIFG (0x0002u)
2705 #define LCDBIV_LCDBLKOFFIFG (0x0004u)
2706 #define LCDBIV_LCDBLKONIFG (0x0006u)
2707 #define LCDBIV_LCDFRMIFG (0x0008u)
2713 #ifdef __MSP430_HAS_MPY32__
2715 #define OFS_MPY (0x0000u)
2716 #define OFS_MPY_L OFS_MPY
2717 #define OFS_MPY_H OFS_MPY+1
2718 #define OFS_MPYS (0x0002u)
2719 #define OFS_MPYS_L OFS_MPYS
2720 #define OFS_MPYS_H OFS_MPYS+1
2721 #define OFS_MAC (0x0004u)
2722 #define OFS_MAC_L OFS_MAC
2723 #define OFS_MAC_H OFS_MAC+1
2724 #define OFS_MACS (0x0006u)
2725 #define OFS_MACS_L OFS_MACS
2726 #define OFS_MACS_H OFS_MACS+1
2727 #define OFS_OP2 (0x0008u)
2728 #define OFS_OP2_L OFS_OP2
2729 #define OFS_OP2_H OFS_OP2+1
2730 #define OFS_RESLO (0x000Au)
2731 #define OFS_RESLO_L OFS_RESLO
2732 #define OFS_RESLO_H OFS_RESLO+1
2733 #define OFS_RESHI (0x000Cu)
2734 #define OFS_RESHI_L OFS_RESHI
2735 #define OFS_RESHI_H OFS_RESHI+1
2736 #define OFS_SUMEXT (0x000Eu)
2737 #define OFS_SUMEXT_L OFS_SUMEXT
2738 #define OFS_SUMEXT_H OFS_SUMEXT+1
2739 #define OFS_MPY32CTL0 (0x002Cu)
2740 #define OFS_MPY32CTL0_L OFS_MPY32CTL0
2741 #define OFS_MPY32CTL0_H OFS_MPY32CTL0+1
2743 #define OFS_MPY32L (0x0010u)
2744 #define OFS_MPY32L_L OFS_MPY32L
2745 #define OFS_MPY32L_H OFS_MPY32L+1
2746 #define OFS_MPY32H (0x0012u)
2747 #define OFS_MPY32H_L OFS_MPY32H
2748 #define OFS_MPY32H_H OFS_MPY32H+1
2749 #define OFS_MPYS32L (0x0014u)
2750 #define OFS_MPYS32L_L OFS_MPYS32L
2751 #define OFS_MPYS32L_H OFS_MPYS32L+1
2752 #define OFS_MPYS32H (0x0016u)
2753 #define OFS_MPYS32H_L OFS_MPYS32H
2754 #define OFS_MPYS32H_H OFS_MPYS32H+1
2755 #define OFS_MAC32L (0x0018u)
2756 #define OFS_MAC32L_L OFS_MAC32L
2757 #define OFS_MAC32L_H OFS_MAC32L+1
2758 #define OFS_MAC32H (0x001Au)
2759 #define OFS_MAC32H_L OFS_MAC32H
2760 #define OFS_MAC32H_H OFS_MAC32H+1
2761 #define OFS_MACS32L (0x001Cu)
2762 #define OFS_MACS32L_L OFS_MACS32L
2763 #define OFS_MACS32L_H OFS_MACS32L+1
2764 #define OFS_MACS32H (0x001Eu)
2765 #define OFS_MACS32H_L OFS_MACS32H
2766 #define OFS_MACS32H_H OFS_MACS32H+1
2767 #define OFS_OP2L (0x0020u)
2768 #define OFS_OP2L_L OFS_OP2L
2769 #define OFS_OP2L_H OFS_OP2L+1
2770 #define OFS_OP2H (0x0022u)
2771 #define OFS_OP2H_L OFS_OP2H
2772 #define OFS_OP2H_H OFS_OP2H+1
2773 #define OFS_RES0 (0x0024u)
2774 #define OFS_RES0_L OFS_RES0
2775 #define OFS_RES0_H OFS_RES0+1
2776 #define OFS_RES1 (0x0026u)
2777 #define OFS_RES1_L OFS_RES1
2778 #define OFS_RES1_H OFS_RES1+1
2779 #define OFS_RES2 (0x0028u)
2780 #define OFS_RES2_L OFS_RES2
2781 #define OFS_RES2_H OFS_RES2+1
2782 #define OFS_RES3 (0x002Au)
2783 #define OFS_RES3_L OFS_RES3
2784 #define OFS_RES3_H OFS_RES3+1
2785 #define OFS_SUMEXT (0x000Eu)
2786 #define OFS_SUMEXT_L OFS_SUMEXT
2787 #define OFS_SUMEXT_H OFS_SUMEXT+1
2788 #define OFS_MPY32CTL0 (0x002Cu)
2789 #define OFS_MPY32CTL0_L OFS_MPY32CTL0
2790 #define OFS_MPY32CTL0_H OFS_MPY32CTL0+1
2793 #define MPYS_B MPYS_L
2795 #define MACS_B MACS_L
2797 #define MPY32L_B MPY32L_L
2798 #define MPY32H_B MPY32H_L
2799 #define MPYS32L_B MPYS32L_L
2800 #define MPYS32H_B MPYS32H_L
2801 #define MAC32L_B MAC32L_L
2802 #define MAC32H_B MAC32H_L
2803 #define MACS32L_B MACS32L_L
2804 #define MACS32H_B MACS32H_L
2805 #define OP2L_B OP2L_L
2806 #define OP2H_B OP2H_L
2809 #define MPYC (0x0001u)
2811 #define MPYFRAC (0x0004u)
2812 #define MPYSAT (0x0008u)
2813 #define MPYM0 (0x0010u)
2814 #define MPYM1 (0x0020u)
2815 #define OP1_32 (0x0040u)
2816 #define OP2_32 (0x0080u)
2817 #define MPYDLYWRTEN (0x0100u)
2818 #define MPYDLY32 (0x0200u)
2821 #define MPYC_L (0x0001u)
2823 #define MPYFRAC_L (0x0004u)
2824 #define MPYSAT_L (0x0008u)
2825 #define MPYM0_L (0x0010u)
2826 #define MPYM1_L (0x0020u)
2827 #define OP1_32_L (0x0040u)
2828 #define OP2_32_L (0x0080u)
2832 #define MPYDLYWRTEN_H (0x0001u)
2833 #define MPYDLY32_H (0x0002u)
2835 #define MPYM_0 (0x0000u)
2836 #define MPYM_1 (0x0010u)
2837 #define MPYM_2 (0x0020u)
2838 #define MPYM_3 (0x0030u)
2839 #define MPYM__MPY (0x0000u)
2840 #define MPYM__MPYS (0x0010u)
2841 #define MPYM__MAC (0x0020u)
2842 #define MPYM__MACS (0x0030u)
2848 #ifdef __MSP430_HAS_PORT1_R__
2849 #ifdef __MSP430_HAS_PORT2_R__
2850 #ifdef __MSP430_HAS_PORTA_R__
2852 #define OFS_PAIN (0x0000u)
2853 #define OFS_PAIN_L OFS_PAIN
2854 #define OFS_PAIN_H OFS_PAIN+1
2855 #define OFS_PAOUT (0x0002u)
2856 #define OFS_PAOUT_L OFS_PAOUT
2857 #define OFS_PAOUT_H OFS_PAOUT+1
2858 #define OFS_PADIR (0x0004u)
2859 #define OFS_PADIR_L OFS_PADIR
2860 #define OFS_PADIR_H OFS_PADIR+1
2861 #define OFS_PAREN (0x0006u)
2862 #define OFS_PAREN_L OFS_PAREN
2863 #define OFS_PAREN_H OFS_PAREN+1
2864 #define OFS_PADS (0x0008u)
2865 #define OFS_PADS_L OFS_PADS
2866 #define OFS_PADS_H OFS_PADS+1
2867 #define OFS_PASEL (0x000Au)
2868 #define OFS_PASEL_L OFS_PASEL
2869 #define OFS_PASEL_H OFS_PASEL+1
2870 #define OFS_PAIES (0x0018u)
2871 #define OFS_PAIES_L OFS_PAIES
2872 #define OFS_PAIES_H OFS_PAIES+1
2873 #define OFS_PAIE (0x001Au)
2874 #define OFS_PAIE_L OFS_PAIE
2875 #define OFS_PAIE_H OFS_PAIE+1
2876 #define OFS_PAIFG (0x001Cu)
2877 #define OFS_PAIFG_L OFS_PAIFG
2878 #define OFS_PAIFG_H OFS_PAIFG+1
2881 #define OFS_P1IN (0x0000u)
2882 #define OFS_P1OUT (0x0002u)
2883 #define OFS_P1DIR (0x0004u)
2884 #define OFS_P1REN (0x0006u)
2885 #define OFS_P1DS (0x0008u)
2886 #define OFS_P1SEL (0x000Au)
2887 #define OFS_P1IV (0x000Eu)
2888 #define OFS_P1IES (0x0018u)
2889 #define OFS_P1IE (0x001Au)
2890 #define OFS_P1IFG (0x001Cu)
2891 #define OFS_P2IN (0x0001u)
2892 #define OFS_P2OUT (0x0003u)
2893 #define OFS_P2DIR (0x0005u)
2894 #define OFS_P2REN (0x0007u)
2895 #define OFS_P2DS (0x0009u)
2896 #define OFS_P2SEL (0x000Bu)
2897 #define OFS_P2IV (0x001Eu)
2898 #define OFS_P2IES (0x0019u)
2899 #define OFS_P2IE (0x001Bu)
2900 #define OFS_P2IFG (0x001du)
2901 #define P1IN (PAIN_L)
2902 #define P1OUT (PAOUT_L)
2903 #define P1DIR (PADIR_L)
2904 #define P1REN (PAREN_L)
2905 #define P1DS (PADS_L)
2906 #define P1SEL (PASEL_L)
2907 #define P1IES (PAIES_L)
2908 #define P1IE (PAIE_L)
2909 #define P1IFG (PAIFG_L)
2912 #define P1IV_NONE (0x0000u)
2913 #define P1IV_P1IFG0 (0x0002u)
2914 #define P1IV_P1IFG1 (0x0004u)
2915 #define P1IV_P1IFG2 (0x0006u)
2916 #define P1IV_P1IFG3 (0x0008u)
2917 #define P1IV_P1IFG4 (0x000Au)
2918 #define P1IV_P1IFG5 (0x000Cu)
2919 #define P1IV_P1IFG6 (0x000Eu)
2920 #define P1IV_P1IFG7 (0x0010u)
2922 #define P2IN (PAIN_H)
2923 #define P2OUT (PAOUT_H)
2924 #define P2DIR (PADIR_H)
2925 #define P2REN (PAREN_H)
2926 #define P2DS (PADS_H)
2927 #define P2SEL (PASEL_H)
2928 #define P2IES (PAIES_H)
2929 #define P2IE (PAIE_H)
2930 #define P2IFG (PAIFG_H)
2933 #define P2IV_NONE (0x0000u)
2934 #define P2IV_P2IFG0 (0x0002u)
2935 #define P2IV_P2IFG1 (0x0004u)
2936 #define P2IV_P2IFG2 (0x0006u)
2937 #define P2IV_P2IFG3 (0x0008u)
2938 #define P2IV_P2IFG4 (0x000Au)
2939 #define P2IV_P2IFG5 (0x000Cu)
2940 #define P2IV_P2IFG6 (0x000Eu)
2941 #define P2IV_P2IFG7 (0x0010u)
2950 #ifdef __MSP430_HAS_PORT3_R__
2951 #ifdef __MSP430_HAS_PORT4_R__
2952 #ifdef __MSP430_HAS_PORTB_R__
2954 #define OFS_PBIN (0x0000u)
2955 #define OFS_PBIN_L OFS_PBIN
2956 #define OFS_PBIN_H OFS_PBIN+1
2957 #define OFS_PBOUT (0x0002u)
2958 #define OFS_PBOUT_L OFS_PBOUT
2959 #define OFS_PBOUT_H OFS_PBOUT+1
2960 #define OFS_PBDIR (0x0004u)
2961 #define OFS_PBDIR_L OFS_PBDIR
2962 #define OFS_PBDIR_H OFS_PBDIR+1
2963 #define OFS_PBREN (0x0006u)
2964 #define OFS_PBREN_L OFS_PBREN
2965 #define OFS_PBREN_H OFS_PBREN+1
2966 #define OFS_PBDS (0x0008u)
2967 #define OFS_PBDS_L OFS_PBDS
2968 #define OFS_PBDS_H OFS_PBDS+1
2969 #define OFS_PBSEL (0x000Au)
2970 #define OFS_PBSEL_L OFS_PBSEL
2971 #define OFS_PBSEL_H OFS_PBSEL+1
2972 #define OFS_PBIES (0x0018u)
2973 #define OFS_PBIES_L OFS_PBIES
2974 #define OFS_PBIES_H OFS_PBIES+1
2975 #define OFS_PBIE (0x001Au)
2976 #define OFS_PBIE_L OFS_PBIE
2977 #define OFS_PBIE_H OFS_PBIE+1
2978 #define OFS_PBIFG (0x001Cu)
2979 #define OFS_PBIFG_L OFS_PBIFG
2980 #define OFS_PBIFG_H OFS_PBIFG+1
2983 #define OFS_P3IN (0x0000u)
2984 #define OFS_P3OUT (0x0002u)
2985 #define OFS_P3DIR (0x0004u)
2986 #define OFS_P3REN (0x0006u)
2987 #define OFS_P3DS (0x0008u)
2988 #define OFS_P3SEL (0x000Au)
2989 #define OFS_P3IV (0x000Eu)
2990 #define OFS_P3IES (0x0018u)
2991 #define OFS_P3IE (0x001Au)
2992 #define OFS_P3IFG (0x001Cu)
2993 #define OFS_P4IN (0x0001u)
2994 #define OFS_P4OUT (0x0003u)
2995 #define OFS_P4DIR (0x0005u)
2996 #define OFS_P4REN (0x0007u)
2997 #define OFS_P4DS (0x0009u)
2998 #define OFS_P4SEL (0x000Bu)
2999 #define OFS_P4IV (0x001Eu)
3000 #define OFS_P4IES (0x0019u)
3001 #define OFS_P4IE (0x001Bu)
3002 #define OFS_P4IFG (0x001du)
3003 #define P3IN (PBIN_L)
3004 #define P3OUT (PBOUT_L)
3005 #define P3DIR (PBDIR_L)
3006 #define P3REN (PBREN_L)
3007 #define P3DS (PBDS_L)
3008 #define P3SEL (PBSEL_L)
3009 #define P3IES (PBIES_L)
3010 #define P3IE (PBIE_L)
3011 #define P3IFG (PBIFG_L)
3014 #define P3IV_NONE (0x0000u)
3015 #define P3IV_P3IFG0 (0x0002u)
3016 #define P3IV_P3IFG1 (0x0004u)
3017 #define P3IV_P3IFG2 (0x0006u)
3018 #define P3IV_P3IFG3 (0x0008u)
3019 #define P3IV_P3IFG4 (0x000Au)
3020 #define P3IV_P3IFG5 (0x000Cu)
3021 #define P3IV_P3IFG6 (0x000Eu)
3022 #define P3IV_P3IFG7 (0x0010u)
3024 #define P4IN (PBIN_H)
3025 #define P4OUT (PBOUT_H)
3026 #define P4DIR (PBDIR_H)
3027 #define P4REN (PBREN_H)
3028 #define P4DS (PBDS_H)
3029 #define P4SEL (PBSEL_H)
3030 #define P4IES (PBIES_H)
3031 #define P4IE (PBIE_H)
3032 #define P4IFG (PBIFG_H)
3035 #define P4IV_NONE (0x0000u)
3036 #define P4IV_P4IFG0 (0x0002u)
3037 #define P4IV_P4IFG1 (0x0004u)
3038 #define P4IV_P4IFG2 (0x0006u)
3039 #define P4IV_P4IFG3 (0x0008u)
3040 #define P4IV_P4IFG4 (0x000Au)
3041 #define P4IV_P4IFG5 (0x000Cu)
3042 #define P4IV_P4IFG6 (0x000Eu)
3043 #define P4IV_P4IFG7 (0x0010u)
3052 #ifdef __MSP430_HAS_PORT5_R__
3053 #ifdef __MSP430_HAS_PORT6_R__
3054 #ifdef __MSP430_HAS_PORTC_R__
3056 #define OFS_PCIN (0x0000u)
3057 #define OFS_PCIN_L OFS_PCIN
3058 #define OFS_PCIN_H OFS_PCIN+1
3059 #define OFS_PCOUT (0x0002u)
3060 #define OFS_PCOUT_L OFS_PCOUT
3061 #define OFS_PCOUT_H OFS_PCOUT+1
3062 #define OFS_PCDIR (0x0004u)
3063 #define OFS_PCDIR_L OFS_PCDIR
3064 #define OFS_PCDIR_H OFS_PCDIR+1
3065 #define OFS_PCREN (0x0006u)
3066 #define OFS_PCREN_L OFS_PCREN
3067 #define OFS_PCREN_H OFS_PCREN+1
3068 #define OFS_PCDS (0x0008u)
3069 #define OFS_PCDS_L OFS_PCDS
3070 #define OFS_PCDS_H OFS_PCDS+1
3071 #define OFS_PCSEL (0x000Au)
3072 #define OFS_PCSEL_L OFS_PCSEL
3073 #define OFS_PCSEL_H OFS_PCSEL+1
3074 #define OFS_PCIES (0x0018u)
3075 #define OFS_PCIES_L OFS_PCIES
3076 #define OFS_PCIES_H OFS_PCIES+1
3077 #define OFS_PCIE (0x001Au)
3078 #define OFS_PCIE_L OFS_PCIE
3079 #define OFS_PCIE_H OFS_PCIE+1
3080 #define OFS_PCIFG (0x001Cu)
3081 #define OFS_PCIFG_L OFS_PCIFG
3082 #define OFS_PCIFG_H OFS_PCIFG+1
3085 #define OFS_P5IN (0x0000u)
3086 #define OFS_P5OUT (0x0002u)
3087 #define OFS_P5DIR (0x0004u)
3088 #define OFS_P5REN (0x0006u)
3089 #define OFS_P5DS (0x0008u)
3090 #define OFS_P5SEL (0x000Au)
3091 #define OFS_P5IV (0x000Eu)
3092 #define OFS_P5IES (0x0018u)
3093 #define OFS_P5IE (0x001Au)
3094 #define OFS_P5IFG (0x001Cu)
3095 #define OFS_P6IN (0x0001u)
3096 #define OFS_P6OUT (0x0003u)
3097 #define OFS_P6DIR (0x0005u)
3098 #define OFS_P6REN (0x0007u)
3099 #define OFS_P6DS (0x0009u)
3100 #define OFS_P6SEL (0x000Bu)
3101 #define OFS_P6IV (0x001Eu)
3102 #define OFS_P6IES (0x0019u)
3103 #define OFS_P6IE (0x001Bu)
3104 #define OFS_P6IFG (0x001du)
3105 #define P5IN (PCIN_L)
3106 #define P5OUT (PCOUT_L)
3107 #define P5DIR (PCDIR_L)
3108 #define P5REN (PCREN_L)
3109 #define P5DS (PCDS_L)
3110 #define P5SEL (PCSEL_L)
3111 #define P5IES (PCIES_L)
3112 #define P5IE (PCIE_L)
3113 #define P5IFG (PCIFG_L)
3116 #define P5IV_NONE (0x0000u)
3117 #define P5IV_P5IFG0 (0x0002u)
3118 #define P5IV_P5IFG1 (0x0004u)
3119 #define P5IV_P5IFG2 (0x0006u)
3120 #define P5IV_P5IFG3 (0x0008u)
3121 #define P5IV_P5IFG4 (0x000Au)
3122 #define P5IV_P5IFG5 (0x000Cu)
3123 #define P5IV_P5IFG6 (0x000Eu)
3124 #define P5IV_P5IFG7 (0x0010u)
3126 #define P6IN (PCIN_H)
3127 #define P6OUT (PCOUT_H)
3128 #define P6DIR (PCDIR_H)
3129 #define P6REN (PCREN_H)
3130 #define P6DS (PCDS_H)
3131 #define P6SEL (PCSEL_H)
3132 #define P6IES (PCIES_H)
3133 #define P6IE (PCIE_H)
3134 #define P6IFG (PCIFG_H)
3137 #define P6IV_NONE (0x0000u)
3138 #define P6IV_P6IFG0 (0x0002u)
3139 #define P6IV_P6IFG1 (0x0004u)
3140 #define P6IV_P6IFG2 (0x0006u)
3141 #define P6IV_P6IFG3 (0x0008u)
3142 #define P6IV_P6IFG4 (0x000Au)
3143 #define P6IV_P6IFG5 (0x000Cu)
3144 #define P6IV_P6IFG6 (0x000Eu)
3145 #define P6IV_P6IFG7 (0x0010u)
3154 #ifdef __MSP430_HAS_PORT7_R__
3155 #ifdef __MSP430_HAS_PORT8_R__
3156 #ifdef __MSP430_HAS_PORTD_R__
3158 #define OFS_PDIN (0x0000u)
3159 #define OFS_PDIN_L OFS_PDIN
3160 #define OFS_PDIN_H OFS_PDIN+1
3161 #define OFS_PDOUT (0x0002u)
3162 #define OFS_PDOUT_L OFS_PDOUT
3163 #define OFS_PDOUT_H OFS_PDOUT+1
3164 #define OFS_PDDIR (0x0004u)
3165 #define OFS_PDDIR_L OFS_PDDIR
3166 #define OFS_PDDIR_H OFS_PDDIR+1
3167 #define OFS_PDREN (0x0006u)
3168 #define OFS_PDREN_L OFS_PDREN
3169 #define OFS_PDREN_H OFS_PDREN+1
3170 #define OFS_PDDS (0x0008u)
3171 #define OFS_PDDS_L OFS_PDDS
3172 #define OFS_PDDS_H OFS_PDDS+1
3173 #define OFS_PDSEL (0x000Au)
3174 #define OFS_PDSEL_L OFS_PDSEL
3175 #define OFS_PDSEL_H OFS_PDSEL+1
3176 #define OFS_PDIES (0x0018u)
3177 #define OFS_PDIES_L OFS_PDIES
3178 #define OFS_PDIES_H OFS_PDIES+1
3179 #define OFS_PDIE (0x001Au)
3180 #define OFS_PDIE_L OFS_PDIE
3181 #define OFS_PDIE_H OFS_PDIE+1
3182 #define OFS_PDIFG (0x001Cu)
3183 #define OFS_PDIFG_L OFS_PDIFG
3184 #define OFS_PDIFG_H OFS_PDIFG+1
3187 #define OFS_P7IN (0x0000u)
3188 #define OFS_P7OUT (0x0002u)
3189 #define OFS_P7DIR (0x0004u)
3190 #define OFS_P7REN (0x0006u)
3191 #define OFS_P7DS (0x0008u)
3192 #define OFS_P7SEL (0x000Au)
3193 #define OFS_P7IV (0x000Eu)
3194 #define OFS_P7IES (0x0018u)
3195 #define OFS_P7IE (0x001Au)
3196 #define OFS_P7IFG (0x001Cu)
3197 #define OFS_P8IN (0x0001u)
3198 #define OFS_P8OUT (0x0003u)
3199 #define OFS_P8DIR (0x0005u)
3200 #define OFS_P8REN (0x0007u)
3201 #define OFS_P8DS (0x0009u)
3202 #define OFS_P8SEL (0x000Bu)
3203 #define OFS_P8IV (0x001Eu)
3204 #define OFS_P8IES (0x0019u)
3205 #define OFS_P8IE (0x001Bu)
3206 #define OFS_P8IFG (0x001du)
3207 #define P7IN (PDIN_L)
3208 #define P7OUT (PDOUT_L)
3209 #define P7DIR (PDDIR_L)
3210 #define P7REN (PDREN_L)
3211 #define P7DS (PDDS_L)
3212 #define P7SEL (PDSEL_L)
3213 #define P7IES (PDIES_L)
3214 #define P7IE (PDIE_L)
3215 #define P7IFG (PDIFG_L)
3218 #define P7IV_NONE (0x0000u)
3219 #define P7IV_P7IFG0 (0x0002u)
3220 #define P7IV_P7IFG1 (0x0004u)
3221 #define P7IV_P7IFG2 (0x0006u)
3222 #define P7IV_P7IFG3 (0x0008u)
3223 #define P7IV_P7IFG4 (0x000Au)
3224 #define P7IV_P7IFG5 (0x000Cu)
3225 #define P7IV_P7IFG6 (0x000Eu)
3226 #define P7IV_P7IFG7 (0x0010u)
3228 #define P8IN (PDIN_H)
3229 #define P8OUT (PDOUT_H)
3230 #define P8DIR (PDDIR_H)
3231 #define P8REN (PDREN_H)
3232 #define P8DS (PDDS_H)
3233 #define P8SEL (PDSEL_H)
3234 #define P8IES (PDIES_H)
3235 #define P8IE (PDIE_H)
3236 #define P8IFG (PDIFG_H)
3239 #define P8IV_NONE (0x0000u)
3240 #define P8IV_P8IFG0 (0x0002u)
3241 #define P8IV_P8IFG1 (0x0004u)
3242 #define P8IV_P8IFG2 (0x0006u)
3243 #define P8IV_P8IFG3 (0x0008u)
3244 #define P8IV_P8IFG4 (0x000Au)
3245 #define P8IV_P8IFG5 (0x000Cu)
3246 #define P8IV_P8IFG6 (0x000Eu)
3247 #define P8IV_P8IFG7 (0x0010u)
3256 #ifdef __MSP430_HAS_PORT9_R__
3257 #ifdef __MSP430_HAS_PORT10_R__
3258 #ifdef __MSP430_HAS_PORTE_R__
3260 #define OFS_PEIN (0x0000u)
3261 #define OFS_PEIN_L OFS_PEIN
3262 #define OFS_PEIN_H OFS_PEIN+1
3263 #define OFS_PEOUT (0x0002u)
3264 #define OFS_PEOUT_L OFS_PEOUT
3265 #define OFS_PEOUT_H OFS_PEOUT+1
3266 #define OFS_PEDIR (0x0004u)
3267 #define OFS_PEDIR_L OFS_PEDIR
3268 #define OFS_PEDIR_H OFS_PEDIR+1
3269 #define OFS_PEREN (0x0006u)
3270 #define OFS_PEREN_L OFS_PEREN
3271 #define OFS_PEREN_H OFS_PEREN+1
3272 #define OFS_PEDS (0x0008u)
3273 #define OFS_PEDS_L OFS_PEDS
3274 #define OFS_PEDS_H OFS_PEDS+1
3275 #define OFS_PESEL (0x000Au)
3276 #define OFS_PESEL_L OFS_PESEL
3277 #define OFS_PESEL_H OFS_PESEL+1
3278 #define OFS_PEIES (0x0018u)
3279 #define OFS_PEIES_L OFS_PEIES
3280 #define OFS_PEIES_H OFS_PEIES+1
3281 #define OFS_PEIE (0x001Au)
3282 #define OFS_PEIE_L OFS_PEIE
3283 #define OFS_PEIE_H OFS_PEIE+1
3284 #define OFS_PEIFG (0x001Cu)
3285 #define OFS_PEIFG_L OFS_PEIFG
3286 #define OFS_PEIFG_H OFS_PEIFG+1
3289 #define OFS_P9IN (0x0000u)
3290 #define OFS_P9OUT (0x0002u)
3291 #define OFS_P9DIR (0x0004u)
3292 #define OFS_P9REN (0x0006u)
3293 #define OFS_P9DS (0x0008u)
3294 #define OFS_P9SEL (0x000Au)
3295 #define OFS_P9IV (0x000Eu)
3296 #define OFS_P9IES (0x0018u)
3297 #define OFS_P9IE (0x001Au)
3298 #define OFS_P9IFG (0x001Cu)
3299 #define OFS_P10IN (0x0001u)
3300 #define OFS_P10OUT (0x0003u)
3301 #define OFS_P10DIR (0x0005u)
3302 #define OFS_P10REN (0x0007u)
3303 #define OFS_P10DS (0x0009u)
3304 #define OFS_P10SEL (0x000Bu)
3305 #define OFS_P10IV (0x001Eu)
3306 #define OFS_P10IES (0x0019u)
3307 #define OFS_P10IE (0x001Bu)
3308 #define OFS_P10IFG (0x001du)
3309 #define P9IN (PEIN_L)
3310 #define P9OUT (PEOUT_L)
3311 #define P9DIR (PEDIR_L)
3312 #define P9REN (PEREN_L)
3313 #define P9DS (PEDS_L)
3314 #define P9SEL (PESEL_L)
3315 #define P9IES (PEIES_L)
3316 #define P9IE (PEIE_L)
3317 #define P9IFG (PEIFG_L)
3320 #define P9IV_NONE (0x0000u)
3321 #define P9IV_P9IFG0 (0x0002u)
3322 #define P9IV_P9IFG1 (0x0004u)
3323 #define P9IV_P9IFG2 (0x0006u)
3324 #define P9IV_P9IFG3 (0x0008u)
3325 #define P9IV_P9IFG4 (0x000Au)
3326 #define P9IV_P9IFG5 (0x000Cu)
3327 #define P9IV_P9IFG6 (0x000Eu)
3328 #define P9IV_P9IFG7 (0x0010u)
3330 #define P10IN (PEIN_H)
3331 #define P10OUT (PEOUT_H)
3332 #define P10DIR (PEDIR_H)
3333 #define P10REN (PEREN_H)
3334 #define P10DS (PEDS_H)
3335 #define P10SEL (PESEL_H)
3336 #define P10IES (PEIES_H)
3337 #define P10IE (PEIE_H)
3338 #define P10IFG (PEIFG_H)
3341 #define P10IV_NONE (0x0000u)
3342 #define P10IV_P10IFG0 (0x0002u)
3343 #define P10IV_P10IFG1 (0x0004u)
3344 #define P10IV_P10IFG2 (0x0006u)
3345 #define P10IV_P10IFG3 (0x0008u)
3346 #define P10IV_P10IFG4 (0x000Au)
3347 #define P10IV_P10IFG5 (0x000Cu)
3348 #define P10IV_P10IFG6 (0x000Eu)
3349 #define P10IV_P10IFG7 (0x0010u)
3358 #ifdef __MSP430_HAS_PORT11_R__
3359 #ifdef __MSP430_HAS_PORTF_R__
3361 #define OFS_PFIN (0x0000u)
3362 #define OFS_PFIN_L OFS_PFIN
3363 #define OFS_PFIN_H OFS_PFIN+1
3364 #define OFS_PFOUT (0x0002u)
3365 #define OFS_PFOUT_L OFS_PFOUT
3366 #define OFS_PFOUT_H OFS_PFOUT+1
3367 #define OFS_PFDIR (0x0004u)
3368 #define OFS_PFDIR_L OFS_PFDIR
3369 #define OFS_PFDIR_H OFS_PFDIR+1
3370 #define OFS_PFREN (0x0006u)
3371 #define OFS_PFREN_L OFS_PFREN
3372 #define OFS_PFREN_H OFS_PFREN+1
3373 #define OFS_PFDS (0x0008u)
3374 #define OFS_PFDS_L OFS_PFDS
3375 #define OFS_PFDS_H OFS_PFDS+1
3376 #define OFS_PFSEL (0x000Au)
3377 #define OFS_PFSEL_L OFS_PFSEL
3378 #define OFS_PFSEL_H OFS_PFSEL+1
3379 #define OFS_PFIES (0x0018u)
3380 #define OFS_PFIES_L OFS_PFIES
3381 #define OFS_PFIES_H OFS_PFIES+1
3382 #define OFS_PFIE (0x001Au)
3383 #define OFS_PFIE_L OFS_PFIE
3384 #define OFS_PFIE_H OFS_PFIE+1
3385 #define OFS_PFIFG (0x001Cu)
3386 #define OFS_PFIFG_L OFS_PFIFG
3387 #define OFS_PFIFG_H OFS_PFIFG+1
3390 #define OFS_P11IN (0x0000u)
3391 #define OFS_P11OUT (0x0002u)
3392 #define OFS_P11DIR (0x0004u)
3393 #define OFS_P11REN (0x0006u)
3394 #define OFS_P11DS (0x0008u)
3395 #define OFS_P11SEL (0x000Au)
3396 #define OFS_P11IV (0x000Eu)
3397 #define OFS_P11IES (0x0018u)
3398 #define OFS_P11IE (0x001Au)
3399 #define OFS_P11IFG (0x001Cu)
3400 #define P11IN (PFIN_L)
3401 #define P11OUT (PFOUT_L)
3402 #define P11DIR (PFDIR_L)
3403 #define P11REN (PFREN_L)
3404 #define P11DS (PFDS_L)
3405 #define P11SEL (PFSEL_L)
3407 #define P11IES (PFIES_L)
3408 #define P11IE (PFIE_L)
3409 #define P11IFG (PFIFG_L)
3412 #define P11IV_NONE (0x0000u)
3413 #define P11IV_P11IFG0 (0x0002u)
3414 #define P11IV_P11IFG1 (0x0004u)
3415 #define P11IV_P11IFG2 (0x0006u)
3416 #define P11IV_P11IFG3 (0x0008u)
3417 #define P11IV_P11IFG4 (0x000Au)
3418 #define P11IV_P11IFG5 (0x000Cu)
3419 #define P11IV_P11IFG6 (0x000Eu)
3420 #define P11IV_P11IFG7 (0x0010u)
3428 #ifdef __MSP430_HAS_PORTJ_R__
3430 #define OFS_PJIN (0x0000u)
3431 #define OFS_PJIN_L OFS_PJIN
3432 #define OFS_PJIN_H OFS_PJIN+1
3433 #define OFS_PJOUT (0x0002u)
3434 #define OFS_PJOUT_L OFS_PJOUT
3435 #define OFS_PJOUT_H OFS_PJOUT+1
3436 #define OFS_PJDIR (0x0004u)
3437 #define OFS_PJDIR_L OFS_PJDIR
3438 #define OFS_PJDIR_H OFS_PJDIR+1
3439 #define OFS_PJREN (0x0006u)
3440 #define OFS_PJREN_L OFS_PJREN
3441 #define OFS_PJREN_H OFS_PJREN+1
3442 #define OFS_PJDS (0x0008u)
3443 #define OFS_PJDS_L OFS_PJDS
3444 #define OFS_PJDS_H OFS_PJDS+1
3445 #define OFS_PJSEL (0x000Au)
3446 #define OFS_PJSEL_L OFS_PJSEL
3447 #define OFS_PJSEL_H OFS_PJSEL+1
3453 #ifdef __MSP430_HAS_PORT_MAPPING__
3455 #define OFS_PMAPKEYID (0x0000u)
3456 #define OFS_PMAPKEYID_L OFS_PMAPKEYID
3457 #define OFS_PMAPKEYID_H OFS_PMAPKEYID+1
3458 #define OFS_PMAPCTL (0x0002u)
3459 #define OFS_PMAPCTL_L OFS_PMAPCTL
3460 #define OFS_PMAPCTL_H OFS_PMAPCTL+1
3462 #define PMAPKEY (0x2D52u)
3463 #define PMAPPWD PMAPKEYID
3464 #define PMAPPW (0x2D52u)
3467 #define PMAPLOCKED (0x0001u)
3468 #define PMAPRECFG (0x0002u)
3471 #define PMAPLOCKED_L (0x0001u)
3472 #define PMAPRECFG_L (0x0002u)
3478 #ifdef __MSP430_HAS_PORT2_MAPPING__
3480 #define OFS_P2MAP01 (0x0000u)
3481 #define OFS_P2MAP01_L OFS_P2MAP01
3482 #define OFS_P2MAP01_H OFS_P2MAP01+1
3483 #define OFS_P2MAP23 (0x0002u)
3484 #define OFS_P2MAP23_L OFS_P2MAP23
3485 #define OFS_P2MAP23_H OFS_P2MAP23+1
3486 #define OFS_P2MAP45 (0x0004u)
3487 #define OFS_P2MAP45_L OFS_P2MAP45
3488 #define OFS_P2MAP45_H OFS_P2MAP45+1
3489 #define OFS_P2MAP67 (0x0006u)
3490 #define OFS_P2MAP67_L OFS_P2MAP67
3491 #define OFS_P2MAP67_H OFS_P2MAP67+1
3492 #define OFS_P2MAP0 (0x0000u)
3493 #define OFS_P2MAP1 (0x0001u)
3494 #define OFS_P2MAP2 (0x0002u)
3495 #define OFS_P2MAP3 (0x0003u)
3496 #define OFS_P2MAP4 (0x0004u)
3497 #define OFS_P2MAP5 (0x0005u)
3498 #define OFS_P2MAP6 (0x0006u)
3499 #define OFS_P2MAP7 (0x0007u)
3501 #define P2MAP0 P2MAP01_L
3502 #define P2MAP1 P2MAP01_H
3503 #define P2MAP2 P2MAP23_L
3504 #define P2MAP3 P2MAP23_H
3505 #define P2MAP4 P2MAP45_L
3506 #define P2MAP5 P2MAP45_H
3507 #define P2MAP6 P2MAP67_L
3508 #define P2MAP7 P2MAP67_H
3514 #ifdef __MSP430_HAS_PMM__
3516 #define OFS_PMMCTL0 (0x0000u)
3517 #define OFS_PMMCTL0_L OFS_PMMCTL0
3518 #define OFS_PMMCTL0_H OFS_PMMCTL0+1
3519 #define OFS_PMMCTL1 (0x0002u)
3520 #define OFS_PMMCTL1_L OFS_PMMCTL1
3521 #define OFS_PMMCTL1_H OFS_PMMCTL1+1
3522 #define OFS_SVSMHCTL (0x0004u)
3523 #define OFS_SVSMHCTL_L OFS_SVSMHCTL
3524 #define OFS_SVSMHCTL_H OFS_SVSMHCTL+1
3525 #define OFS_SVSMLCTL (0x0006u)
3526 #define OFS_SVSMLCTL_L OFS_SVSMLCTL
3527 #define OFS_SVSMLCTL_H OFS_SVSMLCTL+1
3528 #define OFS_SVSMIO (0x0008u)
3529 #define OFS_SVSMIO_L OFS_SVSMIO
3530 #define OFS_SVSMIO_H OFS_SVSMIO+1
3531 #define OFS_PMMIFG (0x000Cu)
3532 #define OFS_PMMIFG_L OFS_PMMIFG
3533 #define OFS_PMMIFG_H OFS_PMMIFG+1
3534 #define OFS_PMMRIE (0x000Eu)
3535 #define OFS_PMMRIE_L OFS_PMMRIE
3536 #define OFS_PMMRIE_H OFS_PMMRIE+1
3538 #define PMMPW (0xA500u)
3539 #define PMMPW_H (0xA5)
3542 #define PMMCOREV0 (0x0001u)
3543 #define PMMCOREV1 (0x0002u)
3544 #define PMMSWBOR (0x0004u)
3545 #define PMMSWPOR (0x0008u)
3546 #define PMMREGOFF (0x0010u)
3547 #define PMMHPMRE (0x0080u)
3550 #define PMMCOREV0_L (0x0001u)
3551 #define PMMCOREV1_L (0x0002u)
3552 #define PMMSWBOR_L (0x0004u)
3553 #define PMMSWPOR_L (0x0008u)
3554 #define PMMREGOFF_L (0x0010u)
3555 #define PMMHPMRE_L (0x0080u)
3557 #define PMMCOREV_0 (0x0000u)
3558 #define PMMCOREV_1 (0x0001u)
3559 #define PMMCOREV_2 (0x0002u)
3560 #define PMMCOREV_3 (0x0003u)
3563 #define PMMREFMD (0x0001u)
3564 #define PMMCMD0 (0x0010u)
3565 #define PMMCMD1 (0x0020u)
3568 #define PMMREFMD_L (0x0001u)
3569 #define PMMCMD0_L (0x0010u)
3570 #define PMMCMD1_L (0x0020u)
3573 #define SVSMHRRL0 (0x0001u)
3574 #define SVSMHRRL1 (0x0002u)
3575 #define SVSMHRRL2 (0x0004u)
3576 #define SVSMHDLYST (0x0008u)
3577 #define SVSHMD (0x0010u)
3578 #define SVSMHEVM (0x0040u)
3579 #define SVSMHACE (0x0080u)
3580 #define SVSHRVL0 (0x0100u)
3581 #define SVSHRVL1 (0x0200u)
3582 #define SVSHE (0x0400u)
3583 #define SVSHFP (0x0800u)
3584 #define SVMHOVPE (0x1000u)
3585 #define SVMHE (0x4000u)
3586 #define SVMHFP (0x8000u)
3589 #define SVSMHRRL0_L (0x0001u)
3590 #define SVSMHRRL1_L (0x0002u)
3591 #define SVSMHRRL2_L (0x0004u)
3592 #define SVSMHDLYST_L (0x0008u)
3593 #define SVSHMD_L (0x0010u)
3594 #define SVSMHEVM_L (0x0040u)
3595 #define SVSMHACE_L (0x0080u)
3598 #define SVSHRVL0_H (0x0001u)
3599 #define SVSHRVL1_H (0x0002u)
3600 #define SVSHE_H (0x0004u)
3601 #define SVSHFP_H (0x0008u)
3602 #define SVMHOVPE_H (0x0010u)
3603 #define SVMHE_H (0x0040u)
3604 #define SVMHFP_H (0x0080u)
3606 #define SVSMHRRL_0 (0x0000u)
3607 #define SVSMHRRL_1 (0x0001u)
3608 #define SVSMHRRL_2 (0x0002u)
3609 #define SVSMHRRL_3 (0x0003u)
3610 #define SVSMHRRL_4 (0x0004u)
3611 #define SVSMHRRL_5 (0x0005u)
3612 #define SVSMHRRL_6 (0x0006u)
3613 #define SVSMHRRL_7 (0x0007u)
3615 #define SVSHRVL_0 (0x0000u)
3616 #define SVSHRVL_1 (0x0100u)
3617 #define SVSHRVL_2 (0x0200u)
3618 #define SVSHRVL_3 (0x0300u)
3621 #define SVSMLRRL0 (0x0001u)
3622 #define SVSMLRRL1 (0x0002u)
3623 #define SVSMLRRL2 (0x0004u)
3624 #define SVSMLDLYST (0x0008u)
3625 #define SVSLMD (0x0010u)
3626 #define SVSMLEVM (0x0040u)
3627 #define SVSMLACE (0x0080u)
3628 #define SVSLRVL0 (0x0100u)
3629 #define SVSLRVL1 (0x0200u)
3630 #define SVSLE (0x0400u)
3631 #define SVSLFP (0x0800u)
3632 #define SVMLOVPE (0x1000u)
3633 #define SVMLE (0x4000u)
3634 #define SVMLFP (0x8000u)
3637 #define SVSMLRRL0_L (0x0001u)
3638 #define SVSMLRRL1_L (0x0002u)
3639 #define SVSMLRRL2_L (0x0004u)
3640 #define SVSMLDLYST_L (0x0008u)
3641 #define SVSLMD_L (0x0010u)
3642 #define SVSMLEVM_L (0x0040u)
3643 #define SVSMLACE_L (0x0080u)
3646 #define SVSLRVL0_H (0x0001u)
3647 #define SVSLRVL1_H (0x0002u)
3648 #define SVSLE_H (0x0004u)
3649 #define SVSLFP_H (0x0008u)
3650 #define SVMLOVPE_H (0x0010u)
3651 #define SVMLE_H (0x0040u)
3652 #define SVMLFP_H (0x0080u)
3654 #define SVSMLRRL_0 (0x0000u)
3655 #define SVSMLRRL_1 (0x0001u)
3656 #define SVSMLRRL_2 (0x0002u)
3657 #define SVSMLRRL_3 (0x0003u)
3658 #define SVSMLRRL_4 (0x0004u)
3659 #define SVSMLRRL_5 (0x0005u)
3660 #define SVSMLRRL_6 (0x0006u)
3661 #define SVSMLRRL_7 (0x0007u)
3663 #define SVSLRVL_0 (0x0000u)
3664 #define SVSLRVL_1 (0x0100u)
3665 #define SVSLRVL_2 (0x0200u)
3666 #define SVSLRVL_3 (0x0300u)
3669 #define SVMLOE (0x0008u)
3670 #define SVMLVLROE (0x0010u)
3671 #define SVMOUTPOL (0x0020u)
3672 #define SVMHOE (0x0800u)
3673 #define SVMHVLROE (0x1000u)
3676 #define SVMLOE_L (0x0008u)
3677 #define SVMLVLROE_L (0x0010u)
3678 #define SVMOUTPOL_L (0x0020u)
3681 #define SVMHOE_H (0x0008u)
3682 #define SVMHVLROE_H (0x0010u)
3685 #define SVSMLDLYIFG (0x0001u)
3686 #define SVMLIFG (0x0002u)
3687 #define SVMLVLRIFG (0x0004u)
3688 #define SVSMHDLYIFG (0x0010u)
3689 #define SVMHIFG (0x0020u)
3690 #define SVMHVLRIFG (0x0040u)
3691 #define PMMBORIFG (0x0100u)
3692 #define PMMRSTIFG (0x0200u)
3693 #define PMMPORIFG (0x0400u)
3694 #define SVSHIFG (0x1000u)
3695 #define SVSLIFG (0x2000u)
3696 #define PMMLPM5IFG (0x8000u)
3699 #define SVSMLDLYIFG_L (0x0001u)
3700 #define SVMLIFG_L (0x0002u)
3701 #define SVMLVLRIFG_L (0x0004u)
3702 #define SVSMHDLYIFG_L (0x0010u)
3703 #define SVMHIFG_L (0x0020u)
3704 #define SVMHVLRIFG_L (0x0040u)
3707 #define PMMBORIFG_H (0x0001u)
3708 #define PMMRSTIFG_H (0x0002u)
3709 #define PMMPORIFG_H (0x0004u)
3710 #define SVSHIFG_H (0x0010u)
3711 #define SVSLIFG_H (0x0020u)
3712 #define PMMLPM5IFG_H (0x0080u)
3714 #define PMMRSTLPM5IFG PMMLPM5IFG
3717 #define SVSMLDLYIE (0x0001u)
3718 #define SVMLIE (0x0002u)
3719 #define SVMLVLRIE (0x0004u)
3720 #define SVSMHDLYIE (0x0010u)
3721 #define SVMHIE (0x0020u)
3722 #define SVMHVLRIE (0x0040u)
3723 #define SVSLPE (0x0100u)
3724 #define SVMLVLRPE (0x0200u)
3725 #define SVSHPE (0x1000u)
3726 #define SVMHVLRPE (0x2000u)
3729 #define SVSMLDLYIE_L (0x0001u)
3730 #define SVMLIE_L (0x0002u)
3731 #define SVMLVLRIE_L (0x0004u)
3732 #define SVSMHDLYIE_L (0x0010u)
3733 #define SVMHIE_L (0x0020u)
3734 #define SVMHVLRIE_L (0x0040u)
3737 #define SVSLPE_H (0x0001u)
3738 #define SVMLVLRPE_H (0x0002u)
3739 #define SVSHPE_H (0x0010u)
3740 #define SVMHVLRPE_H (0x0020u)
3746 #ifdef __MSP430_HAS_PU__
3751 #define OFS_LDOKEYPID (0x0000u)
3752 #define OFS_LDOKEYPID_L OFS_LDOKEYPID
3753 #define OFS_LDOKEYPID_H OFS_LDOKEYPID+1
3754 #define OFS_PUCTL (0x0004u)
3755 #define OFS_PUCTL_L OFS_PUCTL
3756 #define OFS_PUCTL_H OFS_PUCTL+1
3757 #define OFS_LDOPWRCTL (0x0008u)
3758 #define OFS_LDOPWRCTL_L OFS_LDOPWRCTL
3759 #define OFS_LDOPWRCTL_H OFS_LDOPWRCTL+1
3761 #define LDOKEY (0x9628u)
3762 #define LDOKEYID LDOKEYPID
3765 #define PUOUT0 (0x0001u)
3766 #define PUOUT1 (0x0002u)
3767 #define PUIN0 (0x0004u)
3768 #define PUIN1 (0x0008u)
3769 #define PUOPE (0x0020u)
3770 #define PUIPE (0x0100u)
3773 #define PUOUT0_L (0x0001u)
3774 #define PUOUT1_L (0x0002u)
3775 #define PUIN0_L (0x0004u)
3776 #define PUIN1_L (0x0008u)
3777 #define PUOPE_L (0x0020u)
3780 #define PUIPE_H (0x0001u)
3782 #define PUDIR (0x0020u)
3783 #define PSEIEN (0x0100u)
3786 #define LDOOVLIFG (0x0001u)
3787 #define LDOONIFG (0x0002u)
3788 #define LDOOFFIFG (0x0004u)
3789 #define LDOBGVBV (0x0008u)
3790 #define OVLAOFF (0x0020u)
3791 #define LDOOVLIE (0x0100u)
3792 #define LDOONIE (0x0200u)
3793 #define LDOOFFIE (0x0400u)
3794 #define LDOEN (0x0800u)
3797 #define LDOOVLIFG_L (0x0001u)
3798 #define LDOONIFG_L (0x0002u)
3799 #define LDOOFFIFG_L (0x0004u)
3800 #define LDOBGVBV_L (0x0008u)
3801 #define OVLAOFF_L (0x0020u)
3804 #define LDOOVLIE_H (0x0001u)
3805 #define LDOONIE_H (0x0002u)
3806 #define LDOOFFIE_H (0x0004u)
3807 #define LDOEN_H (0x0008u)
3808 #define LDOOEN LDOEN
3810 #define VUOVLIFG (0x0001u)
3811 #define VBONIFG (0x0002u)
3812 #define VBOFFIFG (0x0004u)
3813 #define VUOVLIE (0x0100u)
3814 #define VBONIE (0x0200u)
3815 #define VBOFFIE (0x0400u)
3822 #ifdef __MSP430_HAS_RC__
3824 #define OFS_RCCTL0 (0x0000u)
3825 #define OFS_RCCTL0_L OFS_RCCTL0
3826 #define OFS_RCCTL0_H OFS_RCCTL0+1
3829 #define RCRS0OFF (0x0001u)
3830 #define RCRS1OFF (0x0002u)
3831 #define RCRS2OFF (0x0004u)
3832 #define RCRS3OFF (0x0008u)
3833 #define RCRS4OFF (0x0010u)
3834 #define RCRS5OFF (0x0020u)
3835 #define RCRS6OFF (0x0040u)
3836 #define RCRS7OFF (0x0080u)
3839 #define RCRS0OFF_L (0x0001u)
3840 #define RCRS1OFF_L (0x0002u)
3841 #define RCRS2OFF_L (0x0004u)
3842 #define RCRS3OFF_L (0x0008u)
3843 #define RCRS4OFF_L (0x0010u)
3844 #define RCRS5OFF_L (0x0020u)
3845 #define RCRS6OFF_L (0x0040u)
3846 #define RCRS7OFF_L (0x0080u)
3848 #define RCKEY (0x5A00u)
3854 #ifdef __MSP430_HAS_REF__
3856 #define OFS_REFCTL0 (0x0000u)
3857 #define OFS_REFCTL0_L OFS_REFCTL0
3858 #define OFS_REFCTL0_H OFS_REFCTL0+1
3861 #define REFON (0x0001u)
3862 #define REFOUT (0x0002u)
3864 #define REFTCOFF (0x0008u)
3865 #define REFVSEL0 (0x0010u)
3866 #define REFVSEL1 (0x0020u)
3868 #define REFMSTR (0x0080u)
3869 #define REFGENACT (0x0100u)
3870 #define REFBGACT (0x0200u)
3871 #define REFGENBUSY (0x0400u)
3872 #define BGMODE (0x0800u)
3879 #define REFON_L (0x0001u)
3880 #define REFOUT_L (0x0002u)
3882 #define REFTCOFF_L (0x0008u)
3883 #define REFVSEL0_L (0x0010u)
3884 #define REFVSEL1_L (0x0020u)
3886 #define REFMSTR_L (0x0080u)
3895 #define REFGENACT_H (0x0001u)
3896 #define REFBGACT_H (0x0002u)
3897 #define REFGENBUSY_H (0x0004u)
3898 #define BGMODE_H (0x0008u)
3904 #define REFVSEL_0 (0x0000u)
3905 #define REFVSEL_1 (0x0010u)
3906 #define REFVSEL_2 (0x0020u)
3907 #define REFVSEL_3 (0x0030u)
3913 #ifdef __MSP430_HAS_REF__
3915 #define OFS_REFCTL0 (0x0000u)
3916 #define OFS_REFCTL0_L OFS_REFCTL0
3917 #define OFS_REFCTL0_H OFS_REFCTL0+1
3920 #define REFON (0x0001u)
3923 #define REFTCOFF (0x0008u)
3924 #define REFVSEL0 (0x0010u)
3925 #define REFVSEL1 (0x0020u)
3928 #define REFGENACT (0x0100u)
3929 #define REFBGACT (0x0200u)
3930 #define REFGENBUSY (0x0400u)
3931 #define BGMODE (0x0800u)
3938 #define REFON_L (0x0001u)
3941 #define REFTCOFF_L (0x0008u)
3942 #define REFVSEL0_L (0x0010u)
3943 #define REFVSEL1_L (0x0020u)
3956 #define REFGENACT_H (0x0001u)
3957 #define REFBGACT_H (0x0002u)
3958 #define REFGENBUSY_H (0x0004u)
3959 #define BGMODE_H (0x0008u)
3965 #define REFVSEL_0 (0x0000u)
3966 #define REFVSEL_1 (0x0010u)
3967 #define REFVSEL_2 (0x0020u)
3968 #define REFVSEL_3 (0x0030u)
3974 #ifdef __MSP430_HAS_RTC__
3976 #define OFS_RTCCTL01 (0x0000u)
3977 #define OFS_RTCCTL01_L OFS_RTCCTL01
3978 #define OFS_RTCCTL01_H OFS_RTCCTL01+1
3979 #define OFS_RTCCTL23 (0x0002u)
3980 #define OFS_RTCCTL23_L OFS_RTCCTL23
3981 #define OFS_RTCCTL23_H OFS_RTCCTL23+1
3982 #define OFS_RTCPS0CTL (0x0008u)
3983 #define OFS_RTCPS0CTL_L OFS_RTCPS0CTL
3984 #define OFS_RTCPS0CTL_H OFS_RTCPS0CTL+1
3985 #define OFS_RTCPS1CTL (0x000Au)
3986 #define OFS_RTCPS1CTL_L OFS_RTCPS1CTL
3987 #define OFS_RTCPS1CTL_H OFS_RTCPS1CTL+1
3988 #define OFS_RTCPS (0x000Cu)
3989 #define OFS_RTCPS_L OFS_RTCPS
3990 #define OFS_RTCPS_H OFS_RTCPS+1
3991 #define OFS_RTCIV (0x000Eu)
3992 #define OFS_RTCTIM0 (0x0010u)
3993 #define OFS_RTCTIM0_L OFS_RTCTIM0
3994 #define OFS_RTCTIM0_H OFS_RTCTIM0+1
3995 #define OFS_RTCTIM1 (0x0012u)
3996 #define OFS_RTCTIM1_L OFS_RTCTIM1
3997 #define OFS_RTCTIM1_H OFS_RTCTIM1+1
3998 #define OFS_RTCDATE (0x0014u)
3999 #define OFS_RTCDATE_L OFS_RTCDATE
4000 #define OFS_RTCDATE_H OFS_RTCDATE+1
4001 #define OFS_RTCYEAR (0x0016u)
4002 #define OFS_RTCYEAR_L OFS_RTCYEAR
4003 #define OFS_RTCYEAR_H OFS_RTCYEAR+1
4004 #define OFS_RTCAMINHR (0x0018u)
4005 #define OFS_RTCAMINHR_L OFS_RTCAMINHR
4006 #define OFS_RTCAMINHR_H OFS_RTCAMINHR+1
4007 #define OFS_RTCADOWDAY (0x001Au)
4008 #define OFS_RTCADOWDAY_L OFS_RTCADOWDAY
4009 #define OFS_RTCADOWDAY_H OFS_RTCADOWDAY+1
4010 #define OFS_RTCSEC (0x0010u)
4011 #define OFS_RTCMIN (0x0011u)
4012 #define OFS_RTCHOUR (0x0012u)
4013 #define OFS_RTCDOW (0x0013u)
4014 #define OFS_RTCDAY (0x0014u)
4015 #define OFS_RTCMON (0x0015u)
4016 #define OFS_RTCAMIN (0x0018u)
4017 #define OFS_RTCAHOUR (0x0019u)
4018 #define OFS_RTCADOW (0x001Au)
4019 #define OFS_RTCADAY (0x001Bu)
4021 #define RTCCTL0 RTCCTL01_L
4022 #define RTCCTL1 RTCCTL01_H
4023 #define RTCCTL2 RTCCTL23_L
4024 #define RTCCTL3 RTCCTL23_H
4025 #define RTCNT12 RTCTIM0
4026 #define RTCNT34 RTCTIM1
4027 #define RTCNT1 RTCTIM0_L
4028 #define RTCNT2 RTCTIM0_H
4029 #define RTCNT3 RTCTIM1_L
4030 #define RTCNT4 RTCTIM1_H
4031 #define RTCSEC RTCTIM0_L
4032 #define RTCMIN RTCTIM0_H
4033 #define RTCHOUR RTCTIM1_L
4034 #define RTCDOW RTCTIM1_H
4035 #define RTCDAY RTCDATE_L
4036 #define RTCMON RTCDATE_H
4037 #define RTCYEARL RTCYEAR_L
4038 #define RTCYEARH RTCYEAR_H
4039 #define RT0PS RTCPS_L
4040 #define RT1PS RTCPS_H
4041 #define RTCAMIN RTCAMINHR_L
4042 #define RTCAHOUR RTCAMINHR_H
4043 #define RTCADOW RTCADOWDAY_L
4044 #define RTCADAY RTCADOWDAY_H
4047 #define RTCBCD (0x8000u)
4048 #define RTCHOLD (0x4000u)
4049 #define RTCMODE (0x2000u)
4050 #define RTCRDY (0x1000u)
4051 #define RTCSSEL1 (0x0800u)
4052 #define RTCSSEL0 (0x0400u)
4053 #define RTCTEV1 (0x0200u)
4054 #define RTCTEV0 (0x0100u)
4056 #define RTCTEVIE (0x0040u)
4057 #define RTCAIE (0x0020u)
4058 #define RTCRDYIE (0x0010u)
4060 #define RTCTEVIFG (0x0004u)
4061 #define RTCAIFG (0x0002u)
4062 #define RTCRDYIFG (0x0001u)
4066 #define RTCTEVIE_L (0x0040u)
4067 #define RTCAIE_L (0x0020u)
4068 #define RTCRDYIE_L (0x0010u)
4070 #define RTCTEVIFG_L (0x0004u)
4071 #define RTCAIFG_L (0x0002u)
4072 #define RTCRDYIFG_L (0x0001u)
4075 #define RTCBCD_H (0x0080u)
4076 #define RTCHOLD_H (0x0040u)
4077 #define RTCMODE_H (0x0020u)
4078 #define RTCRDY_H (0x0010u)
4079 #define RTCSSEL1_H (0x0008u)
4080 #define RTCSSEL0_H (0x0004u)
4081 #define RTCTEV1_H (0x0002u)
4082 #define RTCTEV0_H (0x0001u)
4086 #define RTCSSEL_0 (0x0000u)
4087 #define RTCSSEL_1 (0x0400u)
4088 #define RTCSSEL_2 (0x0800u)
4089 #define RTCSSEL_3 (0x0C00u)
4090 #define RTCSSEL__ACLK (0x0000u)
4091 #define RTCSSEL__SMCLK (0x0400u)
4092 #define RTCSSEL__RT1PS (0x0800u)
4093 #define RTCTEV_0 (0x0000u)
4094 #define RTCTEV_1 (0x0100u)
4095 #define RTCTEV_2 (0x0200u)
4096 #define RTCTEV_3 (0x0300u)
4097 #define RTCTEV__MIN (0x0000u)
4098 #define RTCTEV__HOUR (0x0100u)
4099 #define RTCTEV__0000 (0x0200u)
4100 #define RTCTEV__1200 (0x0300u)
4103 #define RTCCALF1 (0x0200u)
4104 #define RTCCALF0 (0x0100u)
4105 #define RTCCALS (0x0080u)
4107 #define RTCCAL5 (0x0020u)
4108 #define RTCCAL4 (0x0010u)
4109 #define RTCCAL3 (0x0008u)
4110 #define RTCCAL2 (0x0004u)
4111 #define RTCCAL1 (0x0002u)
4112 #define RTCCAL0 (0x0001u)
4115 #define RTCCALS_L (0x0080u)
4117 #define RTCCAL5_L (0x0020u)
4118 #define RTCCAL4_L (0x0010u)
4119 #define RTCCAL3_L (0x0008u)
4120 #define RTCCAL2_L (0x0004u)
4121 #define RTCCAL1_L (0x0002u)
4122 #define RTCCAL0_L (0x0001u)
4125 #define RTCCALF1_H (0x0002u)
4126 #define RTCCALF0_H (0x0001u)
4129 #define RTCCALF_0 (0x0000u)
4130 #define RTCCALF_1 (0x0100u)
4131 #define RTCCALF_2 (0x0200u)
4132 #define RTCCALF_3 (0x0300u)
4134 #define RTCAE (0x80)
4138 #define RT0SSEL (0x4000u)
4139 #define RT0PSDIV2 (0x2000u)
4140 #define RT0PSDIV1 (0x1000u)
4141 #define RT0PSDIV0 (0x0800u)
4144 #define RT0PSHOLD (0x0100u)
4148 #define RT0IP2 (0x0010u)
4149 #define RT0IP1 (0x0008u)
4150 #define RT0IP0 (0x0004u)
4151 #define RT0PSIE (0x0002u)
4152 #define RT0PSIFG (0x0001u)
4161 #define RT0IP2_L (0x0010u)
4162 #define RT0IP1_L (0x0008u)
4163 #define RT0IP0_L (0x0004u)
4164 #define RT0PSIE_L (0x0002u)
4165 #define RT0PSIFG_L (0x0001u)
4169 #define RT0SSEL_H (0x0040u)
4170 #define RT0PSDIV2_H (0x0020u)
4171 #define RT0PSDIV1_H (0x0010u)
4172 #define RT0PSDIV0_H (0x0008u)
4175 #define RT0PSHOLD_H (0x0001u)
4180 #define RT0IP_0 (0x0000u)
4181 #define RT0IP_1 (0x0004u)
4182 #define RT0IP_2 (0x0008u)
4183 #define RT0IP_3 (0x000Cu)
4184 #define RT0IP_4 (0x0010u)
4185 #define RT0IP_5 (0x0014u)
4186 #define RT0IP_6 (0x0018u)
4187 #define RT0IP_7 (0x001Cu)
4189 #define RT0PSDIV_0 (0x0000u)
4190 #define RT0PSDIV_1 (0x0800u)
4191 #define RT0PSDIV_2 (0x1000u)
4192 #define RT0PSDIV_3 (0x1800u)
4193 #define RT0PSDIV_4 (0x2000u)
4194 #define RT0PSDIV_5 (0x2800u)
4195 #define RT0PSDIV_6 (0x3000u)
4196 #define RT0PSDIV_7 (0x3800u)
4199 #define RT1SSEL1 (0x8000u)
4200 #define RT1SSEL0 (0x4000u)
4201 #define RT1PSDIV2 (0x2000u)
4202 #define RT1PSDIV1 (0x1000u)
4203 #define RT1PSDIV0 (0x0800u)
4206 #define RT1PSHOLD (0x0100u)
4210 #define RT1IP2 (0x0010u)
4211 #define RT1IP1 (0x0008u)
4212 #define RT1IP0 (0x0004u)
4213 #define RT1PSIE (0x0002u)
4214 #define RT1PSIFG (0x0001u)
4222 #define RT1IP2_L (0x0010u)
4223 #define RT1IP1_L (0x0008u)
4224 #define RT1IP0_L (0x0004u)
4225 #define RT1PSIE_L (0x0002u)
4226 #define RT1PSIFG_L (0x0001u)
4229 #define RT1SSEL1_H (0x0080u)
4230 #define RT1SSEL0_H (0x0040u)
4231 #define RT1PSDIV2_H (0x0020u)
4232 #define RT1PSDIV1_H (0x0010u)
4233 #define RT1PSDIV0_H (0x0008u)
4236 #define RT1PSHOLD_H (0x0001u)
4241 #define RT1IP_0 (0x0000u)
4242 #define RT1IP_1 (0x0004u)
4243 #define RT1IP_2 (0x0008u)
4244 #define RT1IP_3 (0x000Cu)
4245 #define RT1IP_4 (0x0010u)
4246 #define RT1IP_5 (0x0014u)
4247 #define RT1IP_6 (0x0018u)
4248 #define RT1IP_7 (0x001Cu)
4250 #define RT1PSDIV_0 (0x0000u)
4251 #define RT1PSDIV_1 (0x0800u)
4252 #define RT1PSDIV_2 (0x1000u)
4253 #define RT1PSDIV_3 (0x1800u)
4254 #define RT1PSDIV_4 (0x2000u)
4255 #define RT1PSDIV_5 (0x2800u)
4256 #define RT1PSDIV_6 (0x3000u)
4257 #define RT1PSDIV_7 (0x3800u)
4259 #define RT1SSEL_0 (0x0000u)
4260 #define RT1SSEL_1 (0x4000u)
4261 #define RT1SSEL_2 (0x8000u)
4262 #define RT1SSEL_3 (0xC000u)
4265 #define RTCIV_NONE (0x0000u)
4266 #define RTCIV_RTCRDYIFG (0x0002u)
4267 #define RTCIV_RTCTEVIFG (0x0004u)
4268 #define RTCIV_RTCAIFG (0x0006u)
4269 #define RTCIV_RT0PSIFG (0x0008u)
4270 #define RTCIV_RT1PSIFG (0x000Au)
4273 #define RTC_NONE (0x0000u)
4274 #define RTC_RTCRDYIFG (0x0002u)
4275 #define RTC_RTCTEVIFG (0x0004u)
4276 #define RTC_RTCAIFG (0x0006u)
4277 #define RTC_RT0PSIFG (0x0008u)
4278 #define RTC_RT1PSIFG (0x000Au)
4284 #ifdef __MSP430_HAS_RTC_B__
4286 #define OFS_RTCCTL01 (0x0000u)
4287 #define OFS_RTCCTL01_L OFS_RTCCTL01
4288 #define OFS_RTCCTL01_H OFS_RTCCTL01+1
4289 #define OFS_RTCCTL23 (0x0002u)
4290 #define OFS_RTCCTL23_L OFS_RTCCTL23
4291 #define OFS_RTCCTL23_H OFS_RTCCTL23+1
4292 #define OFS_RTCPS0CTL (0x0008u)
4293 #define OFS_RTCPS0CTL_L OFS_RTCPS0CTL
4294 #define OFS_RTCPS0CTL_H OFS_RTCPS0CTL+1
4295 #define OFS_RTCPS1CTL (0x000Au)
4296 #define OFS_RTCPS1CTL_L OFS_RTCPS1CTL
4297 #define OFS_RTCPS1CTL_H OFS_RTCPS1CTL+1
4298 #define OFS_RTCPS (0x000Cu)
4299 #define OFS_RTCPS_L OFS_RTCPS
4300 #define OFS_RTCPS_H OFS_RTCPS+1
4301 #define OFS_RTCIV (0x000Eu)
4302 #define OFS_RTCTIM0 (0x0010u)
4303 #define OFS_RTCTIM0_L OFS_RTCTIM0
4304 #define OFS_RTCTIM0_H OFS_RTCTIM0+1
4305 #define OFS_RTCTIM1 (0x0012u)
4306 #define OFS_RTCTIM1_L OFS_RTCTIM1
4307 #define OFS_RTCTIM1_H OFS_RTCTIM1+1
4308 #define OFS_RTCDATE (0x0014u)
4309 #define OFS_RTCDATE_L OFS_RTCDATE
4310 #define OFS_RTCDATE_H OFS_RTCDATE+1
4311 #define OFS_RTCYEAR (0x0016u)
4312 #define OFS_RTCYEAR_L OFS_RTCYEAR
4313 #define OFS_RTCYEAR_H OFS_RTCYEAR+1
4314 #define OFS_RTCAMINHR (0x0018u)
4315 #define OFS_RTCAMINHR_L OFS_RTCAMINHR
4316 #define OFS_RTCAMINHR_H OFS_RTCAMINHR+1
4317 #define OFS_RTCADOWDAY (0x001Au)
4318 #define OFS_RTCADOWDAY_L OFS_RTCADOWDAY
4319 #define OFS_RTCADOWDAY_H OFS_RTCADOWDAY+1
4320 #define OFS_BIN2BCD (0x001Cu)
4321 #define OFS_BCD2BIN (0x001Eu)
4322 #define OFS_RTCSEC (0x0010u)
4323 #define OFS_RTCMIN (0x0011u)
4324 #define OFS_RTCHOUR (0x0012u)
4325 #define OFS_RTCDOW (0x0013u)
4326 #define OFS_RTCDAY (0x0014u)
4327 #define OFS_RTCMON (0x0015u)
4328 #define OFS_RTCAMIN (0x0018u)
4329 #define OFS_RTCAHOUR (0x0019u)
4330 #define OFS_RTCADOW (0x001Au)
4331 #define OFS_RTCADAY (0x001Bu)
4333 #define RTCCTL0 RTCCTL01_L
4334 #define RTCCTL1 RTCCTL01_H
4335 #define RTCCTL2 RTCCTL23_L
4336 #define RTCCTL3 RTCCTL23_H
4337 #define RTCNT12 RTCTIM0
4338 #define RTCNT34 RTCTIM1
4339 #define RTCNT1 RTCTIM0_L
4340 #define RTCNT2 RTCTIM0_H
4341 #define RTCNT3 RTCTIM1_L
4342 #define RTCNT4 RTCTIM1_H
4343 #define RTCSEC RTCTIM0_L
4344 #define RTCMIN RTCTIM0_H
4345 #define RTCHOUR RTCTIM1_L
4346 #define RTCDOW RTCTIM1_H
4347 #define RTCDAY RTCDATE_L
4348 #define RTCMON RTCDATE_H
4349 #define RTCYEARL RTCYEAR_L
4350 #define RTCYEARH RTCYEAR_H
4351 #define RT0PS RTCPS_L
4352 #define RT1PS RTCPS_H
4353 #define RTCAMIN RTCAMINHR_L
4354 #define RTCAHOUR RTCAMINHR_H
4355 #define RTCADOW RTCADOWDAY_L
4356 #define RTCADAY RTCADOWDAY_H
4359 #define RTCBCD (0x8000u)
4360 #define RTCHOLD (0x4000u)
4362 #define RTCRDY (0x1000u)
4365 #define RTCTEV1 (0x0200u)
4366 #define RTCTEV0 (0x0100u)
4367 #define RTCOFIE (0x0080u)
4368 #define RTCTEVIE (0x0040u)
4369 #define RTCAIE (0x0020u)
4370 #define RTCRDYIE (0x0010u)
4371 #define RTCOFIFG (0x0008u)
4372 #define RTCTEVIFG (0x0004u)
4373 #define RTCAIFG (0x0002u)
4374 #define RTCRDYIFG (0x0001u)
4380 #define RTCOFIE_L (0x0080u)
4381 #define RTCTEVIE_L (0x0040u)
4382 #define RTCAIE_L (0x0020u)
4383 #define RTCRDYIE_L (0x0010u)
4384 #define RTCOFIFG_L (0x0008u)
4385 #define RTCTEVIFG_L (0x0004u)
4386 #define RTCAIFG_L (0x0002u)
4387 #define RTCRDYIFG_L (0x0001u)
4390 #define RTCBCD_H (0x0080u)
4391 #define RTCHOLD_H (0x0040u)
4393 #define RTCRDY_H (0x0010u)
4396 #define RTCTEV1_H (0x0002u)
4397 #define RTCTEV0_H (0x0001u)
4399 #define RTCTEV_0 (0x0000u)
4400 #define RTCTEV_1 (0x0100u)
4401 #define RTCTEV_2 (0x0200u)
4402 #define RTCTEV_3 (0x0300u)
4403 #define RTCTEV__MIN (0x0000u)
4404 #define RTCTEV__HOUR (0x0100u)
4405 #define RTCTEV__0000 (0x0200u)
4406 #define RTCTEV__1200 (0x0300u)
4409 #define RTCCALF1 (0x0200u)
4410 #define RTCCALF0 (0x0100u)
4411 #define RTCCALS (0x0080u)
4413 #define RTCCAL5 (0x0020u)
4414 #define RTCCAL4 (0x0010u)
4415 #define RTCCAL3 (0x0008u)
4416 #define RTCCAL2 (0x0004u)
4417 #define RTCCAL1 (0x0002u)
4418 #define RTCCAL0 (0x0001u)
4421 #define RTCCALS_L (0x0080u)
4423 #define RTCCAL5_L (0x0020u)
4424 #define RTCCAL4_L (0x0010u)
4425 #define RTCCAL3_L (0x0008u)
4426 #define RTCCAL2_L (0x0004u)
4427 #define RTCCAL1_L (0x0002u)
4428 #define RTCCAL0_L (0x0001u)
4431 #define RTCCALF1_H (0x0002u)
4432 #define RTCCALF0_H (0x0001u)
4435 #define RTCCALF_0 (0x0000u)
4436 #define RTCCALF_1 (0x0100u)
4437 #define RTCCALF_2 (0x0200u)
4438 #define RTCCALF_3 (0x0300u)
4440 #define RTCAE (0x80)
4446 #define RT0IP2 (0x0010u)
4447 #define RT0IP1 (0x0008u)
4448 #define RT0IP0 (0x0004u)
4449 #define RT0PSIE (0x0002u)
4450 #define RT0PSIFG (0x0001u)
4456 #define RT0IP2_L (0x0010u)
4457 #define RT0IP1_L (0x0008u)
4458 #define RT0IP0_L (0x0004u)
4459 #define RT0PSIE_L (0x0002u)
4460 #define RT0PSIFG_L (0x0001u)
4462 #define RT0IP_0 (0x0000u)
4463 #define RT0IP_1 (0x0004u)
4464 #define RT0IP_2 (0x0008u)
4465 #define RT0IP_3 (0x000Cu)
4466 #define RT0IP_4 (0x0010u)
4467 #define RT0IP_5 (0x0014u)
4468 #define RT0IP_6 (0x0018u)
4469 #define RT0IP_7 (0x001Cu)
4471 #define RT0IP__2 (0x0000u)
4472 #define RT0IP__4 (0x0004u)
4473 #define RT0IP__8 (0x0008u)
4474 #define RT0IP__16 (0x000Cu)
4475 #define RT0IP__32 (0x0010u)
4476 #define RT0IP__64 (0x0014u)
4477 #define RT0IP__128 (0x0018u)
4478 #define RT0IP__256 (0x001Cu)
4484 #define RT1IP2 (0x0010u)
4485 #define RT1IP1 (0x0008u)
4486 #define RT1IP0 (0x0004u)
4487 #define RT1PSIE (0x0002u)
4488 #define RT1PSIFG (0x0001u)
4494 #define RT1IP2_L (0x0010u)
4495 #define RT1IP1_L (0x0008u)
4496 #define RT1IP0_L (0x0004u)
4497 #define RT1PSIE_L (0x0002u)
4498 #define RT1PSIFG_L (0x0001u)
4500 #define RT1IP_0 (0x0000u)
4501 #define RT1IP_1 (0x0004u)
4502 #define RT1IP_2 (0x0008u)
4503 #define RT1IP_3 (0x000Cu)
4504 #define RT1IP_4 (0x0010u)
4505 #define RT1IP_5 (0x0014u)
4506 #define RT1IP_6 (0x0018u)
4507 #define RT1IP_7 (0x001Cu)
4509 #define RT1IP__2 (0x0000u)
4510 #define RT1IP__4 (0x0004u)
4511 #define RT1IP__8 (0x0008u)
4512 #define RT1IP__16 (0x000Cu)
4513 #define RT1IP__32 (0x0010u)
4514 #define RT1IP__64 (0x0014u)
4515 #define RT1IP__128 (0x0018u)
4516 #define RT1IP__256 (0x001Cu)
4519 #define RTCIV_NONE (0x0000u)
4520 #define RTCIV_RTCRDYIFG (0x0002u)
4521 #define RTCIV_RTCTEVIFG (0x0004u)
4522 #define RTCIV_RTCAIFG (0x0006u)
4523 #define RTCIV_RT0PSIFG (0x0008u)
4524 #define RTCIV_RT1PSIFG (0x000Au)
4525 #define RTCIV_RTCOFIFG (0x000Cu)
4528 #define RTC_NONE (0x0000u)
4529 #define RTC_RTCRDYIFG (0x0002u)
4530 #define RTC_RTCTEVIFG (0x0004u)
4531 #define RTC_RTCAIFG (0x0006u)
4532 #define RTC_RT0PSIFG (0x0008u)
4533 #define RTC_RT1PSIFG (0x000Au)
4534 #define RTC_RTCOFIFG (0x000Cu)
4540 #ifdef __MSP430_HAS_RTC_C__
4542 #define OFS_RTCCTL0 (0x0000u)
4543 #define OFS_RTCCTL0_L OFS_RTCCTL0
4544 #define OFS_RTCCTL0_H OFS_RTCCTL0+1
4545 #define OFS_RTCCTL13 (0x0002u)
4546 #define OFS_RTCCTL13_L OFS_RTCCTL13
4547 #define OFS_RTCCTL13_H OFS_RTCCTL13+1
4548 #define RTCCTL1 RTCCTL13_L
4549 #define RTCCTL3 RTCCTL13_H
4550 #define OFS_RTCOCAL (0x0004u)
4551 #define OFS_RTCOCAL_L OFS_RTCOCAL
4552 #define OFS_RTCOCAL_H OFS_RTCOCAL+1
4553 #define OFS_RTCTCMP (0x0006u)
4554 #define OFS_RTCTCMP_L OFS_RTCTCMP
4555 #define OFS_RTCTCMP_H OFS_RTCTCMP+1
4556 #define OFS_RTCPS0CTL (0x0008u)
4557 #define OFS_RTCPS0CTL_L OFS_RTCPS0CTL
4558 #define OFS_RTCPS0CTL_H OFS_RTCPS0CTL+1
4559 #define OFS_RTCPS1CTL (0x000Au)
4560 #define OFS_RTCPS1CTL_L OFS_RTCPS1CTL
4561 #define OFS_RTCPS1CTL_H OFS_RTCPS1CTL+1
4562 #define OFS_RTCPS (0x000Cu)
4563 #define OFS_RTCPS_L OFS_RTCPS
4564 #define OFS_RTCPS_H OFS_RTCPS+1
4565 #define OFS_RTCIV (0x000Eu)
4566 #define OFS_RTCTIM0 (0x0010u)
4567 #define OFS_RTCTIM0_L OFS_RTCTIM0
4568 #define OFS_RTCTIM0_H OFS_RTCTIM0+1
4569 #define OFS_RTCTIM1 (0x0012u)
4570 #define OFS_RTCTIM1_L OFS_RTCTIM1
4571 #define OFS_RTCTIM1_H OFS_RTCTIM1+1
4572 #define OFS_RTCDATE (0x0014u)
4573 #define OFS_RTCDATE_L OFS_RTCDATE
4574 #define OFS_RTCDATE_H OFS_RTCDATE+1
4575 #define OFS_RTCYEAR (0x0016u)
4576 #define OFS_RTCYEAR_L OFS_RTCYEAR
4577 #define OFS_RTCYEAR_H OFS_RTCYEAR+1
4578 #define OFS_RTCAMINHR (0x0018u)
4579 #define OFS_RTCAMINHR_L OFS_RTCAMINHR
4580 #define OFS_RTCAMINHR_H OFS_RTCAMINHR+1
4581 #define OFS_RTCADOWDAY (0x001Au)
4582 #define OFS_RTCADOWDAY_L OFS_RTCADOWDAY
4583 #define OFS_RTCADOWDAY_H OFS_RTCADOWDAY+1
4584 #define OFS_BIN2BCD (0x001Cu)
4585 #define OFS_BCD2BIN (0x001Eu)
4586 #define OFS_RTCSEC (0x0010u)
4587 #define OFS_RTCMIN (0x0011u)
4588 #define OFS_RTCHOUR (0x0012u)
4589 #define OFS_RTCDOW (0x0013u)
4590 #define OFS_RTCDAY (0x0014u)
4591 #define OFS_RTCMON (0x0015u)
4592 #define OFS_RTCAMIN (0x0018u)
4593 #define OFS_RTCAHOUR (0x0019u)
4594 #define OFS_RTCADOW (0x001Au)
4595 #define OFS_RTCADAY (0x001Bu)
4597 #define RTCSEC RTCTIM0_L
4598 #define RTCMIN RTCTIM0_H
4599 #define RTCHOUR RTCTIM1_L
4600 #define RTCDOW RTCTIM1_H
4601 #define RTCDAY RTCDATE_L
4602 #define RTCMON RTCDATE_H
4603 #define RTCYEARL RTCYEAR_L
4604 #define RT0PS RTCPS_L
4605 #define RT1PS RTCPS_H
4606 #define RTCAMIN RTCAMINHR_L
4607 #define RTCAHOUR RTCAMINHR_H
4608 #define RTCADOW RTCADOWDAY_L
4609 #define RTCADAY RTCADOWDAY_H
4612 #define RTCOFIE (0x0080u)
4613 #define RTCTEVIE (0x0040u)
4614 #define RTCAIE (0x0020u)
4615 #define RTCRDYIE (0x0010u)
4616 #define RTCOFIFG (0x0008u)
4617 #define RTCTEVIFG (0x0004u)
4618 #define RTCAIFG (0x0002u)
4619 #define RTCRDYIFG (0x0001u)
4622 #define RTCOFIE_L (0x0080u)
4623 #define RTCTEVIE_L (0x0040u)
4624 #define RTCAIE_L (0x0020u)
4625 #define RTCRDYIE_L (0x0010u)
4626 #define RTCOFIFG_L (0x0008u)
4627 #define RTCTEVIFG_L (0x0004u)
4628 #define RTCAIFG_L (0x0002u)
4629 #define RTCRDYIFG_L (0x0001u)
4631 #define RTCKEY (0xA500u)
4632 #define RTCKEY_H (0xA5)
4635 #define RTCCALF1 (0x0200u)
4636 #define RTCCALF0 (0x0100u)
4637 #define RTCBCD (0x0080u)
4638 #define RTCHOLD (0x0040u)
4639 #define RTCMODE (0x0020u)
4640 #define RTCRDY (0x0010u)
4641 #define RTCSSEL1 (0x0008u)
4642 #define RTCSSEL0 (0x0004u)
4643 #define RTCTEV1 (0x0002u)
4644 #define RTCTEV0 (0x0001u)
4647 #define RTCBCD_L (0x0080u)
4648 #define RTCHOLD_L (0x0040u)
4649 #define RTCMODE_L (0x0020u)
4650 #define RTCRDY_L (0x0010u)
4651 #define RTCSSEL1_L (0x0008u)
4652 #define RTCSSEL0_L (0x0004u)
4653 #define RTCTEV1_L (0x0002u)
4654 #define RTCTEV0_L (0x0001u)
4657 #define RTCCALF1_H (0x0002u)
4658 #define RTCCALF0_H (0x0001u)
4660 #define RTCSSEL_0 (0x0000u)
4661 #define RTCSSEL_1 (0x0004u)
4662 #define RTCSSEL_2 (0x0008u)
4663 #define RTCSSEL_3 (0x000Cu)
4664 #define RTCSSEL__ACLK (0x0000u)
4665 #define RTCSSEL__SMCLK (0x0004u)
4666 #define RTCSSEL__RT1PS (0x0008u)
4668 #define RTCTEV_0 (0x0000u)
4669 #define RTCTEV_1 (0x0001u)
4670 #define RTCTEV_2 (0x0002u)
4671 #define RTCTEV_3 (0x0003u)
4672 #define RTCTEV__MIN (0x0000u)
4673 #define RTCTEV__HOUR (0x0001u)
4674 #define RTCTEV__0000 (0x0002u)
4675 #define RTCTEV__1200 (0x0003u)
4677 #define RTCCALF_0 (0x0000u)
4678 #define RTCCALF_1 (0x0100u)
4679 #define RTCCALF_2 (0x0200u)
4680 #define RTCCALF_3 (0x0300u)
4683 #define RTCOCALS (0x8000u)
4684 #define RTCOCAL7 (0x0080u)
4685 #define RTCOCAL6 (0x0040u)
4686 #define RTCOCAL5 (0x0020u)
4687 #define RTCOCAL4 (0x0010u)
4688 #define RTCOCAL3 (0x0008u)
4689 #define RTCOCAL2 (0x0004u)
4690 #define RTCOCAL1 (0x0002u)
4691 #define RTCOCAL0 (0x0001u)
4694 #define RTCOCAL7_L (0x0080u)
4695 #define RTCOCAL6_L (0x0040u)
4696 #define RTCOCAL5_L (0x0020u)
4697 #define RTCOCAL4_L (0x0010u)
4698 #define RTCOCAL3_L (0x0008u)
4699 #define RTCOCAL2_L (0x0004u)
4700 #define RTCOCAL1_L (0x0002u)
4701 #define RTCOCAL0_L (0x0001u)
4704 #define RTCOCALS_H (0x0080u)
4707 #define RTCTCMPS (0x8000u)
4708 #define RTCTCRDY (0x4000u)
4709 #define RTCTCOK (0x2000u)
4710 #define RTCTCMP7 (0x0080u)
4711 #define RTCTCMP6 (0x0040u)
4712 #define RTCTCMP5 (0x0020u)
4713 #define RTCTCMP4 (0x0010u)
4714 #define RTCTCMP3 (0x0008u)
4715 #define RTCTCMP2 (0x0004u)
4716 #define RTCTCMP1 (0x0002u)
4717 #define RTCTCMP0 (0x0001u)
4720 #define RTCTCMP7_L (0x0080u)
4721 #define RTCTCMP6_L (0x0040u)
4722 #define RTCTCMP5_L (0x0020u)
4723 #define RTCTCMP4_L (0x0010u)
4724 #define RTCTCMP3_L (0x0008u)
4725 #define RTCTCMP2_L (0x0004u)
4726 #define RTCTCMP1_L (0x0002u)
4727 #define RTCTCMP0_L (0x0001u)
4730 #define RTCTCMPS_H (0x0080u)
4731 #define RTCTCRDY_H (0x0040u)
4732 #define RTCTCOK_H (0x0020u)
4734 #define RTCAE (0x80)
4739 #define RT0PSDIV2 (0x2000u)
4740 #define RT0PSDIV1 (0x1000u)
4741 #define RT0PSDIV0 (0x0800u)
4744 #define RT0PSHOLD (0x0100u)
4748 #define RT0IP2 (0x0010u)
4749 #define RT0IP1 (0x0008u)
4750 #define RT0IP0 (0x0004u)
4751 #define RT0PSIE (0x0002u)
4752 #define RT0PSIFG (0x0001u)
4762 #define RT0IP2_L (0x0010u)
4763 #define RT0IP1_L (0x0008u)
4764 #define RT0IP0_L (0x0004u)
4765 #define RT0PSIE_L (0x0002u)
4766 #define RT0PSIFG_L (0x0001u)
4771 #define RT0PSDIV2_H (0x0020u)
4772 #define RT0PSDIV1_H (0x0010u)
4773 #define RT0PSDIV0_H (0x0008u)
4776 #define RT0PSHOLD_H (0x0001u)
4781 #define RT0IP_0 (0x0000u)
4782 #define RT0IP_1 (0x0004u)
4783 #define RT0IP_2 (0x0008u)
4784 #define RT0IP_3 (0x000Cu)
4785 #define RT0IP_4 (0x0010u)
4786 #define RT0IP_5 (0x0014u)
4787 #define RT0IP_6 (0x0018u)
4788 #define RT0IP_7 (0x001Cu)
4791 #define RT1SSEL1 (0x8000u)
4792 #define RT1SSEL0 (0x4000u)
4793 #define RT1PSDIV2 (0x2000u)
4794 #define RT1PSDIV1 (0x1000u)
4795 #define RT1PSDIV0 (0x0800u)
4798 #define RT1PSHOLD (0x0100u)
4802 #define RT1IP2 (0x0010u)
4803 #define RT1IP1 (0x0008u)
4804 #define RT1IP0 (0x0004u)
4805 #define RT1PSIE (0x0002u)
4806 #define RT1PSIFG (0x0001u)
4814 #define RT1IP2_L (0x0010u)
4815 #define RT1IP1_L (0x0008u)
4816 #define RT1IP0_L (0x0004u)
4817 #define RT1PSIE_L (0x0002u)
4818 #define RT1PSIFG_L (0x0001u)
4821 #define RT1SSEL1_H (0x0080u)
4822 #define RT1SSEL0_H (0x0040u)
4823 #define RT1PSDIV2_H (0x0020u)
4824 #define RT1PSDIV1_H (0x0010u)
4825 #define RT1PSDIV0_H (0x0008u)
4828 #define RT1PSHOLD_H (0x0001u)
4833 #define RT1IP_0 (0x0000u)
4834 #define RT1IP_1 (0x0004u)
4835 #define RT1IP_2 (0x0008u)
4836 #define RT1IP_3 (0x000Cu)
4837 #define RT1IP_4 (0x0010u)
4838 #define RT1IP_5 (0x0014u)
4839 #define RT1IP_6 (0x0018u)
4840 #define RT1IP_7 (0x001Cu)
4843 #define RTCIV_NONE (0x0000u)
4844 #define RTCIV_RTCOFIFG (0x0002u)
4845 #define RTCIV_RTCRDYIFG (0x0004u)
4846 #define RTCIV_RTCTEVIFG (0x0006u)
4847 #define RTCIV_RTCAIFG (0x0008u)
4848 #define RTCIV_RT0PSIFG (0x000Au)
4849 #define RTCIV_RT1PSIFG (0x000Cu)
4852 #define RTC_NONE (0x0000u)
4853 #define RTC_RTCOFIFG (0x0002u)
4854 #define RTC_RTCRDYIFG (0x0004u)
4855 #define RTC_RTCTEVIFG (0x0006u)
4856 #define RTC_RTCAIFG (0x0008u)
4857 #define RTC_RT0PSIFG (0x000Au)
4858 #define RTC_RT1PSIFG (0x000Cu)
4864 #ifdef __MSP430_HAS_RTC_CE__
4866 #define OFS_RTCCTL0 (0x0000u)
4867 #define OFS_RTCCTL0_L OFS_RTCCTL0
4868 #define OFS_RTCCTL0_H OFS_RTCCTL0+1
4869 #define OFS_RTCCTL13 (0x0002u)
4870 #define OFS_RTCCTL13_L OFS_RTCCTL13
4871 #define OFS_RTCCTL13_H OFS_RTCCTL13+1
4872 #define RTCCTL1 RTCCTL13_L
4873 #define RTCCTL3 RTCCTL13_H
4874 #define OFS_RTCOCAL (0x0004u)
4875 #define OFS_RTCOCAL_L OFS_RTCOCAL
4876 #define OFS_RTCOCAL_H OFS_RTCOCAL+1
4877 #define OFS_RTCTCMP (0x0006u)
4878 #define OFS_RTCTCMP_L OFS_RTCTCMP
4879 #define OFS_RTCTCMP_H OFS_RTCTCMP+1
4880 #define OFS_RTCPS0CTL (0x0008u)
4881 #define OFS_RTCPS0CTL_L OFS_RTCPS0CTL
4882 #define OFS_RTCPS0CTL_H OFS_RTCPS0CTL+1
4883 #define OFS_RTCPS1CTL (0x000Au)
4884 #define OFS_RTCPS1CTL_L OFS_RTCPS1CTL
4885 #define OFS_RTCPS1CTL_H OFS_RTCPS1CTL+1
4886 #define OFS_RTCPS (0x000Cu)
4887 #define OFS_RTCPS_L OFS_RTCPS
4888 #define OFS_RTCPS_H OFS_RTCPS+1
4889 #define OFS_RTCIV (0x000Eu)
4890 #define OFS_RTCTIM0 (0x0010u)
4891 #define OFS_RTCTIM0_L OFS_RTCTIM0
4892 #define OFS_RTCTIM0_H OFS_RTCTIM0+1
4893 #define OFS_RTCTIM1 (0x0012u)
4894 #define OFS_RTCTIM1_L OFS_RTCTIM1
4895 #define OFS_RTCTIM1_H OFS_RTCTIM1+1
4896 #define OFS_RTCDATE (0x0014u)
4897 #define OFS_RTCDATE_L OFS_RTCDATE
4898 #define OFS_RTCDATE_H OFS_RTCDATE+1
4899 #define OFS_RTCYEAR (0x0016u)
4900 #define OFS_RTCYEAR_L OFS_RTCYEAR
4901 #define OFS_RTCYEAR_H OFS_RTCYEAR+1
4902 #define OFS_RTCAMINHR (0x0018u)
4903 #define OFS_RTCAMINHR_L OFS_RTCAMINHR
4904 #define OFS_RTCAMINHR_H OFS_RTCAMINHR+1
4905 #define OFS_RTCADOWDAY (0x001Au)
4906 #define OFS_RTCADOWDAY_L OFS_RTCADOWDAY
4907 #define OFS_RTCADOWDAY_H OFS_RTCADOWDAY+1
4908 #define OFS_BIN2BCD (0x001Cu)
4909 #define OFS_BCD2BIN (0x001Eu)
4910 #define OFS_RTCSEC (0x0010u)
4911 #define OFS_RTCMIN (0x0011u)
4912 #define OFS_RTCHOUR (0x0012u)
4913 #define OFS_RTCDOW (0x0013u)
4914 #define OFS_RTCDAY (0x0014u)
4915 #define OFS_RTCMON (0x0015u)
4916 #define OFS_RTCAMIN (0x0018u)
4917 #define OFS_RTCAHOUR (0x0019u)
4918 #define OFS_RTCADOW (0x001Au)
4919 #define OFS_RTCADAY (0x001Bu)
4921 #define OFS_RTCTCCTL0 (0x0020u)
4922 #define OFS_RTCTCCTL1 (0x0021u)
4923 #define OFS_RTCCAP0CTL (0x0022u)
4924 #define OFS_RTCCAP1CTL (0x0023u)
4925 #define OFS_RTCSECBAK0 (0x0030u)
4926 #define OFS_RTCMINBAK0 (0x0031u)
4927 #define OFS_RTCHOURBAK0 (0x0032u)
4928 #define OFS_RTCDAYBAK0 (0x0033u)
4929 #define OFS_RTCMONBAK0 (0x0034u)
4930 #define OFS_RTCYEARBAK0 (0x0036u)
4931 #define OFS_RTCSECBAK1 (0x0038u)
4932 #define OFS_RTCMINBAK1 (0x0039u)
4933 #define OFS_RTCHOURBAK1 (0x003Au)
4934 #define OFS_RTCDAYBAK1 (0x003Bu)
4935 #define OFS_RTCMONBAK1 (0x003Cu)
4936 #define OFS_RTCYEARBAK1 (0x003Eu)
4938 #define RTCSEC RTCTIM0_L
4939 #define RTCMIN RTCTIM0_H
4940 #define RTCHOUR RTCTIM1_L
4941 #define RTCDOW RTCTIM1_H
4942 #define RTCDAY RTCDATE_L
4943 #define RTCMON RTCDATE_H
4944 #define RTCYEARL RTCYEAR_L
4945 #define RT0PS RTCPS_L
4946 #define RT1PS RTCPS_H
4947 #define RTCAMIN RTCAMINHR_L
4948 #define RTCAHOUR RTCAMINHR_H
4949 #define RTCADOW RTCADOWDAY_L
4950 #define RTCADAY RTCADOWDAY_H
4953 #define RTCOFIE (0x0080u)
4954 #define RTCTEVIE (0x0040u)
4955 #define RTCAIE (0x0020u)
4956 #define RTCRDYIE (0x0010u)
4957 #define RTCOFIFG (0x0008u)
4958 #define RTCTEVIFG (0x0004u)
4959 #define RTCAIFG (0x0002u)
4960 #define RTCRDYIFG (0x0001u)
4963 #define RTCOFIE_L (0x0080u)
4964 #define RTCTEVIE_L (0x0040u)
4965 #define RTCAIE_L (0x0020u)
4966 #define RTCRDYIE_L (0x0010u)
4967 #define RTCOFIFG_L (0x0008u)
4968 #define RTCTEVIFG_L (0x0004u)
4969 #define RTCAIFG_L (0x0002u)
4970 #define RTCRDYIFG_L (0x0001u)
4972 #define RTCKEY (0xA500u)
4973 #define RTCKEY_H (0xA5)
4976 #define RTCCALF1 (0x0200u)
4977 #define RTCCALF0 (0x0100u)
4978 #define RTCBCD (0x0080u)
4979 #define RTCHOLD (0x0040u)
4980 #define RTCMODE (0x0020u)
4981 #define RTCRDY (0x0010u)
4982 #define RTCSSEL1 (0x0008u)
4983 #define RTCSSEL0 (0x0004u)
4984 #define RTCTEV1 (0x0002u)
4985 #define RTCTEV0 (0x0001u)
4988 #define RTCBCD_L (0x0080u)
4989 #define RTCHOLD_L (0x0040u)
4990 #define RTCMODE_L (0x0020u)
4991 #define RTCRDY_L (0x0010u)
4992 #define RTCSSEL1_L (0x0008u)
4993 #define RTCSSEL0_L (0x0004u)
4994 #define RTCTEV1_L (0x0002u)
4995 #define RTCTEV0_L (0x0001u)
4998 #define RTCCALF1_H (0x0002u)
4999 #define RTCCALF0_H (0x0001u)
5001 #define RTCSSEL_0 (0x0000u)
5002 #define RTCSSEL_1 (0x0004u)
5003 #define RTCSSEL_2 (0x0008u)
5004 #define RTCSSEL_3 (0x000Cu)
5005 #define RTCSSEL__ACLK (0x0000u)
5006 #define RTCSSEL__SMCLK (0x0004u)
5007 #define RTCSSEL__RT1PS (0x0008u)
5009 #define RTCTEV_0 (0x0000u)
5010 #define RTCTEV_1 (0x0001u)
5011 #define RTCTEV_2 (0x0002u)
5012 #define RTCTEV_3 (0x0003u)
5013 #define RTCTEV__MIN (0x0000u)
5014 #define RTCTEV__HOUR (0x0001u)
5015 #define RTCTEV__0000 (0x0002u)
5016 #define RTCTEV__1200 (0x0003u)
5018 #define RTCCALF_0 (0x0000u)
5019 #define RTCCALF_1 (0x0100u)
5020 #define RTCCALF_2 (0x0200u)
5021 #define RTCCALF_3 (0x0300u)
5024 #define RTCOCALS (0x8000u)
5025 #define RTCOCAL7 (0x0080u)
5026 #define RTCOCAL6 (0x0040u)
5027 #define RTCOCAL5 (0x0020u)
5028 #define RTCOCAL4 (0x0010u)
5029 #define RTCOCAL3 (0x0008u)
5030 #define RTCOCAL2 (0x0004u)
5031 #define RTCOCAL1 (0x0002u)
5032 #define RTCOCAL0 (0x0001u)
5035 #define RTCOCAL7_L (0x0080u)
5036 #define RTCOCAL6_L (0x0040u)
5037 #define RTCOCAL5_L (0x0020u)
5038 #define RTCOCAL4_L (0x0010u)
5039 #define RTCOCAL3_L (0x0008u)
5040 #define RTCOCAL2_L (0x0004u)
5041 #define RTCOCAL1_L (0x0002u)
5042 #define RTCOCAL0_L (0x0001u)
5045 #define RTCOCALS_H (0x0080u)
5048 #define RTCTCMPS (0x8000u)
5049 #define RTCTCRDY (0x4000u)
5050 #define RTCTCOK (0x2000u)
5051 #define RTCTCMP7 (0x0080u)
5052 #define RTCTCMP6 (0x0040u)
5053 #define RTCTCMP5 (0x0020u)
5054 #define RTCTCMP4 (0x0010u)
5055 #define RTCTCMP3 (0x0008u)
5056 #define RTCTCMP2 (0x0004u)
5057 #define RTCTCMP1 (0x0002u)
5058 #define RTCTCMP0 (0x0001u)
5061 #define RTCTCMP7_L (0x0080u)
5062 #define RTCTCMP6_L (0x0040u)
5063 #define RTCTCMP5_L (0x0020u)
5064 #define RTCTCMP4_L (0x0010u)
5065 #define RTCTCMP3_L (0x0008u)
5066 #define RTCTCMP2_L (0x0004u)
5067 #define RTCTCMP1_L (0x0002u)
5068 #define RTCTCMP0_L (0x0001u)
5071 #define RTCTCMPS_H (0x0080u)
5072 #define RTCTCRDY_H (0x0040u)
5073 #define RTCTCOK_H (0x0020u)
5075 #define RTCAE (0x80)
5080 #define RT0PSDIV2 (0x2000u)
5081 #define RT0PSDIV1 (0x1000u)
5082 #define RT0PSDIV0 (0x0800u)
5085 #define RT0PSHOLD (0x0100u)
5089 #define RT0IP2 (0x0010u)
5090 #define RT0IP1 (0x0008u)
5091 #define RT0IP0 (0x0004u)
5092 #define RT0PSIE (0x0002u)
5093 #define RT0PSIFG (0x0001u)
5103 #define RT0IP2_L (0x0010u)
5104 #define RT0IP1_L (0x0008u)
5105 #define RT0IP0_L (0x0004u)
5106 #define RT0PSIE_L (0x0002u)
5107 #define RT0PSIFG_L (0x0001u)
5112 #define RT0PSDIV2_H (0x0020u)
5113 #define RT0PSDIV1_H (0x0010u)
5114 #define RT0PSDIV0_H (0x0008u)
5117 #define RT0PSHOLD_H (0x0001u)
5122 #define RT0IP_0 (0x0000u)
5123 #define RT0IP_1 (0x0004u)
5124 #define RT0IP_2 (0x0008u)
5125 #define RT0IP_3 (0x000Cu)
5126 #define RT0IP_4 (0x0010u)
5127 #define RT0IP_5 (0x0014u)
5128 #define RT0IP_6 (0x0018u)
5129 #define RT0IP_7 (0x001Cu)
5132 #define RT1SSEL1 (0x8000u)
5133 #define RT1SSEL0 (0x4000u)
5134 #define RT1PSDIV2 (0x2000u)
5135 #define RT1PSDIV1 (0x1000u)
5136 #define RT1PSDIV0 (0x0800u)
5139 #define RT1PSHOLD (0x0100u)
5143 #define RT1IP2 (0x0010u)
5144 #define RT1IP1 (0x0008u)
5145 #define RT1IP0 (0x0004u)
5146 #define RT1PSIE (0x0002u)
5147 #define RT1PSIFG (0x0001u)
5155 #define RT1IP2_L (0x0010u)
5156 #define RT1IP1_L (0x0008u)
5157 #define RT1IP0_L (0x0004u)
5158 #define RT1PSIE_L (0x0002u)
5159 #define RT1PSIFG_L (0x0001u)
5162 #define RT1SSEL1_H (0x0080u)
5163 #define RT1SSEL0_H (0x0040u)
5164 #define RT1PSDIV2_H (0x0020u)
5165 #define RT1PSDIV1_H (0x0010u)
5166 #define RT1PSDIV0_H (0x0008u)
5169 #define RT1PSHOLD_H (0x0001u)
5174 #define RT1IP_0 (0x0000u)
5175 #define RT1IP_1 (0x0004u)
5176 #define RT1IP_2 (0x0008u)
5177 #define RT1IP_3 (0x000Cu)
5178 #define RT1IP_4 (0x0010u)
5179 #define RT1IP_5 (0x0014u)
5180 #define RT1IP_6 (0x0018u)
5181 #define RT1IP_7 (0x001Cu)
5184 #define TCEN (0x0001u)
5185 #define AUX3RST (0x0002u)
5188 #define RTCCAPIFG (0x0001u)
5189 #define RTCCAPIE (0x0002u)
5192 #define CAPEV (0x0001u)
5193 #define CAPES (0x0004u)
5194 #define RTCREN (0x0008u)
5195 #define RTCCAPIN (0x0010u)
5196 #define RTCCAPDIR (0x0020u)
5197 #define RTCCAPOUT (0x0040u)
5200 #define RTCIV_NONE (0x0000u)
5201 #define RTCIV_RTCOFIFG (0x0002u)
5202 #define RTCIV_RTCCAPIFG (0x0004u)
5203 #define RTCIV_RTCRDYIFG (0x0006u)
5204 #define RTCIV_RTCTEVIFG (0x0008u)
5205 #define RTCIV_RTCAIFG (0x000Au)
5206 #define RTCIV_RT0PSIFG (0x000Cu)
5207 #define RTCIV_RT1PSIFG (0x000Eu)
5210 #define RTC_NONE (0x0000u)
5211 #define RTC_RTCOFIFG (0x0002u)
5212 #define RTC_RTCRDYIFG (0x0006u)
5213 #define RTC_RTCTEVIFG (0x0008u)
5214 #define RTC_RTCAIFG (0x000Au)
5215 #define RTC_RT0PSIFG (0x000Cu)
5216 #define RTC_RT1PSIFG (0x000Eu)
5222 #ifdef __MSP430_HAS_SD24_B__
5224 #define OFS_SD24BCTL0 (0x0000u)
5225 #define OFS_SD24BCTL0_L OFS_SD24BCTL0
5226 #define OFS_SD24BCTL0_H OFS_SD24BCTL0+1
5227 #define OFS_SD24BCTL1 (0x0002u)
5228 #define OFS_SD24BCTL1_L OFS_SD24BCTL1
5229 #define OFS_SD24BCTL1_H OFS_SD24BCTL1+1
5230 #define OFS_SD24BTRGCTL (0x0004u)
5231 #define OFS_SD24BTRGCTL_L OFS_SD24BTRGCTL
5232 #define OFS_SD24BTRGCTL_H OFS_SD24BTRGCTL+1
5233 #define OFS_SD24BTRGOSR (0x0006u)
5234 #define OFS_SD24BTRGOSR_L OFS_SD24BTRGOSR
5235 #define OFS_SD24BTRGOSR_H OFS_SD24BTRGOSR+1
5236 #define OFS_SD24BTRGPRE (0x0008u)
5237 #define OFS_SD24BTRGPRE_L OFS_SD24BTRGPRE
5238 #define OFS_SD24BTRGPRE_H OFS_SD24BTRGPRE+1
5239 #define OFS_SD24BIFG (0x000Au)
5240 #define OFS_SD24BIFG_L OFS_SD24BIFG
5241 #define OFS_SD24BIFG_H OFS_SD24BIFG+1
5242 #define OFS_SD24BIE (0x000Cu)
5243 #define OFS_SD24BIE_L OFS_SD24BIE
5244 #define OFS_SD24BIE_H OFS_SD24BIE+1
5245 #define OFS_SD24BIV (0x000Eu)
5246 #define OFS_SD24BIV_L OFS_SD24BIV
5247 #define OFS_SD24BIV_H OFS_SD24BIV+1
5249 #define OFS_SD24BCCTL0 (0x0010u)
5250 #define OFS_SD24BCCTL0_L OFS_SD24BCCTL0
5251 #define OFS_SD24BCCTL0_H OFS_SD24BCCTL0+1
5252 #define OFS_SD24BINCTL0 (0x0012u)
5253 #define OFS_SD24BINCTL0_L OFS_SD24BINCTL0
5254 #define OFS_SD24BINCTL0_H OFS_SD24BINCTL0+1
5255 #define OFS_SD24BOSR0 (0x0014u)
5256 #define OFS_SD24BOSR0_L OFS_SD24BOSR0
5257 #define OFS_SD24BOSR0_H OFS_SD24BOSR0+1
5258 #define OFS_SD24BPRE0 (0x0016u)
5259 #define OFS_SD24BPRE0_L OFS_SD24BPRE0
5260 #define OFS_SD24BPRE0_H OFS_SD24BPRE0+1
5262 #define OFS_SD24BMEML0 (0x0050u)
5263 #define OFS_SD24BMEML0_L OFS_SD24BMEML0
5264 #define OFS_SD24BMEML0_H OFS_SD24BMEML0+1
5265 #define OFS_SD24BMEMH0 (0x0052u)
5266 #define OFS_SD24BMEMH0_L OFS_SD24BMEMH0
5267 #define OFS_SD24BMEMH0_H OFS_SD24BMEMH0+1
5270 #define SD24OV32 (0x0002u)
5271 #define SD24REFS (0x0004u)
5272 #define SD24SSEL0 (0x0010u)
5273 #define SD24SSEL1 (0x0020u)
5274 #define SD24M4 (0x0040u)
5275 #define SD24CLKOS (0x0080u)
5276 #define SD24PDIV0 (0x0100u)
5277 #define SD24PDIV1 (0x0200u)
5278 #define SD24PDIV2 (0x0400u)
5279 #define SD24DIV0 (0x0800u)
5280 #define SD24DIV1 (0x1000u)
5281 #define SD24DIV2 (0x2000u)
5282 #define SD24DIV3 (0x4000u)
5283 #define SD24DIV4 (0x8000u)
5285 #define SD24OV32_L (0x0002u)
5286 #define SD24REFS_L (0x0004u)
5287 #define SD24SSEL0_L (0x0010u)
5288 #define SD24SSEL1_L (0x0020u)
5289 #define SD24M4_L (0x0040u)
5290 #define SD24CLKOS_L (0x0080u)
5292 #define SD24PDIV0_H (0x0001u)
5293 #define SD24PDIV1_H (0x0002u)
5294 #define SD24PDIV2_H (0x0004u)
5295 #define SD24DIV0_H (0x0008u)
5296 #define SD24DIV1_H (0x0010u)
5297 #define SD24DIV2_H (0x0020u)
5298 #define SD24DIV3_H (0x0040u)
5299 #define SD24DIV4_H (0x0080u)
5301 #define SD24SSEL_0 (0x0000u)
5302 #define SD24SSEL_1 (0x0010u)
5303 #define SD24SSEL_2 (0x0020u)
5304 #define SD24SSEL_3 (0x0030u)
5305 #define SD24SSEL__MCLK (0x0000u)
5306 #define SD24SSEL__SMCLK (0x0010u)
5307 #define SD24SSEL__ACLK (0x0020u)
5308 #define SD24SSEL__SD24CLK (0x0030u)
5310 #define SD24PDIV_0 (0x0000u)
5311 #define SD24PDIV_1 (0x0100u)
5312 #define SD24PDIV_2 (0x0200u)
5313 #define SD24PDIV_3 (0x0300u)
5314 #define SD24PDIV_4 (0x0400u)
5315 #define SD24PDIV_5 (0x0500u)
5316 #define SD24PDIV_6 (0x0600u)
5317 #define SD24PDIV_7 (0x0700u)
5320 #define SD24GRP0SC (0x0001u)
5321 #define SD24GRP1SC (0x0002u)
5322 #define SD24GRP2SC (0x0004u)
5323 #define SD24GRP3SC (0x0008u)
5324 #define SD24DMA0 (0x0100u)
5325 #define SD24DMA1 (0x0200u)
5326 #define SD24DMA2 (0x0400u)
5327 #define SD24DMA3 (0x0800u)
5329 #define SD24GRP0SC_L (0x0001u)
5330 #define SD24GRP1SC_L (0x0002u)
5331 #define SD24GRP2SC_L (0x0004u)
5332 #define SD24GRP3SC_L (0x0008u)
5334 #define SD24DMA0_H (0x0001u)
5335 #define SD24DMA1_H (0x0002u)
5336 #define SD24DMA2_H (0x0004u)
5337 #define SD24DMA3_H (0x0008u)
5339 #define SD24DMA_0 (0x0000u)
5340 #define SD24DMA_1 (0x0100u)
5341 #define SD24DMA_2 (0x0200u)
5342 #define SD24DMA_3 (0x0300u)
5343 #define SD24DMA_4 (0x0400u)
5344 #define SD24DMA_5 (0x0500u)
5345 #define SD24DMA_6 (0x0600u)
5346 #define SD24DMA_7 (0x0700u)
5347 #define SD24DMA_8 (0x0800u)
5350 #define SD24SC (0x0001u)
5351 #define SD24SCS0 (0x0002u)
5352 #define SD24SCS1 (0x0004u)
5353 #define SD24SCS2 (0x0008u)
5354 #define SD24SNGL (0x0100u)
5355 #define SD24TRGIFG (0x0400u)
5356 #define SD24TRGIE (0x0800u)
5358 #define SD24SC_L (0x0001u)
5359 #define SD24SCS0_L (0x0002u)
5360 #define SD24SCS1_L (0x0004u)
5361 #define SD24SCS2_L (0x0008u)
5363 #define SD24SNGL_H (0x0001u)
5364 #define SD24TRGIFG_H (0x0004u)
5365 #define SD24TRGIE_H (0x0008u)
5367 #define SD24SCS_0 (0x0000u)
5368 #define SD24SCS_1 (0x0002u)
5369 #define SD24SCS_2 (0x0004u)
5370 #define SD24SCS_3 (0x0006u)
5371 #define SD24SCS_4 (0x0008u)
5372 #define SD24SCS_5 (0x000Au)
5373 #define SD24SCS_6 (0x000Cu)
5374 #define SD24SCS_7 (0x000Eu)
5375 #define SD24SCS__SD24SC (0x0000u)
5376 #define SD24SCS__EXT1 (0x0002u)
5377 #define SD24SCS__EXT2 (0x0004u)
5378 #define SD24SCS__EXT3 (0x0006u)
5379 #define SD24SCS__GROUP0 (0x0008u)
5380 #define SD24SCS__GROUP1 (0x000Au)
5381 #define SD24SCS__GROUP2 (0x000Cu)
5382 #define SD24SCS__GROUP3 (0x000Eu)
5385 #define SD24IFG0 (0x0001u)
5386 #define SD24OVIFG0 (0x0100u)
5388 #define SD24IFG0_L (0x0001u)
5390 #define SD24OVIFG0_H (0x0001u)
5393 #define SD24IE0 (0x0001u)
5394 #define SD24OVIE0 (0x0100u)
5396 #define SD24IE0_L (0x0001u)
5398 #define SD24OVIE0_H (0x0001u)
5401 #define SD24BIV_NONE (0x0000u)
5402 #define SD24BIV_SD24OVIFG (0x0002u)
5403 #define SD24BIV_SD24TRGIFG (0x0004u)
5404 #define SD24BIV_SD24IFG0 (0x0006u)
5407 #define SD24DF0 (0x0010u)
5408 #define SD24DF1 (0x0020u)
5409 #define SD24ALGN (0x0040u)
5410 #define SD24CAL (0x0200u)
5411 #define SD24DFS0 (0x0400u)
5412 #define SD24DFS1 (0x0800u)
5413 #define SD24DI (0x1000u)
5414 #define SD24MC0 (0x2000u)
5415 #define SD24MC1 (0x4000u)
5417 #define SD24DF0_L (0x0010u)
5418 #define SD24DF1_L (0x0020u)
5419 #define SD24ALGN_L (0x0040u)
5421 #define SD24CAL_H (0x0002u)
5422 #define SD24DFS0_H (0x0004u)
5423 #define SD24DFS1_H (0x0008u)
5424 #define SD24DI_H (0x0010u)
5425 #define SD24MC0_H (0x0020u)
5426 #define SD24MC1_H (0x0040u)
5428 #define SD24DF_0 (0x0000u)
5429 #define SD24DF_1 (0x0010u)
5431 #define SD24DFS_0 (0x0000u)
5432 #define SD24DFS_1 (0x0400u)
5433 #define SD24DFS_2 (0x0800u)
5434 #define SD24DFS_3 (0x0C00u)
5436 #define SD24MC_0 (0x0000u)
5437 #define SD24MC_1 (0x2000u)
5438 #define SD24MC_2 (0x4000u)
5439 #define SD24MC_3 (0x6000u)
5442 #define SD24GAIN0 (0x0008u)
5443 #define SD24GAIN1 (0x0010u)
5444 #define SD24GAIN2 (0x0020u)
5445 #define SD24INTDLY0 (0x0040u)
5446 #define SD24INTDLY1 (0x0080u)
5448 #define SD24GAIN0_L (0x0008u)
5449 #define SD24GAIN1_L (0x0010u)
5450 #define SD24GAIN2_L (0x0020u)
5451 #define SD24INTDLY0_L (0x0040u)
5452 #define SD24INTDLY1_L (0x0080u)
5454 #define SD24GAIN_1 (0x0000u)
5455 #define SD24GAIN_2 (0x0008u)
5456 #define SD24GAIN_4 (0x0010u)
5457 #define SD24GAIN_8 (0x0018u)
5458 #define SD24GAIN_16 (0x0020u)
5459 #define SD24GAIN_32 (0x0028u)
5460 #define SD24GAIN_64 (0x0030u)
5461 #define SD24GAIN_128 (0x0038u)
5463 #define SD24INTDLY_0 (0x0000u)
5464 #define SD24INTDLY_1 (0x0040u)
5465 #define SD24INTDLY_2 (0x0080u)
5466 #define SD24INTDLY_3 (0x00C0u)
5469 #define OSR0 (0x0001u)
5470 #define OSR1 (0x0002u)
5471 #define OSR2 (0x0004u)
5472 #define OSR3 (0x0008u)
5473 #define OSR4 (0x0010u)
5474 #define OSR5 (0x0020u)
5475 #define OSR6 (0x0040u)
5476 #define OSR7 (0x0080u)
5477 #define OSR8 (0x0100u)
5478 #define OSR9 (0x0200u)
5479 #define OSR10 (0x0400u)
5481 #define OSR0_L (0x0001u)
5482 #define OSR1_L (0x0002u)
5483 #define OSR2_L (0x0004u)
5484 #define OSR3_L (0x0008u)
5485 #define OSR4_L (0x0010u)
5486 #define OSR5_L (0x0020u)
5487 #define OSR6_L (0x0040u)
5488 #define OSR7_L (0x0080u)
5490 #define OSR8_H (0x0001u)
5491 #define OSR9_H (0x0002u)
5492 #define OSR10_H (0x0004u)
5496 #define OSR__32 (32-1)
5497 #define OSR__64 (64-1)
5498 #define OSR__128 (128-1)
5499 #define OSR__256 (256-1)
5500 #define OSR__512 (512-1)
5501 #define OSR__1024 (1024-1)
5508 #ifdef __MSP430_HAS_SFR__
5510 #define OFS_SFRIE1 (0x0000u)
5511 #define OFS_SFRIE1_L OFS_SFRIE1
5512 #define OFS_SFRIE1_H OFS_SFRIE1+1
5515 #define WDTIE (0x0001u)
5516 #define OFIE (0x0002u)
5518 #define VMAIE (0x0008u)
5519 #define NMIIE (0x0010u)
5521 #define ACCVIE (0x0020u)
5523 #define JMBINIE (0x0040u)
5524 #define JMBOUTIE (0x0080u)
5526 #define WDTIE_L (0x0001u)
5527 #define OFIE_L (0x0002u)
5529 #define VMAIE_L (0x0008u)
5530 #define NMIIE_L (0x0010u)
5532 #define ACCVIE_L (0x0020u)
5534 #define JMBINIE_L (0x0040u)
5535 #define JMBOUTIE_L (0x0080u)
5537 #define OFS_SFRIFG1 (0x0002u)
5538 #define OFS_SFRIFG1_L OFS_SFRIFG1
5539 #define OFS_SFRIFG1_H OFS_SFRIFG1+1
5541 #define WDTIFG (0x0001u)
5542 #define OFIFG (0x0002u)
5544 #define VMAIFG (0x0008u)
5545 #define NMIIFG (0x0010u)
5547 #define JMBINIFG (0x0040u)
5548 #define JMBOUTIFG (0x0080u)
5550 #define WDTIFG_L (0x0001u)
5551 #define OFIFG_L (0x0002u)
5553 #define VMAIFG_L (0x0008u)
5554 #define NMIIFG_L (0x0010u)
5556 #define JMBINIFG_L (0x0040u)
5557 #define JMBOUTIFG_L (0x0080u)
5559 #define OFS_SFRRPCR (0x0004u)
5560 #define OFS_SFRRPCR_L OFS_SFRRPCR
5561 #define OFS_SFRRPCR_H OFS_SFRRPCR+1
5563 #define SYSNMI (0x0001u)
5564 #define SYSNMIIES (0x0002u)
5565 #define SYSRSTUP (0x0004u)
5566 #define SYSRSTRE (0x0008u)
5568 #define SYSNMI_L (0x0001u)
5569 #define SYSNMIIES_L (0x0002u)
5570 #define SYSRSTUP_L (0x0004u)
5571 #define SYSRSTRE_L (0x0008u)
5577 #ifdef __MSP430_HAS_SYS__
5579 #define OFS_SYSCTL (0x0000u)
5580 #define OFS_SYSCTL_L OFS_SYSCTL
5581 #define OFS_SYSCTL_H OFS_SYSCTL+1
5582 #define OFS_SYSBSLC (0x0002u)
5583 #define OFS_SYSBSLC_L OFS_SYSBSLC
5584 #define OFS_SYSBSLC_H OFS_SYSBSLC+1
5585 #define OFS_SYSJMBC (0x0006u)
5586 #define OFS_SYSJMBC_L OFS_SYSJMBC
5587 #define OFS_SYSJMBC_H OFS_SYSJMBC+1
5588 #define OFS_SYSJMBI0 (0x0008u)
5589 #define OFS_SYSJMBI0_L OFS_SYSJMBI0
5590 #define OFS_SYSJMBI0_H OFS_SYSJMBI0+1
5591 #define OFS_SYSJMBI1 (0x000Au)
5592 #define OFS_SYSJMBI1_L OFS_SYSJMBI1
5593 #define OFS_SYSJMBI1_H OFS_SYSJMBI1+1
5594 #define OFS_SYSJMBO0 (0x000Cu)
5595 #define OFS_SYSJMBO0_L OFS_SYSJMBO0
5596 #define OFS_SYSJMBO0_H OFS_SYSJMBO0+1
5597 #define OFS_SYSJMBO1 (0x000Eu)
5598 #define OFS_SYSJMBO1_L OFS_SYSJMBO1
5599 #define OFS_SYSJMBO1_H OFS_SYSJMBO1+1
5601 #define OFS_SYSBERRIV (0x0018u)
5602 #define OFS_SYSBERRIV_L OFS_SYSBERRIV
5603 #define OFS_SYSBERRIV_H OFS_SYSBERRIV+1
5604 #define OFS_SYSUNIV (0x001Au)
5605 #define OFS_SYSUNIV_L OFS_SYSUNIV
5606 #define OFS_SYSUNIV_H OFS_SYSUNIV+1
5607 #define OFS_SYSSNIV (0x001Cu)
5608 #define OFS_SYSSNIV_L OFS_SYSSNIV
5609 #define OFS_SYSSNIV_H OFS_SYSSNIV+1
5610 #define OFS_SYSRSTIV (0x001Eu)
5611 #define OFS_SYSRSTIV_L OFS_SYSRSTIV
5612 #define OFS_SYSRSTIV_H OFS_SYSRSTIV+1
5615 #define SYSRIVECT (0x0001u)
5617 #define SYSPMMPE (0x0004u)
5619 #define SYSBSLIND (0x0010u)
5620 #define SYSJTAGPIN (0x0020u)
5633 #define SYSRIVECT_L (0x0001u)
5635 #define SYSPMMPE_L (0x0004u)
5637 #define SYSBSLIND_L (0x0010u)
5638 #define SYSJTAGPIN_L (0x0020u)
5651 #define SYSBSLSIZE0 (0x0001u)
5652 #define SYSBSLSIZE1 (0x0002u)
5653 #define SYSBSLR (0x0004u)
5665 #define SYSBSLOFF (0x4000u)
5666 #define SYSBSLPE (0x8000u)
5669 #define SYSBSLSIZE0_L (0x0001u)
5670 #define SYSBSLSIZE1_L (0x0002u)
5671 #define SYSBSLR_L (0x0004u)
5696 #define SYSBSLOFF_H (0x0040u)
5697 #define SYSBSLPE_H (0x0080u)
5700 #define JMBIN0FG (0x0001u)
5701 #define JMBIN1FG (0x0002u)
5702 #define JMBOUT0FG (0x0004u)
5703 #define JMBOUT1FG (0x0008u)
5704 #define JMBMODE (0x0010u)
5706 #define JMBCLR0OFF (0x0040u)
5707 #define JMBCLR1OFF (0x0080u)
5718 #define JMBIN0FG_L (0x0001u)
5719 #define JMBIN1FG_L (0x0002u)
5720 #define JMBOUT0FG_L (0x0004u)
5721 #define JMBOUT1FG_L (0x0008u)
5722 #define JMBMODE_L (0x0010u)
5724 #define JMBCLR0OFF_L (0x0040u)
5725 #define JMBCLR1OFF_L (0x0080u)
5739 #ifdef __MSP430_HAS_TxA7__
5741 #define OFS_TAxCTL (0x0000u)
5742 #define OFS_TAxCCTL0 (0x0002u)
5743 #define OFS_TAxCCTL1 (0x0004u)
5744 #define OFS_TAxCCTL2 (0x0006u)
5745 #define OFS_TAxCCTL3 (0x0008u)
5746 #define OFS_TAxCCTL4 (0x000Au)
5747 #define OFS_TAxCCTL5 (0x000Cu)
5748 #define OFS_TAxCCTL6 (0x000Eu)
5749 #define OFS_TAxR (0x0010u)
5750 #define OFS_TAxCCR0 (0x0012u)
5751 #define OFS_TAxCCR1 (0x0014u)
5752 #define OFS_TAxCCR2 (0x0016u)
5753 #define OFS_TAxCCR3 (0x0018u)
5754 #define OFS_TAxCCR4 (0x001Au)
5755 #define OFS_TAxCCR5 (0x001Cu)
5756 #define OFS_TAxCCR6 (0x001Eu)
5757 #define OFS_TAxIV (0x002Eu)
5758 #define OFS_TAxEX0 (0x0020u)
5763 #define TAxIV_NONE (0x0000u)
5764 #define TAxIV_TACCR1 (0x0002u)
5765 #define TAxIV_TACCR2 (0x0004u)
5766 #define TAxIV_TACCR3 (0x0006u)
5767 #define TAxIV_TACCR4 (0x0008u)
5768 #define TAxIV_TACCR5 (0x000Au)
5769 #define TAxIV_TACCR6 (0x000Cu)
5770 #define TAxIV_TAIFG (0x000Eu)
5773 #define TAxIV_TAxCCR1 (0x0002u)
5774 #define TAxIV_TAxCCR2 (0x0004u)
5775 #define TAxIV_TAxCCR3 (0x0006u)
5776 #define TAxIV_TAxCCR4 (0x0008u)
5777 #define TAxIV_TAxCCR5 (0x000Au)
5778 #define TAxIV_TAxCCR6 (0x000Cu)
5779 #define TAxIV_TAxIFG (0x000Eu)
5782 #define TASSEL1 (0x0200u)
5783 #define TASSEL0 (0x0100u)
5784 #define ID1 (0x0080u)
5785 #define ID0 (0x0040u)
5786 #define MC1 (0x0020u)
5787 #define MC0 (0x0010u)
5788 #define TACLR (0x0004u)
5789 #define TAIE (0x0002u)
5790 #define TAIFG (0x0001u)
5792 #define MC_0 (0*0x10u)
5793 #define MC_1 (1*0x10u)
5794 #define MC_2 (2*0x10u)
5795 #define MC_3 (3*0x10u)
5796 #define ID_0 (0*0x40u)
5797 #define ID_1 (1*0x40u)
5798 #define ID_2 (2*0x40u)
5799 #define ID_3 (3*0x40u)
5800 #define TASSEL_0 (0*0x100u)
5801 #define TASSEL_1 (1*0x100u)
5802 #define TASSEL_2 (2*0x100u)
5803 #define TASSEL_3 (3*0x100u)
5804 #define MC__STOP (0*0x10u)
5805 #define MC__UP (1*0x10u)
5806 #define MC__CONTINUOUS (2*0x10u)
5807 #define MC__CONTINOUS (2*0x10u)
5808 #define MC__UPDOWN (3*0x10u)
5809 #define ID__1 (0*0x40u)
5810 #define ID__2 (1*0x40u)
5811 #define ID__4 (2*0x40u)
5812 #define ID__8 (3*0x40u)
5813 #define TASSEL__TACLK (0*0x100u)
5814 #define TASSEL__ACLK (1*0x100u)
5815 #define TASSEL__SMCLK (2*0x100u)
5816 #define TASSEL__INCLK (3*0x100u)
5819 #define CM1 (0x8000u)
5820 #define CM0 (0x4000u)
5821 #define CCIS1 (0x2000u)
5822 #define CCIS0 (0x1000u)
5823 #define SCS (0x0800u)
5824 #define SCCI (0x0400u)
5825 #define CAP (0x0100u)
5826 #define OUTMOD2 (0x0080u)
5827 #define OUTMOD1 (0x0040u)
5828 #define OUTMOD0 (0x0020u)
5829 #define CCIE (0x0010u)
5830 #define CCI (0x0008u)
5831 #define OUT (0x0004u)
5832 #define COV (0x0002u)
5833 #define CCIFG (0x0001u)
5835 #define OUTMOD_0 (0*0x20u)
5836 #define OUTMOD_1 (1*0x20u)
5837 #define OUTMOD_2 (2*0x20u)
5838 #define OUTMOD_3 (3*0x20u)
5839 #define OUTMOD_4 (4*0x20u)
5840 #define OUTMOD_5 (5*0x20u)
5841 #define OUTMOD_6 (6*0x20u)
5842 #define OUTMOD_7 (7*0x20u)
5843 #define CCIS_0 (0*0x1000u)
5844 #define CCIS_1 (1*0x1000u)
5845 #define CCIS_2 (2*0x1000u)
5846 #define CCIS_3 (3*0x1000u)
5847 #define CM_0 (0*0x4000u)
5848 #define CM_1 (1*0x4000u)
5849 #define CM_2 (2*0x4000u)
5850 #define CM_3 (3*0x4000u)
5853 #define TAIDEX0 (0x0001u)
5854 #define TAIDEX1 (0x0002u)
5855 #define TAIDEX2 (0x0004u)
5857 #define TAIDEX_0 (0*0x0001u)
5858 #define TAIDEX_1 (1*0x0001u)
5859 #define TAIDEX_2 (2*0x0001u)
5860 #define TAIDEX_3 (3*0x0001u)
5861 #define TAIDEX_4 (4*0x0001u)
5862 #define TAIDEX_5 (5*0x0001u)
5863 #define TAIDEX_6 (6*0x0001u)
5864 #define TAIDEX_7 (7*0x0001u)
5870 #ifdef __MSP430_HAS_TxB7__
5872 #define OFS_TBxCTL (0x0000u)
5873 #define OFS_TBxCCTL0 (0x0002u)
5874 #define OFS_TBxCCTL1 (0x0004u)
5875 #define OFS_TBxCCTL2 (0x0006u)
5876 #define OFS_TBxCCTL3 (0x0008u)
5877 #define OFS_TBxCCTL4 (0x000Au)
5878 #define OFS_TBxCCTL5 (0x000Cu)
5879 #define OFS_TBxCCTL6 (0x000Eu)
5880 #define OFS_TBxR (0x0010u)
5881 #define OFS_TBxCCR0 (0x0012u)
5882 #define OFS_TBxCCR1 (0x0014u)
5883 #define OFS_TBxCCR2 (0x0016u)
5884 #define OFS_TBxCCR3 (0x0018u)
5885 #define OFS_TBxCCR4 (0x001Au)
5886 #define OFS_TBxCCR5 (0x001Cu)
5887 #define OFS_TBxCCR6 (0x001Eu)
5888 #define OFS_TBxIV (0x002Eu)
5889 #define OFS_TBxEX0 (0x0020u)
5894 #define TBxIV_NONE (0x0000u)
5895 #define TBxIV_TBCCR1 (0x0002u)
5896 #define TBxIV_TBCCR2 (0x0004u)
5897 #define TBxIV_TBCCR3 (0x0006u)
5898 #define TBxIV_TBCCR4 (0x0008u)
5899 #define TBxIV_TBCCR5 (0x000Au)
5900 #define TBxIV_TBCCR6 (0x000Cu)
5901 #define TBxIV_TBIFG (0x000Eu)
5904 #define TBxIV_TBxCCR1 (0x0002u)
5905 #define TBxIV_TBxCCR2 (0x0004u)
5906 #define TBxIV_TBxCCR3 (0x0006u)
5907 #define TBxIV_TBxCCR4 (0x0008u)
5908 #define TBxIV_TBxCCR5 (0x000Au)
5909 #define TBxIV_TBxCCR6 (0x000Cu)
5910 #define TBxIV_TBxIFG (0x000Eu)
5913 #define TBCLGRP1 (0x4000u)
5914 #define TBCLGRP0 (0x2000u)
5915 #define CNTL1 (0x1000u)
5916 #define CNTL0 (0x0800u)
5917 #define TBSSEL1 (0x0200u)
5918 #define TBSSEL0 (0x0100u)
5919 #define TBCLR (0x0004u)
5920 #define TBIE (0x0002u)
5921 #define TBIFG (0x0001u)
5923 #define SHR1 (0x4000u)
5924 #define SHR0 (0x2000u)
5926 #define TBSSEL_0 (0*0x0100u)
5927 #define TBSSEL_1 (1*0x0100u)
5928 #define TBSSEL_2 (2*0x0100u)
5929 #define TBSSEL_3 (3*0x0100u)
5930 #define CNTL_0 (0*0x0800u)
5931 #define CNTL_1 (1*0x0800u)
5932 #define CNTL_2 (2*0x0800u)
5933 #define CNTL_3 (3*0x0800u)
5934 #define SHR_0 (0*0x2000u)
5935 #define SHR_1 (1*0x2000u)
5936 #define SHR_2 (2*0x2000u)
5937 #define SHR_3 (3*0x2000u)
5938 #define TBCLGRP_0 (0*0x2000u)
5939 #define TBCLGRP_1 (1*0x2000u)
5940 #define TBCLGRP_2 (2*0x2000u)
5941 #define TBCLGRP_3 (3*0x2000u)
5942 #define TBSSEL__TBCLK (0*0x100u)
5943 #define TBSSEL__TACLK (0*0x100u)
5944 #define TBSSEL__ACLK (1*0x100u)
5945 #define TBSSEL__SMCLK (2*0x100u)
5946 #define TBSSEL__INCLK (3*0x100u)
5947 #define CNTL__16 (0*0x0800u)
5948 #define CNTL__12 (1*0x0800u)
5949 #define CNTL__10 (2*0x0800u)
5950 #define CNTL__8 (3*0x0800u)
5954 #define CLLD1 (0x0400u)
5955 #define CLLD0 (0x0200u)
5957 #define SLSHR1 (0x0400u)
5958 #define SLSHR0 (0x0200u)
5960 #define SLSHR_0 (0*0x0200u)
5961 #define SLSHR_1 (1*0x0200u)
5962 #define SLSHR_2 (2*0x0200u)
5963 #define SLSHR_3 (3*0x0200u)
5965 #define CLLD_0 (0*0x0200u)
5966 #define CLLD_1 (1*0x0200u)
5967 #define CLLD_2 (2*0x0200u)
5968 #define CLLD_3 (3*0x0200u)
5971 #define TBIDEX0 (0x0001u)
5972 #define TBIDEX1 (0x0002u)
5973 #define TBIDEX2 (0x0004u)
5975 #define TBIDEX_0 (0*0x0001u)
5976 #define TBIDEX_1 (1*0x0001u)
5977 #define TBIDEX_2 (2*0x0001u)
5978 #define TBIDEX_3 (3*0x0001u)
5979 #define TBIDEX_4 (4*0x0001u)
5980 #define TBIDEX_5 (5*0x0001u)
5981 #define TBIDEX_6 (6*0x0001u)
5982 #define TBIDEX_7 (7*0x0001u)
5983 #define TBIDEX__1 (0*0x0001u)
5984 #define TBIDEX__2 (1*0x0001u)
5985 #define TBIDEX__3 (2*0x0001u)
5986 #define TBIDEX__4 (3*0x0001u)
5987 #define TBIDEX__5 (4*0x0001u)
5988 #define TBIDEX__6 (5*0x0001u)
5989 #define TBIDEX__7 (6*0x0001u)
5990 #define TBIDEX__8 (7*0x0001u)
5993 #define ID1 (0x0080u)
5994 #define ID0 (0x0040u)
5995 #define MC1 (0x0020u)
5996 #define MC0 (0x0010u)
5997 #define MC__STOP (0*0x10u)
5998 #define MC__UP (1*0x10u)
5999 #define MC__CONTINUOUS (2*0x10u)
6000 #define MC__CONTINOUS (2*0x10u)
6001 #define MC__UPDOWN (3*0x10u)
6002 #define CM1 (0x8000u)
6003 #define CM0 (0x4000u)
6004 #define MC_0 (0*0x10u)
6005 #define MC_1 (1*0x10u)
6006 #define MC_2 (2*0x10u)
6007 #define MC_3 (3*0x10u)
6008 #define CAP (0x0100u)
6009 #define CCIE (0x0010u)
6010 #define CCIFG (0x0001u)
6011 #define CCIS_0 (0*0x1000u)
6012 #define CCIS_1 (1*0x1000u)
6013 #define CCIS_2 (2*0x1000u)
6014 #define CCIS_3 (3*0x1000u)
6015 #define CM_0 (0*0x4000u)
6016 #define CM_1 (1*0x4000u)
6017 #define CM_2 (2*0x4000u)
6018 #define CM_3 (3*0x4000u)
6019 #define OUT (0x0004u)
6020 #define OUTMOD_0 (0*0x20u)
6021 #define OUTMOD_1 (1*0x20u)
6022 #define OUTMOD_2 (2*0x20u)
6023 #define OUTMOD_3 (3*0x20u)
6024 #define OUTMOD_4 (4*0x20u)
6025 #define OUTMOD_5 (5*0x20u)
6026 #define OUTMOD_6 (6*0x20u)
6027 #define OUTMOD_7 (7*0x20u)
6028 #define SCCI (0x0400u)
6029 #define SCS (0x0800u)
6030 #define CCI (0x0008u)
6031 #define ID__1 (0*0x40u)
6032 #define ID__2 (1*0x40u)
6033 #define ID__4 (2*0x40u)
6034 #define ID__8 (3*0x40u)
6035 #define ID_0 (0*0x40u)
6036 #define ID_1 (1*0x40u)
6037 #define ID_2 (2*0x40u)
6038 #define ID_3 (3*0x40u)
6044 #ifdef __MSP430_HAS_TxD7__
6046 #define OFS_TDxCTL0 (0x0000u)
6047 #define OFS_TDxCTL1 (0x0002u)
6048 #define OFS_TDxCTL2 (0x0004u)
6049 #define OFS_TDxR (0x0006u)
6050 #define OFS_TDxCCTL0 (0x0008u)
6051 #define OFS_TDxCCR0 (0x000Au)
6052 #define OFS_TDxCL0 (0x000Cu)
6053 #define OFS_TDxCCTL1 (0x000Eu)
6054 #define OFS_TDxCCR1 (0x0010u)
6055 #define OFS_TDxCL1 (0x0012u)
6056 #define OFS_TDxCCTL2 (0x0014u)
6057 #define OFS_TDxCCR2 (0x0016u)
6058 #define OFS_TDxCL2 (0x0018u)
6059 #define OFS_TDxCCTL3 (0x001Au)
6060 #define OFS_TDxCCR3 (0x001Cu)
6061 #define OFS_TDxCL3 (0x001Eu)
6062 #define OFS_TDxCCTL4 (0x0020u)
6063 #define OFS_TDxCCR4 (0x0022u)
6064 #define OFS_TDxCL4 (0x0024u)
6065 #define OFS_TDxCCTL5 (0x0026u)
6066 #define OFS_TDxCCR5 (0x0028u)
6067 #define OFS_TDxCL5 (0x002Au)
6068 #define OFS_TDxCCTL6 (0x002Cu)
6069 #define OFS_TDxCCR6 (0x002Eu)
6070 #define OFS_TDxCL6 (0x0030u)
6071 #define OFS_TDxHCTL0 (0x0038u)
6072 #define OFS_TDxHCTL1 (0x003Au)
6073 #define OFS_TDxHINT (0x003Cu)
6074 #define OFS_TDxIV (0x003Eu)
6079 #define TDxIV_NONE (0x0000u)
6080 #define TDxIV_TDCCR1 (0x0002u)
6081 #define TDxIV_TDCCR2 (0x0004u)
6082 #define TDxIV_TDCCR3 (0x0006u)
6083 #define TDxIV_TDCCR4 (0x0008u)
6084 #define TDxIV_TDCCR5 (0x000Au)
6085 #define TDxIV_TDCCR6 (0x000Cu)
6086 #define TDxIV_RES_14 (0x000Eu)
6087 #define TDxIV_TDIFG (0x0010u)
6088 #define TDxIV_TDHFLIFG (0x0012u)
6089 #define TDxIV_TDHFHIFG (0x0014u)
6090 #define TDxIV_TDHLKIFG (0x0016u)
6091 #define TDxIV_TDHUNLKIFG (0x0018u)
6094 #define TDxIV_TDxCCR1 (0x0002u)
6095 #define TDxIV_TDxCCR2 (0x0004u)
6096 #define TDxIV_TDxCCR3 (0x0006u)
6097 #define TDxIV_TDxCCR4 (0x0008u)
6098 #define TDxIV_TDxCCR5 (0x000Au)
6099 #define TDxIV_TDxCCR6 (0x000Cu)
6100 #define TDxIV_TDxIFG (0x0010u)
6103 #define TDCLGRP1 (0x4000u)
6104 #define TDCLGRP0 (0x2000u)
6105 #define CNTL1 (0x1000u)
6106 #define CNTL0 (0x0800u)
6107 #define TDSSEL1 (0x0200u)
6108 #define TDSSEL0 (0x0100u)
6109 #define TDCLR (0x0004u)
6110 #define TDIE (0x0002u)
6111 #define TDIFG (0x0001u)
6113 #define SHR1 (0x4000u)
6114 #define SHR0 (0x2000u)
6116 #define TDSSEL_0 (0*0x0100u)
6117 #define TDSSEL_1 (1*0x0100u)
6118 #define TDSSEL_2 (2*0x0100u)
6119 #define TDSSEL_3 (3*0x0100u)
6120 #define CNTL_0 (0*0x0800u)
6121 #define CNTL_1 (1*0x0800u)
6122 #define CNTL_2 (2*0x0800u)
6123 #define CNTL_3 (3*0x0800u)
6124 #define SHR_0 (0*0x2000u)
6125 #define SHR_1 (1*0x2000u)
6126 #define SHR_2 (2*0x2000u)
6127 #define SHR_3 (3*0x2000u)
6128 #define TDCLGRP_0 (0*0x2000u)
6129 #define TDCLGRP_1 (1*0x2000u)
6130 #define TDCLGRP_2 (2*0x2000u)
6131 #define TDCLGRP_3 (3*0x2000u)
6132 #define TDSSEL__TACLK (0*0x0100u)
6133 #define TDSSEL__ACLK (1*0x0100u)
6134 #define TDSSEL__SMCLK (2*0x0100u)
6135 #define TDSSEL__INCLK (3*0x0100u)
6136 #define CNTL__16 (0*0x0800u)
6137 #define CNTL__12 (1*0x0800u)
6138 #define CNTL__10 (2*0x0800u)
6139 #define CNTL__8 (3*0x0800u)
6144 #define TDCLKM0 (0x0001u)
6145 #define TDCLKM1 (0x0002u)
6146 #define TD2CMB (0x0010u)
6147 #define TD4CMB (0x0020u)
6148 #define TD6CMB (0x0040u)
6149 #define TDIDEX0 (0x0100u)
6150 #define TDIDEX1 (0x0200u)
6151 #define TDIDEX2 (0x0400u)
6153 #define TDCLKM_0 (0x0000u)
6154 #define TDCLKM_1 (0x0001u)
6155 #define TDCLKM_2 (0x0002u)
6156 #define TDCLKM__EXT (0x0000u)
6157 #define TDCLKM__HIGHRES (0x0001u)
6158 #define TDCLKM__AUX (0x0002u)
6160 #define TDIDEX_0 (0*0x0100u)
6161 #define TDIDEX_1 (1*0x0100u)
6162 #define TDIDEX_2 (2*0x0100u)
6163 #define TDIDEX_3 (3*0x0100u)
6164 #define TDIDEX_4 (4*0x0100u)
6165 #define TDIDEX_5 (5*0x0100u)
6166 #define TDIDEX_6 (6*0x0100u)
6167 #define TDIDEX_7 (7*0x0100u)
6168 #define TDIDEX__1 (0*0x0100u)
6169 #define TDIDEX__2 (1*0x0100u)
6170 #define TDIDEX__3 (2*0x0100u)
6171 #define TDIDEX__4 (3*0x0100u)
6172 #define TDIDEX__5 (4*0x0100u)
6173 #define TDIDEX__6 (5*0x0100u)
6174 #define TDIDEX__7 (6*0x0100u)
6175 #define TDIDEX__8 (7*0x0100u)
6178 #define TDCAPM0 (0x0001u)
6179 #define TDCAPM1 (0x0002u)
6180 #define TDCAPM2 (0x0004u)
6181 #define TDCAPM3 (0x0008u)
6182 #define TDCAPM4 (0x0010u)
6183 #define TDCAPM5 (0x0020u)
6184 #define TDCAPM6 (0x0040u)
6187 #define CLLD1 (0x0400u)
6188 #define CLLD0 (0x0200u)
6190 #define SLSHR1 (0x0400u)
6191 #define SLSHR0 (0x0200u)
6193 #define SLSHR_0 (0*0x0200u)
6194 #define SLSHR_1 (1*0x0200u)
6195 #define SLSHR_2 (2*0x0200u)
6196 #define SLSHR_3 (3*0x0200u)
6198 #define CLLD_0 (0*0x0200u)
6199 #define CLLD_1 (1*0x0200u)
6200 #define CLLD_2 (2*0x0200u)
6201 #define CLLD_3 (3*0x0200u)
6204 #define TDHEN (0x0001u)
6205 #define TDHREGEN (0x0002u)
6206 #define TDHEAEN (0x0004u)
6207 #define TDHRON (0x0008u)
6208 #define TDHM0 (0x0010u)
6209 #define TDHM1 (0x0020u)
6210 #define TDHD0 (0x0040u)
6211 #define TDHD1 (0x0080u)
6212 #define TDHFW (0x0100u)
6214 #define TDHCALEN TDHREGEN
6216 #define TDHM_0 (0x0000u)
6217 #define TDHM_1 (0x0010u)
6218 #define TDHM__8 (0x0000u)
6219 #define TDHM__16 (0x0010u)
6220 #define TDHD_0 (0x0000u)
6221 #define TDHD_1 (0x0040u)
6222 #define TDHD_2 (0x0080u)
6223 #define TDHD_3 (0x00C0u)
6224 #define TDHD__1 (0x0000u)
6225 #define TDHD__2 (0x0040u)
6226 #define TDHD__4 (0x0080u)
6227 #define TDHD__8 (0x00C0u)
6230 #define TDHCLKTRIM0 (0x0002u)
6231 #define TDHCLKTRIM1 (0x0004u)
6232 #define TDHCLKTRIM2 (0x0008u)
6233 #define TDHCLKTRIM3 (0x0010u)
6234 #define TDHCLKTRIM4 (0x0020u)
6235 #define TDHCLKTRIM5 (0x0040u)
6236 #define TDHCLKTRIM6 (0x0080u)
6237 #define TDHCLKSR0 (0x0100u)
6238 #define TDHCLKSR1 (0x0200u)
6239 #define TDHCLKSR2 (0x0400u)
6240 #define TDHCLKSR3 (0x0800u)
6241 #define TDHCLKSR4 (0x1000u)
6242 #define TDHCLKR0 (0x2000u)
6243 #define TDHCLKR1 (0x4000u)
6244 #define TDHCLKCR (0x8000u)
6247 #define TDHFLIFG (0x0001u)
6248 #define TDHFHIFG (0x0002u)
6249 #define TDHLKIFG (0x0004u)
6250 #define TDHUNLKIFG (0x0008u)
6251 #define TDHFLIE (0x0100u)
6252 #define TDHFHIE (0x0200u)
6253 #define TDHLKIE (0x0400u)
6254 #define TDHUNLKIE (0x0800u)
6256 #define ID1 (0x0080u)
6257 #define ID0 (0x0040u)
6258 #define MC1 (0x0020u)
6259 #define MC0 (0x0010u)
6260 #define MC__STOP (0*0x10u)
6261 #define MC__UP (1*0x10u)
6262 #define MC__CONTINUOUS (2*0x10u)
6263 #define MC__CONTINOUS (2*0x10u)
6264 #define MC__UPDOWN (3*0x10u)
6265 #define CM1 (0x8000u)
6266 #define CM0 (0x4000u)
6267 #define MC_0 (0*0x10u)
6268 #define MC_1 (1*0x10u)
6269 #define MC_2 (2*0x10u)
6270 #define MC_3 (3*0x10u)
6271 #define CAP (0x0100u)
6272 #define CCIE (0x0010u)
6273 #define CCIFG (0x0001u)
6274 #define CCIS_0 (0*0x1000u)
6275 #define CCIS_1 (1*0x1000u)
6276 #define CCIS_2 (2*0x1000u)
6277 #define CCIS_3 (3*0x1000u)
6278 #define CM_0 (0*0x4000u)
6279 #define CM_1 (1*0x4000u)
6280 #define CM_2 (2*0x4000u)
6281 #define CM_3 (3*0x4000u)
6282 #define OUT (0x0004u)
6283 #define OUTMOD_0 (0*0x20u)
6284 #define OUTMOD_1 (1*0x20u)
6285 #define OUTMOD_2 (2*0x20u)
6286 #define OUTMOD_3 (3*0x20u)
6287 #define OUTMOD_4 (4*0x20u)
6288 #define OUTMOD_5 (5*0x20u)
6289 #define OUTMOD_6 (6*0x20u)
6290 #define OUTMOD_7 (7*0x20u)
6291 #define SCCI (0x0400u)
6292 #define SCS (0x0800u)
6293 #define CCI (0x0008u)
6294 #define ID__1 (0*0x40u)
6295 #define ID__2 (1*0x40u)
6296 #define ID__4 (2*0x40u)
6297 #define ID__8 (3*0x40u)
6298 #define ID_0 (0*0x40u)
6299 #define ID_1 (1*0x40u)
6300 #define ID_2 (2*0x40u)
6301 #define ID_3 (3*0x40u)
6307 #ifdef __MSP430_HAS_TEV0__
6309 #define OFS_TEC0XCTL0 (0x0000u)
6310 #define OFS_TEC0XCTL0_L OFS_TEC0XCTL0
6311 #define OFS_TEC0XCTL0_H OFS_TEC0XCTL0+1
6312 #define OFS_TEC0XCTL1 (0x0002u)
6313 #define OFS_TEC0XCTL1_L OFS_TEC0XCTL1
6314 #define OFS_TEC0XCTL1_H OFS_TEC0XCTL1+1
6315 #define OFS_TEC0XCTL2 (0x0004u)
6316 #define OFS_TEC0XCTL2_L OFS_TEC0XCTL2
6317 #define OFS_TEC0XCTL2_H OFS_TEC0XCTL2+1
6318 #define OFS_TEC0STA (0x0006u)
6319 #define OFS_TEC0STA_L OFS_TEC0STA
6320 #define OFS_TEC0STA_H OFS_TEC0STA+1
6321 #define OFS_TEC0XINT (0x0008u)
6322 #define OFS_TEC0XINT_L OFS_TEC0XINT
6323 #define OFS_TEC0XINT_H OFS_TEC0XINT+1
6324 #define OFS_TEC0IV (0x000Au)
6325 #define OFS_TEC0IV_L OFS_TEC0IV
6326 #define OFS_TEC0IV_H OFS_TEC0IV+1
6329 #define TECXFLTHLD0 (0x0001u)
6330 #define TECXFLTHLD1 (0x0002u)
6331 #define TECXFLTHLD2 (0x0004u)
6332 #define TECXFLTHLD3 (0x0008u)
6333 #define TECXFLTHLD4 (0x0010u)
6334 #define TECXFLTHLD5 (0x0020u)
6335 #define TECXFLTHLD6 (0x0040u)
6336 #define TECXFLTEN0 (0x0100u)
6337 #define TECXFLTEN1 (0x0200u)
6338 #define TECXFLTEN2 (0x0400u)
6339 #define TECXFLTEN3 (0x0800u)
6340 #define TECXFLTEN4 (0x1000u)
6341 #define TECXFLTEN5 (0x2000u)
6342 #define TECXFLTEN6 (0x4000u)
6345 #define TECXFLTHLD0_L (0x0001u)
6346 #define TECXFLTHLD1_L (0x0002u)
6347 #define TECXFLTHLD2_L (0x0004u)
6348 #define TECXFLTHLD3_L (0x0008u)
6349 #define TECXFLTHLD4_L (0x0010u)
6350 #define TECXFLTHLD5_L (0x0020u)
6351 #define TECXFLTHLD6_L (0x0040u)
6354 #define TECXFLTEN0_H (0x0001u)
6355 #define TECXFLTEN1_H (0x0002u)
6356 #define TECXFLTEN2_H (0x0004u)
6357 #define TECXFLTEN3_H (0x0008u)
6358 #define TECXFLTEN4_H (0x0010u)
6359 #define TECXFLTEN5_H (0x0020u)
6360 #define TECXFLTEN6_H (0x0040u)
6363 #define TECXFLTPOL0 (0x0001u)
6364 #define TECXFLTPOL1 (0x0002u)
6365 #define TECXFLTPOL2 (0x0004u)
6366 #define TECXFLTPOL3 (0x0008u)
6367 #define TECXFLTPOL4 (0x0010u)
6368 #define TECXFLTPOL5 (0x0020u)
6369 #define TECXFLTPOL6 (0x0040u)
6370 #define TECXFLTLVS0 (0x0100u)
6371 #define TECXFLTLVS1 (0x0200u)
6372 #define TECXFLTLVS2 (0x0400u)
6373 #define TECXFLTLVS3 (0x0800u)
6374 #define TECXFLTLVS4 (0x1000u)
6375 #define TECXFLTLVS5 (0x2000u)
6376 #define TECXFLTLVS6 (0x4000u)
6379 #define TECXFLTPOL0_L (0x0001u)
6380 #define TECXFLTPOL1_L (0x0002u)
6381 #define TECXFLTPOL2_L (0x0004u)
6382 #define TECXFLTPOL3_L (0x0008u)
6383 #define TECXFLTPOL4_L (0x0010u)
6384 #define TECXFLTPOL5_L (0x0020u)
6385 #define TECXFLTPOL6_L (0x0040u)
6388 #define TECXFLTLVS0_H (0x0001u)
6389 #define TECXFLTLVS1_H (0x0002u)
6390 #define TECXFLTLVS2_H (0x0004u)
6391 #define TECXFLTLVS3_H (0x0008u)
6392 #define TECXFLTLVS4_H (0x0010u)
6393 #define TECXFLTLVS5_H (0x0020u)
6394 #define TECXFLTLVS6_H (0x0040u)
6397 #define TECCLKSEL0 (0x0001u)
6398 #define TECCLKSEL1 (0x0002u)
6399 #define TECAXCLREN (0x0004u)
6400 #define TECEXCLREN (0x0008u)
6401 #define TECEXCLRHLD (0x0010u)
6402 #define TECEXCLRPOL (0x0020u)
6403 #define TECEXCLRLVS (0x0040u)
6406 #define TECCLKSEL0_L (0x0001u)
6407 #define TECCLKSEL1_L (0x0002u)
6408 #define TECAXCLREN_L (0x0004u)
6409 #define TECEXCLREN_L (0x0008u)
6410 #define TECEXCLRHLD_L (0x0010u)
6411 #define TECEXCLRPOL_L (0x0020u)
6412 #define TECEXCLRLVS_L (0x0040u)
6414 #define TECCLKSEL_0 (0x0000u)
6415 #define TECCLKSEL_1 (0x0001u)
6416 #define TECCLKSEL_2 (0x0002u)
6417 #define TECCLKSEL_3 (0x0003u)
6420 #define TECXFLT0STA (0x0001u)
6421 #define TECXFLT1STA (0x0002u)
6422 #define TECXFLT2STA (0x0004u)
6423 #define TECXFLT3STA (0x0008u)
6424 #define TECXFLT4STA (0x0010u)
6425 #define TECXFLT5STA (0x0020u)
6426 #define TECXFLT6STA (0x0040u)
6427 #define TECXCLRSTA (0x0100u)
6430 #define TECXFLT0STA_L (0x0001u)
6431 #define TECXFLT1STA_L (0x0002u)
6432 #define TECXFLT2STA_L (0x0004u)
6433 #define TECXFLT3STA_L (0x0008u)
6434 #define TECXFLT4STA_L (0x0010u)
6435 #define TECXFLT5STA_L (0x0020u)
6436 #define TECXFLT6STA_L (0x0040u)
6439 #define TECXCLRSTA_H (0x0001u)
6442 #define TECAXCLRIFG (0x0001u)
6443 #define TECEXCLRIFG (0x0002u)
6444 #define TECXFLTIFG (0x0004u)
6445 #define TECAXCLRIE (0x0100u)
6446 #define TECEXCLRIE (0x0200u)
6447 #define TECXFLTIE (0x0400u)
6450 #define TECAXCLRIFG_L (0x0001u)
6451 #define TECEXCLRIFG_L (0x0002u)
6452 #define TECXFLTIFG_L (0x0004u)
6455 #define TECAXCLRIE_H (0x0001u)
6456 #define TECEXCLRIE_H (0x0002u)
6457 #define TECXFLTIE_H (0x0004u)
6460 #define TEC0IV_NONE (0x0000u)
6461 #define TEC0IV_TECXFLTIFG (0x0002u)
6462 #define TEC0IV_TECEXCLRIFG (0x0004u)
6463 #define TEC0IV_TECAXCLRIFG (0x0006u)
6469 #ifdef __MSP430_HAS_TEVx__
6471 #define OFS_TECxXCTL0 (0x0000u)
6472 #define OFS_TECxXCTL0_L OFS_TECxXCTL0
6473 #define OFS_TECxXCTL0_H OFS_TECxXCTL0+1
6474 #define OFS_TECxXCTL1 (0x0002u)
6475 #define OFS_TECxXCTL1_L OFS_TECxXCTL1
6476 #define OFS_TECxXCTL1_H OFS_TECxXCTL1+1
6477 #define OFS_TECxXCTL2 (0x0004u)
6478 #define OFS_TECxXCTL2_L OFS_TECxXCTL2
6479 #define OFS_TECxXCTL2_H OFS_TECxXCTL2+1
6480 #define OFS_TECxSTA (0x0006u)
6481 #define OFS_TECxSTA_L OFS_TECxSTA
6482 #define OFS_TECxSTA_H OFS_TECxSTA+1
6483 #define OFS_TECxXINT (0x0008u)
6484 #define OFS_TECxXINT_L OFS_TECxXINT
6485 #define OFS_TECxXINT_H OFS_TECxXINT+1
6486 #define OFS_TECxIV (0x000Au)
6487 #define OFS_TECxIV_L OFS_TECxIV
6488 #define OFS_TECxIV_H OFS_TECxIV+1
6491 #define TECxIV_NONE (0x0000u)
6492 #define TECxIV_TECXFLTIFG (0x0002u)
6493 #define TECxIV_TECEXCLRIFG (0x0004u)
6494 #define TECxIV_TECAXCLRIFG (0x0006u)
6502 #ifdef __MSP430_HAS_UCS__
6504 #define OFS_UCSCTL0 (0x0000u)
6505 #define OFS_UCSCTL0_L OFS_UCSCTL0
6506 #define OFS_UCSCTL0_H OFS_UCSCTL0+1
6507 #define OFS_UCSCTL1 (0x0002u)
6508 #define OFS_UCSCTL1_L OFS_UCSCTL1
6509 #define OFS_UCSCTL1_H OFS_UCSCTL1+1
6510 #define OFS_UCSCTL2 (0x0004u)
6511 #define OFS_UCSCTL2_L OFS_UCSCTL2
6512 #define OFS_UCSCTL2_H OFS_UCSCTL2+1
6513 #define OFS_UCSCTL3 (0x0006u)
6514 #define OFS_UCSCTL3_L OFS_UCSCTL3
6515 #define OFS_UCSCTL3_H OFS_UCSCTL3+1
6516 #define OFS_UCSCTL4 (0x0008u)
6517 #define OFS_UCSCTL4_L OFS_UCSCTL4
6518 #define OFS_UCSCTL4_H OFS_UCSCTL4+1
6519 #define OFS_UCSCTL5 (0x000Au)
6520 #define OFS_UCSCTL5_L OFS_UCSCTL5
6521 #define OFS_UCSCTL5_H OFS_UCSCTL5+1
6522 #define OFS_UCSCTL6 (0x000Cu)
6523 #define OFS_UCSCTL6_L OFS_UCSCTL6
6524 #define OFS_UCSCTL6_H OFS_UCSCTL6+1
6525 #define OFS_UCSCTL7 (0x000Eu)
6526 #define OFS_UCSCTL7_L OFS_UCSCTL7
6527 #define OFS_UCSCTL7_H OFS_UCSCTL7+1
6528 #define OFS_UCSCTL8 (0x0010u)
6529 #define OFS_UCSCTL8_L OFS_UCSCTL8
6530 #define OFS_UCSCTL8_H OFS_UCSCTL8+1
6536 #define MOD0 (0x0008u)
6537 #define MOD1 (0x0010u)
6538 #define MOD2 (0x0020u)
6539 #define MOD3 (0x0040u)
6540 #define MOD4 (0x0080u)
6541 #define DCO0 (0x0100u)
6542 #define DCO1 (0x0200u)
6543 #define DCO2 (0x0400u)
6544 #define DCO3 (0x0800u)
6545 #define DCO4 (0x1000u)
6554 #define MOD0_L (0x0008u)
6555 #define MOD1_L (0x0010u)
6556 #define MOD2_L (0x0020u)
6557 #define MOD3_L (0x0040u)
6558 #define MOD4_L (0x0080u)
6567 #define DCO0_H (0x0001u)
6568 #define DCO1_H (0x0002u)
6569 #define DCO2_H (0x0004u)
6570 #define DCO3_H (0x0008u)
6571 #define DCO4_H (0x0010u)
6577 #define DISMOD (0x0001u)
6581 #define DCORSEL0 (0x0010u)
6582 #define DCORSEL1 (0x0020u)
6583 #define DCORSEL2 (0x0040u)
6595 #define DISMOD_L (0x0001u)
6599 #define DCORSEL0_L (0x0010u)
6600 #define DCORSEL1_L (0x0020u)
6601 #define DCORSEL2_L (0x0040u)
6612 #define DCORSEL_0 (0x0000u)
6613 #define DCORSEL_1 (0x0010u)
6614 #define DCORSEL_2 (0x0020u)
6615 #define DCORSEL_3 (0x0030u)
6616 #define DCORSEL_4 (0x0040u)
6617 #define DCORSEL_5 (0x0050u)
6618 #define DCORSEL_6 (0x0060u)
6619 #define DCORSEL_7 (0x0070u)
6622 #define FLLN0 (0x0001u)
6623 #define FLLN1 (0x0002u)
6624 #define FLLN2 (0x0004u)
6625 #define FLLN3 (0x0008u)
6626 #define FLLN4 (0x0010u)
6627 #define FLLN5 (0x0020u)
6628 #define FLLN6 (0x0040u)
6629 #define FLLN7 (0x0080u)
6630 #define FLLN8 (0x0100u)
6631 #define FLLN9 (0x0200u)
6634 #define FLLD0 (0x1000u)
6635 #define FLLD1 (0x2000u)
6636 #define FLLD2 (0x4000u)
6640 #define FLLN0_L (0x0001u)
6641 #define FLLN1_L (0x0002u)
6642 #define FLLN2_L (0x0004u)
6643 #define FLLN3_L (0x0008u)
6644 #define FLLN4_L (0x0010u)
6645 #define FLLN5_L (0x0020u)
6646 #define FLLN6_L (0x0040u)
6647 #define FLLN7_L (0x0080u)
6653 #define FLLN8_H (0x0001u)
6654 #define FLLN9_H (0x0002u)
6657 #define FLLD0_H (0x0010u)
6658 #define FLLD1_H (0x0020u)
6659 #define FLLD2_H (0x0040u)
6662 #define FLLD_0 (0x0000u)
6663 #define FLLD_1 (0x1000u)
6664 #define FLLD_2 (0x2000u)
6665 #define FLLD_3 (0x3000u)
6666 #define FLLD_4 (0x4000u)
6667 #define FLLD_5 (0x5000u)
6668 #define FLLD_6 (0x6000u)
6669 #define FLLD_7 (0x7000u)
6670 #define FLLD__1 (0x0000u)
6671 #define FLLD__2 (0x1000u)
6672 #define FLLD__4 (0x2000u)
6673 #define FLLD__8 (0x3000u)
6674 #define FLLD__16 (0x4000u)
6675 #define FLLD__32 (0x5000u)
6678 #define FLLREFDIV0 (0x0001u)
6679 #define FLLREFDIV1 (0x0002u)
6680 #define FLLREFDIV2 (0x0004u)
6682 #define SELREF0 (0x0010u)
6683 #define SELREF1 (0x0020u)
6684 #define SELREF2 (0x0040u)
6696 #define FLLREFDIV0_L (0x0001u)
6697 #define FLLREFDIV1_L (0x0002u)
6698 #define FLLREFDIV2_L (0x0004u)
6700 #define SELREF0_L (0x0010u)
6701 #define SELREF1_L (0x0020u)
6702 #define SELREF2_L (0x0040u)
6713 #define FLLREFDIV_0 (0x0000u)
6714 #define FLLREFDIV_1 (0x0001u)
6715 #define FLLREFDIV_2 (0x0002u)
6716 #define FLLREFDIV_3 (0x0003u)
6717 #define FLLREFDIV_4 (0x0004u)
6718 #define FLLREFDIV_5 (0x0005u)
6719 #define FLLREFDIV_6 (0x0006u)
6720 #define FLLREFDIV_7 (0x0007u)
6721 #define FLLREFDIV__1 (0x0000u)
6722 #define FLLREFDIV__2 (0x0001u)
6723 #define FLLREFDIV__4 (0x0002u)
6724 #define FLLREFDIV__8 (0x0003u)
6725 #define FLLREFDIV__12 (0x0004u)
6726 #define FLLREFDIV__16 (0x0005u)
6727 #define SELREF_0 (0x0000u)
6728 #define SELREF_1 (0x0010u)
6729 #define SELREF_2 (0x0020u)
6730 #define SELREF_3 (0x0030u)
6731 #define SELREF_4 (0x0040u)
6732 #define SELREF_5 (0x0050u)
6733 #define SELREF_6 (0x0060u)
6734 #define SELREF_7 (0x0070u)
6735 #define SELREF__XT1CLK (0x0000u)
6736 #define SELREF__REFOCLK (0x0020u)
6737 #define SELREF__XT2CLK (0x0050u)
6740 #define SELM0 (0x0001u)
6741 #define SELM1 (0x0002u)
6742 #define SELM2 (0x0004u)
6744 #define SELS0 (0x0010u)
6745 #define SELS1 (0x0020u)
6746 #define SELS2 (0x0040u)
6748 #define SELA0 (0x0100u)
6749 #define SELA1 (0x0200u)
6750 #define SELA2 (0x0400u)
6758 #define SELM0_L (0x0001u)
6759 #define SELM1_L (0x0002u)
6760 #define SELM2_L (0x0004u)
6762 #define SELS0_L (0x0010u)
6763 #define SELS1_L (0x0020u)
6764 #define SELS2_L (0x0040u)
6775 #define SELA0_H (0x0001u)
6776 #define SELA1_H (0x0002u)
6777 #define SELA2_H (0x0004u)
6784 #define SELM_0 (0x0000u)
6785 #define SELM_1 (0x0001u)
6786 #define SELM_2 (0x0002u)
6787 #define SELM_3 (0x0003u)
6788 #define SELM_4 (0x0004u)
6789 #define SELM_5 (0x0005u)
6790 #define SELM_6 (0x0006u)
6791 #define SELM_7 (0x0007u)
6792 #define SELM__XT1CLK (0x0000u)
6793 #define SELM__VLOCLK (0x0001u)
6794 #define SELM__REFOCLK (0x0002u)
6795 #define SELM__DCOCLK (0x0003u)
6796 #define SELM__DCOCLKDIV (0x0004u)
6797 #define SELM__XT2CLK (0x0005u)
6799 #define SELS_0 (0x0000u)
6800 #define SELS_1 (0x0010u)
6801 #define SELS_2 (0x0020u)
6802 #define SELS_3 (0x0030u)
6803 #define SELS_4 (0x0040u)
6804 #define SELS_5 (0x0050u)
6805 #define SELS_6 (0x0060u)
6806 #define SELS_7 (0x0070u)
6807 #define SELS__XT1CLK (0x0000u)
6808 #define SELS__VLOCLK (0x0010u)
6809 #define SELS__REFOCLK (0x0020u)
6810 #define SELS__DCOCLK (0x0030u)
6811 #define SELS__DCOCLKDIV (0x0040u)
6812 #define SELS__XT2CLK (0x0050u)
6814 #define SELA_0 (0x0000u)
6815 #define SELA_1 (0x0100u)
6816 #define SELA_2 (0x0200u)
6817 #define SELA_3 (0x0300u)
6818 #define SELA_4 (0x0400u)
6819 #define SELA_5 (0x0500u)
6820 #define SELA_6 (0x0600u)
6821 #define SELA_7 (0x0700u)
6822 #define SELA__XT1CLK (0x0000u)
6823 #define SELA__VLOCLK (0x0100u)
6824 #define SELA__REFOCLK (0x0200u)
6825 #define SELA__DCOCLK (0x0300u)
6826 #define SELA__DCOCLKDIV (0x0400u)
6827 #define SELA__XT2CLK (0x0500u)
6830 #define DIVM0 (0x0001u)
6831 #define DIVM1 (0x0002u)
6832 #define DIVM2 (0x0004u)
6834 #define DIVS0 (0x0010u)
6835 #define DIVS1 (0x0020u)
6836 #define DIVS2 (0x0040u)
6838 #define DIVA0 (0x0100u)
6839 #define DIVA1 (0x0200u)
6840 #define DIVA2 (0x0400u)
6842 #define DIVPA0 (0x1000u)
6843 #define DIVPA1 (0x2000u)
6844 #define DIVPA2 (0x4000u)
6848 #define DIVM0_L (0x0001u)
6849 #define DIVM1_L (0x0002u)
6850 #define DIVM2_L (0x0004u)
6852 #define DIVS0_L (0x0010u)
6853 #define DIVS1_L (0x0020u)
6854 #define DIVS2_L (0x0040u)
6862 #define DIVA0_H (0x0001u)
6863 #define DIVA1_H (0x0002u)
6864 #define DIVA2_H (0x0004u)
6866 #define DIVPA0_H (0x0010u)
6867 #define DIVPA1_H (0x0020u)
6868 #define DIVPA2_H (0x0040u)
6871 #define DIVM_0 (0x0000u)
6872 #define DIVM_1 (0x0001u)
6873 #define DIVM_2 (0x0002u)
6874 #define DIVM_3 (0x0003u)
6875 #define DIVM_4 (0x0004u)
6876 #define DIVM_5 (0x0005u)
6877 #define DIVM_6 (0x0006u)
6878 #define DIVM_7 (0x0007u)
6879 #define DIVM__1 (0x0000u)
6880 #define DIVM__2 (0x0001u)
6881 #define DIVM__4 (0x0002u)
6882 #define DIVM__8 (0x0003u)
6883 #define DIVM__16 (0x0004u)
6884 #define DIVM__32 (0x0005u)
6886 #define DIVS_0 (0x0000u)
6887 #define DIVS_1 (0x0010u)
6888 #define DIVS_2 (0x0020u)
6889 #define DIVS_3 (0x0030u)
6890 #define DIVS_4 (0x0040u)
6891 #define DIVS_5 (0x0050u)
6892 #define DIVS_6 (0x0060u)
6893 #define DIVS_7 (0x0070u)
6894 #define DIVS__1 (0x0000u)
6895 #define DIVS__2 (0x0010u)
6896 #define DIVS__4 (0x0020u)
6897 #define DIVS__8 (0x0030u)
6898 #define DIVS__16 (0x0040u)
6899 #define DIVS__32 (0x0050u)
6901 #define DIVA_0 (0x0000u)
6902 #define DIVA_1 (0x0100u)
6903 #define DIVA_2 (0x0200u)
6904 #define DIVA_3 (0x0300u)
6905 #define DIVA_4 (0x0400u)
6906 #define DIVA_5 (0x0500u)
6907 #define DIVA_6 (0x0600u)
6908 #define DIVA_7 (0x0700u)
6909 #define DIVA__1 (0x0000u)
6910 #define DIVA__2 (0x0100u)
6911 #define DIVA__4 (0x0200u)
6912 #define DIVA__8 (0x0300u)
6913 #define DIVA__16 (0x0400u)
6914 #define DIVA__32 (0x0500u)
6916 #define DIVPA_0 (0x0000u)
6917 #define DIVPA_1 (0x1000u)
6918 #define DIVPA_2 (0x2000u)
6919 #define DIVPA_3 (0x3000u)
6920 #define DIVPA_4 (0x4000u)
6921 #define DIVPA_5 (0x5000u)
6922 #define DIVPA_6 (0x6000u)
6923 #define DIVPA_7 (0x7000u)
6924 #define DIVPA__1 (0x0000u)
6925 #define DIVPA__2 (0x1000u)
6926 #define DIVPA__4 (0x2000u)
6927 #define DIVPA__8 (0x3000u)
6928 #define DIVPA__16 (0x4000u)
6929 #define DIVPA__32 (0x5000u)
6932 #define XT1OFF (0x0001u)
6933 #define SMCLKOFF (0x0002u)
6934 #define XCAP0 (0x0004u)
6935 #define XCAP1 (0x0008u)
6936 #define XT1BYPASS (0x0010u)
6937 #define XTS (0x0020u)
6938 #define XT1DRIVE0 (0x0040u)
6939 #define XT1DRIVE1 (0x0080u)
6940 #define XT2OFF (0x0100u)
6944 #define XT2BYPASS (0x1000u)
6946 #define XT2DRIVE0 (0x4000u)
6947 #define XT2DRIVE1 (0x8000u)
6950 #define XT1OFF_L (0x0001u)
6951 #define SMCLKOFF_L (0x0002u)
6952 #define XCAP0_L (0x0004u)
6953 #define XCAP1_L (0x0008u)
6954 #define XT1BYPASS_L (0x0010u)
6955 #define XTS_L (0x0020u)
6956 #define XT1DRIVE0_L (0x0040u)
6957 #define XT1DRIVE1_L (0x0080u)
6964 #define XT2OFF_H (0x0001u)
6968 #define XT2BYPASS_H (0x0010u)
6970 #define XT2DRIVE0_H (0x0040u)
6971 #define XT2DRIVE1_H (0x0080u)
6973 #define XCAP_0 (0x0000u)
6974 #define XCAP_1 (0x0004u)
6975 #define XCAP_2 (0x0008u)
6976 #define XCAP_3 (0x000Cu)
6977 #define XT1DRIVE_0 (0x0000u)
6978 #define XT1DRIVE_1 (0x0040u)
6979 #define XT1DRIVE_2 (0x0080u)
6980 #define XT1DRIVE_3 (0x00C0u)
6981 #define XT2DRIVE_0 (0x0000u)
6982 #define XT2DRIVE_1 (0x4000u)
6983 #define XT2DRIVE_2 (0x8000u)
6984 #define XT2DRIVE_3 (0xC000u)
6987 #define DCOFFG (0x0001u)
6988 #define XT1LFOFFG (0x0002u)
6989 #define XT1HFOFFG (0x0004u)
6990 #define XT2OFFG (0x0008u)
7005 #define DCOFFG_L (0x0001u)
7006 #define XT1LFOFFG_L (0x0002u)
7007 #define XT1HFOFFG_L (0x0004u)
7008 #define XT2OFFG_L (0x0008u)
7023 #define ACLKREQEN (0x0001u)
7024 #define MCLKREQEN (0x0002u)
7025 #define SMCLKREQEN (0x0004u)
7026 #define MODOSCREQEN (0x0008u)
7041 #define ACLKREQEN_L (0x0001u)
7042 #define MCLKREQEN_L (0x0002u)
7043 #define SMCLKREQEN_L (0x0004u)
7044 #define MODOSCREQEN_L (0x0008u)
7062 #ifdef __MSP430_HAS_UCS_RF__
7064 #define OFS_UCSCTL0 (0x0000u)
7065 #define OFS_UCSCTL0_L OFS_UCSCTL0
7066 #define OFS_UCSCTL0_H OFS_UCSCTL0+1
7067 #define OFS_UCSCTL1 (0x0002u)
7068 #define OFS_UCSCTL1_L OFS_UCSCTL1
7069 #define OFS_UCSCTL1_H OFS_UCSCTL1+1
7070 #define OFS_UCSCTL2 (0x0004u)
7071 #define OFS_UCSCTL2_L OFS_UCSCTL2
7072 #define OFS_UCSCTL2_H OFS_UCSCTL2+1
7073 #define OFS_UCSCTL3 (0x0006u)
7074 #define OFS_UCSCTL3_L OFS_UCSCTL3
7075 #define OFS_UCSCTL3_H OFS_UCSCTL3+1
7076 #define OFS_UCSCTL4 (0x0008u)
7077 #define OFS_UCSCTL4_L OFS_UCSCTL4
7078 #define OFS_UCSCTL4_H OFS_UCSCTL4+1
7079 #define OFS_UCSCTL5 (0x000Au)
7080 #define OFS_UCSCTL5_L OFS_UCSCTL5
7081 #define OFS_UCSCTL5_H OFS_UCSCTL5+1
7082 #define OFS_UCSCTL6 (0x000Cu)
7083 #define OFS_UCSCTL6_L OFS_UCSCTL6
7084 #define OFS_UCSCTL6_H OFS_UCSCTL6+1
7085 #define OFS_UCSCTL7 (0x000Eu)
7086 #define OFS_UCSCTL7_L OFS_UCSCTL7
7087 #define OFS_UCSCTL7_H OFS_UCSCTL7+1
7088 #define OFS_UCSCTL8 (0x0010u)
7089 #define OFS_UCSCTL8_L OFS_UCSCTL8
7090 #define OFS_UCSCTL8_H OFS_UCSCTL8+1
7096 #define MOD0 (0x0008u)
7097 #define MOD1 (0x0010u)
7098 #define MOD2 (0x0020u)
7099 #define MOD3 (0x0040u)
7100 #define MOD4 (0x0080u)
7101 #define DCO0 (0x0100u)
7102 #define DCO1 (0x0200u)
7103 #define DCO2 (0x0400u)
7104 #define DCO3 (0x0800u)
7105 #define DCO4 (0x1000u)
7114 #define MOD0_L (0x0008u)
7115 #define MOD1_L (0x0010u)
7116 #define MOD2_L (0x0020u)
7117 #define MOD3_L (0x0040u)
7118 #define MOD4_L (0x0080u)
7127 #define DCO0_H (0x0001u)
7128 #define DCO1_H (0x0002u)
7129 #define DCO2_H (0x0004u)
7130 #define DCO3_H (0x0008u)
7131 #define DCO4_H (0x0010u)
7137 #define DISMOD (0x0001u)
7141 #define DCORSEL0 (0x0010u)
7142 #define DCORSEL1 (0x0020u)
7143 #define DCORSEL2 (0x0040u)
7155 #define DISMOD_L (0x0001u)
7159 #define DCORSEL0_L (0x0010u)
7160 #define DCORSEL1_L (0x0020u)
7161 #define DCORSEL2_L (0x0040u)
7172 #define DCORSEL_0 (0x0000u)
7173 #define DCORSEL_1 (0x0010u)
7174 #define DCORSEL_2 (0x0020u)
7175 #define DCORSEL_3 (0x0030u)
7176 #define DCORSEL_4 (0x0040u)
7177 #define DCORSEL_5 (0x0050u)
7178 #define DCORSEL_6 (0x0060u)
7179 #define DCORSEL_7 (0x0070u)
7182 #define FLLN0 (0x0001u)
7183 #define FLLN1 (0x0002u)
7184 #define FLLN2 (0x0004u)
7185 #define FLLN3 (0x0008u)
7186 #define FLLN4 (0x0010u)
7187 #define FLLN5 (0x0020u)
7188 #define FLLN6 (0x0040u)
7189 #define FLLN7 (0x0080u)
7190 #define FLLN8 (0x0100u)
7191 #define FLLN9 (0x0200u)
7194 #define FLLD0 (0x1000u)
7195 #define FLLD1 (0x2000u)
7196 #define FLLD2 (0x4000u)
7200 #define FLLN0_L (0x0001u)
7201 #define FLLN1_L (0x0002u)
7202 #define FLLN2_L (0x0004u)
7203 #define FLLN3_L (0x0008u)
7204 #define FLLN4_L (0x0010u)
7205 #define FLLN5_L (0x0020u)
7206 #define FLLN6_L (0x0040u)
7207 #define FLLN7_L (0x0080u)
7213 #define FLLN8_H (0x0001u)
7214 #define FLLN9_H (0x0002u)
7217 #define FLLD0_H (0x0010u)
7218 #define FLLD1_H (0x0020u)
7219 #define FLLD2_H (0x0040u)
7222 #define FLLD_0 (0x0000u)
7223 #define FLLD_1 (0x1000u)
7224 #define FLLD_2 (0x2000u)
7225 #define FLLD_3 (0x3000u)
7226 #define FLLD_4 (0x4000u)
7227 #define FLLD_5 (0x5000u)
7228 #define FLLD_6 (0x6000u)
7229 #define FLLD_7 (0x7000u)
7230 #define FLLD__1 (0x0000u)
7231 #define FLLD__2 (0x1000u)
7232 #define FLLD__4 (0x2000u)
7233 #define FLLD__8 (0x3000u)
7234 #define FLLD__16 (0x4000u)
7235 #define FLLD__32 (0x5000u)
7238 #define FLLREFDIV0 (0x0001u)
7239 #define FLLREFDIV1 (0x0002u)
7240 #define FLLREFDIV2 (0x0004u)
7242 #define SELREF0 (0x0010u)
7243 #define SELREF1 (0x0020u)
7244 #define SELREF2 (0x0040u)
7256 #define FLLREFDIV0_L (0x0001u)
7257 #define FLLREFDIV1_L (0x0002u)
7258 #define FLLREFDIV2_L (0x0004u)
7260 #define SELREF0_L (0x0010u)
7261 #define SELREF1_L (0x0020u)
7262 #define SELREF2_L (0x0040u)
7273 #define FLLREFDIV_0 (0x0000u)
7274 #define FLLREFDIV_1 (0x0001u)
7275 #define FLLREFDIV_2 (0x0002u)
7276 #define FLLREFDIV_3 (0x0003u)
7277 #define FLLREFDIV_4 (0x0004u)
7278 #define FLLREFDIV_5 (0x0005u)
7279 #define FLLREFDIV_6 (0x0006u)
7280 #define FLLREFDIV_7 (0x0007u)
7281 #define FLLREFDIV__1 (0x0000u)
7282 #define FLLREFDIV__2 (0x0001u)
7283 #define FLLREFDIV__4 (0x0002u)
7284 #define FLLREFDIV__8 (0x0003u)
7285 #define FLLREFDIV__12 (0x0004u)
7286 #define FLLREFDIV__16 (0x0005u)
7287 #define SELREF_0 (0x0000u)
7288 #define SELREF_1 (0x0010u)
7289 #define SELREF_2 (0x0020u)
7290 #define SELREF_3 (0x0030u)
7291 #define SELREF_4 (0x0040u)
7292 #define SELREF_5 (0x0050u)
7293 #define SELREF_6 (0x0060u)
7294 #define SELREF_7 (0x0070u)
7295 #define SELREF__XT1CLK (0x0000u)
7296 #define SELREF__REFOCLK (0x0020u)
7297 #define SELREF__XT2CLK (0x0050u)
7300 #define SELM0 (0x0001u)
7301 #define SELM1 (0x0002u)
7302 #define SELM2 (0x0004u)
7304 #define SELS0 (0x0010u)
7305 #define SELS1 (0x0020u)
7306 #define SELS2 (0x0040u)
7308 #define SELA0 (0x0100u)
7309 #define SELA1 (0x0200u)
7310 #define SELA2 (0x0400u)
7318 #define SELM0_L (0x0001u)
7319 #define SELM1_L (0x0002u)
7320 #define SELM2_L (0x0004u)
7322 #define SELS0_L (0x0010u)
7323 #define SELS1_L (0x0020u)
7324 #define SELS2_L (0x0040u)
7335 #define SELA0_H (0x0001u)
7336 #define SELA1_H (0x0002u)
7337 #define SELA2_H (0x0004u)
7344 #define SELM_0 (0x0000u)
7345 #define SELM_1 (0x0001u)
7346 #define SELM_2 (0x0002u)
7347 #define SELM_3 (0x0003u)
7348 #define SELM_4 (0x0004u)
7349 #define SELM_5 (0x0005u)
7350 #define SELM_6 (0x0006u)
7351 #define SELM_7 (0x0007u)
7352 #define SELM__XT1CLK (0x0000u)
7353 #define SELM__VLOCLK (0x0001u)
7354 #define SELM__REFOCLK (0x0002u)
7355 #define SELM__DCOCLK (0x0003u)
7356 #define SELM__DCOCLKDIV (0x0004u)
7357 #define SELM__XT2CLK (0x0005u)
7359 #define SELS_0 (0x0000u)
7360 #define SELS_1 (0x0010u)
7361 #define SELS_2 (0x0020u)
7362 #define SELS_3 (0x0030u)
7363 #define SELS_4 (0x0040u)
7364 #define SELS_5 (0x0050u)
7365 #define SELS_6 (0x0060u)
7366 #define SELS_7 (0x0070u)
7367 #define SELS__XT1CLK (0x0000u)
7368 #define SELS__VLOCLK (0x0010u)
7369 #define SELS__REFOCLK (0x0020u)
7370 #define SELS__DCOCLK (0x0030u)
7371 #define SELS__DCOCLKDIV (0x0040u)
7372 #define SELS__XT2CLK (0x0050u)
7374 #define SELA_0 (0x0000u)
7375 #define SELA_1 (0x0100u)
7376 #define SELA_2 (0x0200u)
7377 #define SELA_3 (0x0300u)
7378 #define SELA_4 (0x0400u)
7379 #define SELA_5 (0x0500u)
7380 #define SELA_6 (0x0600u)
7381 #define SELA_7 (0x0700u)
7382 #define SELA__XT1CLK (0x0000u)
7383 #define SELA__VLOCLK (0x0100u)
7384 #define SELA__REFOCLK (0x0200u)
7385 #define SELA__DCOCLK (0x0300u)
7386 #define SELA__DCOCLKDIV (0x0400u)
7387 #define SELA__XT2CLK (0x0500u)
7390 #define DIVM0 (0x0001u)
7391 #define DIVM1 (0x0002u)
7392 #define DIVM2 (0x0004u)
7394 #define DIVS0 (0x0010u)
7395 #define DIVS1 (0x0020u)
7396 #define DIVS2 (0x0040u)
7398 #define DIVA0 (0x0100u)
7399 #define DIVA1 (0x0200u)
7400 #define DIVA2 (0x0400u)
7402 #define DIVPA0 (0x1000u)
7403 #define DIVPA1 (0x2000u)
7404 #define DIVPA2 (0x4000u)
7408 #define DIVM0_L (0x0001u)
7409 #define DIVM1_L (0x0002u)
7410 #define DIVM2_L (0x0004u)
7412 #define DIVS0_L (0x0010u)
7413 #define DIVS1_L (0x0020u)
7414 #define DIVS2_L (0x0040u)
7422 #define DIVA0_H (0x0001u)
7423 #define DIVA1_H (0x0002u)
7424 #define DIVA2_H (0x0004u)
7426 #define DIVPA0_H (0x0010u)
7427 #define DIVPA1_H (0x0020u)
7428 #define DIVPA2_H (0x0040u)
7431 #define DIVM_0 (0x0000u)
7432 #define DIVM_1 (0x0001u)
7433 #define DIVM_2 (0x0002u)
7434 #define DIVM_3 (0x0003u)
7435 #define DIVM_4 (0x0004u)
7436 #define DIVM_5 (0x0005u)
7437 #define DIVM_6 (0x0006u)
7438 #define DIVM_7 (0x0007u)
7439 #define DIVM__1 (0x0000u)
7440 #define DIVM__2 (0x0001u)
7441 #define DIVM__4 (0x0002u)
7442 #define DIVM__8 (0x0003u)
7443 #define DIVM__16 (0x0004u)
7444 #define DIVM__32 (0x0005u)
7446 #define DIVS_0 (0x0000u)
7447 #define DIVS_1 (0x0010u)
7448 #define DIVS_2 (0x0020u)
7449 #define DIVS_3 (0x0030u)
7450 #define DIVS_4 (0x0040u)
7451 #define DIVS_5 (0x0050u)
7452 #define DIVS_6 (0x0060u)
7453 #define DIVS_7 (0x0070u)
7454 #define DIVS__1 (0x0000u)
7455 #define DIVS__2 (0x0010u)
7456 #define DIVS__4 (0x0020u)
7457 #define DIVS__8 (0x0030u)
7458 #define DIVS__16 (0x0040u)
7459 #define DIVS__32 (0x0050u)
7461 #define DIVA_0 (0x0000u)
7462 #define DIVA_1 (0x0100u)
7463 #define DIVA_2 (0x0200u)
7464 #define DIVA_3 (0x0300u)
7465 #define DIVA_4 (0x0400u)
7466 #define DIVA_5 (0x0500u)
7467 #define DIVA_6 (0x0600u)
7468 #define DIVA_7 (0x0700u)
7469 #define DIVA__1 (0x0000u)
7470 #define DIVA__2 (0x0100u)
7471 #define DIVA__4 (0x0200u)
7472 #define DIVA__8 (0x0300u)
7473 #define DIVA__16 (0x0400u)
7474 #define DIVA__32 (0x0500u)
7476 #define DIVPA_0 (0x0000u)
7477 #define DIVPA_1 (0x1000u)
7478 #define DIVPA_2 (0x2000u)
7479 #define DIVPA_3 (0x3000u)
7480 #define DIVPA_4 (0x4000u)
7481 #define DIVPA_5 (0x5000u)
7482 #define DIVPA_6 (0x6000u)
7483 #define DIVPA_7 (0x7000u)
7484 #define DIVPA__1 (0x0000u)
7485 #define DIVPA__2 (0x1000u)
7486 #define DIVPA__4 (0x2000u)
7487 #define DIVPA__8 (0x3000u)
7488 #define DIVPA__16 (0x4000u)
7489 #define DIVPA__32 (0x5000u)
7492 #define XT1OFF (0x0001u)
7493 #define SMCLKOFF (0x0002u)
7494 #define XCAP0 (0x0004u)
7495 #define XCAP1 (0x0008u)
7496 #define XT1BYPASS (0x0010u)
7497 #define XTS (0x0020u)
7498 #define XT1DRIVE0 (0x0040u)
7499 #define XT1DRIVE1 (0x0080u)
7500 #define XT2OFF (0x0100u)
7510 #define XT1OFF_L (0x0001u)
7511 #define SMCLKOFF_L (0x0002u)
7512 #define XCAP0_L (0x0004u)
7513 #define XCAP1_L (0x0008u)
7514 #define XT1BYPASS_L (0x0010u)
7515 #define XTS_L (0x0020u)
7516 #define XT1DRIVE0_L (0x0040u)
7517 #define XT1DRIVE1_L (0x0080u)
7527 #define XT2OFF_H (0x0001u)
7536 #define XCAP_0 (0x0000u)
7537 #define XCAP_1 (0x0004u)
7538 #define XCAP_2 (0x0008u)
7539 #define XCAP_3 (0x000Cu)
7540 #define XT1DRIVE_0 (0x0000u)
7541 #define XT1DRIVE_1 (0x0040u)
7542 #define XT1DRIVE_2 (0x0080u)
7543 #define XT1DRIVE_3 (0x00C0u)
7546 #define DCOFFG (0x0001u)
7547 #define XT1LFOFFG (0x0002u)
7548 #define XT1HFOFFG (0x0004u)
7549 #define XT2OFFG (0x0008u)
7564 #define DCOFFG_L (0x0001u)
7565 #define XT1LFOFFG_L (0x0002u)
7566 #define XT1HFOFFG_L (0x0004u)
7567 #define XT2OFFG_L (0x0008u)
7582 #define ACLKREQEN (0x0001u)
7583 #define MCLKREQEN (0x0002u)
7584 #define SMCLKREQEN (0x0004u)
7585 #define MODOSCREQEN (0x0008u)
7600 #define ACLKREQEN_L (0x0001u)
7601 #define MCLKREQEN_L (0x0002u)
7602 #define SMCLKREQEN_L (0x0004u)
7603 #define MODOSCREQEN_L (0x0008u)
7621 #ifdef __MSP430_HAS_USB__
7626 #define OFS_USBKEYID (0x0000u)
7627 #define OFS_USBKEYID_L OFS_USBKEYID
7628 #define OFS_USBKEYID_H OFS_USBKEYID+1
7629 #define OFS_USBCNF (0x0002u)
7630 #define OFS_USBCNF_L OFS_USBCNF
7631 #define OFS_USBCNF_H OFS_USBCNF+1
7632 #define OFS_USBPHYCTL (0x0004u)
7633 #define OFS_USBPHYCTL_L OFS_USBPHYCTL
7634 #define OFS_USBPHYCTL_H OFS_USBPHYCTL+1
7635 #define OFS_USBPWRCTL (0x0008u)
7636 #define OFS_USBPWRCTL_L OFS_USBPWRCTL
7637 #define OFS_USBPWRCTL_H OFS_USBPWRCTL+1
7638 #define OFS_USBPLLCTL (0x0010u)
7639 #define OFS_USBPLLCTL_L OFS_USBPLLCTL
7640 #define OFS_USBPLLCTL_H OFS_USBPLLCTL+1
7641 #define OFS_USBPLLDIVB (0x0012u)
7642 #define OFS_USBPLLDIVB_L OFS_USBPLLDIVB
7643 #define OFS_USBPLLDIVB_H OFS_USBPLLDIVB+1
7644 #define OFS_USBPLLIR (0x0014u)
7645 #define OFS_USBPLLIR_L OFS_USBPLLIR
7646 #define OFS_USBPLLIR_H OFS_USBPLLIR+1
7648 #define USBKEYPID USBKEYID
7649 #define USBKEY (0x9628u)
7652 #define USB_EN (0x0001u)
7653 #define PUR_EN (0x0002u)
7654 #define PUR_IN (0x0004u)
7655 #define BLKRDY (0x0008u)
7656 #define FNTEN (0x0010u)
7670 #define USB_EN_L (0x0001u)
7671 #define PUR_EN_L (0x0002u)
7672 #define PUR_IN_L (0x0004u)
7673 #define BLKRDY_L (0x0008u)
7674 #define FNTEN_L (0x0010u)
7688 #define PUOUT0 (0x0001u)
7689 #define PUOUT1 (0x0002u)
7690 #define PUIN0 (0x0004u)
7691 #define PUIN1 (0x0008u)
7693 #define PUOPE (0x0020u)
7695 #define PUSEL (0x0080u)
7696 #define PUIPE (0x0100u)
7708 #define PUOUT0_L (0x0001u)
7709 #define PUOUT1_L (0x0002u)
7710 #define PUIN0_L (0x0004u)
7711 #define PUIN1_L (0x0008u)
7713 #define PUOPE_L (0x0020u)
7715 #define PUSEL_L (0x0080u)
7729 #define PUIPE_H (0x0001u)
7740 #define PUDIR (0x0020u)
7741 #define PSEIEN (0x0100u)
7744 #define VUOVLIFG (0x0001u)
7745 #define VBONIFG (0x0002u)
7746 #define VBOFFIFG (0x0004u)
7747 #define USBBGVBV (0x0008u)
7748 #define USBDETEN (0x0010u)
7749 #define OVLAOFF (0x0020u)
7750 #define SLDOAON (0x0040u)
7752 #define VUOVLIE (0x0100u)
7753 #define VBONIE (0x0200u)
7754 #define VBOFFIE (0x0400u)
7755 #define VUSBEN (0x0800u)
7756 #define SLDOEN (0x1000u)
7762 #define VUOVLIFG_L (0x0001u)
7763 #define VBONIFG_L (0x0002u)
7764 #define VBOFFIFG_L (0x0004u)
7765 #define USBBGVBV_L (0x0008u)
7766 #define USBDETEN_L (0x0010u)
7767 #define OVLAOFF_L (0x0020u)
7768 #define SLDOAON_L (0x0040u)
7776 #define VUOVLIE_H (0x0001u)
7777 #define VBONIE_H (0x0002u)
7778 #define VBOFFIE_H (0x0004u)
7779 #define VUSBEN_H (0x0008u)
7780 #define SLDOEN_H (0x0010u)
7792 #define UCLKSEL0 (0x0040u)
7793 #define UCLKSEL1 (0x0080u)
7794 #define UPLLEN (0x0100u)
7795 #define UPFDEN (0x0200u)
7810 #define UCLKSEL0_L (0x0040u)
7811 #define UCLKSEL1_L (0x0080u)
7826 #define UPLLEN_H (0x0001u)
7827 #define UPFDEN_H (0x0002u)
7835 #define UCLKSEL_0 (0x0000u)
7836 #define UCLKSEL_1 (0x0040u)
7837 #define UCLKSEL_2 (0x0080u)
7838 #define UCLKSEL_3 (0x00C0u)
7840 #define UCLKSEL__PLLCLK (0x0000u)
7841 #define UCLKSEL__XT1CLK (0x0040u)
7842 #define UCLKSEL__XT2CLK (0x0080u)
7845 #define UPMB0 (0x0001u)
7846 #define UPMB1 (0x0002u)
7847 #define UPMB2 (0x0004u)
7848 #define UPMB3 (0x0008u)
7849 #define UPMB4 (0x0010u)
7850 #define UPMB5 (0x0020u)
7853 #define UPQB0 (0x0100u)
7854 #define UPQB1 (0x0200u)
7855 #define UPQB2 (0x0400u)
7863 #define UPMB0_L (0x0001u)
7864 #define UPMB1_L (0x0002u)
7865 #define UPMB2_L (0x0004u)
7866 #define UPMB3_L (0x0008u)
7867 #define UPMB4_L (0x0010u)
7868 #define UPMB5_L (0x0020u)
7880 #define UPQB0_H (0x0001u)
7881 #define UPQB1_H (0x0002u)
7882 #define UPQB2_H (0x0004u)
7889 #define USBPLL_SETCLK_1_5 (UPMB0*31 | UPQB0*0)
7890 #define USBPLL_SETCLK_1_6 (UPMB0*29 | UPQB0*0)
7891 #define USBPLL_SETCLK_1_7778 (UPMB0*26 | UPQB0*0)
7892 #define USBPLL_SETCLK_1_8432 (UPMB0*25 | UPQB0*0)
7893 #define USBPLL_SETCLK_1_8461 (UPMB0*25 | UPQB0*0)
7894 #define USBPLL_SETCLK_1_92 (UPMB0*24 | UPQB0*0)
7895 #define USBPLL_SETCLK_2_0 (UPMB0*23 | UPQB0*0)
7896 #define USBPLL_SETCLK_2_4 (UPMB0*19 | UPQB0*0)
7897 #define USBPLL_SETCLK_2_6667 (UPMB0*17 | UPQB0*0)
7898 #define USBPLL_SETCLK_3_0 (UPMB0*15 | UPQB0*0)
7899 #define USBPLL_SETCLK_3_2 (UPMB0*29 | UPQB0*1)
7900 #define USBPLL_SETCLK_3_5556 (UPMB0*26 | UPQB0*1)
7901 #define USBPLL_SETCLK_3_579545 (UPMB0*26 | UPQB0*1)
7902 #define USBPLL_SETCLK_3_84 (UPMB0*24 | UPQB0*1)
7903 #define USBPLL_SETCLK_4_0 (UPMB0*23 | UPQB0*1)
7904 #define USBPLL_SETCLK_4_1739 (UPMB0*22 | UPQB0*1)
7905 #define USBPLL_SETCLK_4_1943 (UPMB0*22 | UPQB0*1)
7906 #define USBPLL_SETCLK_4_332 (UPMB0*21 | UPQB0*1)
7907 #define USBPLL_SETCLK_4_3636 (UPMB0*21 | UPQB0*1)
7908 #define USBPLL_SETCLK_4_5 (UPMB0*31 | UPQB0*2)
7909 #define USBPLL_SETCLK_4_8 (UPMB0*19 | UPQB0*1)
7910 #define USBPLL_SETCLK_5_33 (UPMB0*17 | UPQB0*1)
7911 #define USBPLL_SETCLK_5_76 (UPMB0*24 | UPQB0*2)
7912 #define USBPLL_SETCLK_6_0 (UPMB0*23 | UPQB0*2)
7913 #define USBPLL_SETCLK_6_4 (UPMB0*29 | UPQB0*3)
7914 #define USBPLL_SETCLK_7_2 (UPMB0*19 | UPQB0*2)
7915 #define USBPLL_SETCLK_7_68 (UPMB0*24 | UPQB0*3)
7916 #define USBPLL_SETCLK_8_0 (UPMB0*17 | UPQB0*2)
7917 #define USBPLL_SETCLK_9_0 (UPMB0*15 | UPQB0*2)
7918 #define USBPLL_SETCLK_9_6 (UPMB0*19 | UPQB0*3)
7919 #define USBPLL_SETCLK_10_66 (UPMB0*17 | UPQB0*3)
7920 #define USBPLL_SETCLK_12_0 (UPMB0*15 | UPQB0*3)
7921 #define USBPLL_SETCLK_12_8 (UPMB0*29 | UPQB0*5)
7922 #define USBPLL_SETCLK_14_4 (UPMB0*19 | UPQB0*4)
7923 #define USBPLL_SETCLK_16_0 (UPMB0*17 | UPQB0*4)
7924 #define USBPLL_SETCLK_16_9344 (UPMB0*16 | UPQB0*4)
7925 #define USBPLL_SETCLK_16_94118 (UPMB0*16 | UPQB0*4)
7926 #define USBPLL_SETCLK_18_0 (UPMB0*15 | UPQB0*4)
7927 #define USBPLL_SETCLK_19_2 (UPMB0*19 | UPQB0*5)
7928 #define USBPLL_SETCLK_24_0 (UPMB0*15 | UPQB0*5)
7929 #define USBPLL_SETCLK_25_6 (UPMB0*29 | UPQB0*7)
7930 #define USBPLL_SETCLK_26_0 (UPMB0*23 | UPQB0*6)
7931 #define USBPLL_SETCLK_32_0 (UPMB0*23 | UPQB0*7)
7934 #define USBOOLIFG (0x0001u)
7935 #define USBLOSIFG (0x0002u)
7936 #define USBOORIFG (0x0004u)
7942 #define USBOOLIE (0x0100u)
7943 #define USBLOSIE (0x0200u)
7944 #define USBOORIE (0x0400u)
7952 #define USBOOLIFG_L (0x0001u)
7953 #define USBLOSIFG_L (0x0002u)
7954 #define USBOORIFG_L (0x0004u)
7972 #define USBOOLIE_H (0x0001u)
7973 #define USBLOSIE_H (0x0002u)
7974 #define USBOORIE_H (0x0004u)
7984 #define OFS_USBIEPCNF_0 (0x0020u)
7985 #define OFS_USBIEPCNT_0 (0x0021u)
7986 #define OFS_USBOEPCNF_0 (0x0022u)
7987 #define OFS_USBOEPCNT_0 (0x0023u)
7988 #define OFS_USBIEPIE (0x002Eu)
7989 #define OFS_USBOEPIE (0x002Fu)
7990 #define OFS_USBIEPIFG (0x0030u)
7991 #define OFS_USBOEPIFG (0x0031u)
7992 #define OFS_USBVECINT (0x0032u)
7993 #define OFS_USBVECINT_L OFS_USBVECINT
7994 #define OFS_USBVECINT_H OFS_USBVECINT+1
7995 #define OFS_USBMAINT (0x0036u)
7996 #define OFS_USBMAINT_L OFS_USBMAINT
7997 #define OFS_USBMAINT_H OFS_USBMAINT+1
7998 #define OFS_USBTSREG (0x0038u)
7999 #define OFS_USBTSREG_L OFS_USBTSREG
8000 #define OFS_USBTSREG_H OFS_USBTSREG+1
8001 #define OFS_USBFN (0x003Au)
8002 #define OFS_USBFN_L OFS_USBFN
8003 #define OFS_USBFN_H OFS_USBFN+1
8004 #define OFS_USBCTL (0x003Cu)
8005 #define OFS_USBIE (0x003Du)
8006 #define OFS_USBIFG (0x003Eu)
8007 #define OFS_USBFUNADR (0x003Fu)
8009 #define USBIV USBVECINT
8015 #define USBIIE (0x0004u)
8016 #define STALL (0x0008u)
8018 #define TOGGLE (0x0020u)
8020 #define UBME (0x0080u)
8024 #define CNT0 (0x0001u)
8025 #define CNT1 (0x0001u)
8026 #define CNT2 (0x0004u)
8027 #define CNT3 (0x0008u)
8031 #define NAK (0x0080u)
8034 #define UTIFG (0x0001u)
8035 #define UTIE (0x0002u)
8042 #define TSGEN (0x0100u)
8043 #define TSESEL0 (0x0200u)
8044 #define TSESEL1 (0x0400u)
8045 #define TSE3 (0x0800u)
8047 #define UTSEL0 (0x2000u)
8048 #define UTSEL1 (0x4000u)
8049 #define UTSEL2 (0x8000u)
8052 #define UTIFG_L (0x0001u)
8053 #define UTIE_L (0x0002u)
8069 #define TSGEN_H (0x0001u)
8070 #define TSESEL0_H (0x0002u)
8071 #define TSESEL1_H (0x0004u)
8072 #define TSE3_H (0x0008u)
8074 #define UTSEL0_H (0x0020u)
8075 #define UTSEL1_H (0x0040u)
8076 #define UTSEL2_H (0x0080u)
8078 #define TSESEL_0 (0x0000u)
8079 #define TSESEL_1 (0x0200u)
8080 #define TSESEL_2 (0x0400u)
8081 #define TSESEL_3 (0x0600u)
8083 #define UTSEL_0 (0x0000u)
8084 #define UTSEL_1 (0x2000u)
8085 #define UTSEL_2 (0x4000u)
8086 #define UTSEL_3 (0x6000u)
8087 #define UTSEL_4 (0x8000u)
8088 #define UTSEL_5 (0xA000u)
8089 #define UTSEL_6 (0xC000u)
8090 #define UTSEL_7 (0xE000u)
8093 #define DIR (0x0001u)
8097 #define FRSTE (0x0010u)
8098 #define RWUP (0x0020u)
8099 #define FEN (0x0040u)
8103 #define STPOWIE (0x0001u)
8105 #define SETUPIE (0x0004u)
8108 #define RESRIE (0x0020u)
8109 #define SUSRIE (0x0040u)
8110 #define RSTRIE (0x0080u)
8113 #define STPOWIFG (0x0001u)
8115 #define SETUPIFG (0x0004u)
8118 #define RESRIFG (0x0020u)
8119 #define SUSRIFG (0x0040u)
8120 #define RSTRIFG (0x0080u)
8123 #define USBVECINT_NONE 0x00
8124 #define USBVECINT_PWR_DROP 0x02
8125 #define USBVECINT_PLL_LOCK 0x04
8126 #define USBVECINT_PLL_SIGNAL 0x06
8127 #define USBVECINT_PLL_RANGE 0x08
8128 #define USBVECINT_PWR_VBUSOn 0x0A
8129 #define USBVECINT_PWR_VBUSOff 0x0C
8130 #define USBVECINT_USB_TIMESTAMP 0x10
8131 #define USBVECINT_INPUT_ENDPOINT0 0x12
8132 #define USBVECINT_OUTPUT_ENDPOINT0 0x14
8133 #define USBVECINT_RSTR 0x16
8134 #define USBVECINT_SUSR 0x18
8135 #define USBVECINT_RESR 0x1A
8136 #define USBVECINT_SETUP_PACKET_RECEIVED 0x20
8137 #define USBVECINT_STPOW_PACKET_RECEIVED 0x22
8138 #define USBVECINT_INPUT_ENDPOINT1 0x24
8139 #define USBVECINT_INPUT_ENDPOINT2 0x26
8140 #define USBVECINT_INPUT_ENDPOINT3 0x28
8141 #define USBVECINT_INPUT_ENDPOINT4 0x2A
8142 #define USBVECINT_INPUT_ENDPOINT5 0x2C
8143 #define USBVECINT_INPUT_ENDPOINT6 0x2E
8144 #define USBVECINT_INPUT_ENDPOINT7 0x30
8145 #define USBVECINT_OUTPUT_ENDPOINT1 0x32
8146 #define USBVECINT_OUTPUT_ENDPOINT2 0x34
8147 #define USBVECINT_OUTPUT_ENDPOINT3 0x36
8148 #define USBVECINT_OUTPUT_ENDPOINT4 0x38
8149 #define USBVECINT_OUTPUT_ENDPOINT5 0x3A
8150 #define USBVECINT_OUTPUT_ENDPOINT6 0x3C
8151 #define USBVECINT_OUTPUT_ENDPOINT7 0x3E
8158 #define OFS_USBIEPSIZXY_7 (0x23FFu)
8159 #define OFS_USBIEPBCTY_7 (0x23FEu)
8160 #define OFS_USBIEPBBAY_7 (0x23FDu)
8163 #define OFS_USBIEPBCTX_7 (0x23FAu)
8164 #define OFS_USBIEPBBAX_7 (0x23F9u)
8165 #define OFS_USBIEPCNF_7 (0x23F8u)
8166 #define OFS_USBIEPSIZXY_6 (0x23F7u)
8167 #define OFS_USBIEPBCTY_6 (0x23F6u)
8168 #define OFS_USBIEPBBAY_6 (0x23F5u)
8171 #define OFS_USBIEPBCTX_6 (0x23F2u)
8172 #define OFS_USBIEPBBAX_6 (0x23F1u)
8173 #define OFS_USBIEPCNF_6 (0x23F0u)
8174 #define OFS_USBIEPSIZXY_5 (0x23EFu)
8175 #define OFS_USBIEPBCTY_5 (0x23EEu)
8176 #define OFS_USBIEPBBAY_5 (0x23EDu)
8179 #define OFS_USBIEPBCTX_5 (0x23EAu)
8180 #define OFS_USBIEPBBAX_5 (0x23E9u)
8181 #define OFS_USBIEPCNF_5 (0x23E8u)
8182 #define OFS_USBIEPSIZXY_4 (0x23E7u)
8183 #define OFS_USBIEPBCTY_4 (0x23E6u)
8184 #define OFS_USBIEPBBAY_4 (0x23E5u)
8187 #define OFS_USBIEPBCTX_4 (0x23E2u)
8188 #define OFS_USBIEPBBAX_4 (0x23E1u)
8189 #define OFS_USBIEPCNF_4 (0x23E0u)
8190 #define OFS_USBIEPSIZXY_3 (0x23DFu)
8191 #define OFS_USBIEPBCTY_3 (0x23DEu)
8192 #define OFS_USBIEPBBAY_3 (0x23DDu)
8195 #define OFS_USBIEPBCTX_3 (0x23DAu)
8196 #define OFS_USBIEPBBAX_3 (0x23D9u)
8197 #define OFS_USBIEPCNF_3 (0x23D8u)
8198 #define OFS_USBIEPSIZXY_2 (0x23D7u)
8199 #define OFS_USBIEPBCTY_2 (0x23D6u)
8200 #define OFS_USBIEPBBAY_2 (0x23D5u)
8203 #define OFS_USBIEPBCTX_2 (0x23D2u)
8204 #define OFS_USBIEPBBAX_2 (0x23D1u)
8205 #define OFS_USBIEPCNF_2 (0x23D0u)
8206 #define OFS_USBIEPSIZXY_1 (0x23CFu)
8207 #define OFS_USBIEPBCTY_1 (0x23CEu)
8208 #define OFS_USBIEPBBAY_1 (0x23CDu)
8211 #define OFS_USBIEPBCTX_1 (0x23CAu)
8212 #define OFS_USBIEPBBAX_1 (0x23C9u)
8213 #define OFS_USBIEPCNF_1 (0x23C8u)
8217 #define OFS_USBOEPSIZXY_7 (0x23BFu)
8218 #define OFS_USBOEPBCTY_7 (0x23BEu)
8219 #define OFS_USBOEPBBAY_7 (0x23BDu)
8222 #define OFS_USBOEPBCTX_7 (0x23BAu)
8223 #define OFS_USBOEPBBAX_7 (0x23B9u)
8224 #define OFS_USBOEPCNF_7 (0x23B8u)
8225 #define OFS_USBOEPSIZXY_6 (0x23B7u)
8226 #define OFS_USBOEPBCTY_6 (0x23B6u)
8227 #define OFS_USBOEPBBAY_6 (0x23B5u)
8230 #define OFS_USBOEPBCTX_6 (0x23B2u)
8231 #define OFS_USBOEPBBAX_6 (0x23B1u)
8232 #define OFS_USBOEPCNF_6 (0x23B0u)
8233 #define OFS_USBOEPSIZXY_5 (0x23AFu)
8234 #define OFS_USBOEPBCTY_5 (0x23AEu)
8235 #define OFS_USBOEPBBAY_5 (0x23ADu)
8238 #define OFS_USBOEPBCTX_5 (0x23AAu)
8239 #define OFS_USBOEPBBAX_5 (0x23A9u)
8240 #define OFS_USBOEPCNF_5 (0x23A8u)
8241 #define OFS_USBOEPSIZXY_4 (0x23A7u)
8242 #define OFS_USBOEPBCTY_4 (0x23A6u)
8243 #define OFS_USBOEPBBAY_4 (0x23A5u)
8246 #define OFS_USBOEPBCTX_4 (0x23A2u)
8247 #define OFS_USBOEPBBAX_4 (0x23A1u)
8248 #define OFS_USBOEPCNF_4 (0x23A0u)
8249 #define OFS_USBOEPSIZXY_3 (0x239Fu)
8250 #define OFS_USBOEPBCTY_3 (0x239Eu)
8251 #define OFS_USBOEPBBAY_3 (0x239Du)
8254 #define OFS_USBOEPBCTX_3 (0x239Au)
8255 #define OFS_USBOEPBBAX_3 (0x2399u)
8256 #define OFS_USBOEPCNF_3 (0x2398u)
8257 #define OFS_USBOEPSIZXY_2 (0x2397u)
8258 #define OFS_USBOEPBCTY_2 (0x2396u)
8259 #define OFS_USBOEPBBAY_2 (0x2395u)
8262 #define OFS_USBOEPBCTX_2 (0x2392u)
8263 #define OFS_USBOEPBBAX_2 (0x2391u)
8264 #define OFS_USBOEPCNF_2 (0x2390u)
8265 #define OFS_USBOEPSIZXY_1 (0x238Fu)
8266 #define OFS_USBOEPBCTY_1 (0x238Eu)
8267 #define OFS_USBOEPBBAY_1 (0x238Du)
8270 #define OFS_USBOEPBCTX_1 (0x238Au)
8271 #define OFS_USBOEPBBAX_1 (0x2389u)
8272 #define OFS_USBOEPCNF_1 (0x2388u)
8273 #define OFS_USBSUBLK (0x2380u)
8274 #define OFS_USBIEP0BUF (0x2378u)
8275 #define OFS_USBOEP0BUF (0x2370u)
8276 #define OFS_USBTOPBUFF (0x236Fu)
8278 #define OFS_USBSTABUFF (0x1C00u)
8284 #define DBUF (0x0010u)
8289 #define CNT4 (0x0010u)
8290 #define CNT5 (0x0020u)
8291 #define CNT6 (0x0040u)
8296 #ifdef __MSP430_HAS_USCI_Ax__
8298 #define OFS_UCAxCTLW0 (0x0000u)
8299 #define OFS_UCAxCTLW0_L OFS_UCAxCTLW0
8300 #define OFS_UCAxCTLW0_H OFS_UCAxCTLW0+1
8301 #define OFS_UCAxCTL0 (0x0001u)
8302 #define OFS_UCAxCTL1 (0x0000u)
8303 #define UCAxCTL1 UCAxCTLW0_L
8304 #define UCAxCTL0 UCAxCTLW0_H
8305 #define OFS_UCAxBRW (0x0006u)
8306 #define OFS_UCAxBRW_L OFS_UCAxBRW
8307 #define OFS_UCAxBRW_H OFS_UCAxBRW+1
8308 #define OFS_UCAxBR0 (0x0006u)
8309 #define OFS_UCAxBR1 (0x0007u)
8310 #define UCAxBR0 UCAxBRW_L
8311 #define UCAxBR1 UCAxBRW_H
8312 #define OFS_UCAxMCTL (0x0008u)
8313 #define OFS_UCAxSTAT (0x000Au)
8314 #define OFS_UCAxRXBUF (0x000Cu)
8315 #define OFS_UCAxTXBUF (0x000Eu)
8316 #define OFS_UCAxABCTL (0x0010u)
8317 #define OFS_UCAxIRCTL (0x0012u)
8318 #define OFS_UCAxIRCTL_L OFS_UCAxIRCTL
8319 #define OFS_UCAxIRCTL_H OFS_UCAxIRCTL+1
8320 #define OFS_UCAxIRTCTL (0x0012u)
8321 #define OFS_UCAxIRRCTL (0x0013u)
8322 #define UCAxIRTCTL UCAxIRCTL_L
8323 #define UCAxIRRCTL UCAxIRCTL_H
8324 #define OFS_UCAxICTL (0x001Cu)
8325 #define OFS_UCAxICTL_L OFS_UCAxICTL
8326 #define OFS_UCAxICTL_H OFS_UCAxICTL+1
8327 #define OFS_UCAxIE (0x001Cu)
8328 #define OFS_UCAxIFG (0x001Du)
8329 #define UCAxIE UCAxICTL_L
8330 #define UCAxIFG UCAxICTL_H
8331 #define OFS_UCAxIV (0x001Eu)
8333 #define OFS_UCAxCTLW0__SPI (0x0000u)
8334 #define OFS_UCAxCTLW0__SPI_L OFS_UCAxCTLW0__SPI
8335 #define OFS_UCAxCTLW0__SPI_H OFS_UCAxCTLW0__SPI+1
8336 #define OFS_UCAxCTL0__SPI (0x0001u)
8337 #define OFS_UCAxCTL1__SPI (0x0000u)
8338 #define OFS_UCAxBRW__SPI (0x0006u)
8339 #define OFS_UCAxBRW__SPI_L OFS_UCAxBRW__SPI
8340 #define OFS_UCAxBRW__SPI_H OFS_UCAxBRW__SPI+1
8341 #define OFS_UCAxBR0__SPI (0x0006u)
8342 #define OFS_UCAxBR1__SPI (0x0007u)
8343 #define OFS_UCAxMCTL__SPI (0x0008u)
8344 #define OFS_UCAxSTAT__SPI (0x000Au)
8345 #define OFS_UCAxRXBUF__SPI (0x000Cu)
8346 #define OFS_UCAxTXBUF__SPI (0x000Eu)
8347 #define OFS_UCAxICTL__SPI (0x001Cu)
8348 #define OFS_UCAxICTL__SPI_L OFS_UCAxICTL__SPI
8349 #define OFS_UCAxICTL__SPI_H OFS_UCAxICTL__SPI+1
8350 #define OFS_UCAxIE__SPI (0x001Cu)
8351 #define OFS_UCAxIFG__SPI (0x001Du)
8352 #define OFS_UCAxIV__SPI (0x001Eu)
8358 #ifdef __MSP430_HAS_USCI_Bx__
8360 #define OFS_UCBxCTLW0__SPI (0x0000u)
8361 #define OFS_UCBxCTLW0__SPI_L OFS_UCBxCTLW0__SPI
8362 #define OFS_UCBxCTLW0__SPI_H OFS_UCBxCTLW0__SPI+1
8363 #define OFS_UCBxCTL0__SPI (0x0001u)
8364 #define OFS_UCBxCTL1__SPI (0x0000u)
8365 #define OFS_UCBxBRW__SPI (0x0006u)
8366 #define OFS_UCBxBRW__SPI_L OFS_UCBxBRW__SPI
8367 #define OFS_UCBxBRW__SPI_H OFS_UCBxBRW__SPI+1
8368 #define OFS_UCBxBR0__SPI (0x0006u)
8369 #define OFS_UCBxBR1__SPI (0x0007u)
8370 #define OFS_UCBxSTAT__SPI (0x000Au)
8371 #define OFS_UCBxRXBUF__SPI (0x000Cu)
8372 #define OFS_UCBxTXBUF__SPI (0x000Eu)
8373 #define OFS_UCBxICTL__SPI (0x001Cu)
8374 #define OFS_UCBxICTL__SPI_L OFS_UCBxICTL__SPI
8375 #define OFS_UCBxICTL__SPI_H OFS_UCBxICTL__SPI+1
8376 #define OFS_UCBxIE__SPI (0x001Cu)
8377 #define OFS_UCBxIFG__SPI (0x001Du)
8378 #define OFS_UCBxIV__SPI (0x001Eu)
8380 #define OFS_UCBxCTLW0 (0x0000u)
8381 #define OFS_UCBxCTLW0_L OFS_UCBxCTLW0
8382 #define OFS_UCBxCTLW0_H OFS_UCBxCTLW0+1
8383 #define OFS_UCBxCTL0 (0x0001u)
8384 #define OFS_UCBxCTL1 (0x0000u)
8385 #define UCBxCTL1 UCBxCTLW0_L
8386 #define UCBxCTL0 UCBxCTLW0_H
8387 #define OFS_UCBxBRW (0x0006u)
8388 #define OFS_UCBxBRW_L OFS_UCBxBRW
8389 #define OFS_UCBxBRW_H OFS_UCBxBRW+1
8390 #define OFS_UCBxBR0 (0x0006u)
8391 #define OFS_UCBxBR1 (0x0007u)
8392 #define UCBxBR0 UCBxBRW_L
8393 #define UCBxBR1 UCBxBRW_H
8394 #define OFS_UCBxSTAT (0x000Au)
8395 #define OFS_UCBxRXBUF (0x000Cu)
8396 #define OFS_UCBxTXBUF (0x000Eu)
8397 #define OFS_UCBxI2COA (0x0010u)
8398 #define OFS_UCBxI2COA_L OFS_UCBxI2COA
8399 #define OFS_UCBxI2COA_H OFS_UCBxI2COA+1
8400 #define OFS_UCBxI2CSA (0x0012u)
8401 #define OFS_UCBxI2CSA_L OFS_UCBxI2CSA
8402 #define OFS_UCBxI2CSA_H OFS_UCBxI2CSA+1
8403 #define OFS_UCBxICTL (0x001Cu)
8404 #define OFS_UCBxICTL_L OFS_UCBxICTL
8405 #define OFS_UCBxICTL_H OFS_UCBxICTL+1
8406 #define OFS_UCBxIE (0x001Cu)
8407 #define OFS_UCBxIFG (0x001Du)
8408 #define UCBxIE UCBxICTL_L
8409 #define UCBxIFG UCBxICTL_H
8410 #define OFS_UCBxIV (0x001Eu)
8413 #if (defined(__MSP430_HAS_USCI_Ax__) || defined(__MSP430_HAS_USCI_Bx__))
8416 #define UCPEN (0x80)
8417 #define UCPAR (0x40)
8418 #define UCMSB (0x20)
8419 #define UC7BIT (0x10)
8420 #define UCSPB (0x08)
8421 #define UCMODE1 (0x04)
8422 #define UCMODE0 (0x02)
8423 #define UCSYNC (0x01)
8426 #define UCCKPH (0x80)
8427 #define UCCKPL (0x40)
8428 #define UCMST (0x08)
8431 #define UCA10 (0x80)
8432 #define UCSLA10 (0x40)
8435 #define UCMODE_0 (0x00)
8436 #define UCMODE_1 (0x02)
8437 #define UCMODE_2 (0x04)
8438 #define UCMODE_3 (0x06)
8441 #define UCSSEL1 (0x80)
8442 #define UCSSEL0 (0x40)
8443 #define UCRXEIE (0x20)
8444 #define UCBRKIE (0x10)
8445 #define UCDORM (0x08)
8446 #define UCTXADDR (0x04)
8447 #define UCTXBRK (0x02)
8448 #define UCSWRST (0x01)
8460 #define UCTXNACK (0x08)
8461 #define UCTXSTP (0x04)
8462 #define UCTXSTT (0x02)
8463 #define UCSSEL_0 (0x00)
8464 #define UCSSEL_1 (0x40)
8465 #define UCSSEL_2 (0x80)
8466 #define UCSSEL_3 (0xC0)
8467 #define UCSSEL__UCLK (0x00)
8468 #define UCSSEL__ACLK (0x40)
8469 #define UCSSEL__SMCLK (0x80)
8472 #define UCBRF3 (0x80)
8473 #define UCBRF2 (0x40)
8474 #define UCBRF1 (0x20)
8475 #define UCBRF0 (0x10)
8476 #define UCBRS2 (0x08)
8477 #define UCBRS1 (0x04)
8478 #define UCBRS0 (0x02)
8479 #define UCOS16 (0x01)
8481 #define UCBRF_0 (0x00)
8482 #define UCBRF_1 (0x10)
8483 #define UCBRF_2 (0x20)
8484 #define UCBRF_3 (0x30)
8485 #define UCBRF_4 (0x40)
8486 #define UCBRF_5 (0x50)
8487 #define UCBRF_6 (0x60)
8488 #define UCBRF_7 (0x70)
8489 #define UCBRF_8 (0x80)
8490 #define UCBRF_9 (0x90)
8491 #define UCBRF_10 (0xA0)
8492 #define UCBRF_11 (0xB0)
8493 #define UCBRF_12 (0xC0)
8494 #define UCBRF_13 (0xD0)
8495 #define UCBRF_14 (0xE0)
8496 #define UCBRF_15 (0xF0)
8498 #define UCBRS_0 (0x00)
8499 #define UCBRS_1 (0x02)
8500 #define UCBRS_2 (0x04)
8501 #define UCBRS_3 (0x06)
8502 #define UCBRS_4 (0x08)
8503 #define UCBRS_5 (0x0A)
8504 #define UCBRS_6 (0x0C)
8505 #define UCBRS_7 (0x0E)
8508 #define UCLISTEN (0x80)
8512 #define UCBRK (0x08)
8513 #define UCRXERR (0x04)
8514 #define UCADDR (0x02)
8515 #define UCBUSY (0x01)
8516 #define UCIDLE (0x02)
8519 #define UCSCLLOW (0x40)
8521 #define UCBBUSY (0x10)
8524 #define UCIRTXPL5 (0x80)
8525 #define UCIRTXPL4 (0x40)
8526 #define UCIRTXPL3 (0x20)
8527 #define UCIRTXPL2 (0x10)
8528 #define UCIRTXPL1 (0x08)
8529 #define UCIRTXPL0 (0x04)
8530 #define UCIRTXCLK (0x02)
8531 #define UCIREN (0x01)
8534 #define UCIRRXFL5 (0x80)
8535 #define UCIRRXFL4 (0x40)
8536 #define UCIRRXFL3 (0x20)
8537 #define UCIRRXFL2 (0x10)
8538 #define UCIRRXFL1 (0x08)
8539 #define UCIRRXFL0 (0x04)
8540 #define UCIRRXPL (0x02)
8541 #define UCIRRXFE (0x01)
8546 #define UCDELIM1 (0x20)
8547 #define UCDELIM0 (0x10)
8548 #define UCSTOE (0x08)
8549 #define UCBTOE (0x04)
8551 #define UCABDEN (0x01)
8554 #define UCGCEN (0x8000u)
8555 #define UCOA9 (0x0200u)
8556 #define UCOA8 (0x0100u)
8557 #define UCOA7 (0x0080u)
8558 #define UCOA6 (0x0040u)
8559 #define UCOA5 (0x0020u)
8560 #define UCOA4 (0x0010u)
8561 #define UCOA3 (0x0008u)
8562 #define UCOA2 (0x0004u)
8563 #define UCOA1 (0x0002u)
8564 #define UCOA0 (0x0001u)
8567 #define UCOA7_L (0x0080u)
8568 #define UCOA6_L (0x0040u)
8569 #define UCOA5_L (0x0020u)
8570 #define UCOA4_L (0x0010u)
8571 #define UCOA3_L (0x0008u)
8572 #define UCOA2_L (0x0004u)
8573 #define UCOA1_L (0x0002u)
8574 #define UCOA0_L (0x0001u)
8577 #define UCGCEN_H (0x0080u)
8578 #define UCOA9_H (0x0002u)
8579 #define UCOA8_H (0x0001u)
8582 #define UCSA9 (0x0200u)
8583 #define UCSA8 (0x0100u)
8584 #define UCSA7 (0x0080u)
8585 #define UCSA6 (0x0040u)
8586 #define UCSA5 (0x0020u)
8587 #define UCSA4 (0x0010u)
8588 #define UCSA3 (0x0008u)
8589 #define UCSA2 (0x0004u)
8590 #define UCSA1 (0x0002u)
8591 #define UCSA0 (0x0001u)
8594 #define UCSA7_L (0x0080u)
8595 #define UCSA6_L (0x0040u)
8596 #define UCSA5_L (0x0020u)
8597 #define UCSA4_L (0x0010u)
8598 #define UCSA3_L (0x0008u)
8599 #define UCSA2_L (0x0004u)
8600 #define UCSA1_L (0x0002u)
8601 #define UCSA0_L (0x0001u)
8604 #define UCSA9_H (0x0002u)
8605 #define UCSA8_H (0x0001u)
8608 #define UCTXIE (0x0002u)
8609 #define UCRXIE (0x0001u)
8612 #define UCTXIE_L (0x0002u)
8613 #define UCRXIE_L (0x0001u)
8616 #define UCNACKIE (0x0020u)
8617 #define UCALIE (0x0010u)
8618 #define UCSTPIE (0x0008u)
8619 #define UCSTTIE (0x0004u)
8620 #define UCTXIE (0x0002u)
8621 #define UCRXIE (0x0001u)
8624 #define UCNACKIE_L (0x0020u)
8625 #define UCALIE_L (0x0010u)
8626 #define UCSTPIE_L (0x0008u)
8627 #define UCSTTIE_L (0x0004u)
8628 #define UCTXIE_L (0x0002u)
8629 #define UCRXIE_L (0x0001u)
8632 #define UCTXIFG (0x0002u)
8633 #define UCRXIFG (0x0001u)
8636 #define UCTXIFG_L (0x0002u)
8637 #define UCRXIFG_L (0x0001u)
8640 #define UCNACKIFG (0x0020u)
8641 #define UCALIFG (0x0010u)
8642 #define UCSTPIFG (0x0008u)
8643 #define UCSTTIFG (0x0004u)
8644 #define UCTXIFG (0x0002u)
8645 #define UCRXIFG (0x0001u)
8648 #define UCNACKIFG_L (0x0020u)
8649 #define UCALIFG_L (0x0010u)
8650 #define UCSTPIFG_L (0x0008u)
8651 #define UCSTTIFG_L (0x0004u)
8652 #define UCTXIFG_L (0x0002u)
8653 #define UCRXIFG_L (0x0001u)
8656 #define USCI_NONE (0x0000u)
8657 #define USCI_UCRXIFG (0x0002u)
8658 #define USCI_UCTXIFG (0x0004u)
8659 #define USCI_I2C_UCALIFG (0x0002u)
8660 #define USCI_I2C_UCNACKIFG (0x0004u)
8661 #define USCI_I2C_UCSTTIFG (0x0006u)
8662 #define USCI_I2C_UCSTPIFG (0x0008u)
8663 #define USCI_I2C_UCRXIFG (0x000Au)
8664 #define USCI_I2C_UCTXIFG (0x000Cu)
8670 #ifdef __MSP430_HAS_EUSCI_Ax__
8672 #define OFS_UCAxCTLW0 (0x0000u)
8673 #define OFS_UCAxCTLW0_L OFS_UCAxCTLW0
8674 #define OFS_UCAxCTLW0_H OFS_UCAxCTLW0+1
8675 #define OFS_UCAxCTL0 (0x0001u)
8676 #define OFS_UCAxCTL1 (0x0000u)
8677 #define UCAxCTL1 UCAxCTLW0_L
8678 #define UCAxCTL0 UCAxCTLW0_H
8679 #define OFS_UCAxCTLW1 (0x0002u)
8680 #define OFS_UCAxCTLW1_L OFS_UCAxCTLW1
8681 #define OFS_UCAxCTLW1_H OFS_UCAxCTLW1+1
8682 #define OFS_UCAxBRW (0x0006u)
8683 #define OFS_UCAxBRW_L OFS_UCAxBRW
8684 #define OFS_UCAxBRW_H OFS_UCAxBRW+1
8685 #define OFS_UCAxBR0 (0x0006u)
8686 #define OFS_UCAxBR1 (0x0007u)
8687 #define UCAxBR0 UCAxBRW_L
8688 #define UCAxBR1 UCAxBRW_H
8689 #define OFS_UCAxMCTLW (0x0008u)
8690 #define OFS_UCAxMCTLW_L OFS_UCAxMCTLW
8691 #define OFS_UCAxMCTLW_H OFS_UCAxMCTLW+1
8692 #define OFS_UCAxSTATW (0x000Au)
8693 #define OFS_UCAxRXBUF (0x000Cu)
8694 #define OFS_UCAxRXBUF_L OFS_UCAxRXBUF
8695 #define OFS_UCAxRXBUF_H OFS_UCAxRXBUF+1
8696 #define OFS_UCAxTXBUF (0x000Eu)
8697 #define OFS_UCAxTXBUF_L OFS_UCAxTXBUF
8698 #define OFS_UCAxTXBUF_H OFS_UCAxTXBUF+1
8699 #define OFS_UCAxABCTL (0x0010u)
8700 #define OFS_UCAxIRCTL (0x0012u)
8701 #define OFS_UCAxIRCTL_L OFS_UCAxIRCTL
8702 #define OFS_UCAxIRCTL_H OFS_UCAxIRCTL+1
8703 #define OFS_UCAxIRTCTL (0x0012u)
8704 #define OFS_UCAxIRRCTL (0x0013u)
8705 #define UCAxIRTCTL UCAxIRCTL_L
8706 #define UCAxIRRCTL UCAxIRCTL_H
8707 #define OFS_UCAxIE (0x001Au)
8708 #define OFS_UCAxIE_L OFS_UCAxIE
8709 #define OFS_UCAxIE_H OFS_UCAxIE+1
8710 #define OFS_UCAxIFG (0x001Cu)
8711 #define OFS_UCAxIFG_L OFS_UCAxIFG
8712 #define OFS_UCAxIFG_H OFS_UCAxIFG+1
8713 #define OFS_UCAxIE__UART (0x001Au)
8714 #define OFS_UCAxIE__UART_L OFS_UCAxIE__UART
8715 #define OFS_UCAxIE__UART_H OFS_UCAxIE__UART+1
8716 #define OFS_UCAxIFG__UART (0x001Cu)
8717 #define OFS_UCAxIFG__UART_L OFS_UCAxIFG__UART
8718 #define OFS_UCAxIFG__UART_H OFS_UCAxIFG__UART+1
8719 #define OFS_UCAxIV (0x001Eu)
8721 #define OFS_UCAxCTLW0__SPI (0x0000u)
8722 #define OFS_UCAxCTLW0__SPI_L OFS_UCAxCTLW0__SPI
8723 #define OFS_UCAxCTLW0__SPI_H OFS_UCAxCTLW0__SPI+1
8724 #define OFS_UCAxCTL0__SPI (0x0001u)
8725 #define OFS_UCAxCTL1__SPI (0x0000u)
8726 #define OFS_UCAxBRW__SPI (0x0006u)
8727 #define OFS_UCAxBRW__SPI_L OFS_UCAxBRW__SPI
8728 #define OFS_UCAxBRW__SPI_H OFS_UCAxBRW__SPI+1
8729 #define OFS_UCAxBR0__SPI (0x0006u)
8730 #define OFS_UCAxBR1__SPI (0x0007u)
8731 #define OFS_UCAxSTATW__SPI (0x000Au)
8732 #define OFS_UCAxRXBUF__SPI (0x000Cu)
8733 #define OFS_UCAxRXBUF__SPI_L OFS_UCAxRXBUF__SPI
8734 #define OFS_UCAxRXBUF__SPI_H OFS_UCAxRXBUF__SPI+1
8735 #define OFS_UCAxTXBUF__SPI (0x000Eu)
8736 #define OFS_UCAxTXBUF__SPI_L OFS_UCAxTXBUF__SPI
8737 #define OFS_UCAxTXBUF__SPI_H OFS_UCAxTXBUF__SPI+1
8738 #define OFS_UCAxIE__SPI (0x001Au)
8739 #define OFS_UCAxIFG__SPI (0x001Cu)
8740 #define OFS_UCAxIV__SPI (0x001Eu)
8746 #ifdef __MSP430_HAS_EUSCI_Bx__
8748 #define OFS_UCBxCTLW0__SPI (0x0000u)
8749 #define OFS_UCBxCTLW0__SPI_L OFS_UCBxCTLW0__SPI
8750 #define OFS_UCBxCTLW0__SPI_H OFS_UCBxCTLW0__SPI+1
8751 #define OFS_UCBxCTL0__SPI (0x0001u)
8752 #define OFS_UCBxCTL1__SPI (0x0000u)
8753 #define OFS_UCBxBRW__SPI (0x0006u)
8754 #define OFS_UCBxBRW__SPI_L OFS_UCBxBRW__SPI
8755 #define OFS_UCBxBRW__SPI_H OFS_UCBxBRW__SPI+1
8756 #define OFS_UCBxBR0__SPI (0x0006u)
8757 #define OFS_UCBxBR1__SPI (0x0007u)
8758 #define OFS_UCBxSTATW__SPI (0x0008u)
8759 #define OFS_UCBxSTATW__SPI_L OFS_UCBxSTATW__SPI
8760 #define OFS_UCBxSTATW__SPI_H OFS_UCBxSTATW__SPI+1
8761 #define OFS_UCBxRXBUF__SPI (0x000Cu)
8762 #define OFS_UCBxRXBUF__SPI_L OFS_UCBxRXBUF__SPI
8763 #define OFS_UCBxRXBUF__SPI_H OFS_UCBxRXBUF__SPI+1
8764 #define OFS_UCBxTXBUF__SPI (0x000Eu)
8765 #define OFS_UCBxTXBUF__SPI_L OFS_UCBxTXBUF__SPI
8766 #define OFS_UCBxTXBUF__SPI_H OFS_UCBxTXBUF__SPI+1
8767 #define OFS_UCBxIE__SPI (0x002Au)
8768 #define OFS_UCBxIE__SPI_L OFS_UCBxIE__SPI
8769 #define OFS_UCBxIE__SPI_H OFS_UCBxIE__SPI+1
8770 #define OFS_UCBxIFG__SPI (0x002Cu)
8771 #define OFS_UCBxIFG__SPI_L OFS_UCBxIFG__SPI
8772 #define OFS_UCBxIFG__SPI_H OFS_UCBxIFG__SPI+1
8773 #define OFS_UCBxIV__SPI (0x002Eu)
8775 #define OFS_UCBxCTLW0 (0x0000u)
8776 #define OFS_UCBxCTLW0_L OFS_UCBxCTLW0
8777 #define OFS_UCBxCTLW0_H OFS_UCBxCTLW0+1
8778 #define OFS_UCBxCTL0 (0x0001u)
8779 #define OFS_UCBxCTL1 (0x0000u)
8780 #define UCBxCTL1 UCBxCTLW0_L
8781 #define UCBxCTL0 UCBxCTLW0_H
8782 #define OFS_UCBxCTLW1 (0x0002u)
8783 #define OFS_UCBxCTLW1_L OFS_UCBxCTLW1
8784 #define OFS_UCBxCTLW1_H OFS_UCBxCTLW1+1
8785 #define OFS_UCBxBRW (0x0006u)
8786 #define OFS_UCBxBRW_L OFS_UCBxBRW
8787 #define OFS_UCBxBRW_H OFS_UCBxBRW+1
8788 #define OFS_UCBxBR0 (0x0006u)
8789 #define OFS_UCBxBR1 (0x0007u)
8790 #define UCBxBR0 UCBxBRW_L
8791 #define UCBxBR1 UCBxBRW_H
8792 #define OFS_UCBxSTATW (0x0008u)
8793 #define OFS_UCBxSTATW_L OFS_UCBxSTATW
8794 #define OFS_UCBxSTATW_H OFS_UCBxSTATW+1
8795 #define OFS_UCBxSTATW__I2C (0x0008u)
8796 #define OFS_UCBxSTAT__I2C (0x0008u)
8797 #define OFS_UCBxBCNT__I2C (0x0009u)
8798 #define UCBxSTAT UCBxSTATW_L
8799 #define UCBxBCNT UCBxSTATW_H
8800 #define OFS_UCBxTBCNT (0x000Au)
8801 #define OFS_UCBxTBCNT_L OFS_UCBxTBCNT
8802 #define OFS_UCBxTBCNT_H OFS_UCBxTBCNT+1
8803 #define OFS_UCBxRXBUF (0x000Cu)
8804 #define OFS_UCBxRXBUF_L OFS_UCBxRXBUF
8805 #define OFS_UCBxRXBUF_H OFS_UCBxRXBUF+1
8806 #define OFS_UCBxTXBUF (0x000Eu)
8807 #define OFS_UCBxTXBUF_L OFS_UCBxTXBUF
8808 #define OFS_UCBxTXBUF_H OFS_UCBxTXBUF+1
8809 #define OFS_UCBxI2COA0 (0x0014u)
8810 #define OFS_UCBxI2COA0_L OFS_UCBxI2COA0
8811 #define OFS_UCBxI2COA0_H OFS_UCBxI2COA0+1
8812 #define OFS_UCBxI2COA1 (0x0016u)
8813 #define OFS_UCBxI2COA1_L OFS_UCBxI2COA1
8814 #define OFS_UCBxI2COA1_H OFS_UCBxI2COA1+1
8815 #define OFS_UCBxI2COA2 (0x0018u)
8816 #define OFS_UCBxI2COA2_L OFS_UCBxI2COA2
8817 #define OFS_UCBxI2COA2_H OFS_UCBxI2COA2+1
8818 #define OFS_UCBxI2COA3 (0x001Au)
8819 #define OFS_UCBxI2COA3_L OFS_UCBxI2COA3
8820 #define OFS_UCBxI2COA3_H OFS_UCBxI2COA3+1
8821 #define OFS_UCBxADDRX (0x001Cu)
8822 #define OFS_UCBxADDRX_L OFS_UCBxADDRX
8823 #define OFS_UCBxADDRX_H OFS_UCBxADDRX+1
8824 #define OFS_UCBxADDMASK (0x001Eu)
8825 #define OFS_UCBxADDMASK_L OFS_UCBxADDMASK
8826 #define OFS_UCBxADDMASK_H OFS_UCBxADDMASK+1
8827 #define OFS_UCBxI2CSA (0x0020u)
8828 #define OFS_UCBxI2CSA_L OFS_UCBxI2CSA
8829 #define OFS_UCBxI2CSA_H OFS_UCBxI2CSA+1
8830 #define OFS_UCBxIE (0x002Au)
8831 #define OFS_UCBxIE_L OFS_UCBxIE
8832 #define OFS_UCBxIE_H OFS_UCBxIE+1
8833 #define OFS_UCBxIFG (0x002Cu)
8834 #define OFS_UCBxIFG_L OFS_UCBxIFG
8835 #define OFS_UCBxIFG_H OFS_UCBxIFG+1
8836 #define OFS_UCBxIE__I2C (0x002Au)
8837 #define OFS_UCBxIE__I2C_L OFS_UCBxIE__I2C
8838 #define OFS_UCBxIE__I2C_H OFS_UCBxIE__I2C+1
8839 #define OFS_UCBxIFG__I2C (0x002Cu)
8840 #define OFS_UCBxIFG__I2C_L OFS_UCBxIFG__I2C
8841 #define OFS_UCBxIFG__I2C_H OFS_UCBxIFG__I2C+1
8842 #define OFS_UCBxIV (0x002Eu)
8845 #if (defined(__MSP430_HAS_EUSCI_Ax__) || defined(__MSP430_HAS_EUSCI_Bx__))
8848 #define UCPEN (0x8000u)
8849 #define UCPAR (0x4000u)
8850 #define UCMSB (0x2000u)
8851 #define UC7BIT (0x1000u)
8852 #define UCSPB (0x0800u)
8853 #define UCMODE1 (0x0400u)
8854 #define UCMODE0 (0x0200u)
8855 #define UCSYNC (0x0100u)
8856 #define UCSSEL1 (0x0080u)
8857 #define UCSSEL0 (0x0040u)
8858 #define UCRXEIE (0x0020u)
8859 #define UCBRKIE (0x0010u)
8860 #define UCDORM (0x0008u)
8861 #define UCTXADDR (0x0004u)
8862 #define UCTXBRK (0x0002u)
8863 #define UCSWRST (0x0001u)
8866 #define UCSSEL1_L (0x0080u)
8867 #define UCSSEL0_L (0x0040u)
8868 #define UCRXEIE_L (0x0020u)
8869 #define UCBRKIE_L (0x0010u)
8870 #define UCDORM_L (0x0008u)
8871 #define UCTXADDR_L (0x0004u)
8872 #define UCTXBRK_L (0x0002u)
8873 #define UCSWRST_L (0x0001u)
8876 #define UCPEN_H (0x0080u)
8877 #define UCPAR_H (0x0040u)
8878 #define UCMSB_H (0x0020u)
8879 #define UC7BIT_H (0x0010u)
8880 #define UCSPB_H (0x0008u)
8881 #define UCMODE1_H (0x0004u)
8882 #define UCMODE0_H (0x0002u)
8883 #define UCSYNC_H (0x0001u)
8886 #define UCCKPH (0x8000u)
8887 #define UCCKPL (0x4000u)
8888 #define UCMST (0x0800u)
8893 #define UCSTEM (0x0002u)
8896 #define UCA10 (0x8000u)
8897 #define UCSLA10 (0x4000u)
8898 #define UCMM (0x2000u)
8901 #define UCTXACK (0x0020u)
8902 #define UCTR (0x0010u)
8903 #define UCTXNACK (0x0008u)
8904 #define UCTXSTP (0x0004u)
8905 #define UCTXSTT (0x0002u)
8910 #define UCTXACK_L (0x0020u)
8911 #define UCTR_L (0x0010u)
8912 #define UCTXNACK_L (0x0008u)
8913 #define UCTXSTP_L (0x0004u)
8914 #define UCTXSTT_L (0x0002u)
8917 #define UCA10_H (0x0080u)
8918 #define UCSLA10_H (0x0040u)
8919 #define UCMM_H (0x0020u)
8923 #define UCMODE_0 (0x0000u)
8924 #define UCMODE_1 (0x0200u)
8925 #define UCMODE_2 (0x0400u)
8926 #define UCMODE_3 (0x0600u)
8928 #define UCSSEL_0 (0x0000u)
8929 #define UCSSEL_1 (0x0040u)
8930 #define UCSSEL_2 (0x0080u)
8931 #define UCSSEL_3 (0x00C0u)
8932 #define UCSSEL__UCLK (0x0000u)
8933 #define UCSSEL__ACLK (0x0040u)
8934 #define UCSSEL__SMCLK (0x0080u)
8937 #define UCGLIT1 (0x0002u)
8938 #define UCGLIT0 (0x0001u)
8941 #define UCGLIT1_L (0x0002u)
8942 #define UCGLIT0_L (0x0001u)
8945 #define UCETXINT (0x0100u)
8946 #define UCCLTO1 (0x0080u)
8947 #define UCCLTO0 (0x0040u)
8948 #define UCSTPNACK (0x0020u)
8949 #define UCSWACK (0x0010u)
8950 #define UCASTP1 (0x0008u)
8951 #define UCASTP0 (0x0004u)
8952 #define UCGLIT1 (0x0002u)
8953 #define UCGLIT0 (0x0001u)
8956 #define UCCLTO1_L (0x0080u)
8957 #define UCCLTO0_L (0x0040u)
8958 #define UCSTPNACK_L (0x0020u)
8959 #define UCSWACK_L (0x0010u)
8960 #define UCASTP1_L (0x0008u)
8961 #define UCASTP0_L (0x0004u)
8962 #define UCGLIT1_L (0x0002u)
8963 #define UCGLIT0_L (0x0001u)
8966 #define UCETXINT_H (0x0001u)
8968 #define UCGLIT_0 (0x0000u)
8969 #define UCGLIT_1 (0x0001u)
8970 #define UCGLIT_2 (0x0002u)
8971 #define UCGLIT_3 (0x0003u)
8973 #define UCASTP_0 (0x0000u)
8974 #define UCASTP_1 (0x0004u)
8975 #define UCASTP_2 (0x0008u)
8976 #define UCASTP_3 (0x000Cu)
8978 #define UCCLTO_0 (0x0000u)
8979 #define UCCLTO_1 (0x0040u)
8980 #define UCCLTO_2 (0x0080u)
8981 #define UCCLTO_3 (0x00C0u)
8984 #define UCBRS7 (0x8000u)
8985 #define UCBRS6 (0x4000u)
8986 #define UCBRS5 (0x2000u)
8987 #define UCBRS4 (0x1000u)
8988 #define UCBRS3 (0x0800u)
8989 #define UCBRS2 (0x0400u)
8990 #define UCBRS1 (0x0200u)
8991 #define UCBRS0 (0x0100u)
8992 #define UCBRF3 (0x0080u)
8993 #define UCBRF2 (0x0040u)
8994 #define UCBRF1 (0x0020u)
8995 #define UCBRF0 (0x0010u)
8996 #define UCOS16 (0x0001u)
8999 #define UCBRF3_L (0x0080u)
9000 #define UCBRF2_L (0x0040u)
9001 #define UCBRF1_L (0x0020u)
9002 #define UCBRF0_L (0x0010u)
9003 #define UCOS16_L (0x0001u)
9006 #define UCBRS7_H (0x0080u)
9007 #define UCBRS6_H (0x0040u)
9008 #define UCBRS5_H (0x0020u)
9009 #define UCBRS4_H (0x0010u)
9010 #define UCBRS3_H (0x0008u)
9011 #define UCBRS2_H (0x0004u)
9012 #define UCBRS1_H (0x0002u)
9013 #define UCBRS0_H (0x0001u)
9015 #define UCBRF_0 (0x00)
9016 #define UCBRF_1 (0x10)
9017 #define UCBRF_2 (0x20)
9018 #define UCBRF_3 (0x30)
9019 #define UCBRF_4 (0x40)
9020 #define UCBRF_5 (0x50)
9021 #define UCBRF_6 (0x60)
9022 #define UCBRF_7 (0x70)
9023 #define UCBRF_8 (0x80)
9024 #define UCBRF_9 (0x90)
9025 #define UCBRF_10 (0xA0)
9026 #define UCBRF_11 (0xB0)
9027 #define UCBRF_12 (0xC0)
9028 #define UCBRF_13 (0xD0)
9029 #define UCBRF_14 (0xE0)
9030 #define UCBRF_15 (0xF0)
9033 #define UCLISTEN (0x0080u)
9034 #define UCFE (0x0040u)
9035 #define UCOE (0x0020u)
9036 #define UCPE (0x0010u)
9037 #define UCBRK (0x0008u)
9038 #define UCRXERR (0x0004u)
9039 #define UCADDR (0x0002u)
9040 #define UCBUSY (0x0001u)
9041 #define UCIDLE (0x0002u)
9044 #define UCBCNT7 (0x8000u)
9045 #define UCBCNT6 (0x4000u)
9046 #define UCBCNT5 (0x2000u)
9047 #define UCBCNT4 (0x1000u)
9048 #define UCBCNT3 (0x0800u)
9049 #define UCBCNT2 (0x0400u)
9050 #define UCBCNT1 (0x0200u)
9051 #define UCBCNT0 (0x0100u)
9052 #define UCSCLLOW (0x0040u)
9053 #define UCGC (0x0020u)
9054 #define UCBBUSY (0x0010u)
9057 #define UCTBCNT7 (0x0080u)
9058 #define UCTBCNT6 (0x0040u)
9059 #define UCTBCNT5 (0x0020u)
9060 #define UCTBCNT4 (0x0010u)
9061 #define UCTBCNT3 (0x0008u)
9062 #define UCTBCNT2 (0x0004u)
9063 #define UCTBCNT1 (0x0002u)
9064 #define UCTBCNT0 (0x0001u)
9067 #define UCIRRXFL5 (0x8000u)
9068 #define UCIRRXFL4 (0x4000u)
9069 #define UCIRRXFL3 (0x2000u)
9070 #define UCIRRXFL2 (0x1000u)
9071 #define UCIRRXFL1 (0x0800u)
9072 #define UCIRRXFL0 (0x0400u)
9073 #define UCIRRXPL (0x0200u)
9074 #define UCIRRXFE (0x0100u)
9075 #define UCIRTXPL5 (0x0080u)
9076 #define UCIRTXPL4 (0x0040u)
9077 #define UCIRTXPL3 (0x0020u)
9078 #define UCIRTXPL2 (0x0010u)
9079 #define UCIRTXPL1 (0x0008u)
9080 #define UCIRTXPL0 (0x0004u)
9081 #define UCIRTXCLK (0x0002u)
9082 #define UCIREN (0x0001u)
9085 #define UCIRTXPL5_L (0x0080u)
9086 #define UCIRTXPL4_L (0x0040u)
9087 #define UCIRTXPL3_L (0x0020u)
9088 #define UCIRTXPL2_L (0x0010u)
9089 #define UCIRTXPL1_L (0x0008u)
9090 #define UCIRTXPL0_L (0x0004u)
9091 #define UCIRTXCLK_L (0x0002u)
9092 #define UCIREN_L (0x0001u)
9095 #define UCIRRXFL5_H (0x0080u)
9096 #define UCIRRXFL4_H (0x0040u)
9097 #define UCIRRXFL3_H (0x0020u)
9098 #define UCIRRXFL2_H (0x0010u)
9099 #define UCIRRXFL1_H (0x0008u)
9100 #define UCIRRXFL0_H (0x0004u)
9101 #define UCIRRXPL_H (0x0002u)
9102 #define UCIRRXFE_H (0x0001u)
9107 #define UCDELIM1 (0x20)
9108 #define UCDELIM0 (0x10)
9109 #define UCSTOE (0x08)
9110 #define UCBTOE (0x04)
9112 #define UCABDEN (0x01)
9115 #define UCGCEN (0x8000u)
9116 #define UCOAEN (0x0400u)
9117 #define UCOA9 (0x0200u)
9118 #define UCOA8 (0x0100u)
9119 #define UCOA7 (0x0080u)
9120 #define UCOA6 (0x0040u)
9121 #define UCOA5 (0x0020u)
9122 #define UCOA4 (0x0010u)
9123 #define UCOA3 (0x0008u)
9124 #define UCOA2 (0x0004u)
9125 #define UCOA1 (0x0002u)
9126 #define UCOA0 (0x0001u)
9129 #define UCOA7_L (0x0080u)
9130 #define UCOA6_L (0x0040u)
9131 #define UCOA5_L (0x0020u)
9132 #define UCOA4_L (0x0010u)
9133 #define UCOA3_L (0x0008u)
9134 #define UCOA2_L (0x0004u)
9135 #define UCOA1_L (0x0002u)
9136 #define UCOA0_L (0x0001u)
9139 #define UCGCEN_H (0x0080u)
9140 #define UCOAEN_H (0x0004u)
9141 #define UCOA9_H (0x0002u)
9142 #define UCOA8_H (0x0001u)
9145 #define UCOAEN (0x0400u)
9146 #define UCOA9 (0x0200u)
9147 #define UCOA8 (0x0100u)
9148 #define UCOA7 (0x0080u)
9149 #define UCOA6 (0x0040u)
9150 #define UCOA5 (0x0020u)
9151 #define UCOA4 (0x0010u)
9152 #define UCOA3 (0x0008u)
9153 #define UCOA2 (0x0004u)
9154 #define UCOA1 (0x0002u)
9155 #define UCOA0 (0x0001u)
9158 #define UCOA7_L (0x0080u)
9159 #define UCOA6_L (0x0040u)
9160 #define UCOA5_L (0x0020u)
9161 #define UCOA4_L (0x0010u)
9162 #define UCOA3_L (0x0008u)
9163 #define UCOA2_L (0x0004u)
9164 #define UCOA1_L (0x0002u)
9165 #define UCOA0_L (0x0001u)
9168 #define UCOAEN_H (0x0004u)
9169 #define UCOA9_H (0x0002u)
9170 #define UCOA8_H (0x0001u)
9173 #define UCADDRX9 (0x0200u)
9174 #define UCADDRX8 (0x0100u)
9175 #define UCADDRX7 (0x0080u)
9176 #define UCADDRX6 (0x0040u)
9177 #define UCADDRX5 (0x0020u)
9178 #define UCADDRX4 (0x0010u)
9179 #define UCADDRX3 (0x0008u)
9180 #define UCADDRX2 (0x0004u)
9181 #define UCADDRX1 (0x0002u)
9182 #define UCADDRX0 (0x0001u)
9185 #define UCADDRX7_L (0x0080u)
9186 #define UCADDRX6_L (0x0040u)
9187 #define UCADDRX5_L (0x0020u)
9188 #define UCADDRX4_L (0x0010u)
9189 #define UCADDRX3_L (0x0008u)
9190 #define UCADDRX2_L (0x0004u)
9191 #define UCADDRX1_L (0x0002u)
9192 #define UCADDRX0_L (0x0001u)
9195 #define UCADDRX9_H (0x0002u)
9196 #define UCADDRX8_H (0x0001u)
9199 #define UCADDMASK9 (0x0200u)
9200 #define UCADDMASK8 (0x0100u)
9201 #define UCADDMASK7 (0x0080u)
9202 #define UCADDMASK6 (0x0040u)
9203 #define UCADDMASK5 (0x0020u)
9204 #define UCADDMASK4 (0x0010u)
9205 #define UCADDMASK3 (0x0008u)
9206 #define UCADDMASK2 (0x0004u)
9207 #define UCADDMASK1 (0x0002u)
9208 #define UCADDMASK0 (0x0001u)
9211 #define UCADDMASK7_L (0x0080u)
9212 #define UCADDMASK6_L (0x0040u)
9213 #define UCADDMASK5_L (0x0020u)
9214 #define UCADDMASK4_L (0x0010u)
9215 #define UCADDMASK3_L (0x0008u)
9216 #define UCADDMASK2_L (0x0004u)
9217 #define UCADDMASK1_L (0x0002u)
9218 #define UCADDMASK0_L (0x0001u)
9221 #define UCADDMASK9_H (0x0002u)
9222 #define UCADDMASK8_H (0x0001u)
9225 #define UCSA9 (0x0200u)
9226 #define UCSA8 (0x0100u)
9227 #define UCSA7 (0x0080u)
9228 #define UCSA6 (0x0040u)
9229 #define UCSA5 (0x0020u)
9230 #define UCSA4 (0x0010u)
9231 #define UCSA3 (0x0008u)
9232 #define UCSA2 (0x0004u)
9233 #define UCSA1 (0x0002u)
9234 #define UCSA0 (0x0001u)
9237 #define UCSA7_L (0x0080u)
9238 #define UCSA6_L (0x0040u)
9239 #define UCSA5_L (0x0020u)
9240 #define UCSA4_L (0x0010u)
9241 #define UCSA3_L (0x0008u)
9242 #define UCSA2_L (0x0004u)
9243 #define UCSA1_L (0x0002u)
9244 #define UCSA0_L (0x0001u)
9247 #define UCSA9_H (0x0002u)
9248 #define UCSA8_H (0x0001u)
9251 #define UCTXCPTIE (0x0008u)
9252 #define UCSTTIE (0x0004u)
9253 #define UCTXIE (0x0002u)
9254 #define UCRXIE (0x0001u)
9259 #define UCBIT9IE (0x4000u)
9260 #define UCTXIE3 (0x2000u)
9261 #define UCRXIE3 (0x1000u)
9262 #define UCTXIE2 (0x0800u)
9263 #define UCRXIE2 (0x0400u)
9264 #define UCTXIE1 (0x0200u)
9265 #define UCRXIE1 (0x0100u)
9266 #define UCCLTOIE (0x0080u)
9267 #define UCBCNTIE (0x0040u)
9268 #define UCNACKIE (0x0020u)
9269 #define UCALIE (0x0010u)
9270 #define UCSTPIE (0x0008u)
9271 #define UCSTTIE (0x0004u)
9272 #define UCTXIE0 (0x0002u)
9273 #define UCRXIE0 (0x0001u)
9276 #define UCTXCPTIFG (0x0008u)
9277 #define UCSTTIFG (0x0004u)
9278 #define UCTXIFG (0x0002u)
9279 #define UCRXIFG (0x0001u)
9282 #define UCTXIFG (0x0002u)
9283 #define UCRXIFG (0x0001u)
9286 #define UCBIT9IFG (0x4000u)
9287 #define UCTXIFG3 (0x2000u)
9288 #define UCRXIFG3 (0x1000u)
9289 #define UCTXIFG2 (0x0800u)
9290 #define UCRXIFG2 (0x0400u)
9291 #define UCTXIFG1 (0x0200u)
9292 #define UCRXIFG1 (0x0100u)
9293 #define UCCLTOIFG (0x0080u)
9294 #define UCBCNTIFG (0x0040u)
9295 #define UCNACKIFG (0x0020u)
9296 #define UCALIFG (0x0010u)
9297 #define UCSTPIFG (0x0008u)
9298 #define UCSTTIFG (0x0004u)
9299 #define UCTXIFG0 (0x0002u)
9300 #define UCRXIFG0 (0x0001u)
9303 #define USCI_NONE (0x0000u)
9304 #define USCI_UART_UCRXIFG (0x0002u)
9305 #define USCI_UART_UCTXIFG (0x0004u)
9306 #define USCI_UART_UCSTTIFG (0x0006u)
9307 #define USCI_UART_UCTXCPTIFG (0x0008u)
9310 #define USCI_SPI_UCRXIFG (0x0002u)
9311 #define USCI_SPI_UCTXIFG (0x0004u)
9314 #define USCI_I2C_UCALIFG (0x0002u)
9315 #define USCI_I2C_UCNACKIFG (0x0004u)
9316 #define USCI_I2C_UCSTTIFG (0x0006u)
9317 #define USCI_I2C_UCSTPIFG (0x0008u)
9318 #define USCI_I2C_UCRXIFG3 (0x000Au)
9319 #define USCI_I2C_UCTXIFG3 (0x000Cu)
9320 #define USCI_I2C_UCRXIFG2 (0x000Eu)
9321 #define USCI_I2C_UCTXIFG2 (0x0010u)
9322 #define USCI_I2C_UCRXIFG1 (0x0012u)
9323 #define USCI_I2C_UCTXIFG1 (0x0014u)
9324 #define USCI_I2C_UCRXIFG0 (0x0016u)
9325 #define USCI_I2C_UCTXIFG0 (0x0018u)
9326 #define USCI_I2C_UCBCNTIFG (0x001Au)
9327 #define USCI_I2C_UCCLTOIFG (0x001Cu)
9328 #define USCI_I2C_UCBIT9IFG (0x001Eu)
9334 #ifdef __MSP430_HAS_WDT_A__
9336 #define OFS_WDTCTL (0x000Cu)
9337 #define OFS_WDTCTL_L OFS_WDTCTL
9338 #define OFS_WDTCTL_H OFS_WDTCTL+1
9341 #define WDTIS0 (0x0001u)
9342 #define WDTIS1 (0x0002u)
9343 #define WDTIS2 (0x0004u)
9344 #define WDTCNTCL (0x0008u)
9345 #define WDTTMSEL (0x0010u)
9346 #define WDTSSEL0 (0x0020u)
9347 #define WDTSSEL1 (0x0040u)
9348 #define WDTHOLD (0x0080u)
9351 #define WDTIS0_L (0x0001u)
9352 #define WDTIS1_L (0x0002u)
9353 #define WDTIS2_L (0x0004u)
9354 #define WDTCNTCL_L (0x0008u)
9355 #define WDTTMSEL_L (0x0010u)
9356 #define WDTSSEL0_L (0x0020u)
9357 #define WDTSSEL1_L (0x0040u)
9358 #define WDTHOLD_L (0x0080u)
9360 #define WDTPW (0x5A00u)
9362 #define WDTIS_0 (0*0x0001u)
9363 #define WDTIS_1 (1*0x0001u)
9364 #define WDTIS_2 (2*0x0001u)
9365 #define WDTIS_3 (3*0x0001u)
9366 #define WDTIS_4 (4*0x0001u)
9367 #define WDTIS_5 (5*0x0001u)
9368 #define WDTIS_6 (6*0x0001u)
9369 #define WDTIS_7 (7*0x0001u)
9370 #define WDTIS__2G (0*0x0001u)
9371 #define WDTIS__128M (1*0x0001u)
9372 #define WDTIS__8192K (2*0x0001u)
9373 #define WDTIS__512K (3*0x0001u)
9374 #define WDTIS__32K (4*0x0001u)
9375 #define WDTIS__8192 (5*0x0001u)
9376 #define WDTIS__512 (6*0x0001u)
9377 #define WDTIS__64 (7*0x0001u)
9379 #define WDTSSEL_0 (0*0x0020u)
9380 #define WDTSSEL_1 (1*0x0020u)
9381 #define WDTSSEL_2 (2*0x0020u)
9382 #define WDTSSEL_3 (3*0x0020u)
9383 #define WDTSSEL__SMCLK (0*0x0020u)
9384 #define WDTSSEL__ACLK (1*0x0020u)
9385 #define WDTSSEL__VLO (2*0x0020u)
9389 #define WDT_MDLY_32 (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS2)
9390 #define WDT_MDLY_8 (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS2+WDTIS0)
9391 #define WDT_MDLY_0_5 (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS2+WDTIS1)
9392 #define WDT_MDLY_0_064 (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS2+WDTIS1+WDTIS0)
9394 #define WDT_ADLY_1000 (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS2+WDTSSEL0)
9395 #define WDT_ADLY_250 (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS2+WDTSSEL0+WDTIS0)
9396 #define WDT_ADLY_16 (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS2+WDTSSEL0+WDTIS1)
9397 #define WDT_ADLY_1_9 (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS2+WDTSSEL0+WDTIS1+WDTIS0)
9400 #define WDT_MRST_32 (WDTPW+WDTCNTCL+WDTIS2)
9401 #define WDT_MRST_8 (WDTPW+WDTCNTCL+WDTIS2+WDTIS0)
9402 #define WDT_MRST_0_5 (WDTPW+WDTCNTCL+WDTIS2+WDTIS1)
9403 #define WDT_MRST_0_064 (WDTPW+WDTCNTCL+WDTIS2+WDTIS1+WDTIS0)
9405 #define WDT_ARST_1000 (WDTPW+WDTCNTCL+WDTSSEL0+WDTIS2)
9406 #define WDT_ARST_250 (WDTPW+WDTCNTCL+WDTSSEL0+WDTIS2+WDTIS0)
9407 #define WDT_ARST_16 (WDTPW+WDTCNTCL+WDTSSEL0+WDTIS2+WDTIS1)
9408 #define WDT_ARST_1_9 (WDTPW+WDTCNTCL+WDTSSEL0+WDTIS2+WDTIS1+WDTIS0)
9415 #define __MSP430_HAS_TLV__
9416 #define TLV_BASE __MSP430_BASEADDRESS_TLV__
9418 #define TLV_START (0x1A08u)
9419 #define TLV_END (0x1AFFu)
9421 #define TLV_LDTAG (0x01)
9422 #define TLV_PDTAG (0x02)
9423 #define TLV_Reserved3 (0x03)
9424 #define TLV_Reserved4 (0x04)
9425 #define TLV_BLANK (0x05)
9426 #define TLV_Reserved6 (0x06)
9427 #define TLV_Reserved7 (0x07)
9428 #define TLV_DIERECORD (0x08)
9429 #define TLV_ADCCAL (0x11)
9430 #define TLV_ADC12CAL (0x11)
9431 #define TLV_REFCAL (0x12)
9432 #define TLV_ADC10CAL (0x13)
9433 #define TLV_TIMERDCAL (0x15)
9434 #define TLV_TAGEXT (0xFE)
9435 #define TLV_TAGEND (0xFF)
9445 #pragma language=default