Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2850 dpurdie 1
/********************************************************************
2
*
3
* Standard register and bit definitions for the Texas Instruments
4
* MSP430 microcontroller.
5
*
6
* This file supports assembler and C development for
7
* MSP430x415 and MSP430x417 devices.
8
*
9
* Texas Instruments, Version 1.4
10
*
11
* Rev. 1.0, -
12
* Rev. 1.1, Removed unused def of TASSEL2
13
* Rev. 1.2, Added VLD bits in SVS module
14
* Rev. 1.3, Removed definitions for BTRESET
15
* Rev. 1.4, added definitions for Interrupt Vectors xxIV
16
*
17
********************************************************************/
18
 
19
#ifndef __msp430x41x
20
#define __msp430x41x
21
 
22
#ifdef __cplusplus
23
extern "C" {
24
#endif
25
 
26
 
27
/*----------------------------------------------------------------------------*/
28
/* PERIPHERAL FILE MAP                                                        */
29
/*----------------------------------------------------------------------------*/
30
 
31
/* External references resolved by a device-specific linker command file */
32
#define SFR_8BIT(address)   extern volatile unsigned char address
33
#define SFR_16BIT(address)  extern volatile unsigned int address
34
 
35
 
36
/************************************************************
37
* STANDARD BITS
38
************************************************************/
39
 
40
#define BIT0                   (0x0001)
41
#define BIT1                   (0x0002)
42
#define BIT2                   (0x0004)
43
#define BIT3                   (0x0008)
44
#define BIT4                   (0x0010)
45
#define BIT5                   (0x0020)
46
#define BIT6                   (0x0040)
47
#define BIT7                   (0x0080)
48
#define BIT8                   (0x0100)
49
#define BIT9                   (0x0200)
50
#define BITA                   (0x0400)
51
#define BITB                   (0x0800)
52
#define BITC                   (0x1000)
53
#define BITD                   (0x2000)
54
#define BITE                   (0x4000)
55
#define BITF                   (0x8000)
56
 
57
/************************************************************
58
* STATUS REGISTER BITS
59
************************************************************/
60
 
61
#define C                      (0x0001)
62
#define Z                      (0x0002)
63
#define N                      (0x0004)
64
#define V                      (0x0100)
65
#define GIE                    (0x0008)
66
#define CPUOFF                 (0x0010)
67
#define OSCOFF                 (0x0020)
68
#define SCG0                   (0x0040)
69
#define SCG1                   (0x0080)
70
 
71
/* Low Power Modes coded with Bits 4-7 in SR */
72
 
73
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
74
#define LPM0                   (CPUOFF)
75
#define LPM1                   (SCG0+CPUOFF)
76
#define LPM2                   (SCG1+CPUOFF)
77
#define LPM3                   (SCG1+SCG0+CPUOFF)
78
#define LPM4                   (SCG1+SCG0+OSCOFF+CPUOFF)
79
/* End #defines for assembler */
80
 
81
#else /* Begin #defines for C */
82
#define LPM0_bits              (CPUOFF)
83
#define LPM1_bits              (SCG0+CPUOFF)
84
#define LPM2_bits              (SCG1+CPUOFF)
85
#define LPM3_bits              (SCG1+SCG0+CPUOFF)
86
#define LPM4_bits              (SCG1+SCG0+OSCOFF+CPUOFF)
87
 
88
#include "in430.h"
89
 
90
#define LPM0         _bis_SR_register(LPM0_bits)         /* Enter Low Power Mode 0 */
91
#define LPM0_EXIT    _bic_SR_register_on_exit(LPM0_bits) /* Exit Low Power Mode 0 */
92
#define LPM1         _bis_SR_register(LPM1_bits)         /* Enter Low Power Mode 1 */
93
#define LPM1_EXIT    _bic_SR_register_on_exit(LPM1_bits) /* Exit Low Power Mode 1 */
94
#define LPM2         _bis_SR_register(LPM2_bits)         /* Enter Low Power Mode 2 */
95
#define LPM2_EXIT    _bic_SR_register_on_exit(LPM2_bits) /* Exit Low Power Mode 2 */
96
#define LPM3         _bis_SR_register(LPM3_bits)         /* Enter Low Power Mode 3 */
97
#define LPM3_EXIT    _bic_SR_register_on_exit(LPM3_bits) /* Exit Low Power Mode 3 */
98
#define LPM4         _bis_SR_register(LPM4_bits)         /* Enter Low Power Mode 4 */
99
#define LPM4_EXIT    _bic_SR_register_on_exit(LPM4_bits) /* Exit Low Power Mode 4 */
100
#endif /* End #defines for C */
101
 
102
/************************************************************
103
* PERIPHERAL FILE MAP
104
************************************************************/
105
 
106
/************************************************************
107
* SPECIAL FUNCTION REGISTER ADDRESSES + CONTROL BITS
108
************************************************************/
109
 
110
SFR_8BIT(IE1);                                /* Interrupt Enable 1 */
111
#define WDTIE                  (0x01)
112
#define OFIE                   (0x02)
113
#define NMIIE                  (0x10)
114
#define ACCVIE                 (0x20)
115
 
116
SFR_8BIT(IFG1);                               /* Interrupt Flag 1 */
117
#define WDTIFG                 (0x01)
118
#define OFIFG                  (0x02)
119
#define NMIIFG                 (0x10)
120
 
121
SFR_8BIT(IE2);                                /* Interrupt Enable 2 */
122
#define BTIE                   (0x80)
123
 
124
SFR_8BIT(IFG2);                               /* Interrupt Flag 2 */
125
#define BTIFG                  (0x80)
126
 
127
/************************************************************
128
* WATCHDOG TIMER
129
************************************************************/
130
#define __MSP430_HAS_WDT__                    /* Definition to show that Module is available */
131
 
132
SFR_16BIT(WDTCTL);                            /* Watchdog Timer Control */
133
/* The bit names have been prefixed with "WDT" */
134
#define WDTIS0                 (0x0001)
135
#define WDTIS1                 (0x0002)
136
#define WDTSSEL                (0x0004)
137
#define WDTCNTCL               (0x0008)
138
#define WDTTMSEL               (0x0010)
139
#define WDTNMI                 (0x0020)
140
#define WDTNMIES               (0x0040)
141
#define WDTHOLD                (0x0080)
142
 
143
#define WDTPW                  (0x5A00)
144
 
145
/* WDT-interval times [1ms] coded with Bits 0-2 */
146
/* WDT is clocked by fSMCLK (assumed 1MHz) */
147
#define WDT_MDLY_32         (WDTPW+WDTTMSEL+WDTCNTCL)                         /* 32ms interval (default) */
148
#define WDT_MDLY_8          (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS0)                  /* 8ms     " */
149
#define WDT_MDLY_0_5        (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS1)                  /* 0.5ms   " */
150
#define WDT_MDLY_0_064      (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS1+WDTIS0)           /* 0.064ms " */
151
/* WDT is clocked by fACLK (assumed 32KHz) */
152
#define WDT_ADLY_1000       (WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL)                 /* 1000ms  " */
153
#define WDT_ADLY_250        (WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL+WDTIS0)          /* 250ms   " */
154
#define WDT_ADLY_16         (WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL+WDTIS1)          /* 16ms    " */
155
#define WDT_ADLY_1_9        (WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL+WDTIS1+WDTIS0)   /* 1.9ms   " */
156
/* Watchdog mode -> reset after expired time */
157
/* WDT is clocked by fSMCLK (assumed 1MHz) */
158
#define WDT_MRST_32         (WDTPW+WDTCNTCL)                                  /* 32ms interval (default) */
159
#define WDT_MRST_8          (WDTPW+WDTCNTCL+WDTIS0)                           /* 8ms     " */
160
#define WDT_MRST_0_5        (WDTPW+WDTCNTCL+WDTIS1)                           /* 0.5ms   " */
161
#define WDT_MRST_0_064      (WDTPW+WDTCNTCL+WDTIS1+WDTIS0)                    /* 0.064ms " */
162
/* WDT is clocked by fACLK (assumed 32KHz) */
163
#define WDT_ARST_1000       (WDTPW+WDTCNTCL+WDTSSEL)                          /* 1000ms  " */
164
#define WDT_ARST_250        (WDTPW+WDTCNTCL+WDTSSEL+WDTIS0)                   /* 250ms   " */
165
#define WDT_ARST_16         (WDTPW+WDTCNTCL+WDTSSEL+WDTIS1)                   /* 16ms    " */
166
#define WDT_ARST_1_9        (WDTPW+WDTCNTCL+WDTSSEL+WDTIS1+WDTIS0)            /* 1.9ms   " */
167
 
168
/* INTERRUPT CONTROL */
169
/* These two bits are defined in the Special Function Registers */
170
/* #define WDTIE               0x01 */
171
/* #define WDTIFG              0x01 */
172
 
173
/************************************************************
174
* DIGITAL I/O Port1/2
175
************************************************************/
176
#define __MSP430_HAS_PORT1__                  /* Definition to show that Module is available */
177
#define __MSP430_HAS_PORT2__                  /* Definition to show that Module is available */
178
 
179
SFR_8BIT(P1IN);                               /* Port 1 Input */
180
SFR_8BIT(P1OUT);                              /* Port 1 Output */
181
SFR_8BIT(P1DIR);                              /* Port 1 Direction */
182
SFR_8BIT(P1IFG);                              /* Port 1 Interrupt Flag */
183
SFR_8BIT(P1IES);                              /* Port 1 Interrupt Edge Select */
184
SFR_8BIT(P1IE);                               /* Port 1 Interrupt Enable */
185
SFR_8BIT(P1SEL);                              /* Port 1 Selection */
186
 
187
SFR_8BIT(P2IN);                               /* Port 2 Input */
188
SFR_8BIT(P2OUT);                              /* Port 2 Output */
189
SFR_8BIT(P2DIR);                              /* Port 2 Direction */
190
SFR_8BIT(P2IFG);                              /* Port 2 Interrupt Flag */
191
SFR_8BIT(P2IES);                              /* Port 2 Interrupt Edge Select */
192
SFR_8BIT(P2IE);                               /* Port 2 Interrupt Enable */
193
SFR_8BIT(P2SEL);                              /* Port 2 Selection */
194
 
195
/************************************************************
196
* DIGITAL I/O Port3/4
197
************************************************************/
198
#define __MSP430_HAS_PORT3__                  /* Definition to show that Module is available */
199
#define __MSP430_HAS_PORT4__                  /* Definition to show that Module is available */
200
 
201
SFR_8BIT(P3IN);                               /* Port 3 Input */
202
SFR_8BIT(P3OUT);                              /* Port 3 Output */
203
SFR_8BIT(P3DIR);                              /* Port 3 Direction */
204
SFR_8BIT(P3SEL);                              /* Port 3 Selection */
205
 
206
SFR_8BIT(P4IN);                               /* Port 4 Input */
207
SFR_8BIT(P4OUT);                              /* Port 4 Output */
208
SFR_8BIT(P4DIR);                              /* Port 4 Direction */
209
SFR_8BIT(P4SEL);                              /* Port 4 Selection */
210
 
211
/************************************************************
212
* DIGITAL I/O Port5/6
213
************************************************************/
214
#define __MSP430_HAS_PORT5__                  /* Definition to show that Module is available */
215
#define __MSP430_HAS_PORT6__                  /* Definition to show that Module is available */
216
 
217
SFR_8BIT(P5IN);                               /* Port 5 Input */
218
SFR_8BIT(P5OUT);                              /* Port 5 Output */
219
SFR_8BIT(P5DIR);                              /* Port 5 Direction */
220
SFR_8BIT(P5SEL);                              /* Port 5 Selection */
221
 
222
SFR_8BIT(P6IN);                               /* Port 6 Input */
223
SFR_8BIT(P6OUT);                              /* Port 6 Output */
224
SFR_8BIT(P6DIR);                              /* Port 6 Direction */
225
SFR_8BIT(P6SEL);                              /* Port 6 Selection */
226
 
227
/************************************************************
228
* BASIC TIMER
229
************************************************************/
230
#define __MSP430_HAS_BT__                     /* Definition to show that Module is available */
231
 
232
SFR_8BIT(BTCTL);                              /* Basic Timer Control */
233
/* The bit names have been prefixed with "BT" */
234
#define BTIP0                  (0x01)
235
#define BTIP1                  (0x02)
236
#define BTIP2                  (0x04)
237
#define BTFRFQ0                (0x08)
238
#define BTFRFQ1                (0x10)
239
#define BTDIV                  (0x20)         /* fCLK2 = ACLK:256 */
240
#define BTHOLD                 (0x40)         /* BT1 is held if this bit is set */
241
#define BTSSEL                 (0x80)         /* fBT = fMCLK (main clock) */
242
 
243
SFR_8BIT(BTCNT1);                             /* Basic Timer Count 1 */
244
SFR_8BIT(BTCNT2);                             /* Basic Timer Count 2 */
245
 
246
/* Frequency of the BTCNT2 coded with Bit 5 and 7 in BTCTL */
247
#define BT_fCLK2_ACLK          (0x00)
248
#define BT_fCLK2_ACLK_DIV256   (BTDIV)
249
#define BT_fCLK2_MCLK          (BTSSEL)
250
 
251
/* Interrupt interval time fINT coded with Bits 0-2 in BTCTL */
252
#define BT_fCLK2_DIV2          (0x00)         /* fINT = fCLK2:2 (default) */
253
#define BT_fCLK2_DIV4          (BTIP0)        /* fINT = fCLK2:4 */
254
#define BT_fCLK2_DIV8          (BTIP1)        /* fINT = fCLK2:8 */
255
#define BT_fCLK2_DIV16         (BTIP1+BTIP0)  /* fINT = fCLK2:16 */
256
#define BT_fCLK2_DIV32         (BTIP2)        /* fINT = fCLK2:32 */
257
#define BT_fCLK2_DIV64         (BTIP2+BTIP0)  /* fINT = fCLK2:64 */
258
#define BT_fCLK2_DIV128        (BTIP2+BTIP1)  /* fINT = fCLK2:128 */
259
#define BT_fCLK2_DIV256     (BTIP2+BTIP1+BTIP0)       /* fINT = fCLK2:256 */
260
/* Frequency of LCD coded with Bits 3-4 */
261
#define BT_fLCD_DIV32          (0x00)         /* fLCD = fACLK:32 (default) */
262
#define BT_fLCD_DIV64          (BTFRFQ0)      /* fLCD = fACLK:64 */
263
#define BT_fLCD_DIV128         (BTFRFQ1)      /* fLCD = fACLK:128 */
264
#define BT_fLCD_DIV256      (BTFRFQ1+BTFRFQ0)         /* fLCD = fACLK:256 */
265
/* LCD frequency values with fBT=fACLK */
266
#define BT_fLCD_1K             (0x00)         /* fACLK:32 (default) */
267
#define BT_fLCD_512            (BTFRFQ0)      /* fACLK:64 */
268
#define BT_fLCD_256            (BTFRFQ1)      /* fACLK:128 */
269
#define BT_fLCD_128         (BTFRFQ1+BTFRFQ0)         /* fACLK:256 */
270
/* LCD frequency values with fBT=fMCLK */
271
#define BT_fLCD_31K            (BTSSEL)       /* fMCLK:32 */
272
#define BT_fLCD_15_5K       (BTSSEL+BTFRFQ0)          /* fMCLK:64 */
273
#define BT_fLCD_7_8K        (BTSSEL+BTFRFQ1+BTFRFQ0)  /* fMCLK:256 */
274
/* with assumed vlues of fACLK=32KHz, fMCLK=1MHz */
275
/* fBT=fACLK is thought for longer interval times */
276
#define BT_ADLY_0_064          (0x00)         /* 0.064ms interval (default) */
277
#define BT_ADLY_0_125          (BTIP0)        /* 0.125ms    " */
278
#define BT_ADLY_0_25           (BTIP1)        /* 0.25ms     " */
279
#define BT_ADLY_0_5            (BTIP1+BTIP0)  /* 0.5ms      " */
280
#define BT_ADLY_1              (BTIP2)        /* 1ms        " */
281
#define BT_ADLY_2              (BTIP2+BTIP0)  /* 2ms        " */
282
#define BT_ADLY_4              (BTIP2+BTIP1)  /* 4ms        " */
283
#define BT_ADLY_8           (BTIP2+BTIP1+BTIP0)       /* 8ms        " */
284
#define BT_ADLY_16             (BTDIV)        /* 16ms       " */
285
#define BT_ADLY_32             (BTDIV+BTIP0)  /* 32ms       " */
286
#define BT_ADLY_64             (BTDIV+BTIP1)  /* 64ms       " */
287
#define BT_ADLY_125         (BTDIV+BTIP1+BTIP0)       /* 125ms      " */
288
#define BT_ADLY_250            (BTDIV+BTIP2)  /* 250ms      " */
289
#define BT_ADLY_500         (BTDIV+BTIP2+BTIP0)       /* 500ms      " */
290
#define BT_ADLY_1000        (BTDIV+BTIP2+BTIP1)       /* 1000ms     " */
291
#define BT_ADLY_2000        (BTDIV+BTIP2+BTIP1+BTIP0) /* 2000ms     " */
292
/* fCLK2=fMCLK (1MHz) is thought for short interval times */
293
/* the timing for short intervals is more precise than ACLK */
294
/* NOTE */
295
/* Be sure that the SCFQCTL-Register is set to 01Fh so that fMCLK=1MHz */
296
/* Too low interval time results in interrupts too frequent for the processor to handle! */
297
#define BT_MDLY_0_002          (BTSSEL)       /* 0.002ms interval       *** interval times */
298
#define BT_MDLY_0_004          (BTSSEL+BTIP0) /* 0.004ms    "           *** too short for */
299
#define BT_MDLY_0_008          (BTSSEL+BTIP1) /* 0.008ms    "           *** interrupt */
300
#define BT_MDLY_0_016       (BTSSEL+BTIP1+BTIP0)      /* 0.016ms    "           *** handling */
301
#define BT_MDLY_0_032          (BTSSEL+BTIP2) /* 0.032ms    " */
302
#define BT_MDLY_0_064       (BTSSEL+BTIP2+BTIP0)      /* 0.064ms    " */
303
#define BT_MDLY_0_125       (BTSSEL+BTIP2+BTIP1)      /* 0.125ms    " */
304
#define BT_MDLY_0_25        (BTSSEL+BTIP2+BTIP1+BTIP0)/* 0.25ms     " */
305
 
306
/* Reset/Hold coded with Bits 6-7 in BT(1)CTL */
307
/* this is for BT */
308
//#define BTRESET_CNT1        (BTRESET)           /* BTCNT1 is reset while BTRESET is set */
309
//#define BTRESET_CNT1_2      (BTRESET+BTDIV)     /* BTCNT1 .AND. BTCNT2 are reset while ~ is set */
310
/* this is for BT1 */
311
#define BTHOLD_CNT1            (BTHOLD)       /* BTCNT1 is held while BTHOLD is set */
312
#define BTHOLD_CNT1_2          (BTHOLD+BTDIV) /* BT1CNT1 .AND. BT1CNT2 are held while ~ is set */
313
 
314
/* INTERRUPT CONTROL BITS */
315
/* #define BTIE                0x80 */
316
/* #define BTIFG               0x80 */
317
 
318
/************************************************************
319
* SYSTEM CLOCK, FLL+ (x41x)
320
************************************************************/
321
#define __MSP430_HAS_FLLPLUS_SMALL__                /* Definition to show that Module is available */
322
 
323
SFR_8BIT(SCFI0);                              /* System Clock Frequency Integrator 0 */
324
#define FN_2                   (0x04)         /* fDCOCLK =   1.4-12MHz*/
325
#define FN_3                   (0x08)         /* fDCOCLK =   2.2-17Mhz*/
326
#define FN_4                   (0x10)         /* fDCOCLK =   3.2-25Mhz*/
327
#define FN_8                   (0x20)         /* fDCOCLK =     5-40Mhz*/
328
#define FLLD0                  (0x40)         /* Loop Divider Bit : 0 */
329
#define FLLD1                  (0x80)         /* Loop Divider Bit : 1 */
330
 
331
#define FLLD_1                 (0x00)         /* Multiply Selected Loop Freq. By 1 */
332
#define FLLD_2                 (0x40)         /* Multiply Selected Loop Freq. By 2 */
333
#define FLLD_4                 (0x80)         /* Multiply Selected Loop Freq. By 4 */
334
#define FLLD_8                 (0xC0)         /* Multiply Selected Loop Freq. By 8 */
335
 
336
SFR_8BIT(SCFI1);                              /* System Clock Frequency Integrator 1 */
337
SFR_8BIT(SCFQCTL);                            /* System Clock Frequency Control */
338
/* System clock frequency values fMCLK coded with Bits 0-6 in SCFQCTL */
339
/* #define SCFQ_32K            0x00                        fMCLK=1*fACLK       only a range from */
340
#define SCFQ_64K               (0x01)         /* fMCLK=2*fACLK          1+1 to 127+1 is possible */
341
#define SCFQ_128K              (0x03)         /* fMCLK=4*fACLK */
342
#define SCFQ_256K              (0x07)         /* fMCLK=8*fACLK */
343
#define SCFQ_512K              (0x0F)         /* fMCLK=16*fACLK */
344
#define SCFQ_1M                (0x1F)         /* fMCLK=32*fACLK */
345
#define SCFQ_2M                (0x3F)         /* fMCLK=64*fACLK */
346
#define SCFQ_4M                (0x7F)         /* fMCLK=128*fACLK */
347
#define SCFQ_M                 (0x80)         /* Modulation Disable */
348
 
349
SFR_8BIT(FLL_CTL0);                           /* FLL+ Control 0 */
350
#define DCOF                   (0x01)         /* DCO Fault Flag */
351
#define LFOF                   (0x02)         /* Low Frequency Oscillator Fault Flag */
352
#define XT1OF                  (0x04)         /* High Frequency Oscillator Fault Flag */
353
#define OSCCAP0                (0x10)         /* XIN/XOUT Cap 0 */
354
#define OSCCAP1                (0x20)         /* XIN/XOUT Cap 1 */
355
#define XTS_FLL                (0x40)         /* 1: Selects high-freq. oscillator */
356
#define DCOPLUS                (0x80)         /* DCO+ Enable */
357
 
358
#define XCAP0PF                (0x00)         /* XIN Cap = XOUT Cap = 0pf */
359
#define XCAP10PF               (0x10)         /* XIN Cap = XOUT Cap = 10pf */
360
#define XCAP14PF               (0x20)         /* XIN Cap = XOUT Cap = 14pf */
361
#define XCAP18PF               (0x30)         /* XIN Cap = XOUT Cap = 18pf */
362
#define OSCCAP_0               (0x00)         /* XIN Cap = XOUT Cap = 0pf */
363
#define OSCCAP_1               (0x10)         /* XIN Cap = XOUT Cap = 10pf */
364
#define OSCCAP_2               (0x20)         /* XIN Cap = XOUT Cap = 14pf */
365
#define OSCCAP_3               (0x30)         /* XIN Cap = XOUT Cap = 18pf */
366
 
367
SFR_8BIT(FLL_CTL1);                           /* FLL+ Control 1 */
368
#define FLL_DIV0               (0x01)         /* FLL+ Divide Px.x/ACLK 0 */
369
#define FLL_DIV1               (0x02)         /* FLL+ Divide Px.x/ACLK 1 */
370
 
371
#define FLL_DIV_1              (0x00)         /* FLL+ Divide Px.x/ACLK By 1 */
372
#define FLL_DIV_2              (0x01)         /* FLL+ Divide Px.x/ACLK By 2 */
373
#define FLL_DIV_4              (0x02)         /* FLL+ Divide Px.x/ACLK By 4 */
374
#define FLL_DIV_8              (0x03)         /* FLL+ Divide Px.x/ACLK By 8 */
375
 
376
/* INTERRUPT CONTROL BITS */
377
/* These two bits are defined in the Special Function Registers */
378
/* #define OFIFG               0x02 */
379
/* #define OFIE                0x02 */
380
 
381
/************************************************************
382
* Brown-Out, Supply Voltage Supervision (SVS)
383
************************************************************/
384
#define __MSP430_HAS_SVS__                    /* Definition to show that Module is available */
385
 
386
SFR_8BIT(SVSCTL);                             /* SVS Control */
387
#define SVSFG                  (0x01)         /* SVS Flag */
388
#define SVSOP                  (0x02)         /* SVS output (read only) */
389
#define SVSON                  (0x04)         /* Switches the SVS on/off */
390
#define PORON                  (0x08)         /* Enable POR Generation if Low Voltage */
391
#define VLD0                   (0x10)
392
#define VLD1                   (0x20)
393
#define VLD2                   (0x40)
394
#define VLD3                   (0x80)
395
 
396
#define VLDON                  (0x10)
397
#define VLDOFF                 (0x00)
398
#define VLD_1_8V               (0x10)
399
 
400
/************************************************************
401
* LCD
402
************************************************************/
403
#define __MSP430_HAS_LCD4__                   /* Definition to show that Module is available */
404
 
405
SFR_8BIT(LCDCTL);                             /* LCD Control */
406
/* the names of the mode bits are different from the spec */
407
#define LCDON                  (0x01)
408
//#define LCDLOWR             (0x02)
409
#define LCDSON                 (0x04)
410
#define LCDMX0                 (0x08)
411
#define LCDMX1                 (0x10)
412
#define LCDP0                  (0x20)
413
#define LCDP1                  (0x40)
414
#define LCDP2                  (0x80)
415
/* Display modes coded with Bits 2-4 */
416
#define LCDSTATIC              (LCDSON)
417
#define LCD2MUX                (LCDMX0+LCDSON)
418
#define LCD3MUX                (LCDMX1+LCDSON)
419
#define LCD4MUX                (LCDMX1+LCDMX0+LCDSON)
420
/* Group select code with Bits 5-7                     Seg.lines   Dig.output */
421
#define LCDSG0                 (0x00)         /* ---------   Port Only (default) */
422
#define LCDSG0_1               (LCDP0)        /* S0  - S15   see Datasheet */
423
#define LCDSG0_2               (LCDP1)        /* S0  - S19   see Datasheet */
424
#define LCDSG0_3               (LCDP1+LCDP0)  /* S0  - S23   see Datasheet */
425
#define LCDSG0_4               (LCDP2)        /* S0  - S27   see Datasheet */
426
#define LCDSG0_5               (LCDP2+LCDP0)  /* S0  - S31   see Datasheet */
427
#define LCDSG0_6               (LCDP2+LCDP1)  /* S0  - S35   see Datasheet */
428
#define LCDSG0_7            (LCDP2+LCDP1+LCDP0)       /* S0  - S39   see Datasheet */
429
/* NOTE: YOU CAN ONLY USE THE 'S' OR 'G' DECLARATIONS FOR A COMMAND */
430
/* MOV  #LCDSG0_3+LCDOG2_7,&LCDCTL ACTUALY MEANS MOV  #LCDP1,&LCDCTL! */
431
#define LCDOG1_7               (0x00)         /* ---------   Port Only (default) */
432
#define LCDOG2_7               (LCDP0)        /* S0  - S15   see Datasheet */
433
#define LCDOG3_7               (LCDP1)        /* S0  - S19   see Datasheet */
434
#define LCDOG4_7               (LCDP1+LCDP0)  /* S0  - S23   see Datasheet */
435
#define LCDOG5_7               (LCDP2)        /* S0  - S27   see Datasheet */
436
#define LCDOG6_7               (LCDP2+LCDP0)  /* S0  - S31   see Datasheet */
437
#define LCDOG7                 (LCDP2+LCDP1)  /* S0  - S35   see Datasheet */
438
#define LCDOGOFF            (LCDP2+LCDP1+LCDP0)       /* S0  - S39   see Datasheet */
439
 
440
#define LCDMEM_                (0x0091)       /* LCD Memory */
441
#ifdef __ASM_HEADER__
442
#define LCDMEM                 (LCDMEM_)      /* LCD Memory (for assembler) */
443
#else
444
#define LCDMEM                 ((char*)       LCDMEM_) /* LCD Memory (for C) */
445
#endif
446
SFR_8BIT(LCDM1);                              /* LCD Memory 1 */
447
SFR_8BIT(LCDM2);                              /* LCD Memory 2 */
448
SFR_8BIT(LCDM3);                              /* LCD Memory 3 */
449
SFR_8BIT(LCDM4);                              /* LCD Memory 4 */
450
SFR_8BIT(LCDM5);                              /* LCD Memory 5 */
451
SFR_8BIT(LCDM6);                              /* LCD Memory 6 */
452
SFR_8BIT(LCDM7);                              /* LCD Memory 7 */
453
SFR_8BIT(LCDM8);                              /* LCD Memory 8 */
454
SFR_8BIT(LCDM9);                              /* LCD Memory 9 */
455
SFR_8BIT(LCDM10);                             /* LCD Memory 10 */
456
SFR_8BIT(LCDM11);                             /* LCD Memory 11 */
457
SFR_8BIT(LCDM12);                             /* LCD Memory 12 */
458
SFR_8BIT(LCDM13);                             /* LCD Memory 13 */
459
SFR_8BIT(LCDM14);                             /* LCD Memory 14 */
460
SFR_8BIT(LCDM15);                             /* LCD Memory 15 */
461
SFR_8BIT(LCDM16);                             /* LCD Memory 16 */
462
SFR_8BIT(LCDM17);                             /* LCD Memory 17 */
463
SFR_8BIT(LCDM18);                             /* LCD Memory 18 */
464
SFR_8BIT(LCDM19);                             /* LCD Memory 19 */
465
SFR_8BIT(LCDM20);                             /* LCD Memory 20 */
466
 
467
#define LCDMA                  (LCDM10)       /* LCD Memory A */
468
#define LCDMB                  (LCDM11)       /* LCD Memory B */
469
#define LCDMC                  (LCDM12)       /* LCD Memory C */
470
#define LCDMD                  (LCDM13)       /* LCD Memory D */
471
#define LCDME                  (LCDM14)       /* LCD Memory E */
472
#define LCDMF                  (LCDM15)       /* LCD Memory F */
473
 
474
/************************************************************
475
* Timer0_A3
476
************************************************************/
477
#define __MSP430_HAS_TA3__                    /* Definition to show that Module is available */
478
 
479
SFR_16BIT(TA0IV);                             /* Timer0_A3 Interrupt Vector Word */
480
SFR_16BIT(TA0CTL);                            /* Timer0_A3 Control */
481
SFR_16BIT(TA0CCTL0);                          /* Timer0_A3 Capture/Compare Control 0 */
482
SFR_16BIT(TA0CCTL1);                          /* Timer0_A3 Capture/Compare Control 1 */
483
SFR_16BIT(TA0CCTL2);                          /* Timer0_A3 Capture/Compare Control 2 */
484
SFR_16BIT(TA0R);                              /* Timer0_A3 */
485
SFR_16BIT(TA0CCR0);                           /* Timer0_A3 Capture/Compare 0 */
486
SFR_16BIT(TA0CCR1);                           /* Timer0_A3 Capture/Compare 1 */
487
SFR_16BIT(TA0CCR2);                           /* Timer0_A3 Capture/Compare 2 */
488
 
489
/* Alternate register names */
490
#define TAIV                   TA0IV          /* Timer A Interrupt Vector Word */
491
#define TACTL                  TA0CTL         /* Timer A Control */
492
#define TACCTL0                TA0CCTL0       /* Timer A Capture/Compare Control 0 */
493
#define TACCTL1                TA0CCTL1       /* Timer A Capture/Compare Control 1 */
494
#define TACCTL2                TA0CCTL2       /* Timer A Capture/Compare Control 2 */
495
#define TAR                    TA0R           /* Timer A */
496
#define TACCR0                 TA0CCR0        /* Timer A Capture/Compare 0 */
497
#define TACCR1                 TA0CCR1        /* Timer A Capture/Compare 1 */
498
#define TACCR2                 TA0CCR2        /* Timer A Capture/Compare 2 */
499
#define TAIV_                  TA0IV_         /* Timer A Interrupt Vector Word */
500
#define TACTL_                 TA0CTL_        /* Timer A Control */
501
#define TACCTL0_               TA0CCTL0_      /* Timer A Capture/Compare Control 0 */
502
#define TACCTL1_               TA0CCTL1_      /* Timer A Capture/Compare Control 1 */
503
#define TACCTL2_               TA0CCTL2_      /* Timer A Capture/Compare Control 2 */
504
#define TAR_                   TA0R_          /* Timer A */
505
#define TACCR0_                TA0CCR0_       /* Timer A Capture/Compare 0 */
506
#define TACCR1_                TA0CCR1_       /* Timer A Capture/Compare 1 */
507
#define TACCR2_                TA0CCR2_       /* Timer A Capture/Compare 2 */
508
 
509
/* Alternate register names 2 */
510
#define CCTL0                  TACCTL0        /* Timer A Capture/Compare Control 0 */
511
#define CCTL1                  TACCTL1        /* Timer A Capture/Compare Control 1 */
512
#define CCTL2                  TACCTL2        /* Timer A Capture/Compare Control 2 */
513
#define CCR0                   TACCR0         /* Timer A Capture/Compare 0 */
514
#define CCR1                   TACCR1         /* Timer A Capture/Compare 1 */
515
#define CCR2                   TACCR2         /* Timer A Capture/Compare 2 */
516
#define CCTL0_                 TACCTL0_       /* Timer A Capture/Compare Control 0 */
517
#define CCTL1_                 TACCTL1_       /* Timer A Capture/Compare Control 1 */
518
#define CCTL2_                 TACCTL2_       /* Timer A Capture/Compare Control 2 */
519
#define CCR0_                  TACCR0_        /* Timer A Capture/Compare 0 */
520
#define CCR1_                  TACCR1_        /* Timer A Capture/Compare 1 */
521
#define CCR2_                  TACCR2_        /* Timer A Capture/Compare 2 */
522
 
523
#define TASSEL1                (0x0200)       /* Timer A clock source select 0 */
524
#define TASSEL0                (0x0100)       /* Timer A clock source select 1 */
525
#define ID1                    (0x0080)       /* Timer A clock input divider 1 */
526
#define ID0                    (0x0040)       /* Timer A clock input divider 0 */
527
#define MC1                    (0x0020)       /* Timer A mode control 1 */
528
#define MC0                    (0x0010)       /* Timer A mode control 0 */
529
#define TACLR                  (0x0004)       /* Timer A counter clear */
530
#define TAIE                   (0x0002)       /* Timer A counter interrupt enable */
531
#define TAIFG                  (0x0001)       /* Timer A counter interrupt flag */
532
 
533
#define MC_0                   (0*0x10u)      /* Timer A mode control: 0 - Stop */
534
#define MC_1                   (1*0x10u)      /* Timer A mode control: 1 - Up to CCR0 */
535
#define MC_2                   (2*0x10u)      /* Timer A mode control: 2 - Continous up */
536
#define MC_3                   (3*0x10u)      /* Timer A mode control: 3 - Up/Down */
537
#define ID_0                   (0*0x40u)      /* Timer A input divider: 0 - /1 */
538
#define ID_1                   (1*0x40u)      /* Timer A input divider: 1 - /2 */
539
#define ID_2                   (2*0x40u)      /* Timer A input divider: 2 - /4 */
540
#define ID_3                   (3*0x40u)      /* Timer A input divider: 3 - /8 */
541
#define TASSEL_0               (0*0x100u)     /* Timer A clock source select: 0 - TACLK */
542
#define TASSEL_1               (1*0x100u)     /* Timer A clock source select: 1 - ACLK  */
543
#define TASSEL_2               (2*0x100u)     /* Timer A clock source select: 2 - SMCLK */
544
#define TASSEL_3               (3*0x100u)     /* Timer A clock source select: 3 - INCLK */
545
 
546
#define CM1                    (0x8000)       /* Capture mode 1 */
547
#define CM0                    (0x4000)       /* Capture mode 0 */
548
#define CCIS1                  (0x2000)       /* Capture input select 1 */
549
#define CCIS0                  (0x1000)       /* Capture input select 0 */
550
#define SCS                    (0x0800)       /* Capture sychronize */
551
#define SCCI                   (0x0400)       /* Latched capture signal (read) */
552
#define CAP                    (0x0100)       /* Capture mode: 1 /Compare mode : 0 */
553
#define OUTMOD2                (0x0080)       /* Output mode 2 */
554
#define OUTMOD1                (0x0040)       /* Output mode 1 */
555
#define OUTMOD0                (0x0020)       /* Output mode 0 */
556
#define CCIE                   (0x0010)       /* Capture/compare interrupt enable */
557
#define CCI                    (0x0008)       /* Capture input signal (read) */
558
#define OUT                    (0x0004)       /* PWM Output signal if output mode 0 */
559
#define COV                    (0x0002)       /* Capture/compare overflow flag */
560
#define CCIFG                  (0x0001)       /* Capture/compare interrupt flag */
561
 
562
#define OUTMOD_0               (0*0x20u)      /* PWM output mode: 0 - output only */
563
#define OUTMOD_1               (1*0x20u)      /* PWM output mode: 1 - set */
564
#define OUTMOD_2               (2*0x20u)      /* PWM output mode: 2 - PWM toggle/reset */
565
#define OUTMOD_3               (3*0x20u)      /* PWM output mode: 3 - PWM set/reset */
566
#define OUTMOD_4               (4*0x20u)      /* PWM output mode: 4 - toggle */
567
#define OUTMOD_5               (5*0x20u)      /* PWM output mode: 5 - Reset */
568
#define OUTMOD_6               (6*0x20u)      /* PWM output mode: 6 - PWM toggle/set */
569
#define OUTMOD_7               (7*0x20u)      /* PWM output mode: 7 - PWM reset/set */
570
#define CCIS_0                 (0*0x1000u)    /* Capture input select: 0 - CCIxA */
571
#define CCIS_1                 (1*0x1000u)    /* Capture input select: 1 - CCIxB */
572
#define CCIS_2                 (2*0x1000u)    /* Capture input select: 2 - GND */
573
#define CCIS_3                 (3*0x1000u)    /* Capture input select: 3 - Vcc */
574
#define CM_0                   (0*0x4000u)    /* Capture mode: 0 - disabled */
575
#define CM_1                   (1*0x4000u)    /* Capture mode: 1 - pos. edge */
576
#define CM_2                   (2*0x4000u)    /* Capture mode: 1 - neg. edge */
577
#define CM_3                   (3*0x4000u)    /* Capture mode: 1 - both edges */
578
 
579
/* T0_A3IV Definitions */
580
#define TA0IV_NONE             (0x0000)       /* No Interrupt pending */
581
#define TA0IV_TACCR1           (0x0002)       /* TA0CCR1_CCIFG */
582
#define TA0IV_TACCR2           (0x0004)       /* TA0CCR2_CCIFG */
583
#define TA0IV_6                (0x0006)       /* Reserved */
584
#define TA0IV_8                (0x0008)       /* Reserved */
585
#define TA0IV_TAIFG            (0x000A)       /* TA0IFG */
586
 
587
/************************************************************
588
* Timer1_A5
589
************************************************************/
590
#define __MSP430_HAS_T1A5__                   /* Definition to show that Module is available */
591
 
592
SFR_16BIT(TA1IV);                             /* Timer1_A5 Interrupt Vector Word */
593
SFR_16BIT(TA1CTL);                            /* Timer1_A5 Control */
594
SFR_16BIT(TA1CCTL0);                          /* Timer1_A5 Capture/Compare Control 0 */
595
SFR_16BIT(TA1CCTL1);                          /* Timer1_A5 Capture/Compare Control 1 */
596
SFR_16BIT(TA1CCTL2);                          /* Timer1_A5 Capture/Compare Control 2 */
597
SFR_16BIT(TA1CCTL3);                          /* Timer1_A5 Capture/Compare Control 3 */
598
SFR_16BIT(TA1CCTL4);                          /* Timer1_A5 Capture/Compare Control 4 */
599
SFR_16BIT(TA1R);                              /* Timer1_A5 */
600
SFR_16BIT(TA1CCR0);                           /* Timer1_A5 Capture/Compare 0 */
601
SFR_16BIT(TA1CCR1);                           /* Timer1_A5 Capture/Compare 1 */
602
SFR_16BIT(TA1CCR2);                           /* Timer1_A5 Capture/Compare 2 */
603
SFR_16BIT(TA1CCR3);                           /* Timer1_A5 Capture/Compare 3 */
604
SFR_16BIT(TA1CCR4);                           /* Timer1_A5 Capture/Compare 4 */
605
 
606
/* Bits are already defined within the Timer0_Ax */
607
 
608
/* T1_A5IV Definitions */
609
#define TA1IV_NONE             (0x0000)       /* No Interrupt pending */
610
#define TA1IV_TACCR1           (0x0002)       /* TA1CCR1_CCIFG */
611
#define TA1IV_TACCR2           (0x0004)       /* TA1CCR2_CCIFG */
612
#define TA1IV_TACCR3           (0x0006)       /* TA1CCR3_CCIFG */
613
#define TA1IV_TACCR4           (0x0008)       /* TA1CCR4_CCIFG */
614
#define TA1IV_TAIFG            (0x000A)       /* TA1IFG */
615
 
616
/*************************************************************
617
* Flash Memory
618
*************************************************************/
619
#define __MSP430_HAS_FLASH__                  /* Definition to show that Module is available */
620
 
621
SFR_16BIT(FCTL1);                             /* FLASH Control 1 */
622
SFR_16BIT(FCTL2);                             /* FLASH Control 2 */
623
SFR_16BIT(FCTL3);                             /* FLASH Control 3 */
624
 
625
#define FRKEY                  (0x9600)       /* Flash key returned by read */
626
#define FWKEY                  (0xA500)       /* Flash key for write */
627
#define FXKEY                  (0x3300)       /* for use with XOR instruction */
628
 
629
#define ERASE                  (0x0002)       /* Enable bit for Flash segment erase */
630
#define MERAS                  (0x0004)       /* Enable bit for Flash mass erase */
631
#define WRT                    (0x0040)       /* Enable bit for Flash write */
632
#define BLKWRT                 (0x0080)       /* Enable bit for Flash segment write */
633
#define SEGWRT                 (0x0080)       /* old definition */ /* Enable bit for Flash segment write */
634
 
635
#define FN0                    (0x0001)       /* Divide Flash clock by 1 to 64 using FN0 to FN5 according to: */
636
#define FN1                    (0x0002)       /*  32*FN5 + 16*FN4 + 8*FN3 + 4*FN2 + 2*FN1 + FN0 + 1 */
637
#ifndef FN2
638
#define FN2                    (0x0004)
639
#endif
640
#ifndef FN3
641
#define FN3                    (0x0008)
642
#endif
643
#ifndef FN4
644
#define FN4                    (0x0010)
645
#endif
646
#define FN5                    (0x0020)
647
#define FSSEL0                 (0x0040)       /* Flash clock select 0 */        /* to distinguish from USART SSELx */
648
#define FSSEL1                 (0x0080)       /* Flash clock select 1 */
649
 
650
#define FSSEL_0                (0x0000)       /* Flash clock select: 0 - ACLK */
651
#define FSSEL_1                (0x0040)       /* Flash clock select: 1 - MCLK */
652
#define FSSEL_2                (0x0080)       /* Flash clock select: 2 - SMCLK */
653
#define FSSEL_3                (0x00C0)       /* Flash clock select: 3 - SMCLK */
654
 
655
#define BUSY                   (0x0001)       /* Flash busy: 1 */
656
#define KEYV                   (0x0002)       /* Flash Key violation flag */
657
#define ACCVIFG                (0x0004)       /* Flash Access violation flag */
658
#define WAIT                   (0x0008)       /* Wait flag for segment write */
659
#define LOCK                   (0x0010)       /* Lock bit: 1 - Flash is locked (read only) */
660
#define EMEX                   (0x0020)       /* Flash Emergency Exit */
661
 
662
/************************************************************
663
* Comparator A
664
************************************************************/
665
#define __MSP430_HAS_COMPA__                  /* Definition to show that Module is available */
666
 
667
SFR_8BIT(CACTL1);                             /* Comparator A Control 1 */
668
SFR_8BIT(CACTL2);                             /* Comparator A Control 2 */
669
SFR_8BIT(CAPD);                               /* Comparator A Port Disable */
670
 
671
#define CAIFG                  (0x01)         /* Comp. A Interrupt Flag */
672
#define CAIE                   (0x02)         /* Comp. A Interrupt Enable */
673
#define CAIES                  (0x04)         /* Comp. A Int. Edge Select: 0:rising / 1:falling */
674
#define CAON                   (0x08)         /* Comp. A enable */
675
#define CAREF0                 (0x10)         /* Comp. A Internal Reference Select 0 */
676
#define CAREF1                 (0x20)         /* Comp. A Internal Reference Select 1 */
677
#define CARSEL                 (0x40)         /* Comp. A Internal Reference Enable */
678
#define CAEX                   (0x80)         /* Comp. A Exchange Inputs */
679
 
680
#define CAREF_0                (0x00)         /* Comp. A Int. Ref. Select 0 : Off */
681
#define CAREF_1                (0x10)         /* Comp. A Int. Ref. Select 1 : 0.25*Vcc */
682
#define CAREF_2                (0x20)         /* Comp. A Int. Ref. Select 2 : 0.5*Vcc */
683
#define CAREF_3                (0x30)         /* Comp. A Int. Ref. Select 3 : Vt*/
684
 
685
#define CAOUT                  (0x01)         /* Comp. A Output */
686
#define CAF                    (0x02)         /* Comp. A Enable Output Filter */
687
#define P2CA0                  (0x04)         /* Comp. A Connect External Signal to CA0 : 1 */
688
#define P2CA1                  (0x08)         /* Comp. A Connect External Signal to CA1 : 1 */
689
#define CACTL24                (0x10)
690
#define CACTL25                (0x20)
691
#define CACTL26                (0x40)
692
#define CACTL27                (0x80)
693
 
694
#define CAPD0                  (0x01)         /* Comp. A Disable Input Buffer of Port Register .0 */
695
#define CAPD1                  (0x02)         /* Comp. A Disable Input Buffer of Port Register .1 */
696
#define CAPD2                  (0x04)         /* Comp. A Disable Input Buffer of Port Register .2 */
697
#define CAPD3                  (0x08)         /* Comp. A Disable Input Buffer of Port Register .3 */
698
#define CAPD4                  (0x10)         /* Comp. A Disable Input Buffer of Port Register .4 */
699
#define CAPD5                  (0x20)         /* Comp. A Disable Input Buffer of Port Register .5 */
700
#define CAPD6                  (0x40)         /* Comp. A Disable Input Buffer of Port Register .6 */
701
#define CAPD7                  (0x80)         /* Comp. A Disable Input Buffer of Port Register .7 */
702
 
703
/************************************************************
704
* Interrupt Vectors (offset from 0xFFE0)
705
************************************************************/
706
 
707
#define VECTOR_NAME(name)       name##_ptr
708
#define EMIT_PRAGMA(x)          _Pragma(#x)
709
#define CREATE_VECTOR(name)     void (* const VECTOR_NAME(name))(void) = &name
710
#define PLACE_VECTOR(vector,section) EMIT_PRAGMA(DATA_SECTION(vector,section))
711
#define ISR_VECTOR(func,offset) CREATE_VECTOR(func); \
712
                                PLACE_VECTOR(VECTOR_NAME(func), offset)
713
 
714
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
715
#define BASICTIMER_VECTOR       ".int00"                    /* 0xFFE0 Basic Timer */
716
#else
717
#define BASICTIMER_VECTOR       (0 * 1u)                     /* 0xFFE0 Basic Timer */
718
/*#define BASICTIMER_ISR(func)    ISR_VECTOR(func, ".int00")  */ /* 0xFFE0 Basic Timer */ /* CCE V2 Style */
719
#endif
720
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
721
#define PORT2_VECTOR            ".int01"                    /* 0xFFE2 Port 2 */
722
#else
723
#define PORT2_VECTOR            (1 * 1u)                     /* 0xFFE2 Port 2 */
724
/*#define PORT2_ISR(func)         ISR_VECTOR(func, ".int01")  */ /* 0xFFE2 Port 2 */ /* CCE V2 Style */
725
#endif
726
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
727
#define PORT1_VECTOR            ".int04"                    /* 0xFFE8 Port 1 */
728
#else
729
#define PORT1_VECTOR            (4 * 1u)                     /* 0xFFE8 Port 1 */
730
/*#define PORT1_ISR(func)         ISR_VECTOR(func, ".int04")  */ /* 0xFFE8 Port 1 */ /* CCE V2 Style */
731
#endif
732
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
733
#define TIMER0_A1_VECTOR        ".int05"                    /* 0xFFEA Timer0_A CC1-2, TA0 */
734
#else
735
#define TIMER0_A1_VECTOR        (5 * 1u)                     /* 0xFFEA Timer0_A CC1-2, TA0 */
736
/*#define TIMER0_A1_ISR(func)     ISR_VECTOR(func, ".int05")  */ /* 0xFFEA Timer0_A CC1-2, TA0 */ /* CCE V2 Style */
737
#endif
738
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
739
#define TIMER0_A0_VECTOR        ".int06"                    /* 0xFFEC Timer0_A CC0 */
740
#else
741
#define TIMER0_A0_VECTOR        (6 * 1u)                     /* 0xFFEC Timer0_A CC0 */
742
/*#define TIMER0_A0_ISR(func)     ISR_VECTOR(func, ".int06")  */ /* 0xFFEC Timer0_A CC0 */ /* CCE V2 Style */
743
#endif
744
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
745
#define WDT_VECTOR              ".int10"                    /* 0xFFF4 Watchdog Timer */
746
#else
747
#define WDT_VECTOR              (10 * 1u)                    /* 0xFFF4 Watchdog Timer */
748
/*#define WDT_ISR(func)           ISR_VECTOR(func, ".int10")  */ /* 0xFFF4 Watchdog Timer */ /* CCE V2 Style */
749
#endif
750
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
751
#define COMPARATORA_VECTOR      ".int11"                    /* 0xFFF6 Comparator A */
752
#else
753
#define COMPARATORA_VECTOR      (11 * 1u)                    /* 0xFFF6 Comparator A */
754
/*#define COMPARATORA_ISR(func)   ISR_VECTOR(func, ".int11")  */ /* 0xFFF6 Comparator A */ /* CCE V2 Style */
755
#endif
756
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
757
#define TIMER1_A1_VECTOR        ".int12"                    /* 0xFFF8 Timer1_A CC1-4, TA1 */
758
#else
759
#define TIMER1_A1_VECTOR        (12 * 1u)                    /* 0xFFF8 Timer1_A CC1-4, TA1 */
760
/*#define TIMER1_A1_ISR(func)     ISR_VECTOR(func, ".int12")  */ /* 0xFFF8 Timer1_A CC1-4, TA1 */ /* CCE V2 Style */
761
#endif
762
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
763
#define TIMER1_A0_VECTOR        ".int13"                    /* 0xFFFA Timer1_A CC0 */
764
#else
765
#define TIMER1_A0_VECTOR        (13 * 1u)                    /* 0xFFFA Timer1_A CC0 */
766
/*#define TIMER1_A0_ISR(func)     ISR_VECTOR(func, ".int13")  */ /* 0xFFFA Timer1_A CC0 */ /* CCE V2 Style */
767
#endif
768
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
769
#define NMI_VECTOR              ".int14"                    /* 0xFFFC Non-maskable */
770
#else
771
#define NMI_VECTOR              (14 * 1u)                    /* 0xFFFC Non-maskable */
772
/*#define NMI_ISR(func)           ISR_VECTOR(func, ".int14")  */ /* 0xFFFC Non-maskable */ /* CCE V2 Style */
773
#endif
774
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
775
#define RESET_VECTOR            ".reset"                    /* 0xFFFE Reset [Highest Priority] */
776
#else
777
#define RESET_VECTOR            (15 * 1u)                    /* 0xFFFE Reset [Highest Priority] */
778
/*#define RESET_ISR(func)         ISR_VECTOR(func, ".int15")  */ /* 0xFFFE Reset [Highest Priority] */ /* CCE V2 Style */
779
#endif
780
 
781
/* Alternate Names */
782
 
783
/************************************************************
784
* End of Modules
785
************************************************************/
786
 
787
#ifdef __cplusplus
788
}
789
#endif /* extern "C" */
790
 
791
#endif /* #ifndef __msp430x41x */
792