Logo
MSP430USBDevelopersPackage_5_20_06_03
device.h
1 /* --COPYRIGHT--,BSD
2  * Copyright (c) 2016, Texas Instruments Incorporated
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  *
16  * * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  * --/COPYRIGHT--*/
32 /*
33  * ======== device.h ========
34  */
35 #include <msp430.h>
36 
37 #if defined (__MSP430F6659__) || defined (__MSP430F6658__) || \
38  defined (__MSP430F5659__) || \
39  defined (__MSP430F5658__)
40  #define __MSP430F565x_F665x
41 #elif defined (__MSP430F6638__) || defined (__MSP430F6637__) || \
42  defined (__MSP430F6636__) || \
43  defined (__MSP430F6635__) || defined (__MSP430F6634__) || \
44  defined (__MSP430F6633__) || \
45  defined (__MSP430F6632__) || defined (__MSP430F6631__) || \
46  defined (__MSP430F6630__) || \
47  defined (__MSP430F5638__) || defined (__MSP430F5637__) || \
48  defined (__MSP430F5636__) || \
49  defined (__MSP430F5635__) || defined (__MSP430F5634__) || \
50  defined (__MSP430F5633__) || \
51  defined (__MSP430F5632__) || defined (__MSP430F5631__) || \
52  defined (__MSP430F5630__)
53  #define __MSP430F563x_F663x
54 #elif defined (__MSP430F5510__) || defined (__MSP430F5509__) || \
55  defined (__MSP430F5508__) || \
56  defined (__MSP430F5507__) || defined (__MSP430F5506__) || \
57  defined (__MSP430F5505__) || \
58  defined (__MSP430F5504__) || defined (__MSP430F5503__) || \
59  defined (__MSP430F5502__) || \
60  defined (__MSP430F5501__) || defined (__MSP430F5500__)
61  #define __MSP430F550x
62 #elif defined (__MSP430F5529__) || defined (__MSP430F5528__) || \
63  defined (__MSP430F5527__) || \
64  defined (__MSP430F5526__) || defined (__MSP430F5525__) || \
65  defined (__MSP430F5524__) || \
66  defined (__MSP430F5522__) || defined (__MSP430F5521__) || \
67  defined (__MSP430F5519__) || \
68  defined (__MSP430F5517__) || defined (__MSP430F5515__) || \
69  defined (__MSP430F5514__) || \
70  defined (__MSP430F5513__)
71  #define __MSP430F552x
72 #elif defined (__MSP430FG6626__)
73  #define __MSP430FG6x2x
74 #else
75  #error \
76  Define a constant of format __MSP430Fxxxx__ within the projects preprocessor settings,
77 according to the device being used.
78 #endif
79 /*------------------------ Nothing Below This Line --------------------------*/