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