Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

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