BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
bsp430_config.h
Go to the documentation of this file.
1 /* Copyright 2012-2014, Peter A. Bigot
2  *
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 are met:
7  *
8  * * Redistributions of source code must retain the above copyright notice,
9  * this list of conditions and the following disclaimer.
10  *
11  * * Redistributions in binary form must reproduce the above copyright notice,
12  * this list of conditions and the following disclaimer in the documentation
13  * and/or other materials provided with the distribution.
14  *
15  * * Neither the name of the software nor the names of its contributors may be
16  * used to endorse or promote products derived from this software without
17  * specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29  * POSSIBILITY OF SUCH DAMAGE.
30  */
31 
39 #ifndef BSP430_PLATFORM_EXP430FR5739_BSP430_CONFIG_H
40 #define BSP430_PLATFORM_EXP430FR5739_BSP430_CONFIG_H
41 
44 /* Platform has custom LED implementation */
45 #ifndef configBSP430_LED_USE_COMMON
46 #define configBSP430_LED_USE_COMMON 0
47 #endif /* configBSP430_LED_USE_COMMON */
48 
49 /* Use native EUSCI for genericized serial port unless told not to */
50 #ifndef configBSP430_SERIAL_USE_EUSCI
51 #define configBSP430_SERIAL_USE_EUSCI 1
52 #endif /* configBSP430_SERIAL_USE_EUSCI */
53 
54 /* What to use as a console */
55 #if (configBSP430_CONSOLE - 0)
56 #ifndef BSP430_CONSOLE_SERIAL_PERIPH_CPPID
57 #define BSP430_CONSOLE_SERIAL_PERIPH_CPPID BSP430_PERIPH_CPPID_EUSCI_A0
58 #endif /* BSP430_CONSOLE_SERIAL_PERIPH_CPPID */
59 #endif /* configBSP430_CONSOLE */
60 
61 /* How to use ACLK as a capture/compare input source */
62 /* Settings for TA1: T1A2 ccis=1 ; clk P1.1 ; cc0 P1.7 ; cc1 P1.2 */
63 #if (configBSP430_TIMER_CCACLK - 0)
64 #ifndef BSP430_TIMER_CCACLK_PERIPH_CPPID
65 #define BSP430_TIMER_CCACLK_PERIPH_CPPID BSP430_PERIPH_CPPID_TA1
66 #endif /* BSP430_TIMER_CCACLK_PERIPH_CPPID */
67 #ifndef BSP430_TIMER_CCACLK_CLK_PORT_PERIPH_CPPID
68 #define BSP430_TIMER_CCACLK_CLK_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
69 #endif /* BSP430_TIMER_CCACLK_CLK_PORT_PERIPH_CPPID */
70 #ifndef BSP430_TIMER_CCACLK_CC0_PORT_PERIPH_CPPID
71 #define BSP430_TIMER_CCACLK_CC0_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
72 #endif /* BSP430_TIMER_CCACLK_CC0_PORT_PERIPH_CPPID */
73 #ifndef BSP430_TIMER_CCACLK_CC1_PORT_PERIPH_CPPID
74 #define BSP430_TIMER_CCACLK_CC1_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
75 #endif /* BSP430_TIMER_CCACLK_CC1_PORT_PERIPH_CPPID */
76 #endif /* configBSP430_TIMER_CCACLK */
77 
78 /* Enable buttons as requested */
79 #if (configBSP430_PLATFORM_BUTTON0 - 0) || (configBSP430_PLATFORM_BUTTON1 - 0)
80 #if !defined(configBSP430_HAL_PORT4)
81 #define configBSP430_HAL_PORT4 1
82 #else /* configBSP430_HAL_PORT4 */
83 #if (configBSP430_PLATFORM_BUTTON0 - 0) && ! defined(configBSP430_HPL_PORT4)
84 #define configBSP430_HPL_PORT4 1
85 #endif /* BUTTON0 */
86 #if (configBSP430_PLATFORM_BUTTON1 - 0) && ! defined(configBSP430_HPL_PORT4)
87 #define configBSP430_HPL_PORT4 1
88 #endif /* BUTTON1 */
89 #endif /* configBSP430_HAL_PORT4 */
90 #endif /* configBSP430_PLATFORM_BUTTON[01] */
91 
92 /* !BSP430! insert=rfem_config platform=exp430fr5739 mcu=msp430fr5739 */
93 /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [rfem_config] */
94 #if (configBSP430_RFEM - 0)
95 #define BSP430_RFEM_SERIAL_PERIPH_CPPID BSP430_PERIPH_CPPID_EUSCI_B0
96 #define configBSP430_SERIAL_ENABLE_SPI 1
97 #define configBSP430_HAL_EUSCI_B0 1
98 #define BSP430_RFEM_RF1P3_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT2
99 #define BSP430_RFEM_RF1P3_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TA1
100 #define BSP430_RFEM_RF1P5_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
101 #define BSP430_RFEM_RF1P5_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TA0
102 #define BSP430_RFEM_RF1P6_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
103 #define BSP430_RFEM_RF1P6_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TA0
104 #define BSP430_RFEM_RF1P7_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
105 #define BSP430_RFEM_RF1P7_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TA0
106 #define BSP430_RFEM_RF1P8_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
107 #define BSP430_RFEM_RF1P8_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TA1
108 #define BSP430_RFEM_RF1P9_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
109 #define BSP430_RFEM_RF1P9_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TA1
110 #define BSP430_RFEM_RF1P10_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT4
111 #define BSP430_RFEM_RF1P12_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT2
112 #define BSP430_RFEM_RF1P12_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TA0
113 #define BSP430_RFEM_RF1P14_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
114 #define BSP430_RFEM_RF1P14_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TA1
115 #define BSP430_RFEM_RF1P16_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT2
116 #define BSP430_RFEM_RF1P16_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TB2
117 #define BSP430_RFEM_RF1P18_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
118 #define BSP430_RFEM_RF1P18_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TB1
119 #define BSP430_RFEM_RF1P20_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
120 #define BSP430_RFEM_RF1P20_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TB1
121 #define BSP430_RFEM_RF2P13_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT2
122 #define BSP430_RFEM_RF2P13_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TB2
123 #define BSP430_RFEM_RF2P15_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
124 #define BSP430_RFEM_RF2P15_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TA0
125 #define BSP430_RFEM_RF2P18_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT2
126 #define BSP430_RFEM_RF2P19_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT4
127 #define BSP430_RFEM_RF2P19_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TB2
128 #define BSP430_RFEM_RF2P20_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT3
129 #define BSP430_RFEM_RF2P20_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TB2
130 #define BSP430_RFEM_RF3P3_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT2
131 #define BSP430_RFEM_RF3P3_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TB2
132 #define BSP430_RFEM_RF3P4_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
133 #define BSP430_RFEM_RF3P4_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TA0
134 #define BSP430_RFEM_RF3P5_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT2
135 #define BSP430_RFEM_RF3P5_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TB1
136 #define BSP430_RFEM_RF3P7_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT2
137 #define BSP430_RFEM_RF3P7_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TB0
138 #define BSP430_RFEM_RF3P8_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
139 #define BSP430_RFEM_RF3P8_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TA1
140 #define BSP430_RFEM_RF3P9_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT2
141 #define BSP430_RFEM_RF3P10_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT2
142 #define BSP430_RFEM_RF3P10_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TA0
143 #define BSP430_RFEM_RF3P11_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT4
144 #define BSP430_RFEM_RF3P11_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TB2
145 #define BSP430_RFEM_RF3P13_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT4
146 #define BSP430_RFEM_RF3P14_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT2
147 #define BSP430_RFEM_RF3P14_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TA1
148 #define BSP430_RFEM_RF3P15_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
149 #define BSP430_RFEM_RF3P15_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TB1
150 #define BSP430_RFEM_RF3P16_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT2
151 #define BSP430_RFEM_RF3P16_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TB2
152 #define BSP430_RFEM_RF3P17_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
153 #define BSP430_RFEM_RF3P17_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TA1
154 #define BSP430_RFEM_RF3P18_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
155 #define BSP430_RFEM_RF3P18_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TB1
156 #endif /* configBSP430_RFEM */
157 /* END AUTOMATICALLY GENERATED CODE [rfem_config] */
158 /* !BSP430! end=rfem_config */
159 
162 #endif /* BSP430_PLATFORM_EXP430FR5739_BSP430_CONFIG_H */