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
* MSP430x13x1 devices.
8
*
9
* Texas Instruments, Version 2.3
10
*
11
* Rev. 1.1, Enclose all #define statements with parentheses
12
* Rev. 1.2, Defined vectors for USART (in addition to UART)
13
* Rev. 1.3, Added USART special function labels (UxME, UxIE, UxIFG)
14
* Rev. 2.1, Alignment of defintions in Users Guide and of version numbers
15
* Rev. 2.2, Removed unused def of TASSEL2 / TBSSEL2
16
* Rev. 2.3, added definitions for Interrupt Vectors xxIV
17
*
18
*********************************************************************/
19
 
20
#ifndef __msp430x13x1
21
#define __msp430x13x1
22
 
23
#ifdef __cplusplus
24
extern "C" {
25
#endif
26
 
27
 
28
/*----------------------------------------------------------------------------*/
29
/* PERIPHERAL FILE MAP                                                        */
30
/*----------------------------------------------------------------------------*/
31
 
32
/* External references resolved by a device-specific linker command file */
33
#define SFR_8BIT(address)   extern volatile unsigned char address
34
#define SFR_16BIT(address)  extern volatile unsigned int address
35
 
36
 
37
/************************************************************
38
* STANDARD BITS
39
************************************************************/
40
 
41
#define BIT0                   (0x0001)
42
#define BIT1                   (0x0002)
43
#define BIT2                   (0x0004)
44
#define BIT3                   (0x0008)
45
#define BIT4                   (0x0010)
46
#define BIT5                   (0x0020)
47
#define BIT6                   (0x0040)
48
#define BIT7                   (0x0080)
49
#define BIT8                   (0x0100)
50
#define BIT9                   (0x0200)
51
#define BITA                   (0x0400)
52
#define BITB                   (0x0800)
53
#define BITC                   (0x1000)
54
#define BITD                   (0x2000)
55
#define BITE                   (0x4000)
56
#define BITF                   (0x8000)
57
 
58
/************************************************************
59
* STATUS REGISTER BITS
60
************************************************************/
61
 
62
#define C                      (0x0001)
63
#define Z                      (0x0002)
64
#define N                      (0x0004)
65
#define V                      (0x0100)
66
#define GIE                    (0x0008)
67
#define CPUOFF                 (0x0010)
68
#define OSCOFF                 (0x0020)
69
#define SCG0                   (0x0040)
70
#define SCG1                   (0x0080)
71
 
72
/* Low Power Modes coded with Bits 4-7 in SR */
73
 
74
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
75
#define LPM0                   (CPUOFF)
76
#define LPM1                   (SCG0+CPUOFF)
77
#define LPM2                   (SCG1+CPUOFF)
78
#define LPM3                   (SCG1+SCG0+CPUOFF)
79
#define LPM4                   (SCG1+SCG0+OSCOFF+CPUOFF)
80
/* End #defines for assembler */
81
 
82
#else /* Begin #defines for C */
83
#define LPM0_bits              (CPUOFF)
84
#define LPM1_bits              (SCG0+CPUOFF)
85
#define LPM2_bits              (SCG1+CPUOFF)
86
#define LPM3_bits              (SCG1+SCG0+CPUOFF)
87
#define LPM4_bits              (SCG1+SCG0+OSCOFF+CPUOFF)
88
 
89
#include "in430.h"
90
 
91
#define LPM0         _bis_SR_register(LPM0_bits)         /* Enter Low Power Mode 0 */
92
#define LPM0_EXIT    _bic_SR_register_on_exit(LPM0_bits) /* Exit Low Power Mode 0 */
93
#define LPM1         _bis_SR_register(LPM1_bits)         /* Enter Low Power Mode 1 */
94
#define LPM1_EXIT    _bic_SR_register_on_exit(LPM1_bits) /* Exit Low Power Mode 1 */
95
#define LPM2         _bis_SR_register(LPM2_bits)         /* Enter Low Power Mode 2 */
96
#define LPM2_EXIT    _bic_SR_register_on_exit(LPM2_bits) /* Exit Low Power Mode 2 */
97
#define LPM3         _bis_SR_register(LPM3_bits)         /* Enter Low Power Mode 3 */
98
#define LPM3_EXIT    _bic_SR_register_on_exit(LPM3_bits) /* Exit Low Power Mode 3 */
99
#define LPM4         _bis_SR_register(LPM4_bits)         /* Enter Low Power Mode 4 */
100
#define LPM4_EXIT    _bic_SR_register_on_exit(LPM4_bits) /* Exit Low Power Mode 4 */
101
#endif /* End #defines for C */
102
 
103
/************************************************************
104
* PERIPHERAL FILE MAP
105
************************************************************/
106
 
107
/************************************************************
108
* SPECIAL FUNCTION REGISTER ADDRESSES + CONTROL BITS
109
************************************************************/
110
 
111
SFR_8BIT(IE1);                                /* Interrupt Enable 1 */
112
#define U0IE                   IE1            /* UART0 Interrupt Enable Register */
113
#define WDTIE                  (0x01)
114
#define OFIE                   (0x02)
115
#define NMIIE                  (0x10)
116
#define ACCVIE                 (0x20)
117
#define URXIE0                 (0x40)
118
#define UTXIE0                 (0x80)
119
 
120
SFR_8BIT(IFG1);                               /* Interrupt Flag 1 */
121
#define U0IFG                  IFG1           /* UART0 Interrupt Flag Register */
122
#define WDTIFG                 (0x01)
123
#define OFIFG                  (0x02)
124
#define NMIIFG                 (0x10)
125
#define URXIFG0                (0x40)
126
#define UTXIFG0                (0x80)
127
 
128
SFR_8BIT(ME1);                                /* Module Enable 1 */
129
#define U0ME                   ME1            /* UART0 Module Enable Register */
130
#define URXE0                  (0x40)
131
#define UTXE0                  (0x80)
132
#define USPIE0                 (0x40)
133
 
134
/************************************************************
135
* WATCHDOG TIMER
136
************************************************************/
137
#define __MSP430_HAS_WDT__                    /* Definition to show that Module is available */
138
 
139
SFR_16BIT(WDTCTL);                            /* Watchdog Timer Control */
140
/* The bit names have been prefixed with "WDT" */
141
#define WDTIS0                 (0x0001)
142
#define WDTIS1                 (0x0002)
143
#define WDTSSEL                (0x0004)
144
#define WDTCNTCL               (0x0008)
145
#define WDTTMSEL               (0x0010)
146
#define WDTNMI                 (0x0020)
147
#define WDTNMIES               (0x0040)
148
#define WDTHOLD                (0x0080)
149
 
150
#define WDTPW                  (0x5A00)
151
 
152
/* WDT-interval times [1ms] coded with Bits 0-2 */
153
/* WDT is clocked by fSMCLK (assumed 1MHz) */
154
#define WDT_MDLY_32         (WDTPW+WDTTMSEL+WDTCNTCL)                         /* 32ms interval (default) */
155
#define WDT_MDLY_8          (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS0)                  /* 8ms     " */
156
#define WDT_MDLY_0_5        (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS1)                  /* 0.5ms   " */
157
#define WDT_MDLY_0_064      (WDTPW+WDTTMSEL+WDTCNTCL+WDTIS1+WDTIS0)           /* 0.064ms " */
158
/* WDT is clocked by fACLK (assumed 32KHz) */
159
#define WDT_ADLY_1000       (WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL)                 /* 1000ms  " */
160
#define WDT_ADLY_250        (WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL+WDTIS0)          /* 250ms   " */
161
#define WDT_ADLY_16         (WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL+WDTIS1)          /* 16ms    " */
162
#define WDT_ADLY_1_9        (WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL+WDTIS1+WDTIS0)   /* 1.9ms   " */
163
/* Watchdog mode -> reset after expired time */
164
/* WDT is clocked by fSMCLK (assumed 1MHz) */
165
#define WDT_MRST_32         (WDTPW+WDTCNTCL)                                  /* 32ms interval (default) */
166
#define WDT_MRST_8          (WDTPW+WDTCNTCL+WDTIS0)                           /* 8ms     " */
167
#define WDT_MRST_0_5        (WDTPW+WDTCNTCL+WDTIS1)                           /* 0.5ms   " */
168
#define WDT_MRST_0_064      (WDTPW+WDTCNTCL+WDTIS1+WDTIS0)                    /* 0.064ms " */
169
/* WDT is clocked by fACLK (assumed 32KHz) */
170
#define WDT_ARST_1000       (WDTPW+WDTCNTCL+WDTSSEL)                          /* 1000ms  " */
171
#define WDT_ARST_250        (WDTPW+WDTCNTCL+WDTSSEL+WDTIS0)                   /* 250ms   " */
172
#define WDT_ARST_16         (WDTPW+WDTCNTCL+WDTSSEL+WDTIS1)                   /* 16ms    " */
173
#define WDT_ARST_1_9        (WDTPW+WDTCNTCL+WDTSSEL+WDTIS1+WDTIS0)            /* 1.9ms   " */
174
 
175
/* INTERRUPT CONTROL */
176
/* These two bits are defined in the Special Function Registers */
177
/* #define WDTIE               0x01 */
178
/* #define WDTIFG              0x01 */
179
 
180
/************************************************************
181
* DIGITAL I/O Port1/2
182
************************************************************/
183
#define __MSP430_HAS_PORT1__                  /* Definition to show that Module is available */
184
#define __MSP430_HAS_PORT2__                  /* Definition to show that Module is available */
185
 
186
SFR_8BIT(P1IN);                               /* Port 1 Input */
187
SFR_8BIT(P1OUT);                              /* Port 1 Output */
188
SFR_8BIT(P1DIR);                              /* Port 1 Direction */
189
SFR_8BIT(P1IFG);                              /* Port 1 Interrupt Flag */
190
SFR_8BIT(P1IES);                              /* Port 1 Interrupt Edge Select */
191
SFR_8BIT(P1IE);                               /* Port 1 Interrupt Enable */
192
SFR_8BIT(P1SEL);                              /* Port 1 Selection */
193
 
194
SFR_8BIT(P2IN);                               /* Port 2 Input */
195
SFR_8BIT(P2OUT);                              /* Port 2 Output */
196
SFR_8BIT(P2DIR);                              /* Port 2 Direction */
197
SFR_8BIT(P2IFG);                              /* Port 2 Interrupt Flag */
198
SFR_8BIT(P2IES);                              /* Port 2 Interrupt Edge Select */
199
SFR_8BIT(P2IE);                               /* Port 2 Interrupt Enable */
200
SFR_8BIT(P2SEL);                              /* Port 2 Selection */
201
 
202
/************************************************************
203
* DIGITAL I/O Port3/4
204
************************************************************/
205
#define __MSP430_HAS_PORT3__                  /* Definition to show that Module is available */
206
#define __MSP430_HAS_PORT4__                  /* Definition to show that Module is available */
207
 
208
SFR_8BIT(P3IN);                               /* Port 3 Input */
209
SFR_8BIT(P3OUT);                              /* Port 3 Output */
210
SFR_8BIT(P3DIR);                              /* Port 3 Direction */
211
SFR_8BIT(P3SEL);                              /* Port 3 Selection */
212
 
213
SFR_8BIT(P4IN);                               /* Port 4 Input */
214
SFR_8BIT(P4OUT);                              /* Port 4 Output */
215
SFR_8BIT(P4DIR);                              /* Port 4 Direction */
216
SFR_8BIT(P4SEL);                              /* Port 4 Selection */
217
 
218
/************************************************************
219
* DIGITAL I/O Port5/6
220
************************************************************/
221
#define __MSP430_HAS_PORT5__                  /* Definition to show that Module is available */
222
#define __MSP430_HAS_PORT6__                  /* Definition to show that Module is available */
223
 
224
SFR_8BIT(P5IN);                               /* Port 5 Input */
225
SFR_8BIT(P5OUT);                              /* Port 5 Output */
226
SFR_8BIT(P5DIR);                              /* Port 5 Direction */
227
SFR_8BIT(P5SEL);                              /* Port 5 Selection */
228
 
229
SFR_8BIT(P6IN);                               /* Port 6 Input */
230
SFR_8BIT(P6OUT);                              /* Port 6 Output */
231
SFR_8BIT(P6DIR);                              /* Port 6 Direction */
232
SFR_8BIT(P6SEL);                              /* Port 6 Selection */
233
 
234
/************************************************************
235
* USART
236
************************************************************/
237
 
238
/* UxCTL */
239
#define PENA                   (0x80)         /* Parity enable */
240
#define PEV                    (0x40)         /* Parity 0:odd / 1:even */
241
#define SPB                    (0x20)         /* Stop Bits 0:one / 1: two */
242
#define CHAR                   (0x10)         /* Data 0:7-bits / 1:8-bits */
243
#define LISTEN                 (0x08)         /* Listen mode */
244
#define SYNC                   (0x04)         /* UART / SPI mode */
245
#define MM                     (0x02)         /* Master Mode off/on */
246
#define SWRST                  (0x01)         /* USART Software Reset */
247
 
248
/* UxTCTL */
249
#define CKPH                   (0x80)         /* SPI: Clock Phase */
250
#define CKPL                   (0x40)         /* Clock Polarity */
251
#define SSEL1                  (0x20)         /* Clock Source Select 1 */
252
#define SSEL0                  (0x10)         /* Clock Source Select 0 */
253
#define URXSE                  (0x08)         /* Receive Start edge select */
254
#define TXWAKE                 (0x04)         /* TX Wake up mode */
255
#define STC                    (0x02)         /* SPI: STC enable 0:on / 1:off */
256
#define TXEPT                  (0x01)         /* TX Buffer empty */
257
 
258
/* UxRCTL */
259
#define FE                     (0x80)         /* Frame Error */
260
#define PE                     (0x40)         /* Parity Error */
261
#define OE                     (0x20)         /* Overrun Error */
262
#define BRK                    (0x10)         /* Break detected */
263
#define URXEIE                 (0x08)         /* RX Error interrupt enable */
264
#define URXWIE                 (0x04)         /* RX Wake up interrupt enable */
265
#define RXWAKE                 (0x02)         /* RX Wake up detect */
266
#define RXERR                  (0x01)         /* RX Error Error */
267
 
268
/************************************************************
269
* USART 0
270
************************************************************/
271
#define __MSP430_HAS_UART0__                  /* Definition to show that Module is available */
272
 
273
SFR_8BIT(U0CTL);                              /* USART 0 Control */
274
SFR_8BIT(U0TCTL);                             /* USART 0 Transmit Control */
275
SFR_8BIT(U0RCTL);                             /* USART 0 Receive Control */
276
SFR_8BIT(U0MCTL);                             /* USART 0 Modulation Control */
277
SFR_8BIT(U0BR0);                              /* USART 0 Baud Rate 0 */
278
SFR_8BIT(U0BR1);                              /* USART 0 Baud Rate 1 */
279
SFR_8BIT(U0RXBUF);                            /* USART 0 Receive Buffer */
280
SFR_8BIT(U0TXBUF);                            /* USART 0 Transmit Buffer */
281
 
282
/* Alternate register names */
283
 
284
#define UCTL0                  U0CTL          /* USART 0 Control */
285
#define UTCTL0                 U0TCTL         /* USART 0 Transmit Control */
286
#define URCTL0                 U0RCTL         /* USART 0 Receive Control */
287
#define UMCTL0                 U0MCTL         /* USART 0 Modulation Control */
288
#define UBR00                  U0BR0          /* USART 0 Baud Rate 0 */
289
#define UBR10                  U0BR1          /* USART 0 Baud Rate 1 */
290
#define RXBUF0                 U0RXBUF        /* USART 0 Receive Buffer */
291
#define TXBUF0                 U0TXBUF        /* USART 0 Transmit Buffer */
292
#define UCTL0_                 U0CTL_         /* USART 0 Control */
293
#define UTCTL0_                U0TCTL_        /* USART 0 Transmit Control */
294
#define URCTL0_                U0RCTL_        /* USART 0 Receive Control */
295
#define UMCTL0_                U0MCTL_        /* USART 0 Modulation Control */
296
#define UBR00_                 U0BR0_         /* USART 0 Baud Rate 0 */
297
#define UBR10_                 U0BR1_         /* USART 0 Baud Rate 1 */
298
#define RXBUF0_                U0RXBUF_       /* USART 0 Receive Buffer */
299
#define TXBUF0_                U0TXBUF_       /* USART 0 Transmit Buffer */
300
#define UCTL_0                 U0CTL          /* USART 0 Control */
301
#define UTCTL_0                U0TCTL         /* USART 0 Transmit Control */
302
#define URCTL_0                U0RCTL         /* USART 0 Receive Control */
303
#define UMCTL_0                U0MCTL         /* USART 0 Modulation Control */
304
#define UBR0_0                 U0BR0          /* USART 0 Baud Rate 0 */
305
#define UBR1_0                 U0BR1          /* USART 0 Baud Rate 1 */
306
#define RXBUF_0                U0RXBUF        /* USART 0 Receive Buffer */
307
#define TXBUF_0                U0TXBUF        /* USART 0 Transmit Buffer */
308
#define UCTL_0_                U0CTL_         /* USART 0 Control */
309
#define UTCTL_0_               U0TCTL_        /* USART 0 Transmit Control */
310
#define URCTL_0_               U0RCTL_        /* USART 0 Receive Control */
311
#define UMCTL_0_               U0MCTL_        /* USART 0 Modulation Control */
312
#define UBR0_0_                U0BR0_         /* USART 0 Baud Rate 0 */
313
#define UBR1_0_                U0BR1_         /* USART 0 Baud Rate 1 */
314
#define RXBUF_0_               U0RXBUF_       /* USART 0 Receive Buffer */
315
#define TXBUF_0_               U0TXBUF_       /* USART 0 Transmit Buffer */
316
 
317
/************************************************************
318
* Timer A3
319
************************************************************/
320
#define __MSP430_HAS_TA3__                    /* Definition to show that Module is available */
321
 
322
SFR_16BIT(TAIV);                              /* Timer A Interrupt Vector Word */
323
SFR_16BIT(TACTL);                             /* Timer A Control */
324
SFR_16BIT(TACCTL0);                           /* Timer A Capture/Compare Control 0 */
325
SFR_16BIT(TACCTL1);                           /* Timer A Capture/Compare Control 1 */
326
SFR_16BIT(TACCTL2);                           /* Timer A Capture/Compare Control 2 */
327
SFR_16BIT(TAR);                               /* Timer A Counter Register */
328
SFR_16BIT(TACCR0);                            /* Timer A Capture/Compare 0 */
329
SFR_16BIT(TACCR1);                            /* Timer A Capture/Compare 1 */
330
SFR_16BIT(TACCR2);                            /* Timer A Capture/Compare 2 */
331
 
332
/* Alternate register names */
333
#define CCTL0                  TACCTL0        /* Timer A Capture/Compare Control 0 */
334
#define CCTL1                  TACCTL1        /* Timer A Capture/Compare Control 1 */
335
#define CCTL2                  TACCTL2        /* Timer A Capture/Compare Control 2 */
336
#define CCR0                   TACCR0         /* Timer A Capture/Compare 0 */
337
#define CCR1                   TACCR1         /* Timer A Capture/Compare 1 */
338
#define CCR2                   TACCR2         /* Timer A Capture/Compare 2 */
339
#define CCTL0_                 TACCTL0_       /* Timer A Capture/Compare Control 0 */
340
#define CCTL1_                 TACCTL1_       /* Timer A Capture/Compare Control 1 */
341
#define CCTL2_                 TACCTL2_       /* Timer A Capture/Compare Control 2 */
342
#define CCR0_                  TACCR0_        /* Timer A Capture/Compare 0 */
343
#define CCR1_                  TACCR1_        /* Timer A Capture/Compare 1 */
344
#define CCR2_                  TACCR2_        /* Timer A Capture/Compare 2 */
345
/* Alternate register names - 5xx style */
346
#define TA0IV                  TAIV           /* Timer A Interrupt Vector Word */
347
#define TA0CTL                 TACTL          /* Timer A Control */
348
#define TA0CCTL0               TACCTL0        /* Timer A Capture/Compare Control 0 */
349
#define TA0CCTL1               TACCTL1        /* Timer A Capture/Compare Control 1 */
350
#define TA0CCTL2               TACCTL2        /* Timer A Capture/Compare Control 2 */
351
#define TA0R                   TAR            /* Timer A Counter Register */
352
#define TA0CCR0                TACCR0         /* Timer A Capture/Compare 0 */
353
#define TA0CCR1                TACCR1         /* Timer A Capture/Compare 1 */
354
#define TA0CCR2                TACCR2         /* Timer A Capture/Compare 2 */
355
#define TA0IV_                 TAIV_          /* Timer A Interrupt Vector Word */
356
#define TA0CTL_                TACTL_         /* Timer A Control */
357
#define TA0CCTL0_              TACCTL0_       /* Timer A Capture/Compare Control 0 */
358
#define TA0CCTL1_              TACCTL1_       /* Timer A Capture/Compare Control 1 */
359
#define TA0CCTL2_              TACCTL2_       /* Timer A Capture/Compare Control 2 */
360
#define TA0R_                  TAR_           /* Timer A Counter Register */
361
#define TA0CCR0_               TACCR0_        /* Timer A Capture/Compare 0 */
362
#define TA0CCR1_               TACCR1_        /* Timer A Capture/Compare 1 */
363
#define TA0CCR2_               TACCR2_        /* Timer A Capture/Compare 2 */
364
 
365
#define TASSEL1                (0x0200)       /* Timer A clock source select 0 */
366
#define TASSEL0                (0x0100)       /* Timer A clock source select 1 */
367
#define ID1                    (0x0080)       /* Timer A clock input divider 1 */
368
#define ID0                    (0x0040)       /* Timer A clock input divider 0 */
369
#define MC1                    (0x0020)       /* Timer A mode control 1 */
370
#define MC0                    (0x0010)       /* Timer A mode control 0 */
371
#define TACLR                  (0x0004)       /* Timer A counter clear */
372
#define TAIE                   (0x0002)       /* Timer A counter interrupt enable */
373
#define TAIFG                  (0x0001)       /* Timer A counter interrupt flag */
374
 
375
#define MC_0                   (0*0x10u)      /* Timer A mode control: 0 - Stop */
376
#define MC_1                   (1*0x10u)      /* Timer A mode control: 1 - Up to CCR0 */
377
#define MC_2                   (2*0x10u)      /* Timer A mode control: 2 - Continous up */
378
#define MC_3                   (3*0x10u)      /* Timer A mode control: 3 - Up/Down */
379
#define ID_0                   (0*0x40u)      /* Timer A input divider: 0 - /1 */
380
#define ID_1                   (1*0x40u)      /* Timer A input divider: 1 - /2 */
381
#define ID_2                   (2*0x40u)      /* Timer A input divider: 2 - /4 */
382
#define ID_3                   (3*0x40u)      /* Timer A input divider: 3 - /8 */
383
#define TASSEL_0               (0*0x100u)     /* Timer A clock source select: 0 - TACLK */
384
#define TASSEL_1               (1*0x100u)     /* Timer A clock source select: 1 - ACLK  */
385
#define TASSEL_2               (2*0x100u)     /* Timer A clock source select: 2 - SMCLK */
386
#define TASSEL_3               (3*0x100u)     /* Timer A clock source select: 3 - INCLK */
387
 
388
#define CM1                    (0x8000)       /* Capture mode 1 */
389
#define CM0                    (0x4000)       /* Capture mode 0 */
390
#define CCIS1                  (0x2000)       /* Capture input select 1 */
391
#define CCIS0                  (0x1000)       /* Capture input select 0 */
392
#define SCS                    (0x0800)       /* Capture sychronize */
393
#define SCCI                   (0x0400)       /* Latched capture signal (read) */
394
#define CAP                    (0x0100)       /* Capture mode: 1 /Compare mode : 0 */
395
#define OUTMOD2                (0x0080)       /* Output mode 2 */
396
#define OUTMOD1                (0x0040)       /* Output mode 1 */
397
#define OUTMOD0                (0x0020)       /* Output mode 0 */
398
#define CCIE                   (0x0010)       /* Capture/compare interrupt enable */
399
#define CCI                    (0x0008)       /* Capture input signal (read) */
400
#define OUT                    (0x0004)       /* PWM Output signal if output mode 0 */
401
#define COV                    (0x0002)       /* Capture/compare overflow flag */
402
#define CCIFG                  (0x0001)       /* Capture/compare interrupt flag */
403
 
404
#define OUTMOD_0               (0*0x20u)      /* PWM output mode: 0 - output only */
405
#define OUTMOD_1               (1*0x20u)      /* PWM output mode: 1 - set */
406
#define OUTMOD_2               (2*0x20u)      /* PWM output mode: 2 - PWM toggle/reset */
407
#define OUTMOD_3               (3*0x20u)      /* PWM output mode: 3 - PWM set/reset */
408
#define OUTMOD_4               (4*0x20u)      /* PWM output mode: 4 - toggle */
409
#define OUTMOD_5               (5*0x20u)      /* PWM output mode: 5 - Reset */
410
#define OUTMOD_6               (6*0x20u)      /* PWM output mode: 6 - PWM toggle/set */
411
#define OUTMOD_7               (7*0x20u)      /* PWM output mode: 7 - PWM reset/set */
412
#define CCIS_0                 (0*0x1000u)    /* Capture input select: 0 - CCIxA */
413
#define CCIS_1                 (1*0x1000u)    /* Capture input select: 1 - CCIxB */
414
#define CCIS_2                 (2*0x1000u)    /* Capture input select: 2 - GND */
415
#define CCIS_3                 (3*0x1000u)    /* Capture input select: 3 - Vcc */
416
#define CM_0                   (0*0x4000u)    /* Capture mode: 0 - disabled */
417
#define CM_1                   (1*0x4000u)    /* Capture mode: 1 - pos. edge */
418
#define CM_2                   (2*0x4000u)    /* Capture mode: 1 - neg. edge */
419
#define CM_3                   (3*0x4000u)    /* Capture mode: 1 - both edges */
420
 
421
/* TA3IV Definitions */
422
#define TAIV_NONE              (0x0000)       /* No Interrupt pending */
423
#define TAIV_TACCR1            (0x0002)       /* TACCR1_CCIFG */
424
#define TAIV_TACCR2            (0x0004)       /* TACCR2_CCIFG */
425
#define TAIV_6                 (0x0006)       /* Reserved */
426
#define TAIV_8                 (0x0008)       /* Reserved */
427
#define TAIV_TAIFG             (0x000A)       /* TAIFG */
428
 
429
/************************************************************
430
* Timer B3
431
************************************************************/
432
#define __MSP430_HAS_TB3__                    /* Definition to show that Module is available */
433
 
434
SFR_16BIT(TBIV);                              /* Timer B Interrupt Vector Word */
435
SFR_16BIT(TBCTL);                             /* Timer B Control */
436
SFR_16BIT(TBCCTL0);                           /* Timer B Capture/Compare Control 0 */
437
SFR_16BIT(TBCCTL1);                           /* Timer B Capture/Compare Control 1 */
438
SFR_16BIT(TBCCTL2);                           /* Timer B Capture/Compare Control 2 */
439
SFR_16BIT(TBR);                               /* Timer B Counter Register */
440
SFR_16BIT(TBCCR0);                            /* Timer B Capture/Compare 0 */
441
SFR_16BIT(TBCCR1);                            /* Timer B Capture/Compare 1 */
442
SFR_16BIT(TBCCR2);                            /* Timer B Capture/Compare 2 */
443
 
444
/* Alternate register names - 5xx style */
445
#define TB0IV                  TBIV           /* Timer B Interrupt Vector Word */
446
#define TB0CTL                 TBCTL          /* Timer B Control */
447
#define TB0CCTL0               TBCCTL0        /* Timer B Capture/Compare Control 0 */
448
#define TB0CCTL1               TBCCTL1        /* Timer B Capture/Compare Control 1 */
449
#define TB0CCTL2               TBCCTL2        /* Timer B Capture/Compare Control 2 */
450
#define TB0R                   TBR            /* Timer B Counter Register */
451
#define TB0CCR0                TBCCR0         /* Timer B Capture/Compare 0 */
452
#define TB0CCR1                TBCCR1         /* Timer B Capture/Compare 1 */
453
#define TB0CCR2                TBCCR2         /* Timer B Capture/Compare 2 */
454
#define TB0IV_                 TBIV_          /* Timer B Interrupt Vector Word */
455
#define TB0CTL_                TBCTL_         /* Timer B Control */
456
#define TB0CCTL0_              TBCCTL0_       /* Timer B Capture/Compare Control 0 */
457
#define TB0CCTL1_              TBCCTL1_       /* Timer B Capture/Compare Control 1 */
458
#define TB0CCTL2_              TBCCTL2_       /* Timer B Capture/Compare Control 2 */
459
#define TB0R_                  TBR_           /* Timer B Counter Register */
460
#define TB0CCR0_               TBCCR0_        /* Timer B Capture/Compare 0 */
461
#define TB0CCR1_               TBCCR1_        /* Timer B Capture/Compare 1 */
462
#define TB0CCR2_               TBCCR2_        /* Timer B Capture/Compare 2 */
463
 
464
#define TBCLGRP1               (0x4000)       /* Timer B Compare latch load group 1 */
465
#define TBCLGRP0               (0x2000)       /* Timer B Compare latch load group 0 */
466
#define CNTL1                  (0x1000)       /* Counter lenght 1 */
467
#define CNTL0                  (0x0800)       /* Counter lenght 0 */
468
#define TBSSEL1                (0x0200)       /* Clock source 1 */
469
#define TBSSEL0                (0x0100)       /* Clock source 0 */
470
#define TBCLR                  (0x0004)       /* Timer B counter clear */
471
#define TBIE                   (0x0002)       /* Timer B interrupt enable */
472
#define TBIFG                  (0x0001)       /* Timer B interrupt flag */
473
 
474
#define SHR1                   (0x4000)       /* Timer B Compare latch load group 1 */
475
#define SHR0                   (0x2000)       /* Timer B Compare latch load group 0 */
476
 
477
#define TBSSEL_0               (0*0x0100u)    /* Clock Source: TBCLK */
478
#define TBSSEL_1               (1*0x0100u)    /* Clock Source: ACLK  */
479
#define TBSSEL_2               (2*0x0100u)    /* Clock Source: SMCLK */
480
#define TBSSEL_3               (3*0x0100u)    /* Clock Source: INCLK */
481
#define CNTL_0                 (0*0x0800u)    /* Counter lenght: 16 bit */
482
#define CNTL_1                 (1*0x0800u)    /* Counter lenght: 12 bit */
483
#define CNTL_2                 (2*0x0800u)    /* Counter lenght: 10 bit */
484
#define CNTL_3                 (3*0x0800u)    /* Counter lenght:  8 bit */
485
#define SHR_0                  (0*0x2000u)    /* Timer B Group: 0 - individually */
486
#define SHR_1                  (1*0x2000u)    /* Timer B Group: 1 - 3 groups (1-2, 3-4, 5-6) */
487
#define SHR_2                  (2*0x2000u)    /* Timer B Group: 2 - 2 groups (1-3, 4-6)*/
488
#define SHR_3                  (3*0x2000u)    /* Timer B Group: 3 - 1 group (all) */
489
#define TBCLGRP_0              (0*0x2000u)    /* Timer B Group: 0 - individually */
490
#define TBCLGRP_1              (1*0x2000u)    /* Timer B Group: 1 - 3 groups (1-2, 3-4, 5-6) */
491
#define TBCLGRP_2              (2*0x2000u)    /* Timer B Group: 2 - 2 groups (1-3, 4-6)*/
492
#define TBCLGRP_3              (3*0x2000u)    /* Timer B Group: 3 - 1 group (all) */
493
 
494
/* Additional Timer B Control Register bits are defined in Timer A */
495
 
496
#define CLLD1                  (0x0400)       /* Compare latch load source 1 */
497
#define CLLD0                  (0x0200)       /* Compare latch load source 0 */
498
 
499
#define SLSHR1                 (0x0400)       /* Compare latch load source 1 */
500
#define SLSHR0                 (0x0200)       /* Compare latch load source 0 */
501
 
502
#define SLSHR_0                (0*0x0200u)    /* Compare latch load sourec : 0 - immediate */
503
#define SLSHR_1                (1*0x0200u)    /* Compare latch load sourec : 1 - TBR counts to 0 */
504
#define SLSHR_2                (2*0x0200u)    /* Compare latch load sourec : 2 - up/down */
505
#define SLSHR_3                (3*0x0200u)    /* Compare latch load sourec : 3 - TBR counts to TBCTL0 */
506
 
507
#define CLLD_0                 (0*0x0200u)    /* Compare latch load sourec : 0 - immediate */
508
#define CLLD_1                 (1*0x0200u)    /* Compare latch load sourec : 1 - TBR counts to 0 */
509
#define CLLD_2                 (2*0x0200u)    /* Compare latch load sourec : 2 - up/down */
510
#define CLLD_3                 (3*0x0200u)    /* Compare latch load sourec : 3 - TBR counts to TBCTL0 */
511
 
512
/* TB3IV Definitions */
513
#define TBIV_NONE              (0x0000)       /* No Interrupt pending */
514
#define TBIV_TBCCR1            (0x0002)       /* TBCCR1_CCIFG */
515
#define TBIV_TBCCR2            (0x0004)       /* TBCCR2_CCIFG */
516
#define TBIV_3                 (0x0006)       /* Reserved */
517
#define TBIV_4                 (0x0008)       /* Reserved */
518
#define TBIV_5                 (0x000A)       /* Reserved */
519
#define TBIV_6                 (0x000C)       /* Reserved */
520
#define TBIV_TBIFG             (0x000E)       /* TBIFG */
521
 
522
/************************************************************
523
* Basic Clock Module
524
************************************************************/
525
#define __MSP430_HAS_BASIC_CLOCK__                /* Definition to show that Module is available */
526
 
527
SFR_8BIT(DCOCTL);                             /* DCO Clock Frequency Control */
528
SFR_8BIT(BCSCTL1);                            /* Basic Clock System Control 1 */
529
SFR_8BIT(BCSCTL2);                            /* Basic Clock System Control 2 */
530
 
531
#define MOD0                   (0x01)         /* Modulation Bit 0 */
532
#define MOD1                   (0x02)         /* Modulation Bit 1 */
533
#define MOD2                   (0x04)         /* Modulation Bit 2 */
534
#define MOD3                   (0x08)         /* Modulation Bit 3 */
535
#define MOD4                   (0x10)         /* Modulation Bit 4 */
536
#define DCO0                   (0x20)         /* DCO Select Bit 0 */
537
#define DCO1                   (0x40)         /* DCO Select Bit 1 */
538
#define DCO2                   (0x80)         /* DCO Select Bit 2 */
539
 
540
#define RSEL0                  (0x01)         /* Range Select Bit 0 */
541
#define RSEL1                  (0x02)         /* Range Select Bit 1 */
542
#define RSEL2                  (0x04)         /* Range Select Bit 2 */
543
#define XT5V                   (0x08)         /* XT5V should always be reset */
544
#define DIVA0                  (0x10)         /* ACLK Divider 0 */
545
#define DIVA1                  (0x20)         /* ACLK Divider 1 */
546
#define XTS                    (0x40)         /* LFXTCLK 0:Low Freq. / 1: High Freq. */
547
#define XT2OFF                 (0x80)         /* Enable XT2CLK */
548
 
549
#define DIVA_0                 (0x00)         /* ACLK Divider 0: /1 */
550
#define DIVA_1                 (0x10)         /* ACLK Divider 1: /2 */
551
#define DIVA_2                 (0x20)         /* ACLK Divider 2: /4 */
552
#define DIVA_3                 (0x30)         /* ACLK Divider 3: /8 */
553
 
554
#define DCOR                   (0x01)         /* Enable External Resistor : 1 */
555
#define DIVS0                  (0x02)         /* SMCLK Divider 0 */
556
#define DIVS1                  (0x04)         /* SMCLK Divider 1 */
557
#define SELS                   (0x08)         /* SMCLK Source Select 0:DCOCLK / 1:XT2CLK/LFXTCLK */
558
#define DIVM0                  (0x10)         /* MCLK Divider 0 */
559
#define DIVM1                  (0x20)         /* MCLK Divider 1 */
560
#define SELM0                  (0x40)         /* MCLK Source Select 0 */
561
#define SELM1                  (0x80)         /* MCLK Source Select 1 */
562
 
563
#define DIVS_0                 (0x00)         /* SMCLK Divider 0: /1 */
564
#define DIVS_1                 (0x02)         /* SMCLK Divider 1: /2 */
565
#define DIVS_2                 (0x04)         /* SMCLK Divider 2: /4 */
566
#define DIVS_3                 (0x06)         /* SMCLK Divider 3: /8 */
567
 
568
#define DIVM_0                 (0x00)         /* MCLK Divider 0: /1 */
569
#define DIVM_1                 (0x10)         /* MCLK Divider 1: /2 */
570
#define DIVM_2                 (0x20)         /* MCLK Divider 2: /4 */
571
#define DIVM_3                 (0x30)         /* MCLK Divider 3: /8 */
572
 
573
#define SELM_0                 (0x00)         /* MCLK Source Select 0: DCOCLK */
574
#define SELM_1                 (0x40)         /* MCLK Source Select 1: DCOCLK */
575
#define SELM_2                 (0x80)         /* MCLK Source Select 2: XT2CLK/LFXTCLK */
576
#define SELM_3                 (0xC0)         /* MCLK Source Select 3: LFXTCLK */
577
 
578
/*************************************************************
579
* Flash Memory
580
*************************************************************/
581
#define __MSP430_HAS_FLASH__                  /* Definition to show that Module is available */
582
 
583
SFR_16BIT(FCTL1);                             /* FLASH Control 1 */
584
SFR_16BIT(FCTL2);                             /* FLASH Control 2 */
585
SFR_16BIT(FCTL3);                             /* FLASH Control 3 */
586
 
587
#define FRKEY                  (0x9600)       /* Flash key returned by read */
588
#define FWKEY                  (0xA500)       /* Flash key for write */
589
#define FXKEY                  (0x3300)       /* for use with XOR instruction */
590
 
591
#define ERASE                  (0x0002)       /* Enable bit for Flash segment erase */
592
#define MERAS                  (0x0004)       /* Enable bit for Flash mass erase */
593
#define WRT                    (0x0040)       /* Enable bit for Flash write */
594
#define BLKWRT                 (0x0080)       /* Enable bit for Flash segment write */
595
#define SEGWRT                 (0x0080)       /* old definition */ /* Enable bit for Flash segment write */
596
 
597
#define FN0                    (0x0001)       /* Divide Flash clock by 1 to 64 using FN0 to FN5 according to: */
598
#define FN1                    (0x0002)       /*  32*FN5 + 16*FN4 + 8*FN3 + 4*FN2 + 2*FN1 + FN0 + 1 */
599
#ifndef FN2
600
#define FN2                    (0x0004)
601
#endif
602
#ifndef FN3
603
#define FN3                    (0x0008)
604
#endif
605
#ifndef FN4
606
#define FN4                    (0x0010)
607
#endif
608
#define FN5                    (0x0020)
609
#define FSSEL0                 (0x0040)       /* Flash clock select 0 */        /* to distinguish from USART SSELx */
610
#define FSSEL1                 (0x0080)       /* Flash clock select 1 */
611
 
612
#define FSSEL_0                (0x0000)       /* Flash clock select: 0 - ACLK */
613
#define FSSEL_1                (0x0040)       /* Flash clock select: 1 - MCLK */
614
#define FSSEL_2                (0x0080)       /* Flash clock select: 2 - SMCLK */
615
#define FSSEL_3                (0x00C0)       /* Flash clock select: 3 - SMCLK */
616
 
617
#define BUSY                   (0x0001)       /* Flash busy: 1 */
618
#define KEYV                   (0x0002)       /* Flash Key violation flag */
619
#define ACCVIFG                (0x0004)       /* Flash Access violation flag */
620
#define WAIT                   (0x0008)       /* Wait flag for segment write */
621
#define LOCK                   (0x0010)       /* Lock bit: 1 - Flash is locked (read only) */
622
#define EMEX                   (0x0020)       /* Flash Emergency Exit */
623
 
624
/************************************************************
625
* Comparator A
626
************************************************************/
627
#define __MSP430_HAS_COMPA__                  /* Definition to show that Module is available */
628
 
629
SFR_8BIT(CACTL1);                             /* Comparator A Control 1 */
630
SFR_8BIT(CACTL2);                             /* Comparator A Control 2 */
631
SFR_8BIT(CAPD);                               /* Comparator A Port Disable */
632
 
633
#define CAIFG                  (0x01)         /* Comp. A Interrupt Flag */
634
#define CAIE                   (0x02)         /* Comp. A Interrupt Enable */
635
#define CAIES                  (0x04)         /* Comp. A Int. Edge Select: 0:rising / 1:falling */
636
#define CAON                   (0x08)         /* Comp. A enable */
637
#define CAREF0                 (0x10)         /* Comp. A Internal Reference Select 0 */
638
#define CAREF1                 (0x20)         /* Comp. A Internal Reference Select 1 */
639
#define CARSEL                 (0x40)         /* Comp. A Internal Reference Enable */
640
#define CAEX                   (0x80)         /* Comp. A Exchange Inputs */
641
 
642
#define CAREF_0                (0x00)         /* Comp. A Int. Ref. Select 0 : Off */
643
#define CAREF_1                (0x10)         /* Comp. A Int. Ref. Select 1 : 0.25*Vcc */
644
#define CAREF_2                (0x20)         /* Comp. A Int. Ref. Select 2 : 0.5*Vcc */
645
#define CAREF_3                (0x30)         /* Comp. A Int. Ref. Select 3 : Vt*/
646
 
647
#define CAOUT                  (0x01)         /* Comp. A Output */
648
#define CAF                    (0x02)         /* Comp. A Enable Output Filter */
649
#define P2CA0                  (0x04)         /* Comp. A Connect External Signal to CA0 : 1 */
650
#define P2CA1                  (0x08)         /* Comp. A Connect External Signal to CA1 : 1 */
651
#define CACTL24                (0x10)
652
#define CACTL25                (0x20)
653
#define CACTL26                (0x40)
654
#define CACTL27                (0x80)
655
 
656
#define CAPD0                  (0x01)         /* Comp. A Disable Input Buffer of Port Register .0 */
657
#define CAPD1                  (0x02)         /* Comp. A Disable Input Buffer of Port Register .1 */
658
#define CAPD2                  (0x04)         /* Comp. A Disable Input Buffer of Port Register .2 */
659
#define CAPD3                  (0x08)         /* Comp. A Disable Input Buffer of Port Register .3 */
660
#define CAPD4                  (0x10)         /* Comp. A Disable Input Buffer of Port Register .4 */
661
#define CAPD5                  (0x20)         /* Comp. A Disable Input Buffer of Port Register .5 */
662
#define CAPD6                  (0x40)         /* Comp. A Disable Input Buffer of Port Register .6 */
663
#define CAPD7                  (0x80)         /* Comp. A Disable Input Buffer of Port Register .7 */
664
 
665
/************************************************************
666
* Interrupt Vectors (offset from 0xFFE0)
667
************************************************************/
668
 
669
#define VECTOR_NAME(name)       name##_ptr
670
#define EMIT_PRAGMA(x)          _Pragma(#x)
671
#define CREATE_VECTOR(name)     void (* const VECTOR_NAME(name))(void) = &name
672
#define PLACE_VECTOR(vector,section) EMIT_PRAGMA(DATA_SECTION(vector,section))
673
#define ISR_VECTOR(func,offset) CREATE_VECTOR(func); \
674
                                PLACE_VECTOR(VECTOR_NAME(func), offset)
675
 
676
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
677
#define PORT2_VECTOR            ".int01"                    /* 0xFFE2 Port 2 */
678
#else
679
#define PORT2_VECTOR            (1 * 1u)                     /* 0xFFE2 Port 2 */
680
/*#define PORT2_ISR(func)         ISR_VECTOR(func, ".int01")  */ /* 0xFFE2 Port 2 */ /* CCE V2 Style */
681
#endif
682
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
683
#define PORT1_VECTOR            ".int04"                    /* 0xFFE8 Port 1 */
684
#else
685
#define PORT1_VECTOR            (4 * 1u)                     /* 0xFFE8 Port 1 */
686
/*#define PORT1_ISR(func)         ISR_VECTOR(func, ".int04")  */ /* 0xFFE8 Port 1 */ /* CCE V2 Style */
687
#endif
688
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
689
#define TIMERA1_VECTOR          ".int05"                    /* 0xFFEA Timer A CC1-2, TA */
690
#else
691
#define TIMERA1_VECTOR          (5 * 1u)                     /* 0xFFEA Timer A CC1-2, TA */
692
/*#define TIMERA1_ISR(func)       ISR_VECTOR(func, ".int05")  */ /* 0xFFEA Timer A CC1-2, TA */ /* CCE V2 Style */
693
#endif
694
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
695
#define TIMERA0_VECTOR          ".int06"                    /* 0xFFEC Timer A CC0 */
696
#else
697
#define TIMERA0_VECTOR          (6 * 1u)                     /* 0xFFEC Timer A CC0 */
698
/*#define TIMERA0_ISR(func)       ISR_VECTOR(func, ".int06")  */ /* 0xFFEC Timer A CC0 */ /* CCE V2 Style */
699
#endif
700
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
701
#define USART0TX_VECTOR         ".int08"                    /* 0xFFF0 USART 0 Transmit */
702
#else
703
#define USART0TX_VECTOR         (8 * 1u)                     /* 0xFFF0 USART 0 Transmit */
704
/*#define USART0TX_ISR(func)      ISR_VECTOR(func, ".int08")  */ /* 0xFFF0 USART 0 Transmit */ /* CCE V2 Style */
705
#endif
706
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
707
#define USART0RX_VECTOR         ".int09"                    /* 0xFFF2 USART 0 Receive */
708
#else
709
#define USART0RX_VECTOR         (9 * 1u)                     /* 0xFFF2 USART 0 Receive */
710
/*#define USART0RX_ISR(func)      ISR_VECTOR(func, ".int09")  */ /* 0xFFF2 USART 0 Receive */ /* CCE V2 Style */
711
#endif
712
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
713
#define WDT_VECTOR              ".int10"                    /* 0xFFF4 Watchdog Timer */
714
#else
715
#define WDT_VECTOR              (10 * 1u)                    /* 0xFFF4 Watchdog Timer */
716
/*#define WDT_ISR(func)           ISR_VECTOR(func, ".int10")  */ /* 0xFFF4 Watchdog Timer */ /* CCE V2 Style */
717
#endif
718
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
719
#define COMPARATORA_VECTOR      ".int11"                    /* 0xFFF6 Comparator A */
720
#else
721
#define COMPARATORA_VECTOR      (11 * 1u)                    /* 0xFFF6 Comparator A */
722
/*#define COMPARATORA_ISR(func)   ISR_VECTOR(func, ".int11")  */ /* 0xFFF6 Comparator A */ /* CCE V2 Style */
723
#endif
724
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
725
#define TIMERB1_VECTOR          ".int12"                    /* 0xFFF8 Timer B CC1-2, TB */
726
#else
727
#define TIMERB1_VECTOR          (12 * 1u)                    /* 0xFFF8 Timer B CC1-2, TB */
728
/*#define TIMERB1_ISR(func)       ISR_VECTOR(func, ".int12")  */ /* 0xFFF8 Timer B CC1-2, TB */ /* CCE V2 Style */
729
#endif
730
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
731
#define TIMERB0_VECTOR          ".int13"                    /* 0xFFFA Timer B CC0 */
732
#else
733
#define TIMERB0_VECTOR          (13 * 1u)                    /* 0xFFFA Timer B CC0 */
734
/*#define TIMERB0_ISR(func)       ISR_VECTOR(func, ".int13")  */ /* 0xFFFA Timer B CC0 */ /* CCE V2 Style */
735
#endif
736
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
737
#define NMI_VECTOR              ".int14"                    /* 0xFFFC Non-maskable */
738
#else
739
#define NMI_VECTOR              (14 * 1u)                    /* 0xFFFC Non-maskable */
740
/*#define NMI_ISR(func)           ISR_VECTOR(func, ".int14")  */ /* 0xFFFC Non-maskable */ /* CCE V2 Style */
741
#endif
742
#ifdef __ASM_HEADER__ /* Begin #defines for assembler */
743
#define RESET_VECTOR            ".reset"                    /* 0xFFFE Reset [Highest Priority] */
744
#else
745
#define RESET_VECTOR            (15 * 1u)                    /* 0xFFFE Reset [Highest Priority] */
746
/*#define RESET_ISR(func)         ISR_VECTOR(func, ".int15")  */ /* 0xFFFE Reset [Highest Priority] */ /* CCE V2 Style */
747
#endif
748
 
749
 
750
/************************************************************
751
* End of Modules
752
************************************************************/
753
 
754
#ifdef __cplusplus
755
}
756
#endif /* extern "C" */
757
 
758
#endif /* #ifndef __msp430x13x1 */
759