Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

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