498e025a0319539a8385b9cf136a4c1f4fcd9074
1 /*
2 * device.h
3 *
4 * Device family definitions
5 *
6 * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
7 *
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 *
13 * Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 *
16 * Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the
19 * distribution.
20 *
21 * Neither the name of Texas Instruments Incorporated nor the names of
22 * its contributors may be used to endorse or promote products derived
23 * from this software without specific prior written permission.
24 *
25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 */
39 /*----------------------------------------------------------------------------+
40 | |
41 | Texas Instruments |
42 | |
43 | MSP430 USB-Example (CDC/HID Driver) |
44 | |
45 +-----------------------------------------------------------------------------+
46 | Source: device.h, File Version 1.00 2009/12/03 |
47 | Author: RSTO |
48 | |
49 | Description: |
50 | This file is included in other source code files |
51 | and this only one place to change the included device header |
52 +----------------------------------------------------------------------------*/
55 #include <msp430.h>
57 #if defined (__MSP430F6638__) || defined (__MSP430F6637__) || defined (__MSP430F6636__) || \
58 defined (__MSP430F6635__) || defined (__MSP430F6634__) || defined (__MSP430F6633__) || \
59 defined (__MSP430F6632__) || defined (__MSP430F6631__) || defined (__MSP430F6630__) || \
60 defined (__MSP430F5638__) || defined (__MSP430F5637__) || defined (__MSP430F5636__) || \
61 defined (__MSP430F5635__) || defined (__MSP430F5634__) || defined (__MSP430F5633__) || \
62 defined (__MSP430F5632__) || defined (__MSP430F5631__) || defined (__MSP430F5630__)
63 #define __MSP430F563x_F663x
64 #elif defined (__MSP430F5510__) || defined (__MSP430F5509__) || defined (__MSP430F5508__) || \
65 defined (__MSP430F5507__) || defined (__MSP430F5506__) || defined (__MSP430F5505__) || \
66 defined (__MSP430F5504__) || defined (__MSP430F5503__) || defined (__MSP430F5502__) || \
67 defined (__MSP430F5501__) || defined (__MSP430F5500__)
68 #define __MSP430F550x
69 #elif defined (__MSP430F5529) || defined (__MSP430F5528__) || defined (__MSP430F5527__) || \
70 defined (__MSP430F5526__) || defined (__MSP430F5525__) || defined (__MSP430F5524__) || \
71 defined (__MSP430F5522__) || defined (__MSP430F5521__) || defined (__MSP430F5519__) || \
72 defined (__MSP430F5517__) || defined (__MSP430F5515__) || defined (__MSP430F5514__) || \
73 defined (__MSP430F5513__)
74 #define __MSP430F552x
75 #else
76 #error 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 --------------------------*/