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
* MSP430x44x1 devices.
14
*
15
* Texas Instruments, Version 1.0
16
*
17
* Rev. 1.0, Initial Version
18
*
19
********************************************************************/
20
 
21
#ifndef __msp430x44x1
22
#define __msp430x44x1
23
 
24
#ifdef __cplusplus
25
extern "C" {
26
#endif
27
 
28
 
29
/*----------------------------------------------------------------------------*/
30
/* PERIPHERAL FILE MAP                                                        */
31
/*----------------------------------------------------------------------------*/
32
 
33
/* External references resolved by a device-specific linker command file */
34
#define SFR_8BIT(address)   extern volatile unsigned char address
35
#define SFR_16BIT(address)  extern volatile unsigned int address
36
 
37
 
38
/************************************************************
39
* STANDARD BITS
40
************************************************************/
41
 
42
#define BIT0                   (0x0001)
43
#define BIT1                   (0x0002)
44
#define BIT2                   (0x0004)
45
#define BIT3                   (0x0008)
46
#define BIT4                   (0x0010)
47
#define BIT5                   (0x0020)
48
#define BIT6                   (0x0040)
49
#define BIT7                   (0x0080)
50
#define BIT8                   (0x0100)
51
#define BIT9                   (0x0200)
52
#define BITA                   (0x0400)
53
#define BITB                   (0x0800)
54
#define BITC                   (0x1000)
55
#define BITD                   (0x2000)
56
#define BITE                   (0x4000)
57
#define BITF                   (0x8000)
58
 
59
/************************************************************
60
* STATUS REGISTER BITS
61
************************************************************/
62
 
63
#define C                      (0x0001)
64
#define Z                      (0x0002)
65
#define N                      (0x0004)
66
#define V                      (0x0100)
67
#define GIE                    (0x0008)
68
#define CPUOFF                 (0x0010)
69
#define OSCOFF                 (0x0020)
70
#define SCG0                   (0x0040)
71
#define SCG1                   (0x0080)
72
 
73
/* Low Power Modes coded with Bits 4-7 in SR */
74
 
75
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
76
#define LPM0                   (CPUOFF)
77
#define LPM1                   (SCG0+CPUOFF)
78
#define LPM2                   (SCG1+CPUOFF)
79
#define LPM3                   (SCG1+SCG0+CPUOFF)
80
#define LPM4                   (SCG1+SCG0+OSCOFF+CPUOFF)
81
/* End #defines for assembler */
82
 
83
#else /* Begin #defines for C */
84
#define LPM0_bits              (CPUOFF)
85
#define LPM1_bits              (SCG0+CPUOFF)
86
#define LPM2_bits              (SCG1+CPUOFF)
87
#define LPM3_bits              (SCG1+SCG0+CPUOFF)
88
#define LPM4_bits              (SCG1+SCG0+OSCOFF+CPUOFF)
89
 
90
#include "in430.h"
91
 
92
#define LPM0         _bis_SR_register(LPM0_bits)         /* Enter Low Power Mode 0 */
93
#define LPM0_EXIT    _bic_SR_register_on_exit(LPM0_bits) /* Exit Low Power Mode 0 */
94
#define LPM1         _bis_SR_register(LPM1_bits)         /* Enter Low Power Mode 1 */
95
#define LPM1_EXIT    _bic_SR_register_on_exit(LPM1_bits) /* Exit Low Power Mode 1 */
96
#define LPM2         _bis_SR_register(LPM2_bits)         /* Enter Low Power Mode 2 */
97
#define LPM2_EXIT    _bic_SR_register_on_exit(LPM2_bits) /* Exit Low Power Mode 2 */
98
#define LPM3         _bis_SR_register(LPM3_bits)         /* Enter Low Power Mode 3 */
99
#define LPM3_EXIT    _bic_SR_register_on_exit(LPM3_bits) /* Exit Low Power Mode 3 */
100
#define LPM4         _bis_SR_register(LPM4_bits)         /* Enter Low Power Mode 4 */
101
#define LPM4_EXIT    _bic_SR_register_on_exit(LPM4_bits) /* Exit Low Power Mode 4 */
102
#endif /* End #defines for C */
103
 
104
/************************************************************
105
* PERIPHERAL FILE MAP
106
************************************************************/
107
 
108
/************************************************************
109
* SPECIAL FUNCTION REGISTER ADDRESSES + CONTROL BITS
110
************************************************************/
111
 
112
SFR_8BIT(IE1);                                /* Interrupt Enable 1 */
113
#define U0IE                   IE1            /* UART0 Interrupt Enable Register */
114
#define WDTIE                  (0x01)
115
#define OFIE                   (0x02)
116
#define NMIIE                  (0x10)
117
#define ACCVIE                 (0x20)
118
#define URXIE0                 (0x40)
119
#define UTXIE0                 (0x80)
120
 
121
SFR_8BIT(IFG1);                               /* Interrupt Flag 1 */
122
#define U0IFG                  IFG1           /* UART0 Interrupt Flag Register */
123
#define WDTIFG                 (0x01)
124
#define OFIFG                  (0x02)
125
#define NMIIFG                 (0x10)
126
#define URXIFG0                (0x40)
127
#define UTXIFG0                (0x80)
128
 
129
SFR_8BIT(ME1);                                /* Module Enable 1 */
130
#define U0ME                   ME1            /* UART0 Module Enable Register */
131
#define URXE0                  (0x40)
132
#define UTXE0                  (0x80)
133
#define USPIE0                 (0x40)
134
 
135
SFR_8BIT(IE2);                                /* Interrupt Enable 2 */
136
#define U1IE                   IE2            /* UART1 Interrupt Enable Register */
137
#define URXIE1                 (0x10)
138
#define UTXIE1                 (0x20)
139
#define BTIE                   (0x80)
140
 
141
SFR_8BIT(IFG2);                               /* Interrupt Flag 2 */
142
#define U1IFG                  IFG2           /* UART1 Interrupt Flag Register */
143
#define URXIFG1                (0x10)
144
#define UTXIFG1                (0x20)
145
#define BTIFG                  (0x80)
146
 
147
SFR_8BIT(ME2);                                /* Module Enable 2 */
148
#define U1ME                   ME2            /* UART1 Module Enable Register */
149
#define URXE1                  (0x10)
150
#define UTXE1                  (0x20)
151
#define USPIE1                 (0x10)
152
 
153
/************************************************************
154
* BASIC TIMER
155
************************************************************/
156
#define __MSP430_HAS_BT__                     /* Definition to show that Module is available */
157
 
158
SFR_8BIT(BTCTL);                              /* Basic Timer Control */
159
/* The bit names have been prefixed with "BT" */
160
#define BTIP0                  (0x01)
161
#define BTIP1                  (0x02)
162
#define BTIP2                  (0x04)
163
#define BTFRFQ0                (0x08)
164
#define BTFRFQ1                (0x10)
165
#define BTDIV                  (0x20)         /* fCLK2 = ACLK:256 */
166
#define BTHOLD                 (0x40)         /* BT1 is held if this bit is set */
167
#define BTSSEL                 (0x80)         /* fBT = fMCLK (main clock) */
168
 
169
SFR_8BIT(BTCNT1);                             /* Basic Timer Count 1 */
170
SFR_8BIT(BTCNT2);                             /* Basic Timer Count 2 */
171
 
172
/* Frequency of the BTCNT2 coded with Bit 5 and 7 in BTCTL */
173
#define BT_fCLK2_ACLK          (0x00)
174
#define BT_fCLK2_ACLK_DIV256   (BTDIV)
175
#define BT_fCLK2_MCLK          (BTSSEL)
176
 
177
/* Interrupt interval time fINT coded with Bits 0-2 in BTCTL */
178
#define BT_fCLK2_DIV2          (0x00)         /* fINT = fCLK2:2 (default) */
179
#define BT_fCLK2_DIV4          (BTIP0)        /* fINT = fCLK2:4 */
180
#define BT_fCLK2_DIV8          (BTIP1)        /* fINT = fCLK2:8 */
181
#define BT_fCLK2_DIV16         (BTIP1+BTIP0)  /* fINT = fCLK2:16 */
182
#define BT_fCLK2_DIV32         (BTIP2)        /* fINT = fCLK2:32 */
183
#define BT_fCLK2_DIV64         (BTIP2+BTIP0)  /* fINT = fCLK2:64 */
184
#define BT_fCLK2_DIV128        (BTIP2+BTIP1)  /* fINT = fCLK2:128 */
185
#define BT_fCLK2_DIV256     (BTIP2+BTIP1+BTIP0)       /* fINT = fCLK2:256 */
186
/* Frequency of LCD coded with Bits 3-4 */
187
#define BT_fLCD_DIV32          (0x00)         /* fLCD = fACLK:32 (default) */
188
#define BT_fLCD_DIV64          (BTFRFQ0)      /* fLCD = fACLK:64 */
189
#define BT_fLCD_DIV128         (BTFRFQ1)      /* fLCD = fACLK:128 */
190
#define BT_fLCD_DIV256      (BTFRFQ1+BTFRFQ0)         /* fLCD = fACLK:256 */
191
/* LCD frequency values with fBT=fACLK */
192
#define BT_fLCD_1K             (0x00)         /* fACLK:32 (default) */
193
#define BT_fLCD_512            (BTFRFQ0)      /* fACLK:64 */
194
#define BT_fLCD_256            (BTFRFQ1)      /* fACLK:128 */
195
#define BT_fLCD_128         (BTFRFQ1+BTFRFQ0)         /* fACLK:256 */
196
/* LCD frequency values with fBT=fMCLK */
197
#define BT_fLCD_31K            (BTSSEL)       /* fMCLK:32 */
198
#define BT_fLCD_15_5K       (BTSSEL+BTFRFQ0)          /* fMCLK:64 */
199
#define BT_fLCD_7_8K        (BTSSEL+BTFRFQ1+BTFRFQ0)  /* fMCLK:256 */
200
/* with assumed vlues of fACLK=32KHz, fMCLK=1MHz */
201
/* fBT=fACLK is thought for longer interval times */
202
#define BT_ADLY_0_064          (0x00)         /* 0.064ms interval (default) */
203
#define BT_ADLY_0_125          (BTIP0)        /* 0.125ms    " */
204
#define BT_ADLY_0_25           (BTIP1)        /* 0.25ms     " */
205
#define BT_ADLY_0_5            (BTIP1+BTIP0)  /* 0.5ms      " */
206
#define BT_ADLY_1              (BTIP2)        /* 1ms        " */
207
#define BT_ADLY_2              (BTIP2+BTIP0)  /* 2ms        " */
208
#define BT_ADLY_4              (BTIP2+BTIP1)  /* 4ms        " */
209
#define BT_ADLY_8           (BTIP2+BTIP1+BTIP0)       /* 8ms        " */
210
#define BT_ADLY_16             (BTDIV)        /* 16ms       " */
211
#define BT_ADLY_32             (BTDIV+BTIP0)  /* 32ms       " */
212
#define BT_ADLY_64             (BTDIV+BTIP1)  /* 64ms       " */
213
#define BT_ADLY_125         (BTDIV+BTIP1+BTIP0)       /* 125ms      " */
214
#define BT_ADLY_250            (BTDIV+BTIP2)  /* 250ms      " */
215
#define BT_ADLY_500         (BTDIV+BTIP2+BTIP0)       /* 500ms      " */
216
#define BT_ADLY_1000        (BTDIV+BTIP2+BTIP1)       /* 1000ms     " */
217
#define BT_ADLY_2000        (BTDIV+BTIP2+BTIP1+BTIP0) /* 2000ms     " */
218
/* fCLK2=fMCLK (1MHz) is thought for short interval times */
219
/* the timing for short intervals is more precise than ACLK */
220
/* NOTE */
221
/* Be sure that the SCFQCTL-Register is set to 01Fh so that fMCLK=1MHz */
222
/* Too low interval time results in interrupts too frequent for the processor to handle! */
223
#define BT_MDLY_0_002          (BTSSEL)       /* 0.002ms interval       *** interval times */
224
#define BT_MDLY_0_004          (BTSSEL+BTIP0) /* 0.004ms    "           *** too short for */
225
#define BT_MDLY_0_008          (BTSSEL+BTIP1) /* 0.008ms    "           *** interrupt */
226
#define BT_MDLY_0_016       (BTSSEL+BTIP1+BTIP0)      /* 0.016ms    "           *** handling */
227
#define BT_MDLY_0_032          (BTSSEL+BTIP2) /* 0.032ms    " */
228
#define BT_MDLY_0_064       (BTSSEL+BTIP2+BTIP0)      /* 0.064ms    " */
229
#define BT_MDLY_0_125       (BTSSEL+BTIP2+BTIP1)      /* 0.125ms    " */
230
#define BT_MDLY_0_25        (BTSSEL+BTIP2+BTIP1+BTIP0)/* 0.25ms     " */
231
 
232
/* Reset/Hold coded with Bits 6-7 in BT(1)CTL */
233
/* this is for BT */
234
//#define BTRESET_CNT1        (BTRESET)           /* BTCNT1 is reset while BTRESET is set */
235
//#define BTRESET_CNT1_2      (BTRESET+BTDIV)     /* BTCNT1 .AND. BTCNT2 are reset while ~ is set */
236
/* this is for BT1 */
237
#define BTHOLD_CNT1            (BTHOLD)       /* BTCNT1 is held while BTHOLD is set */
238
#define BTHOLD_CNT1_2          (BTHOLD+BTDIV) /* BT1CNT1 .AND. BT1CNT2 are held while ~ is set */
239
 
240
/* INTERRUPT CONTROL BITS */
241
/* #define BTIE                0x80 */
242
/* #define BTIFG               0x80 */
243
 
244
/************************************************************
245
* Comparator A
246
************************************************************/
247
#define __MSP430_HAS_COMPA__                  /* Definition to show that Module is available */
248
 
249
SFR_8BIT(CACTL1);                             /* Comparator A Control 1 */
250
SFR_8BIT(CACTL2);                             /* Comparator A Control 2 */
251
SFR_8BIT(CAPD);                               /* Comparator A Port Disable */
252
 
253
#define CAIFG                  (0x01)         /* Comp. A Interrupt Flag */
254
#define CAIE                   (0x02)         /* Comp. A Interrupt Enable */
255
#define CAIES                  (0x04)         /* Comp. A Int. Edge Select: 0:rising / 1:falling */
256
#define CAON                   (0x08)         /* Comp. A enable */
257
#define CAREF0                 (0x10)         /* Comp. A Internal Reference Select 0 */
258
#define CAREF1                 (0x20)         /* Comp. A Internal Reference Select 1 */
259
#define CARSEL                 (0x40)         /* Comp. A Internal Reference Enable */
260
#define CAEX                   (0x80)         /* Comp. A Exchange Inputs */
261
 
262
#define CAREF_0                (0x00)         /* Comp. A Int. Ref. Select 0 : Off */
263
#define CAREF_1                (0x10)         /* Comp. A Int. Ref. Select 1 : 0.25*Vcc */
264
#define CAREF_2                (0x20)         /* Comp. A Int. Ref. Select 2 : 0.5*Vcc */
265
#define CAREF_3                (0x30)         /* Comp. A Int. Ref. Select 3 : Vt*/
266
 
267
#define CAOUT                  (0x01)         /* Comp. A Output */
268
#define CAF                    (0x02)         /* Comp. A Enable Output Filter */
269
#define P2CA0                  (0x04)         /* Comp. A Connect External Signal to CA0 : 1 */
270
#define P2CA1                  (0x08)         /* Comp. A Connect External Signal to CA1 : 1 */
271
#define CACTL24                (0x10)
272
#define CACTL25                (0x20)
273
#define CACTL26                (0x40)
274
#define CACTL27                (0x80)
275
 
276
#define CAPD0                  (0x01)         /* Comp. A Disable Input Buffer of Port Register .0 */
277
#define CAPD1                  (0x02)         /* Comp. A Disable Input Buffer of Port Register .1 */
278
#define CAPD2                  (0x04)         /* Comp. A Disable Input Buffer of Port Register .2 */
279
#define CAPD3                  (0x08)         /* Comp. A Disable Input Buffer of Port Register .3 */
280
#define CAPD4                  (0x10)         /* Comp. A Disable Input Buffer of Port Register .4 */
281
#define CAPD5                  (0x20)         /* Comp. A Disable Input Buffer of Port Register .5 */
282
#define CAPD6                  (0x40)         /* Comp. A Disable Input Buffer of Port Register .6 */
283
#define CAPD7                  (0x80)         /* Comp. A Disable Input Buffer of Port Register .7 */
284
 
285
/*************************************************************
286
* Flash Memory
287
*************************************************************/
288
#define __MSP430_HAS_FLASH__                  /* Definition to show that Module is available */
289
 
290
SFR_16BIT(FCTL1);                             /* FLASH Control 1 */
291
SFR_16BIT(FCTL2);                             /* FLASH Control 2 */
292
SFR_16BIT(FCTL3);                             /* FLASH Control 3 */
293
 
294
#define FRKEY                  (0x9600)       /* Flash key returned by read */
295
#define FWKEY                  (0xA500)       /* Flash key for write */
296
#define FXKEY                  (0x3300)       /* for use with XOR instruction */
297
 
298
#define ERASE                  (0x0002)       /* Enable bit for Flash segment erase */
299
#define MERAS                  (0x0004)       /* Enable bit for Flash mass erase */
300
#define WRT                    (0x0040)       /* Enable bit for Flash write */
301
#define BLKWRT                 (0x0080)       /* Enable bit for Flash segment write */
302
#define SEGWRT                 (0x0080)       /* old definition */ /* Enable bit for Flash segment write */
303
 
304
#define FN0                    (0x0001)       /* Divide Flash clock by 1 to 64 using FN0 to FN5 according to: */
305
#define FN1                    (0x0002)       /*  32*FN5 + 16*FN4 + 8*FN3 + 4*FN2 + 2*FN1 + FN0 + 1 */
306
#ifndef FN2
307
#define FN2                    (0x0004)
308
#endif
309
#ifndef FN3
310
#define FN3                    (0x0008)
311
#endif
312
#ifndef FN4
313
#define FN4                    (0x0010)
314
#endif
315
#define FN5                    (0x0020)
316
#define FSSEL0                 (0x0040)       /* Flash clock select 0 */        /* to distinguish from USART SSELx */
317
#define FSSEL1                 (0x0080)       /* Flash clock select 1 */
318
 
319
#define FSSEL_0                (0x0000)       /* Flash clock select: 0 - ACLK */
320
#define FSSEL_1                (0x0040)       /* Flash clock select: 1 - MCLK */
321
#define FSSEL_2                (0x0080)       /* Flash clock select: 2 - SMCLK */
322
#define FSSEL_3                (0x00C0)       /* Flash clock select: 3 - SMCLK */
323
 
324
#define BUSY                   (0x0001)       /* Flash busy: 1 */
325
#define KEYV                   (0x0002)       /* Flash Key violation flag */
326
#define ACCVIFG                (0x0004)       /* Flash Access violation flag */
327
#define WAIT                   (0x0008)       /* Wait flag for segment write */
328
#define LOCK                   (0x0010)       /* Lock bit: 1 - Flash is locked (read only) */
329
#define EMEX                   (0x0020)       /* Flash Emergency Exit */
330
 
331
/************************************************************
332
* SYSTEM CLOCK, FLL+
333
************************************************************/
334
#define __MSP430_HAS_FLLPLUS__                /* Definition to show that Module is available */
335
 
336
SFR_8BIT(SCFI0);                              /* System Clock Frequency Integrator 0 */
337
#define FN_2                   (0x04)         /* fDCOCLK =   1.4-12MHz*/
338
#define FN_3                   (0x08)         /* fDCOCLK =   2.2-17Mhz*/
339
#define FN_4                   (0x10)         /* fDCOCLK =   3.2-25Mhz*/
340
#define FN_8                   (0x20)         /* fDCOCLK =     5-40Mhz*/
341
#define FLLD0                  (0x40)         /* Loop Divider Bit : 0 */
342
#define FLLD1                  (0x80)         /* Loop Divider Bit : 1 */
343
 
344
#define FLLD_1                 (0x00)         /* Multiply Selected Loop Freq. By 1 */
345
#define FLLD_2                 (0x40)         /* Multiply Selected Loop Freq. By 2 */
346
#define FLLD_4                 (0x80)         /* Multiply Selected Loop Freq. By 4 */
347
#define FLLD_8                 (0xC0)         /* Multiply Selected Loop Freq. By 8 */
348
 
349
SFR_8BIT(SCFI1);                              /* System Clock Frequency Integrator 1 */
350
SFR_8BIT(SCFQCTL);                            /* System Clock Frequency Control */
351
/* System clock frequency values fMCLK coded with Bits 0-6 in SCFQCTL */
352
/* #define SCFQ_32K            0x00                        fMCLK=1*fACLK       only a range from */
353
#define SCFQ_64K               (0x01)         /* fMCLK=2*fACLK          1+1 to 127+1 is possible */
354
#define SCFQ_128K              (0x03)         /* fMCLK=4*fACLK */
355
#define SCFQ_256K              (0x07)         /* fMCLK=8*fACLK */
356
#define SCFQ_512K              (0x0F)         /* fMCLK=16*fACLK */
357
#define SCFQ_1M                (0x1F)         /* fMCLK=32*fACLK */
358
#define SCFQ_2M                (0x3F)         /* fMCLK=64*fACLK */
359
#define SCFQ_4M                (0x7F)         /* fMCLK=128*fACLK */
360
#define SCFQ_M                 (0x80)         /* Modulation Disable */
361
 
362
SFR_8BIT(FLL_CTL0);                           /* FLL+ Control 0 */
363
#define DCOF                   (0x01)         /* DCO Fault Flag */
364
#define LFOF                   (0x02)         /* Low Frequency Oscillator Fault Flag */
365
#define XT1OF                  (0x04)         /* High Frequency Oscillator 1 Fault Flag */
366
#define XT2OF                  (0x08)         /* High Frequency Oscillator 2 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
#define SELS                   (0x04)         /* Peripheral Module Clock Source (0: DCO, 1: XT2) */
385
#define SELM0                  (0x08)         /* MCLK Source Select 0 */
386
#define SELM1                  (0x10)         /* MCLK Source Select 1 */
387
#define XT2OFF                 (0x20)         /* High Frequency Oscillator 2 (XT2) disable */
388
#define SMCLKOFF               (0x40)         /* Peripheral Module Clock (SMCLK) disable */
389
 
390
#define FLL_DIV_1              (0x00)         /* FLL+ Divide Px.x/ACLK By 1 */
391
#define FLL_DIV_2              (0x01)         /* FLL+ Divide Px.x/ACLK By 2 */
392
#define FLL_DIV_4              (0x02)         /* FLL+ Divide Px.x/ACLK By 4 */
393
#define FLL_DIV_8              (0x03)         /* FLL+ Divide Px.x/ACLK By 8 */
394
 
395
#define SELM_DCO               (0x00)         /* Select DCO for CPU MCLK */
396
#define SELM_XT2               (0x10)         /* Select XT2 for CPU MCLK */
397
#define SELM_A                 (0x18)         /* Select A (from LFXT1) for CPU MCLK */
398
 
399
/* INTERRUPT CONTROL BITS */
400
/* These two bits are defined in the Special Function Registers */
401
/* #define OFIFG               0x02 */
402
/* #define OFIE                0x02 */
403
 
404
/************************************************************
405
* LCD
406
************************************************************/
407
#define __MSP430_HAS_LCD4__                   /* Definition to show that Module is available */
408
 
409
SFR_8BIT(LCDCTL);                             /* LCD Control */
410
/* the names of the mode bits are different from the spec */
411
#define LCDON                  (0x01)
412
//#define LCDLOWR             (0x02)
413
#define LCDSON                 (0x04)
414
#define LCDMX0                 (0x08)
415
#define LCDMX1                 (0x10)
416
#define LCDP0                  (0x20)
417
#define LCDP1                  (0x40)
418
#define LCDP2                  (0x80)
419
/* Display modes coded with Bits 2-4 */
420
#define LCDSTATIC              (LCDSON)
421
#define LCD2MUX                (LCDMX0+LCDSON)
422
#define LCD3MUX                (LCDMX1+LCDSON)
423
#define LCD4MUX                (LCDMX1+LCDMX0+LCDSON)
424
/* Group select code with Bits 5-7                     Seg.lines   Dig.output */
425
#define LCDSG0                 (0x00)         /* ---------   Port Only (default) */
426
#define LCDSG0_1               (LCDP0)        /* S0  - S15   see Datasheet */
427
#define LCDSG0_2               (LCDP1)        /* S0  - S19   see Datasheet */
428
#define LCDSG0_3               (LCDP1+LCDP0)  /* S0  - S23   see Datasheet */
429
#define LCDSG0_4               (LCDP2)        /* S0  - S27   see Datasheet */
430
#define LCDSG0_5               (LCDP2+LCDP0)  /* S0  - S31   see Datasheet */
431
#define LCDSG0_6               (LCDP2+LCDP1)  /* S0  - S35   see Datasheet */
432
#define LCDSG0_7            (LCDP2+LCDP1+LCDP0)       /* S0  - S39   see Datasheet */
433
/* NOTE: YOU CAN ONLY USE THE 'S' OR 'G' DECLARATIONS FOR A COMMAND */
434
/* MOV  #LCDSG0_3+LCDOG2_7,&LCDCTL ACTUALY MEANS MOV  #LCDP1,&LCDCTL! */
435
#define LCDOG1_7               (0x00)         /* ---------   Port Only (default) */
436
#define LCDOG2_7               (LCDP0)        /* S0  - S15   see Datasheet */
437
#define LCDOG3_7               (LCDP1)        /* S0  - S19   see Datasheet */
438
#define LCDOG4_7               (LCDP1+LCDP0)  /* S0  - S23   see Datasheet */
439
#define LCDOG5_7               (LCDP2)        /* S0  - S27   see Datasheet */
440
#define LCDOG6_7               (LCDP2+LCDP0)  /* S0  - S31   see Datasheet */
441
#define LCDOG7                 (LCDP2+LCDP1)  /* S0  - S35   see Datasheet */
442
#define LCDOGOFF            (LCDP2+LCDP1+LCDP0)       /* S0  - S39   see Datasheet */
443
 
444
#define LCDMEM_                (0x0091)       /* LCD Memory */
445
#ifdef __ASM_HEADER__
446
#define LCDMEM                 (LCDMEM_)      /* LCD Memory (for assembler) */
447
#else
448
#define LCDMEM                 ((char*)       LCDMEM_) /* LCD Memory (for C) */
449
#endif
450
SFR_8BIT(LCDM1);                              /* LCD Memory 1 */
451
SFR_8BIT(LCDM2);                              /* LCD Memory 2 */
452
SFR_8BIT(LCDM3);                              /* LCD Memory 3 */
453
SFR_8BIT(LCDM4);                              /* LCD Memory 4 */
454
SFR_8BIT(LCDM5);                              /* LCD Memory 5 */
455
SFR_8BIT(LCDM6);                              /* LCD Memory 6 */
456
SFR_8BIT(LCDM7);                              /* LCD Memory 7 */
457
SFR_8BIT(LCDM8);                              /* LCD Memory 8 */
458
SFR_8BIT(LCDM9);                              /* LCD Memory 9 */
459
SFR_8BIT(LCDM10);                             /* LCD Memory 10 */
460
SFR_8BIT(LCDM11);                             /* LCD Memory 11 */
461
SFR_8BIT(LCDM12);                             /* LCD Memory 12 */
462
SFR_8BIT(LCDM13);                             /* LCD Memory 13 */
463
SFR_8BIT(LCDM14);                             /* LCD Memory 14 */
464
SFR_8BIT(LCDM15);                             /* LCD Memory 15 */
465
SFR_8BIT(LCDM16);                             /* LCD Memory 16 */
466
SFR_8BIT(LCDM17);                             /* LCD Memory 17 */
467
SFR_8BIT(LCDM18);                             /* LCD Memory 18 */
468
SFR_8BIT(LCDM19);                             /* LCD Memory 19 */
469
SFR_8BIT(LCDM20);                             /* LCD Memory 20 */
470
 
471
#define LCDMA                  (LCDM10)       /* LCD Memory A */
472
#define LCDMB                  (LCDM11)       /* LCD Memory B */
473
#define LCDMC                  (LCDM12)       /* LCD Memory C */
474
#define LCDMD                  (LCDM13)       /* LCD Memory D */
475
#define LCDME                  (LCDM14)       /* LCD Memory E */
476
#define LCDMF                  (LCDM15)       /* LCD Memory F */
477
 
478
/************************************************************
479
* HARDWARE MULTIPLIER
480
************************************************************/
481
#define __MSP430_HAS_MPY__                    /* Definition to show that Module is available */
482
 
483
SFR_16BIT(MPY);                               /* Multiply Unsigned/Operand 1 */
484
SFR_16BIT(MPYS);                              /* Multiply Signed/Operand 1 */
485
SFR_16BIT(MAC);                               /* Multiply Unsigned and Accumulate/Operand 1 */
486
SFR_16BIT(MACS);                              /* Multiply Signed and Accumulate/Operand 1 */
487
SFR_16BIT(OP2);                               /* Operand 2 */
488
SFR_16BIT(RESLO);                             /* Result Low Word */
489
SFR_16BIT(RESHI);                             /* Result High Word */
490
SFR_16BIT(SUMEXT);                            /* Sum Extend */
491
 
492
/************************************************************
493
* DIGITAL I/O Port1/2
494
************************************************************/
495
#define __MSP430_HAS_PORT1__                  /* Definition to show that Module is available */
496
#define __MSP430_HAS_PORT2__                  /* Definition to show that Module is available */
497
 
498
SFR_8BIT(P1IN);                               /* Port 1 Input */
499
SFR_8BIT(P1OUT);                              /* Port 1 Output */
500
SFR_8BIT(P1DIR);                              /* Port 1 Direction */
501
SFR_8BIT(P1IFG);                              /* Port 1 Interrupt Flag */
502
SFR_8BIT(P1IES);                              /* Port 1 Interrupt Edge Select */
503
SFR_8BIT(P1IE);                               /* Port 1 Interrupt Enable */
504
SFR_8BIT(P1SEL);                              /* Port 1 Selection */
505
 
506
SFR_8BIT(P2IN);                               /* Port 2 Input */
507
SFR_8BIT(P2OUT);                              /* Port 2 Output */
508
SFR_8BIT(P2DIR);                              /* Port 2 Direction */
509
SFR_8BIT(P2IFG);                              /* Port 2 Interrupt Flag */
510
SFR_8BIT(P2IES);                              /* Port 2 Interrupt Edge Select */
511
SFR_8BIT(P2IE);                               /* Port 2 Interrupt Enable */
512
SFR_8BIT(P2SEL);                              /* Port 2 Selection */
513
 
514
/************************************************************
515
* DIGITAL I/O Port3/4
516
************************************************************/
517
#define __MSP430_HAS_PORT3__                  /* Definition to show that Module is available */
518
#define __MSP430_HAS_PORT4__                  /* Definition to show that Module is available */
519
 
520
SFR_8BIT(P3IN);                               /* Port 3 Input */
521
SFR_8BIT(P3OUT);                              /* Port 3 Output */
522
SFR_8BIT(P3DIR);                              /* Port 3 Direction */
523
SFR_8BIT(P3SEL);                              /* Port 3 Selection */
524
 
525
SFR_8BIT(P4IN);                               /* Port 4 Input */
526
SFR_8BIT(P4OUT);                              /* Port 4 Output */
527
SFR_8BIT(P4DIR);                              /* Port 4 Direction */
528
SFR_8BIT(P4SEL);                              /* Port 4 Selection */
529
 
530
/************************************************************
531
* DIGITAL I/O Port5/6
532
************************************************************/
533
#define __MSP430_HAS_PORT5__                  /* Definition to show that Module is available */
534
#define __MSP430_HAS_PORT6__                  /* Definition to show that Module is available */
535
 
536
SFR_8BIT(P5IN);                               /* Port 5 Input */
537
SFR_8BIT(P5OUT);                              /* Port 5 Output */
538
SFR_8BIT(P5DIR);                              /* Port 5 Direction */
539
SFR_8BIT(P5SEL);                              /* Port 5 Selection */
540
 
541
SFR_8BIT(P6IN);                               /* Port 6 Input */
542
SFR_8BIT(P6OUT);                              /* Port 6 Output */
543
SFR_8BIT(P6DIR);                              /* Port 6 Direction */
544
SFR_8BIT(P6SEL);                              /* Port 6 Selection */
545
 
546
/************************************************************
547
* Brown-Out, Supply Voltage Supervision (SVS)
548
************************************************************/
549
#define __MSP430_HAS_SVS__                    /* Definition to show that Module is available */
550
 
551
SFR_8BIT(SVSCTL);                             /* SVS Control */
552
#define SVSFG                  (0x01)         /* SVS Flag */
553
#define SVSOP                  (0x02)         /* SVS output (read only) */
554
#define SVSON                  (0x04)         /* Switches the SVS on/off */
555
#define PORON                  (0x08)         /* Enable POR Generation if Low Voltage */
556
#define VLD0                   (0x10)
557
#define VLD1                   (0x20)
558
#define VLD2                   (0x40)
559
#define VLD3                   (0x80)
560
 
561
#define VLDON                  (0x10)
562
#define VLDOFF                 (0x00)
563
#define VLD_1_8V               (0x10)
564
 
565
/************************************************************
566
* USART
567
************************************************************/
568
 
569
/* UxCTL */
570
#define PENA                   (0x80)         /* Parity enable */
571
#define PEV                    (0x40)         /* Parity 0:odd / 1:even */
572
#define SPB                    (0x20)         /* Stop Bits 0:one / 1: two */
573
#define CHAR                   (0x10)         /* Data 0:7-bits / 1:8-bits */
574
#define LISTEN                 (0x08)         /* Listen mode */
575
#define SYNC                   (0x04)         /* UART / SPI mode */
576
#define MM                     (0x02)         /* Master Mode off/on */
577
#define SWRST                  (0x01)         /* USART Software Reset */
578
 
579
/* UxTCTL */
580
#define CKPH                   (0x80)         /* SPI: Clock Phase */
581
#define CKPL                   (0x40)         /* Clock Polarity */
582
#define SSEL1                  (0x20)         /* Clock Source Select 1 */
583
#define SSEL0                  (0x10)         /* Clock Source Select 0 */
584
#define URXSE                  (0x08)         /* Receive Start edge select */
585
#define TXWAKE                 (0x04)         /* TX Wake up mode */
586
#define STC                    (0x02)         /* SPI: STC enable 0:on / 1:off */
587
#define TXEPT                  (0x01)         /* TX Buffer empty */
588
 
589
/* UxRCTL */
590
#define FE                     (0x80)         /* Frame Error */
591
#define PE                     (0x40)         /* Parity Error */
592
#define OE                     (0x20)         /* Overrun Error */
593
#define BRK                    (0x10)         /* Break detected */
594
#define URXEIE                 (0x08)         /* RX Error interrupt enable */
595
#define URXWIE                 (0x04)         /* RX Wake up interrupt enable */
596
#define RXWAKE                 (0x02)         /* RX Wake up detect */
597
#define RXERR                  (0x01)         /* RX Error Error */
598
 
599
/************************************************************
600
* USART 0
601
************************************************************/
602
#define __MSP430_HAS_UART0__                  /* Definition to show that Module is available */
603
 
604
SFR_8BIT(U0CTL);                              /* USART 0 Control */
605
SFR_8BIT(U0TCTL);                             /* USART 0 Transmit Control */
606
SFR_8BIT(U0RCTL);                             /* USART 0 Receive Control */
607
SFR_8BIT(U0MCTL);                             /* USART 0 Modulation Control */
608
SFR_8BIT(U0BR0);                              /* USART 0 Baud Rate 0 */
609
SFR_8BIT(U0BR1);                              /* USART 0 Baud Rate 1 */
610
SFR_8BIT(U0RXBUF);                            /* USART 0 Receive Buffer */
611
SFR_8BIT(U0TXBUF);                            /* USART 0 Transmit Buffer */
612
 
613
/* Alternate register names */
614
 
615
#define UCTL0                  U0CTL          /* USART 0 Control */
616
#define UTCTL0                 U0TCTL         /* USART 0 Transmit Control */
617
#define URCTL0                 U0RCTL         /* USART 0 Receive Control */
618
#define UMCTL0                 U0MCTL         /* USART 0 Modulation Control */
619
#define UBR00                  U0BR0          /* USART 0 Baud Rate 0 */
620
#define UBR10                  U0BR1          /* USART 0 Baud Rate 1 */
621
#define RXBUF0                 U0RXBUF        /* USART 0 Receive Buffer */
622
#define TXBUF0                 U0TXBUF        /* USART 0 Transmit Buffer */
623
#define UCTL0_                 U0CTL_         /* USART 0 Control */
624
#define UTCTL0_                U0TCTL_        /* USART 0 Transmit Control */
625
#define URCTL0_                U0RCTL_        /* USART 0 Receive Control */
626
#define UMCTL0_                U0MCTL_        /* USART 0 Modulation Control */
627
#define UBR00_                 U0BR0_         /* USART 0 Baud Rate 0 */
628
#define UBR10_                 U0BR1_         /* USART 0 Baud Rate 1 */
629
#define RXBUF0_                U0RXBUF_       /* USART 0 Receive Buffer */
630
#define TXBUF0_                U0TXBUF_       /* USART 0 Transmit Buffer */
631
#define UCTL_0                 U0CTL          /* USART 0 Control */
632
#define UTCTL_0                U0TCTL         /* USART 0 Transmit Control */
633
#define URCTL_0                U0RCTL         /* USART 0 Receive Control */
634
#define UMCTL_0                U0MCTL         /* USART 0 Modulation Control */
635
#define UBR0_0                 U0BR0          /* USART 0 Baud Rate 0 */
636
#define UBR1_0                 U0BR1          /* USART 0 Baud Rate 1 */
637
#define RXBUF_0                U0RXBUF        /* USART 0 Receive Buffer */
638
#define TXBUF_0                U0TXBUF        /* USART 0 Transmit Buffer */
639
#define UCTL_0_                U0CTL_         /* USART 0 Control */
640
#define UTCTL_0_               U0TCTL_        /* USART 0 Transmit Control */
641
#define URCTL_0_               U0RCTL_        /* USART 0 Receive Control */
642
#define UMCTL_0_               U0MCTL_        /* USART 0 Modulation Control */
643
#define UBR0_0_                U0BR0_         /* USART 0 Baud Rate 0 */
644
#define UBR1_0_                U0BR1_         /* USART 0 Baud Rate 1 */
645
#define RXBUF_0_               U0RXBUF_       /* USART 0 Receive Buffer */
646
#define TXBUF_0_               U0TXBUF_       /* USART 0 Transmit Buffer */
647
 
648
/************************************************************
649
* USART 1
650
************************************************************/
651
#define __MSP430_HAS_UART1__                  /* Definition to show that Module is available */
652
 
653
SFR_8BIT(U1CTL);                              /* USART 1 Control */
654
SFR_8BIT(U1TCTL);                             /* USART 1 Transmit Control */
655
SFR_8BIT(U1RCTL);                             /* USART 1 Receive Control */
656
SFR_8BIT(U1MCTL);                             /* USART 1 Modulation Control */
657
SFR_8BIT(U1BR0);                              /* USART 1 Baud Rate 0 */
658
SFR_8BIT(U1BR1);                              /* USART 1 Baud Rate 1 */
659
SFR_8BIT(U1RXBUF);                            /* USART 1 Receive Buffer */
660
SFR_8BIT(U1TXBUF);                            /* USART 1 Transmit Buffer */
661
 
662
/* Alternate register names */
663
 
664
#define UCTL1                  U1CTL          /* USART 1 Control */
665
#define UTCTL1                 U1TCTL         /* USART 1 Transmit Control */
666
#define URCTL1                 U1RCTL         /* USART 1 Receive Control */
667
#define UMCTL1                 U1MCTL         /* USART 1 Modulation Control */
668
#define UBR01                  U1BR0          /* USART 1 Baud Rate 0 */
669
#define UBR11                  U1BR1          /* USART 1 Baud Rate 1 */
670
#define RXBUF1                 U1RXBUF        /* USART 1 Receive Buffer */
671
#define TXBUF1                 U1TXBUF        /* USART 1 Transmit Buffer */
672
#define UCTL1_                 U1CTL_         /* USART 1 Control */
673
#define UTCTL1_                U1TCTL_        /* USART 1 Transmit Control */
674
#define URCTL1_                U1RCTL_        /* USART 1 Receive Control */
675
#define UMCTL1_                U1MCTL_        /* USART 1 Modulation Control */
676
#define UBR01_                 U1BR0_         /* USART 1 Baud Rate 0 */
677
#define UBR11_                 U1BR1_         /* USART 1 Baud Rate 1 */
678
#define RXBUF1_                U1RXBUF_       /* USART 1 Receive Buffer */
679
#define TXBUF1_                U1TXBUF_       /* USART 1 Transmit Buffer */
680
#define UCTL_1                 U1CTL          /* USART 1 Control */
681
#define UTCTL_1                U1TCTL         /* USART 1 Transmit Control */
682
#define URCTL_1                U1RCTL         /* USART 1 Receive Control */
683
#define UMCTL_1                U1MCTL         /* USART 1 Modulation Control */
684
#define UBR0_1                 U1BR0          /* USART 1 Baud Rate 0 */
685
#define UBR1_1                 U1BR1          /* USART 1 Baud Rate 1 */
686
#define RXBUF_1                U1RXBUF        /* USART 1 Receive Buffer */
687
#define TXBUF_1                U1TXBUF        /* USART 1 Transmit Buffer */
688
#define UCTL_1_                U1CTL_         /* USART 1 Control */
689
#define UTCTL_1_               U1TCTL_        /* USART 1 Transmit Control */
690
#define URCTL_1_               U1RCTL_        /* USART 1 Receive Control */
691
#define UMCTL_1_               U1MCTL_        /* USART 1 Modulation Control */
692
#define UBR0_1_                U1BR0_         /* USART 1 Baud Rate 0 */
693
#define UBR1_1_                U1BR1_         /* USART 1 Baud Rate 1 */
694
#define RXBUF_1_               U1RXBUF_       /* USART 1 Receive Buffer */
695
#define TXBUF_1_               U1TXBUF_       /* USART 1 Transmit Buffer */
696
 
697
/************************************************************
698
* Timer A3
699
************************************************************/
700
#define __MSP430_HAS_TA3__                    /* Definition to show that Module is available */
701
 
702
SFR_16BIT(TAIV);                              /* Timer A Interrupt Vector Word */
703
SFR_16BIT(TACTL);                             /* Timer A Control */
704
SFR_16BIT(TACCTL0);                           /* Timer A Capture/Compare Control 0 */
705
SFR_16BIT(TACCTL1);                           /* Timer A Capture/Compare Control 1 */
706
SFR_16BIT(TACCTL2);                           /* Timer A Capture/Compare Control 2 */
707
SFR_16BIT(TAR);                               /* Timer A Counter Register */
708
SFR_16BIT(TACCR0);                            /* Timer A Capture/Compare 0 */
709
SFR_16BIT(TACCR1);                            /* Timer A Capture/Compare 1 */
710
SFR_16BIT(TACCR2);                            /* Timer A Capture/Compare 2 */
711
 
712
/* Alternate register names */
713
#define CCTL0                  TACCTL0        /* Timer A Capture/Compare Control 0 */
714
#define CCTL1                  TACCTL1        /* Timer A Capture/Compare Control 1 */
715
#define CCTL2                  TACCTL2        /* Timer A Capture/Compare Control 2 */
716
#define CCR0                   TACCR0         /* Timer A Capture/Compare 0 */
717
#define CCR1                   TACCR1         /* Timer A Capture/Compare 1 */
718
#define CCR2                   TACCR2         /* Timer A Capture/Compare 2 */
719
#define CCTL0_                 TACCTL0_       /* Timer A Capture/Compare Control 0 */
720
#define CCTL1_                 TACCTL1_       /* Timer A Capture/Compare Control 1 */
721
#define CCTL2_                 TACCTL2_       /* Timer A Capture/Compare Control 2 */
722
#define CCR0_                  TACCR0_        /* Timer A Capture/Compare 0 */
723
#define CCR1_                  TACCR1_        /* Timer A Capture/Compare 1 */
724
#define CCR2_                  TACCR2_        /* Timer A Capture/Compare 2 */
725
/* Alternate register names - 5xx style */
726
#define TA0IV                  TAIV           /* Timer A Interrupt Vector Word */
727
#define TA0CTL                 TACTL          /* Timer A Control */
728
#define TA0CCTL0               TACCTL0        /* Timer A Capture/Compare Control 0 */
729
#define TA0CCTL1               TACCTL1        /* Timer A Capture/Compare Control 1 */
730
#define TA0CCTL2               TACCTL2        /* Timer A Capture/Compare Control 2 */
731
#define TA0R                   TAR            /* Timer A Counter Register */
732
#define TA0CCR0                TACCR0         /* Timer A Capture/Compare 0 */
733
#define TA0CCR1                TACCR1         /* Timer A Capture/Compare 1 */
734
#define TA0CCR2                TACCR2         /* Timer A Capture/Compare 2 */
735
#define TA0IV_                 TAIV_          /* Timer A Interrupt Vector Word */
736
#define TA0CTL_                TACTL_         /* Timer A Control */
737
#define TA0CCTL0_              TACCTL0_       /* Timer A Capture/Compare Control 0 */
738
#define TA0CCTL1_              TACCTL1_       /* Timer A Capture/Compare Control 1 */
739
#define TA0CCTL2_              TACCTL2_       /* Timer A Capture/Compare Control 2 */
740
#define TA0R_                  TAR_           /* Timer A Counter Register */
741
#define TA0CCR0_               TACCR0_        /* Timer A Capture/Compare 0 */
742
#define TA0CCR1_               TACCR1_        /* Timer A Capture/Compare 1 */
743
#define TA0CCR2_               TACCR2_        /* Timer A Capture/Compare 2 */
744
 
745
#define TASSEL1                (0x0200)       /* Timer A clock source select 0 */
746
#define TASSEL0                (0x0100)       /* Timer A clock source select 1 */
747
#define ID1                    (0x0080)       /* Timer A clock input divider 1 */
748
#define ID0                    (0x0040)       /* Timer A clock input divider 0 */
749
#define MC1                    (0x0020)       /* Timer A mode control 1 */
750
#define MC0                    (0x0010)       /* Timer A mode control 0 */
751
#define TACLR                  (0x0004)       /* Timer A counter clear */
752
#define TAIE                   (0x0002)       /* Timer A counter interrupt enable */
753
#define TAIFG                  (0x0001)       /* Timer A counter interrupt flag */
754
 
755
#define MC_0                   (0*0x10u)      /* Timer A mode control: 0 - Stop */
756
#define MC_1                   (1*0x10u)      /* Timer A mode control: 1 - Up to CCR0 */
757
#define MC_2                   (2*0x10u)      /* Timer A mode control: 2 - Continous up */
758
#define MC_3                   (3*0x10u)      /* Timer A mode control: 3 - Up/Down */
759
#define ID_0                   (0*0x40u)      /* Timer A input divider: 0 - /1 */
760
#define ID_1                   (1*0x40u)      /* Timer A input divider: 1 - /2 */
761
#define ID_2                   (2*0x40u)      /* Timer A input divider: 2 - /4 */
762
#define ID_3                   (3*0x40u)      /* Timer A input divider: 3 - /8 */
763
#define TASSEL_0               (0*0x100u)     /* Timer A clock source select: 0 - TACLK */
764
#define TASSEL_1               (1*0x100u)     /* Timer A clock source select: 1 - ACLK  */
765
#define TASSEL_2               (2*0x100u)     /* Timer A clock source select: 2 - SMCLK */
766
#define TASSEL_3               (3*0x100u)     /* Timer A clock source select: 3 - INCLK */
767
 
768
#define CM1                    (0x8000)       /* Capture mode 1 */
769
#define CM0                    (0x4000)       /* Capture mode 0 */
770
#define CCIS1                  (0x2000)       /* Capture input select 1 */
771
#define CCIS0                  (0x1000)       /* Capture input select 0 */
772
#define SCS                    (0x0800)       /* Capture sychronize */
773
#define SCCI                   (0x0400)       /* Latched capture signal (read) */
774
#define CAP                    (0x0100)       /* Capture mode: 1 /Compare mode : 0 */
775
#define OUTMOD2                (0x0080)       /* Output mode 2 */
776
#define OUTMOD1                (0x0040)       /* Output mode 1 */
777
#define OUTMOD0                (0x0020)       /* Output mode 0 */
778
#define CCIE                   (0x0010)       /* Capture/compare interrupt enable */
779
#define CCI                    (0x0008)       /* Capture input signal (read) */
780
#define OUT                    (0x0004)       /* PWM Output signal if output mode 0 */
781
#define COV                    (0x0002)       /* Capture/compare overflow flag */
782
#define CCIFG                  (0x0001)       /* Capture/compare interrupt flag */
783
 
784
#define OUTMOD_0               (0*0x20u)      /* PWM output mode: 0 - output only */
785
#define OUTMOD_1               (1*0x20u)      /* PWM output mode: 1 - set */
786
#define OUTMOD_2               (2*0x20u)      /* PWM output mode: 2 - PWM toggle/reset */
787
#define OUTMOD_3               (3*0x20u)      /* PWM output mode: 3 - PWM set/reset */
788
#define OUTMOD_4               (4*0x20u)      /* PWM output mode: 4 - toggle */
789
#define OUTMOD_5               (5*0x20u)      /* PWM output mode: 5 - Reset */
790
#define OUTMOD_6               (6*0x20u)      /* PWM output mode: 6 - PWM toggle/set */
791
#define OUTMOD_7               (7*0x20u)      /* PWM output mode: 7 - PWM reset/set */
792
#define CCIS_0                 (0*0x1000u)    /* Capture input select: 0 - CCIxA */
793
#define CCIS_1                 (1*0x1000u)    /* Capture input select: 1 - CCIxB */
794
#define CCIS_2                 (2*0x1000u)    /* Capture input select: 2 - GND */
795
#define CCIS_3                 (3*0x1000u)    /* Capture input select: 3 - Vcc */
796
#define CM_0                   (0*0x4000u)    /* Capture mode: 0 - disabled */
797
#define CM_1                   (1*0x4000u)    /* Capture mode: 1 - pos. edge */
798
#define CM_2                   (2*0x4000u)    /* Capture mode: 1 - neg. edge */
799
#define CM_3                   (3*0x4000u)    /* Capture mode: 1 - both edges */
800
 
801
/* TA3IV Definitions */
802
#define TAIV_NONE              (0x0000)       /* No Interrupt pending */
803
#define TAIV_TACCR1            (0x0002)       /* TACCR1_CCIFG */
804
#define TAIV_TACCR2            (0x0004)       /* TACCR2_CCIFG */
805
#define TAIV_6                 (0x0006)       /* Reserved */
806
#define TAIV_8                 (0x0008)       /* Reserved */
807
#define TAIV_TAIFG             (0x000A)       /* TAIFG */
808
 
809
/************************************************************
810
* Timer B7
811
************************************************************/
812
#define __MSP430_HAS_TB7__                    /* Definition to show that Module is available */
813
 
814
SFR_16BIT(TBIV);                              /* Timer B Interrupt Vector Word */
815
SFR_16BIT(TBCTL);                             /* Timer B Control */
816
SFR_16BIT(TBCCTL0);                           /* Timer B Capture/Compare Control 0 */
817
SFR_16BIT(TBCCTL1);                           /* Timer B Capture/Compare Control 1 */
818
SFR_16BIT(TBCCTL2);                           /* Timer B Capture/Compare Control 2 */
819
SFR_16BIT(TBCCTL3);                           /* Timer B Capture/Compare Control 3 */
820
SFR_16BIT(TBCCTL4);                           /* Timer B Capture/Compare Control 4 */
821
SFR_16BIT(TBCCTL5);                           /* Timer B Capture/Compare Control 5 */
822
SFR_16BIT(TBCCTL6);                           /* Timer B Capture/Compare Control 6 */
823
SFR_16BIT(TBR);                               /* Timer B Counter Register */
824
SFR_16BIT(TBCCR0);                            /* Timer B Capture/Compare 0 */
825
SFR_16BIT(TBCCR1);                            /* Timer B Capture/Compare 1 */
826
SFR_16BIT(TBCCR2);                            /* Timer B Capture/Compare 2 */
827
SFR_16BIT(TBCCR3);                            /* Timer B Capture/Compare 3 */
828
SFR_16BIT(TBCCR4);                            /* Timer B Capture/Compare 4 */
829
SFR_16BIT(TBCCR5);                            /* Timer B Capture/Compare 5 */
830
SFR_16BIT(TBCCR6);                            /* Timer B Capture/Compare 6 */
831
 
832
/* Alternate register names - 5xx style */
833
#define TB0IV                  TBIV           /* Timer B Interrupt Vector Word */
834
#define TB0CTL                 TBCTL          /* Timer B Control */
835
#define TB0CCTL0               TBCCTL0        /* Timer B Capture/Compare Control 0 */
836
#define TB0CCTL1               TBCCTL1        /* Timer B Capture/Compare Control 1 */
837
#define TB0CCTL2               TBCCTL2        /* Timer B Capture/Compare Control 2 */
838
#define TB0CCTL3               TBCCTL3        /* Timer B Capture/Compare Control 3 */
839
#define TB0CCTL4               TBCCTL4        /* Timer B Capture/Compare Control 4 */
840
#define TB0CCTL5               TBCCTL5        /* Timer B Capture/Compare Control 5 */
841
#define TB0CCTL6               TBCCTL6        /* Timer B Capture/Compare Control 6 */
842
#define TB0R                   TBR            /* Timer B Counter Register */
843
#define TB0CCR0                TBCCR0         /* Timer B Capture/Compare 0 */
844
#define TB0CCR1                TBCCR1         /* Timer B Capture/Compare 1 */
845
#define TB0CCR2                TBCCR2         /* Timer B Capture/Compare 2 */
846
#define TB0CCR3                TBCCR3         /* Timer B Capture/Compare 3 */
847
#define TB0CCR4                TBCCR4         /* Timer B Capture/Compare 4 */
848
#define TB0CCR5                TBCCR5         /* Timer B Capture/Compare 5 */
849
#define TB0CCR6                TBCCR6         /* Timer B Capture/Compare 6 */
850
#define TB0IV_                 TBIV_          /* Timer B Interrupt Vector Word */
851
#define TB0CTL_                TBCTL_         /* Timer B Control */
852
#define TB0CCTL0_              TBCCTL0_       /* Timer B Capture/Compare Control 0 */
853
#define TB0CCTL1_              TBCCTL1_       /* Timer B Capture/Compare Control 1 */
854
#define TB0CCTL2_              TBCCTL2_       /* Timer B Capture/Compare Control 2 */
855
#define TB0CCTL3_              TBCCTL3_       /* Timer B Capture/Compare Control 3 */
856
#define TB0CCTL4_              TBCCTL4_       /* Timer B Capture/Compare Control 4 */
857
#define TB0CCTL5_              TBCCTL5_       /* Timer B Capture/Compare Control 5 */
858
#define TB0CCTL6_              TBCCTL6_       /* Timer B Capture/Compare Control 6 */
859
#define TB0R_                  TBR_           /* Timer B Counter Register */
860
#define TB0CCR0_               TBCCR0_        /* Timer B Capture/Compare 0 */
861
#define TB0CCR1_               TBCCR1_        /* Timer B Capture/Compare 1 */
862
#define TB0CCR2_               TBCCR2_        /* Timer B Capture/Compare 2 */
863
#define TB0CCR3_               TBCCR3_        /* Timer B Capture/Compare 3 */
864
#define TB0CCR4_               TBCCR4_        /* Timer B Capture/Compare 4 */
865
#define TB0CCR5_               TBCCR5_        /* Timer B Capture/Compare 5 */
866
#define TB0CCR6_               TBCCR6_        /* Timer B Capture/Compare 6 */
867
 
868
#define TBCLGRP1               (0x4000)       /* Timer B Compare latch load group 1 */
869
#define TBCLGRP0               (0x2000)       /* Timer B Compare latch load group 0 */
870
#define CNTL1                  (0x1000)       /* Counter lenght 1 */
871
#define CNTL0                  (0x0800)       /* Counter lenght 0 */
872
#define TBSSEL1                (0x0200)       /* Clock source 1 */
873
#define TBSSEL0                (0x0100)       /* Clock source 0 */
874
#define TBCLR                  (0x0004)       /* Timer B counter clear */
875
#define TBIE                   (0x0002)       /* Timer B interrupt enable */
876
#define TBIFG                  (0x0001)       /* Timer B interrupt flag */
877
 
878
#define SHR1                   (0x4000)       /* Timer B Compare latch load group 1 */
879
#define SHR0                   (0x2000)       /* Timer B Compare latch load group 0 */
880
 
881
#define TBSSEL_0               (0*0x0100u)    /* Clock Source: TBCLK */
882
#define TBSSEL_1               (1*0x0100u)    /* Clock Source: ACLK  */
883
#define TBSSEL_2               (2*0x0100u)    /* Clock Source: SMCLK */
884
#define TBSSEL_3               (3*0x0100u)    /* Clock Source: INCLK */
885
#define CNTL_0                 (0*0x0800u)    /* Counter lenght: 16 bit */
886
#define CNTL_1                 (1*0x0800u)    /* Counter lenght: 12 bit */
887
#define CNTL_2                 (2*0x0800u)    /* Counter lenght: 10 bit */
888
#define CNTL_3                 (3*0x0800u)    /* Counter lenght:  8 bit */
889
#define SHR_0                  (0*0x2000u)    /* Timer B Group: 0 - individually */
890
#define SHR_1                  (1*0x2000u)    /* Timer B Group: 1 - 3 groups (1-2, 3-4, 5-6) */
891
#define SHR_2                  (2*0x2000u)    /* Timer B Group: 2 - 2 groups (1-3, 4-6)*/
892
#define SHR_3                  (3*0x2000u)    /* Timer B Group: 3 - 1 group (all) */
893
#define TBCLGRP_0              (0*0x2000u)    /* Timer B Group: 0 - individually */
894
#define TBCLGRP_1              (1*0x2000u)    /* Timer B Group: 1 - 3 groups (1-2, 3-4, 5-6) */
895
#define TBCLGRP_2              (2*0x2000u)    /* Timer B Group: 2 - 2 groups (1-3, 4-6)*/
896
#define TBCLGRP_3              (3*0x2000u)    /* Timer B Group: 3 - 1 group (all) */
897
 
898
/* Additional Timer B Control Register bits are defined in Timer A */
899
#define CLLD1                  (0x0400)       /* Compare latch load source 1 */
900
#define CLLD0                  (0x0200)       /* Compare latch load source 0 */
901
 
902
#define SLSHR1                 (0x0400)       /* Compare latch load source 1 */
903
#define SLSHR0                 (0x0200)       /* Compare latch load source 0 */
904
 
905
#define SLSHR_0                (0*0x0200u)    /* Compare latch load sourec : 0 - immediate */
906
#define SLSHR_1                (1*0x0200u)    /* Compare latch load sourec : 1 - TBR counts to 0 */
907
#define SLSHR_2                (2*0x0200u)    /* Compare latch load sourec : 2 - up/down */
908
#define SLSHR_3                (3*0x0200u)    /* Compare latch load sourec : 3 - TBR counts to TBCTL0 */
909
 
910
#define CLLD_0                 (0*0x0200u)    /* Compare latch load sourec : 0 - immediate */
911
#define CLLD_1                 (1*0x0200u)    /* Compare latch load sourec : 1 - TBR counts to 0 */
912
#define CLLD_2                 (2*0x0200u)    /* Compare latch load sourec : 2 - up/down */
913
#define CLLD_3                 (3*0x0200u)    /* Compare latch load sourec : 3 - TBR counts to TBCTL0 */
914
 
915
/* TB7IV Definitions */
916
#define TBIV_NONE              (0x0000)       /* No Interrupt pending */
917
#define TBIV_TBCCR1            (0x0002)       /* TBCCR1_CCIFG */
918
#define TBIV_TBCCR2            (0x0004)       /* TBCCR2_CCIFG */
919
#define TBIV_TBCCR3            (0x0006)       /* TBCCR3_CCIFG */
920
#define TBIV_TBCCR4            (0x0008)       /* TBCCR4_CCIFG */
921
#define TBIV_TBCCR5            (0x000A)       /* TBCCR3_CCIFG */
922
#define TBIV_TBCCR6            (0x000C)       /* TBCCR4_CCIFG */
923
#define TBIV_TBIFG             (0x000E)       /* TBIFG */
924
 
925
/************************************************************
926
* WATCHDOG TIMER
927
************************************************************/
928
#define __MSP430_HAS_WDT__                    /* Definition to show that Module is available */
929
 
930
SFR_16BIT(WDTCTL);                            /* Watchdog Timer Control */
931
/* The bit names have been prefixed with "WDT" */
932
#define WDTIS0                 (0x0001)
933
#define WDTIS1                 (0x0002)
934
#define WDTSSEL                (0x0004)
935
#define WDTCNTCL               (0x0008)
936
#define WDTTMSEL               (0x0010)
937
#define WDTNMI                 (0x0020)
938
#define WDTNMIES               (0x0040)
939
#define WDTHOLD                (0x0080)
940
 
941
#define WDTPW                  (0x5A00)
942
 
943
/* WDT-interval times [1ms] coded with Bits 0-2 */
944
/* WDT is clocked by fSMCLK (assumed 1MHz) */
945
#define WDT_MDLY_32         (WDTPW+WDTTMSEL+WDTCNTCL)                         /* 32ms interval (default) */
946
#define WDT_MDLY_8          (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS0)                  /* 8ms     " */
947
#define WDT_MDLY_0_5        (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS1)                  /* 0.5ms   " */
948
#define WDT_MDLY_0_064      (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS1+WDTIS0)           /* 0.064ms " */
949
/* WDT is clocked by fACLK (assumed 32KHz) */
950
#define WDT_ADLY_1000       (WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL)                 /* 1000ms  " */
951
#define WDT_ADLY_250        (WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL+WDTIS0)          /* 250ms   " */
952
#define WDT_ADLY_16         (WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL+WDTIS1)          /* 16ms    " */
953
#define WDT_ADLY_1_9        (WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL+WDTIS1+WDTIS0)   /* 1.9ms   " */
954
/* Watchdog mode -> reset after expired time */
955
/* WDT is clocked by fSMCLK (assumed 1MHz) */
956
#define WDT_MRST_32         (WDTPW+WDTCNTCL)                                  /* 32ms interval (default) */
957
#define WDT_MRST_8          (WDTPW+WDTCNTCL+WDTIS0)                           /* 8ms     " */
958
#define WDT_MRST_0_5        (WDTPW+WDTCNTCL+WDTIS1)                           /* 0.5ms   " */
959
#define WDT_MRST_0_064      (WDTPW+WDTCNTCL+WDTIS1+WDTIS0)                    /* 0.064ms " */
960
/* WDT is clocked by fACLK (assumed 32KHz) */
961
#define WDT_ARST_1000       (WDTPW+WDTCNTCL+WDTSSEL)                          /* 1000ms  " */
962
#define WDT_ARST_250        (WDTPW+WDTCNTCL+WDTSSEL+WDTIS0)                   /* 250ms   " */
963
#define WDT_ARST_16         (WDTPW+WDTCNTCL+WDTSSEL+WDTIS1)                   /* 16ms    " */
964
#define WDT_ARST_1_9        (WDTPW+WDTCNTCL+WDTSSEL+WDTIS1+WDTIS0)            /* 1.9ms   " */
965
 
966
/* INTERRUPT CONTROL */
967
/* These two bits are defined in the Special Function Registers */
968
/* #define WDTIE               0x01 */
969
/* #define WDTIFG              0x01 */
970
 
971
/************************************************************
972
* Interrupt Vectors (offset from 0xFFE0)
973
************************************************************/
974
 
975
#define VECTOR_NAME(name)       name##_ptr
976
#define EMIT_PRAGMA(x)          _Pragma(#x)
977
#define CREATE_VECTOR(name)     void (* const VECTOR_NAME(name))(void) = &name
978
#define PLACE_VECTOR(vector,section) EMIT_PRAGMA(DATA_SECTION(vector,section))
979
#define ISR_VECTOR(func,offset) CREATE_VECTOR(func); \
980
                                PLACE_VECTOR(VECTOR_NAME(func), offset)
981
 
982
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
983
#define BASICTIMER_VECTOR       ".int00"                    /* 0xFFE0 Basic Timer */
984
#else
985
#define BASICTIMER_VECTOR       (0 * 1u)                     /* 0xFFE0 Basic Timer */
986
/*#define BASICTIMER_ISR(func)    ISR_VECTOR(func, ".int00")  */ /* 0xFFE0 Basic Timer */ /* CCE V2 Style */
987
#endif
988
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
989
#define PORT2_VECTOR            ".int01"                    /* 0xFFE2 Port 2 */
990
#else
991
#define PORT2_VECTOR            (1 * 1u)                     /* 0xFFE2 Port 2 */
992
/*#define PORT2_ISR(func)         ISR_VECTOR(func, ".int01")  */ /* 0xFFE2 Port 2 */ /* CCE V2 Style */
993
#endif
994
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
995
#define USART1TX_VECTOR         ".int02"                    /* 0xFFE4 USART 1 Transmit */
996
#else
997
#define USART1TX_VECTOR         (2 * 1u)                     /* 0xFFE4 USART 1 Transmit */
998
/*#define USART1TX_ISR(func)      ISR_VECTOR(func, ".int02")  */ /* 0xFFE4 USART 1 Transmit */ /* CCE V2 Style */
999
#endif
1000
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
1001
#define USART1RX_VECTOR         ".int03"                    /* 0xFFE6 USART 1 Receive */
1002
#else
1003
#define USART1RX_VECTOR         (3 * 1u)                     /* 0xFFE6 USART 1 Receive */
1004
/*#define USART1RX_ISR(func)      ISR_VECTOR(func, ".int03")  */ /* 0xFFE6 USART 1 Receive */ /* CCE V2 Style */
1005
#endif
1006
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
1007
#define PORT1_VECTOR            ".int04"                    /* 0xFFE8 Port 1 */
1008
#else
1009
#define PORT1_VECTOR            (4 * 1u)                     /* 0xFFE8 Port 1 */
1010
/*#define PORT1_ISR(func)         ISR_VECTOR(func, ".int04")  */ /* 0xFFE8 Port 1 */ /* CCE V2 Style */
1011
#endif
1012
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
1013
#define TIMERA1_VECTOR          ".int05"                    /* 0xFFEA Timer A CC1-2, TA */
1014
#else
1015
#define TIMERA1_VECTOR          (5 * 1u)                     /* 0xFFEA Timer A CC1-2, TA */
1016
/*#define TIMERA1_ISR(func)       ISR_VECTOR(func, ".int05")  */ /* 0xFFEA Timer A CC1-2, TA */ /* CCE V2 Style */
1017
#endif
1018
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
1019
#define TIMERA0_VECTOR          ".int06"                    /* 0xFFEC Timer A CC0 */
1020
#else
1021
#define TIMERA0_VECTOR          (6 * 1u)                     /* 0xFFEC Timer A CC0 */
1022
/*#define TIMERA0_ISR(func)       ISR_VECTOR(func, ".int06")  */ /* 0xFFEC Timer A CC0 */ /* CCE V2 Style */
1023
#endif
1024
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
1025
#define USART0TX_VECTOR         ".int08"                    /* 0xFFF0 USART 0 Transmit */
1026
#else
1027
#define USART0TX_VECTOR         (8 * 1u)                     /* 0xFFF0 USART 0 Transmit */
1028
/*#define USART0TX_ISR(func)      ISR_VECTOR(func, ".int08")  */ /* 0xFFF0 USART 0 Transmit */ /* CCE V2 Style */
1029
#endif
1030
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
1031
#define USART0RX_VECTOR         ".int09"                    /* 0xFFF2 USART 0 Receive */
1032
#else
1033
#define USART0RX_VECTOR         (9 * 1u)                     /* 0xFFF2 USART 0 Receive */
1034
/*#define USART0RX_ISR(func)      ISR_VECTOR(func, ".int09")  */ /* 0xFFF2 USART 0 Receive */ /* CCE V2 Style */
1035
#endif
1036
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
1037
#define WDT_VECTOR              ".int10"                    /* 0xFFF4 Watchdog Timer */
1038
#else
1039
#define WDT_VECTOR              (10 * 1u)                    /* 0xFFF4 Watchdog Timer */
1040
/*#define WDT_ISR(func)           ISR_VECTOR(func, ".int10")  */ /* 0xFFF4 Watchdog Timer */ /* CCE V2 Style */
1041
#endif
1042
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
1043
#define COMPARATORA_VECTOR      ".int11"                    /* 0xFFF6 Comparator A */
1044
#else
1045
#define COMPARATORA_VECTOR      (11 * 1u)                    /* 0xFFF6 Comparator A */
1046
/*#define COMPARATORA_ISR(func)   ISR_VECTOR(func, ".int11")  */ /* 0xFFF6 Comparator A */ /* CCE V2 Style */
1047
#endif
1048
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
1049
#define TIMERB1_VECTOR          ".int12"                    /* 0xFFF8 Timer B CC1-6, TB */
1050
#else
1051
#define TIMERB1_VECTOR          (12 * 1u)                    /* 0xFFF8 Timer B CC1-6, TB */
1052
/*#define TIMERB1_ISR(func)       ISR_VECTOR(func, ".int12")  */ /* 0xFFF8 Timer B CC1-6, TB */ /* CCE V2 Style */
1053
#endif
1054
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
1055
#define TIMERB0_VECTOR          ".int13"                    /* 0xFFFA Timer B CC0 */
1056
#else
1057
#define TIMERB0_VECTOR          (13 * 1u)                    /* 0xFFFA Timer B CC0 */
1058
/*#define TIMERB0_ISR(func)       ISR_VECTOR(func, ".int13")  */ /* 0xFFFA Timer B CC0 */ /* CCE V2 Style */
1059
#endif
1060
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
1061
#define NMI_VECTOR              ".int14"                    /* 0xFFFC Non-maskable */
1062
#else
1063
#define NMI_VECTOR              (14 * 1u)                    /* 0xFFFC Non-maskable */
1064
/*#define NMI_ISR(func)           ISR_VECTOR(func, ".int14")  */ /* 0xFFFC Non-maskable */ /* CCE V2 Style */
1065
#endif
1066
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
1067
#define RESET_VECTOR            ".reset"                    /* 0xFFFE Reset [Highest Priority] */
1068
#else
1069
#define RESET_VECTOR            (15 * 1u)                    /* 0xFFFE Reset [Highest Priority] */
1070
/*#define RESET_ISR(func)         ISR_VECTOR(func, ".int15")  */ /* 0xFFFE Reset [Highest Priority] */ /* CCE V2 Style */
1071
#endif
1072
 
1073
 
1074
/************************************************************
1075
* End of Modules
1076
************************************************************/
1077
 
1078
#ifdef __cplusplus
1079
}
1080
#endif /* extern "C" */
1081
 
1082
#endif /* #ifndef __msp430x44x1 */
1083