BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
platform.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 
54 #ifndef BSP430_PLATFORM_EXP430FR5739_PLATFORM_H
55 #define BSP430_PLATFORM_EXP430FR5739_PLATFORM_H
56 
59 #define BSP430_PLATFORM_EXP430FR5739 1
60 
63 /* Enable if requested */
64 #if (configBSP430_PLATFORM_SPIN_FOR_JUMPER - 0)
65 #define BSP430_PLATFORM_SPIN_FOR_JUMPER 1
66 #endif /* configBSP430_PLATFORM_SPIN_FOR_JUMPER */
67 
68 /* Available button definitions */
69 #define BSP430_PLATFORM_BUTTON0_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
70 #define BSP430_PLATFORM_BUTTON0_PORT_BIT BIT0
71 #define BSP430_PLATFORM_BUTTON1_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
72 #define BSP430_PLATFORM_BUTTON1_PORT_BIT BIT1
73 
74 /* Standard LED colors. Board has nothing but eight blue LEDs, so
75  * assign the first two to the red and green functions,
76  * respectively. */
77 #define BSP430_LED_RED 0
78 #define BSP430_LED_GREEN 1
79 #define BSP430_LED_BLUE 2
80 #define BSP430_LED_BLUE1 3
81 #define BSP430_LED_BLUE2 4
82 #define BSP430_LED_BLUE3 5
83 #define BSP430_LED_BLUE4 6
84 #define BSP430_LED_BLUE5 7
85 
86 /* How to use ACLK as a capture/compare input source */
87 /* Settings for TA1: T1A2 ccis=1 ; clk P1.1 ; cc0 P1.7 ; cc1 P1.2 */
88 #ifndef BSP430_TIMER_CCACLK_ACLK_CCIDX
89 /* NB: Check against BSP430_TIMER_CCACLK_PERIPH_CPPID in bsp430_config.h */
90 #define BSP430_TIMER_CCACLK_ACLK_CCIDX 2
91 #endif /* BSP430_TIMER_CCACLK_ACLK_CCIDX */
92 #ifndef BSP430_TIMER_CCACLK_ACLK_CCIS
93 /* NB: Check against BSP430_TIMER_CCACLK_PERIPH_CPPID in bsp430_config.h */
94 #define BSP430_TIMER_CCACLK_ACLK_CCIS CCIS_1
95 #endif /* BSP430_TIMER_CCACLK_ACLK_CCIS */
96 #ifndef BSP430_TIMER_CCACLK_CLK_PORT_BIT
97 /* NB: Check against BSP430_TIMER_CCACLK_CLK_PORT_PERIPH_CPPID in bsp430_config.h */
98 #define BSP430_TIMER_CCACLK_CLK_PORT_BIT BIT1
99 #endif /* BSP430_TIMER_CCACLK_CLK_PORT_BIT */
100 #ifndef BSP430_TIMER_CCACLK_CC0_PORT_BIT
101 /* NB: Check against BSP430_TIMER_CCACLK_CC0_PORT_PERIPH_CPPID in bsp430_config.h */
102 #define BSP430_TIMER_CCACLK_CC0_PORT_BIT BIT7
103 #endif /* BSP430_TIMER_CCACLK_CC0_PORT_BIT */
104 #ifndef BSP430_TIMER_CCACLK_CC1_PORT_BIT
105 /* NB: Check against BSP430_TIMER_CCACLK_CC1_PORT_PERIPH_CPPID in bsp430_config.h */
106 #define BSP430_TIMER_CCACLK_CC1_PORT_BIT BIT2
107 #endif /* BSP430_TIMER_CCACLK_CC1_PORT_BIT */
108 
109 /* !BSP430! insert=rfem_platform platform=exp430fr5739 mcu=msp430fr5739 */
110 /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [rfem_platform] */
111 #if (configBSP430_RFEM - 0)
112 #define BSP430_RFEM 1
113 #endif /* configBSP430_RFEM */
114 #if (BSP430_RFEM - 0)
115 #define BSP430_RFEM_SERIAL_PERIPH_HANDLE BSP430_PERIPH_EUSCI_B0
116 #define BSP430_RFEM_RF1P3_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
117 #define BSP430_RFEM_RF1P3_PORT_BIT BIT4
118 #define BSP430_RFEM_RF1P3_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
119 #define BSP430_RFEM_RF1P3_TIMER_CCIDX 0
120 #define BSP430_RFEM_RF1P3_TIMER_CCIS CCIS_1
121 #define BSP430_RFEM_RF1P5_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
122 #define BSP430_RFEM_RF1P5_PORT_BIT BIT0
123 #define BSP430_RFEM_RF1P5_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
124 #define BSP430_RFEM_RF1P5_TIMER_CCIDX 1
125 #define BSP430_RFEM_RF1P5_TIMER_CCIS CCIS_0
126 #define BSP430_RFEM_RF1P6_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
127 #define BSP430_RFEM_RF1P6_PORT_BIT BIT1
128 #define BSP430_RFEM_RF1P6_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
129 #define BSP430_RFEM_RF1P6_TIMER_CCIDX 2
130 #define BSP430_RFEM_RF1P6_TIMER_CCIS CCIS_0
131 #define BSP430_RFEM_RF1P7_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
132 #define BSP430_RFEM_RF1P7_PORT_BIT BIT1
133 #define BSP430_RFEM_RF1P7_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
134 #define BSP430_RFEM_RF1P7_TIMER_CCIDX 2
135 #define BSP430_RFEM_RF1P7_TIMER_CCIS CCIS_0
136 #define BSP430_RFEM_RF1P8_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
137 #define BSP430_RFEM_RF1P8_PORT_BIT BIT2
138 #define BSP430_RFEM_RF1P8_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
139 #define BSP430_RFEM_RF1P8_TIMER_CCIDX 1
140 #define BSP430_RFEM_RF1P8_TIMER_CCIS CCIS_0
141 #define BSP430_RFEM_RF1P9_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
142 #define BSP430_RFEM_RF1P9_PORT_BIT BIT2
143 #define BSP430_RFEM_RF1P9_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
144 #define BSP430_RFEM_RF1P9_TIMER_CCIDX 1
145 #define BSP430_RFEM_RF1P9_TIMER_CCIS CCIS_0
146 #define BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
147 #define BSP430_RFEM_RF1P10_PORT_BIT BIT1
148 #define BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
149 #define BSP430_RFEM_RF1P12_PORT_BIT BIT3
150 #define BSP430_RFEM_RF1P12_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
151 #define BSP430_RFEM_RF1P12_TIMER_CCIDX 0
152 #define BSP430_RFEM_RF1P12_TIMER_CCIS CCIS_1
153 #define BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
154 #define BSP430_RFEM_RF1P14_PORT_BIT BIT3
155 #define BSP430_RFEM_RF1P14_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
156 #define BSP430_RFEM_RF1P14_TIMER_CCIDX 2
157 #define BSP430_RFEM_RF1P14_TIMER_CCIS CCIS_0
158 #define BSP430_RFEM_RF1P16_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
159 #define BSP430_RFEM_RF1P16_PORT_BIT BIT2
160 #define BSP430_RFEM_RF1P16_TIMER_PERIPH_HANDLE BSP430_PERIPH_TB2
161 #define BSP430_RFEM_RF1P16_TIMER_CCIDX 2
162 #define BSP430_RFEM_RF1P16_TIMER_CCIS CCIS_0
163 #define BSP430_RFEM_RF1P18_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
164 #define BSP430_RFEM_RF1P18_PORT_BIT BIT6
165 #define BSP430_RFEM_RF1P18_TIMER_PERIPH_HANDLE BSP430_PERIPH_TB1
166 #define BSP430_RFEM_RF1P18_TIMER_CCIDX 1
167 #define BSP430_RFEM_RF1P18_TIMER_CCIS CCIS_0
168 #define BSP430_RFEM_RF1P20_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
169 #define BSP430_RFEM_RF1P20_PORT_BIT BIT7
170 #define BSP430_RFEM_RF1P20_TIMER_PERIPH_HANDLE BSP430_PERIPH_TB1
171 #define BSP430_RFEM_RF1P20_TIMER_CCIDX 2
172 #define BSP430_RFEM_RF1P20_TIMER_CCIS CCIS_0
173 #define BSP430_RFEM_RF2P13_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
174 #define BSP430_RFEM_RF2P13_PORT_BIT BIT0
175 #define BSP430_RFEM_RF2P13_TIMER_PERIPH_HANDLE BSP430_PERIPH_TB2
176 #define BSP430_RFEM_RF2P13_TIMER_CCIDX 0
177 #define BSP430_RFEM_RF2P13_TIMER_CCIS CCIS_0
178 #define BSP430_RFEM_RF2P15_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
179 #define BSP430_RFEM_RF2P15_PORT_BIT BIT0
180 #define BSP430_RFEM_RF2P15_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
181 #define BSP430_RFEM_RF2P15_TIMER_CCIDX 1
182 #define BSP430_RFEM_RF2P15_TIMER_CCIS CCIS_0
183 #define BSP430_RFEM_RF2P18_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
184 #define BSP430_RFEM_RF2P18_PORT_BIT BIT7
185 #define BSP430_RFEM_RF2P19_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
186 #define BSP430_RFEM_RF2P19_PORT_BIT BIT0
187 #define BSP430_RFEM_RF2P19_TIMER_PERIPH_HANDLE BSP430_PERIPH_TB2
188 #define BSP430_RFEM_RF2P19_TIMER_CCIDX 0
189 #define BSP430_RFEM_RF2P19_TIMER_CCIS CCIS_1
190 #define BSP430_RFEM_RF2P20_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
191 #define BSP430_RFEM_RF2P20_PORT_BIT BIT7
192 #define BSP430_RFEM_RF2P20_TIMER_PERIPH_HANDLE BSP430_PERIPH_TB2
193 #define BSP430_RFEM_RF2P20_TIMER_CCIDX 2
194 #define BSP430_RFEM_RF2P20_TIMER_CCIS CCIS_1
195 #define BSP430_RFEM_RF3P3_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
196 #define BSP430_RFEM_RF3P3_PORT_BIT BIT0
197 #define BSP430_RFEM_RF3P3_TIMER_PERIPH_HANDLE BSP430_PERIPH_TB2
198 #define BSP430_RFEM_RF3P3_TIMER_CCIDX 0
199 #define BSP430_RFEM_RF3P3_TIMER_CCIS CCIS_0
200 #define BSP430_RFEM_RF3P4_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
201 #define BSP430_RFEM_RF3P4_PORT_BIT BIT0
202 #define BSP430_RFEM_RF3P4_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
203 #define BSP430_RFEM_RF3P4_TIMER_CCIDX 1
204 #define BSP430_RFEM_RF3P4_TIMER_CCIS CCIS_0
205 #define BSP430_RFEM_RF3P5_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
206 #define BSP430_RFEM_RF3P5_PORT_BIT BIT6
207 #define BSP430_RFEM_RF3P5_TIMER_PERIPH_HANDLE BSP430_PERIPH_TB1
208 #define BSP430_RFEM_RF3P5_TIMER_CCIDX 0
209 #define BSP430_RFEM_RF3P5_TIMER_CCIS CCIS_1
210 #define BSP430_RFEM_RF3P7_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
211 #define BSP430_RFEM_RF3P7_PORT_BIT BIT5
212 #define BSP430_RFEM_RF3P7_TIMER_PERIPH_HANDLE BSP430_PERIPH_TB0
213 #define BSP430_RFEM_RF3P7_TIMER_CCIDX 0
214 #define BSP430_RFEM_RF3P7_TIMER_CCIS CCIS_1
215 #define BSP430_RFEM_RF3P8_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
216 #define BSP430_RFEM_RF3P8_PORT_BIT BIT2
217 #define BSP430_RFEM_RF3P8_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
218 #define BSP430_RFEM_RF3P8_TIMER_CCIDX 1
219 #define BSP430_RFEM_RF3P8_TIMER_CCIS CCIS_0
220 #define BSP430_RFEM_RF3P9_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
221 #define BSP430_RFEM_RF3P9_PORT_BIT BIT7
222 #define BSP430_RFEM_RF3P10_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
223 #define BSP430_RFEM_RF3P10_PORT_BIT BIT3
224 #define BSP430_RFEM_RF3P10_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
225 #define BSP430_RFEM_RF3P10_TIMER_CCIDX 0
226 #define BSP430_RFEM_RF3P10_TIMER_CCIS CCIS_1
227 #define BSP430_RFEM_RF3P11_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
228 #define BSP430_RFEM_RF3P11_PORT_BIT BIT0
229 #define BSP430_RFEM_RF3P11_TIMER_PERIPH_HANDLE BSP430_PERIPH_TB2
230 #define BSP430_RFEM_RF3P11_TIMER_CCIDX 0
231 #define BSP430_RFEM_RF3P11_TIMER_CCIS CCIS_1
232 #define BSP430_RFEM_RF3P13_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
233 #define BSP430_RFEM_RF3P13_PORT_BIT BIT1
234 #define BSP430_RFEM_RF3P14_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
235 #define BSP430_RFEM_RF3P14_PORT_BIT BIT4
236 #define BSP430_RFEM_RF3P14_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
237 #define BSP430_RFEM_RF3P14_TIMER_CCIDX 0
238 #define BSP430_RFEM_RF3P14_TIMER_CCIS CCIS_1
239 #define BSP430_RFEM_RF3P15_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
240 #define BSP430_RFEM_RF3P15_PORT_BIT BIT7
241 #define BSP430_RFEM_RF3P15_TIMER_PERIPH_HANDLE BSP430_PERIPH_TB1
242 #define BSP430_RFEM_RF3P15_TIMER_CCIDX 2
243 #define BSP430_RFEM_RF3P15_TIMER_CCIS CCIS_0
244 #define BSP430_RFEM_RF3P16_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
245 #define BSP430_RFEM_RF3P16_PORT_BIT BIT2
246 #define BSP430_RFEM_RF3P16_TIMER_PERIPH_HANDLE BSP430_PERIPH_TB2
247 #define BSP430_RFEM_RF3P16_TIMER_CCIDX 2
248 #define BSP430_RFEM_RF3P16_TIMER_CCIS CCIS_0
249 #define BSP430_RFEM_RF3P17_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
250 #define BSP430_RFEM_RF3P17_PORT_BIT BIT3
251 #define BSP430_RFEM_RF3P17_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
252 #define BSP430_RFEM_RF3P17_TIMER_CCIDX 2
253 #define BSP430_RFEM_RF3P17_TIMER_CCIS CCIS_0
254 #define BSP430_RFEM_RF3P18_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
255 #define BSP430_RFEM_RF3P18_PORT_BIT BIT6
256 #define BSP430_RFEM_RF3P18_TIMER_PERIPH_HANDLE BSP430_PERIPH_TB1
257 #define BSP430_RFEM_RF3P18_TIMER_CCIDX 1
258 #define BSP430_RFEM_RF3P18_TIMER_CCIS CCIS_0
259 #endif /* BSP430_RFEM */
260 /* END AUTOMATICALLY GENERATED CODE [rfem_platform] */
261 /* !BSP430! end=rfem_platform */
262 
265 /* Include generic file, in case this is being included directly */
266 #include <bsp430/platform.h>
267 
268 #endif /* BSP430_PLATFORM_EXP430FR5739_H */
Entrypoint for platform-specific capabilities.