BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
emk_bsp430_config.h
Go to the documentation of this file.
1 /* Copyright 2013-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 
47 #ifndef BSP430_RF_EMKBSP430CONFIG_H
48 #define BSP430_RF_EMKBSP430CONFIG_H
49 
50 #if (configBSP430_RF_TIMER - 0)
51 #ifndef BSP430_RF_TIMER_PERIPH_CPPID
52 /* Default timer used for GPIOs in all RFEM connectors is TA0 */
53 #define BSP430_RF_TIMER_PERIPH_CPPID BSP430_PERIPH_CPPID_TA0
54 #endif /* BSP430_RF_TIMER_PERIPH_CPPID */
55 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_TIMER_PERIPH_CPPID
56 #define BSP430_WANT_CONFIG_HAL_ISR 1
57 #include <bsp430/periph/want_.h>
58 #undef BSP430_WANT_CONFIG_HAL_ISR
59 #undef BSP430_WANT_PERIPH_CPPID
60 #endif /* configBSP430_RF_TIMER */
61 
62 /* !BSP430! insert=emk_config emk=cc110xemk tag=cc110x hal=CSn gpio=GDO0,GDO1,GDO2 */
63 /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [emk_config] */
64 #if (configBSP430_RF_CC110XEMK - 0)
65 #if defined(BSP430_RFEM_RF1P10_PORT_PERIPH_CPPID)
66 #define BSP430_RF_CC110X_GDO0_PORT_PERIPH_CPPID BSP430_RFEM_RF1P10_PORT_PERIPH_CPPID
67 #endif /* BSP430_RFEM_RF1P10_PORT_PERIPH_CPPID */
68 #if defined(BSP430_RFEM_RF1P10_TIMER_PERIPH_CPPID)
69 #define BSP430_RF_CC110X_GDO0_TIMER_PERIPH_CPPID BSP430_RFEM_RF1P10_TIMER_PERIPH_CPPID
70 #endif /* BSP430_RFEM_RF1P10_TIMER_PERIPH_CPPID */
71 #if defined(BSP430_RFEM_RF1P20_PORT_PERIPH_CPPID)
72 #define BSP430_RF_CC110X_GDO1_PORT_PERIPH_CPPID BSP430_RFEM_RF1P20_PORT_PERIPH_CPPID
73 #endif /* BSP430_RFEM_RF1P20_PORT_PERIPH_CPPID */
74 #if defined(BSP430_RFEM_RF1P20_TIMER_PERIPH_CPPID)
75 #define BSP430_RF_CC110X_GDO1_TIMER_PERIPH_CPPID BSP430_RFEM_RF1P20_TIMER_PERIPH_CPPID
76 #endif /* BSP430_RFEM_RF1P20_TIMER_PERIPH_CPPID */
77 #if defined(BSP430_RFEM_RF1P12_PORT_PERIPH_CPPID)
78 #define BSP430_RF_CC110X_GDO2_PORT_PERIPH_CPPID BSP430_RFEM_RF1P12_PORT_PERIPH_CPPID
79 #endif /* BSP430_RFEM_RF1P12_PORT_PERIPH_CPPID */
80 #if defined(BSP430_RFEM_RF1P12_TIMER_PERIPH_CPPID)
81 #define BSP430_RF_CC110X_GDO2_TIMER_PERIPH_CPPID BSP430_RFEM_RF1P12_TIMER_PERIPH_CPPID
82 #endif /* BSP430_RFEM_RF1P12_TIMER_PERIPH_CPPID */
83 #if defined(BSP430_RFEM_RF1P14_PORT_PERIPH_CPPID)
84 #define BSP430_RF_CC110X_CSn_PORT_PERIPH_CPPID BSP430_RFEM_RF1P14_PORT_PERIPH_CPPID
85 #endif /* BSP430_RFEM_RF1P14_PORT_PERIPH_CPPID */
86 /* Request HAL (and HPL) for all GPIO and HAL-enabled ports */
87 #define BSP430_WANT_CONFIG_HAL 1
88 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC110X_GDO0_PORT_PERIPH_CPPID
89 #include <bsp430/periph/want_.h>
90 #undef BSP430_WANT_PERIPH_CPPID
91 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC110X_GDO1_PORT_PERIPH_CPPID
92 #include <bsp430/periph/want_.h>
93 #undef BSP430_WANT_PERIPH_CPPID
94 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC110X_GDO2_PORT_PERIPH_CPPID
95 #include <bsp430/periph/want_.h>
96 #undef BSP430_WANT_PERIPH_CPPID
97 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC110X_CSn_PORT_PERIPH_CPPID
98 #include <bsp430/periph/want_.h>
99 #undef BSP430_WANT_PERIPH_CPPID
100 #undef BSP430_WANT_CONFIG_HAL
101 /* Request HAL for GPIO timers */
102 #define BSP430_WANT_CONFIG_HAL 1
103 
104 #if (configBSP430_RF_TIMER - 0) && defined(BSP430_RF_CC110X_GDO0_TIMER_PERIPH_CPPID)
105 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC110X_GDO0_TIMER_PERIPH_CPPID
106 #if 0 == BSP430_RF_CC110X_GDO0_TIMER_CCIDX
107 #define BSP430_WANT_CONFIG_HAL_CC0_ISR 1
108 #else /* BSP430_RF_CC110X_GDO0_TIMER_CCIDX */
109 #define BSP430_WANT_CONFIG_HAL_ISR 1
110 #endif /* BSP430_RF_CC110X_GDO0_TIMER_CCIDX */
111 #include <bsp430/periph/want_.h>
112 #undef BSP430_WANT_CONFIG_HAL_ISR
113 #undef BSP430_WANT_CONFIG_HAL_CC0_ISR
114 #undef BSP430_WANT_PERIPH_CPPID
115 #endif /* BSP430_RF_CC110X_GDO0 timer */
116 
117 #if (configBSP430_RF_TIMER - 0) && defined(BSP430_RF_CC110X_GDO1_TIMER_PERIPH_CPPID)
118 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC110X_GDO1_TIMER_PERIPH_CPPID
119 #if 0 == BSP430_RF_CC110X_GDO1_TIMER_CCIDX
120 #define BSP430_WANT_CONFIG_HAL_CC0_ISR 1
121 #else /* BSP430_RF_CC110X_GDO1_TIMER_CCIDX */
122 #define BSP430_WANT_CONFIG_HAL_ISR 1
123 #endif /* BSP430_RF_CC110X_GDO1_TIMER_CCIDX */
124 #include <bsp430/periph/want_.h>
125 #undef BSP430_WANT_CONFIG_HAL_ISR
126 #undef BSP430_WANT_CONFIG_HAL_CC0_ISR
127 #undef BSP430_WANT_PERIPH_CPPID
128 #endif /* BSP430_RF_CC110X_GDO1 timer */
129 
130 #if (configBSP430_RF_TIMER - 0) && defined(BSP430_RF_CC110X_GDO2_TIMER_PERIPH_CPPID)
131 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC110X_GDO2_TIMER_PERIPH_CPPID
132 #if 0 == BSP430_RF_CC110X_GDO2_TIMER_CCIDX
133 #define BSP430_WANT_CONFIG_HAL_CC0_ISR 1
134 #else /* BSP430_RF_CC110X_GDO2_TIMER_CCIDX */
135 #define BSP430_WANT_CONFIG_HAL_ISR 1
136 #endif /* BSP430_RF_CC110X_GDO2_TIMER_CCIDX */
137 #include <bsp430/periph/want_.h>
138 #undef BSP430_WANT_CONFIG_HAL_ISR
139 #undef BSP430_WANT_CONFIG_HAL_CC0_ISR
140 #undef BSP430_WANT_PERIPH_CPPID
141 #endif /* BSP430_RF_CC110X_GDO2 timer */
142 #undef BSP430_WANT_CONFIG_HAL
143 #endif /* configBSP430_RF_CC110XEMK */
144 /* END AUTOMATICALLY GENERATED CODE [emk_config] */
145 /* !BSP430! end=emk_config */
146 /* !BSP430! insert=emk_config emk=cc1125emk tag=cc1125 hal=CSn gpio=GPIO0,GPIO1,GPIO2,GPIO3 */
147 /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [emk_config] */
148 #if (configBSP430_RF_CC1125EMK - 0)
149 #if defined(BSP430_RFEM_RF1P10_PORT_PERIPH_CPPID)
150 #define BSP430_RF_CC1125_GPIO0_PORT_PERIPH_CPPID BSP430_RFEM_RF1P10_PORT_PERIPH_CPPID
151 #endif /* BSP430_RFEM_RF1P10_PORT_PERIPH_CPPID */
152 #if defined(BSP430_RFEM_RF1P10_TIMER_PERIPH_CPPID)
153 #define BSP430_RF_CC1125_GPIO0_TIMER_PERIPH_CPPID BSP430_RFEM_RF1P10_TIMER_PERIPH_CPPID
154 #endif /* BSP430_RFEM_RF1P10_TIMER_PERIPH_CPPID */
155 #if defined(BSP430_RFEM_RF1P20_PORT_PERIPH_CPPID)
156 #define BSP430_RF_CC1125_GPIO1_PORT_PERIPH_CPPID BSP430_RFEM_RF1P20_PORT_PERIPH_CPPID
157 #endif /* BSP430_RFEM_RF1P20_PORT_PERIPH_CPPID */
158 #if defined(BSP430_RFEM_RF1P20_TIMER_PERIPH_CPPID)
159 #define BSP430_RF_CC1125_GPIO1_TIMER_PERIPH_CPPID BSP430_RFEM_RF1P20_TIMER_PERIPH_CPPID
160 #endif /* BSP430_RFEM_RF1P20_TIMER_PERIPH_CPPID */
161 #if defined(BSP430_RFEM_RF1P12_PORT_PERIPH_CPPID)
162 #define BSP430_RF_CC1125_GPIO2_PORT_PERIPH_CPPID BSP430_RFEM_RF1P12_PORT_PERIPH_CPPID
163 #endif /* BSP430_RFEM_RF1P12_PORT_PERIPH_CPPID */
164 #if defined(BSP430_RFEM_RF1P12_TIMER_PERIPH_CPPID)
165 #define BSP430_RF_CC1125_GPIO2_TIMER_PERIPH_CPPID BSP430_RFEM_RF1P12_TIMER_PERIPH_CPPID
166 #endif /* BSP430_RFEM_RF1P12_TIMER_PERIPH_CPPID */
167 #if defined(BSP430_RFEM_RF1P14_PORT_PERIPH_CPPID)
168 #define BSP430_RF_CC1125_CSn_PORT_PERIPH_CPPID BSP430_RFEM_RF1P14_PORT_PERIPH_CPPID
169 #endif /* BSP430_RFEM_RF1P14_PORT_PERIPH_CPPID */
170 #if defined(BSP430_RFEM_RF2P15_PORT_PERIPH_CPPID)
171 #define BSP430_RF_CC1125_RESETn_PORT_PERIPH_CPPID BSP430_RFEM_RF2P15_PORT_PERIPH_CPPID
172 #endif /* BSP430_RFEM_RF2P15_PORT_PERIPH_CPPID */
173 #if defined(BSP430_RFEM_RF2P18_PORT_PERIPH_CPPID)
174 #define BSP430_RF_CC1125_GPIO3_PORT_PERIPH_CPPID BSP430_RFEM_RF2P18_PORT_PERIPH_CPPID
175 #endif /* BSP430_RFEM_RF2P18_PORT_PERIPH_CPPID */
176 #if defined(BSP430_RFEM_RF2P18_TIMER_PERIPH_CPPID)
177 #define BSP430_RF_CC1125_GPIO3_TIMER_PERIPH_CPPID BSP430_RFEM_RF2P18_TIMER_PERIPH_CPPID
178 #endif /* BSP430_RFEM_RF2P18_TIMER_PERIPH_CPPID */
179 /* Request HAL (and HPL) for all GPIO and HAL-enabled ports */
180 #define BSP430_WANT_CONFIG_HAL 1
181 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC1125_GPIO0_PORT_PERIPH_CPPID
182 #include <bsp430/periph/want_.h>
183 #undef BSP430_WANT_PERIPH_CPPID
184 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC1125_GPIO1_PORT_PERIPH_CPPID
185 #include <bsp430/periph/want_.h>
186 #undef BSP430_WANT_PERIPH_CPPID
187 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC1125_GPIO2_PORT_PERIPH_CPPID
188 #include <bsp430/periph/want_.h>
189 #undef BSP430_WANT_PERIPH_CPPID
190 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC1125_CSn_PORT_PERIPH_CPPID
191 #include <bsp430/periph/want_.h>
192 #undef BSP430_WANT_PERIPH_CPPID
193 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC1125_GPIO3_PORT_PERIPH_CPPID
194 #include <bsp430/periph/want_.h>
195 #undef BSP430_WANT_PERIPH_CPPID
196 #undef BSP430_WANT_CONFIG_HAL
197 /* Request HPL for all non-GPIO ports */
198 #define BSP430_WANT_CONFIG_HPL 1
199 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC1125_RESETn_PORT_PERIPH_CPPID
200 #include <bsp430/periph/want_.h>
201 #undef BSP430_WANT_PERIPH_CPPID
202 #undef BSP430_WANT_CONFIG_HPL
203 /* Request HAL for GPIO timers */
204 #define BSP430_WANT_CONFIG_HAL 1
205 
206 #if (configBSP430_RF_TIMER - 0) && defined(BSP430_RF_CC1125_GPIO0_TIMER_PERIPH_CPPID)
207 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC1125_GPIO0_TIMER_PERIPH_CPPID
208 #if 0 == BSP430_RF_CC1125_GPIO0_TIMER_CCIDX
209 #define BSP430_WANT_CONFIG_HAL_CC0_ISR 1
210 #else /* BSP430_RF_CC1125_GPIO0_TIMER_CCIDX */
211 #define BSP430_WANT_CONFIG_HAL_ISR 1
212 #endif /* BSP430_RF_CC1125_GPIO0_TIMER_CCIDX */
213 #include <bsp430/periph/want_.h>
214 #undef BSP430_WANT_CONFIG_HAL_ISR
215 #undef BSP430_WANT_CONFIG_HAL_CC0_ISR
216 #undef BSP430_WANT_PERIPH_CPPID
217 #endif /* BSP430_RF_CC1125_GPIO0 timer */
218 
219 #if (configBSP430_RF_TIMER - 0) && defined(BSP430_RF_CC1125_GPIO1_TIMER_PERIPH_CPPID)
220 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC1125_GPIO1_TIMER_PERIPH_CPPID
221 #if 0 == BSP430_RF_CC1125_GPIO1_TIMER_CCIDX
222 #define BSP430_WANT_CONFIG_HAL_CC0_ISR 1
223 #else /* BSP430_RF_CC1125_GPIO1_TIMER_CCIDX */
224 #define BSP430_WANT_CONFIG_HAL_ISR 1
225 #endif /* BSP430_RF_CC1125_GPIO1_TIMER_CCIDX */
226 #include <bsp430/periph/want_.h>
227 #undef BSP430_WANT_CONFIG_HAL_ISR
228 #undef BSP430_WANT_CONFIG_HAL_CC0_ISR
229 #undef BSP430_WANT_PERIPH_CPPID
230 #endif /* BSP430_RF_CC1125_GPIO1 timer */
231 
232 #if (configBSP430_RF_TIMER - 0) && defined(BSP430_RF_CC1125_GPIO2_TIMER_PERIPH_CPPID)
233 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC1125_GPIO2_TIMER_PERIPH_CPPID
234 #if 0 == BSP430_RF_CC1125_GPIO2_TIMER_CCIDX
235 #define BSP430_WANT_CONFIG_HAL_CC0_ISR 1
236 #else /* BSP430_RF_CC1125_GPIO2_TIMER_CCIDX */
237 #define BSP430_WANT_CONFIG_HAL_ISR 1
238 #endif /* BSP430_RF_CC1125_GPIO2_TIMER_CCIDX */
239 #include <bsp430/periph/want_.h>
240 #undef BSP430_WANT_CONFIG_HAL_ISR
241 #undef BSP430_WANT_CONFIG_HAL_CC0_ISR
242 #undef BSP430_WANT_PERIPH_CPPID
243 #endif /* BSP430_RF_CC1125_GPIO2 timer */
244 
245 #if (configBSP430_RF_TIMER - 0) && defined(BSP430_RF_CC1125_GPIO3_TIMER_PERIPH_CPPID)
246 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC1125_GPIO3_TIMER_PERIPH_CPPID
247 #if 0 == BSP430_RF_CC1125_GPIO3_TIMER_CCIDX
248 #define BSP430_WANT_CONFIG_HAL_CC0_ISR 1
249 #else /* BSP430_RF_CC1125_GPIO3_TIMER_CCIDX */
250 #define BSP430_WANT_CONFIG_HAL_ISR 1
251 #endif /* BSP430_RF_CC1125_GPIO3_TIMER_CCIDX */
252 #include <bsp430/periph/want_.h>
253 #undef BSP430_WANT_CONFIG_HAL_ISR
254 #undef BSP430_WANT_CONFIG_HAL_CC0_ISR
255 #undef BSP430_WANT_PERIPH_CPPID
256 #endif /* BSP430_RF_CC1125_GPIO3 timer */
257 #undef BSP430_WANT_CONFIG_HAL
258 #endif /* configBSP430_RF_CC1125EMK */
259 /* END AUTOMATICALLY GENERATED CODE [emk_config] */
260 /* !BSP430! end=emk_config */
261 /* !BSP430! insert=emk_config emk=cc2520emk tag=cc2520 hal=CSn gpio=GPIO0,GPIO1,GPIO2,GPIO3,GPIO4,GPIO5 */
262 /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [emk_config] */
263 #if (configBSP430_RF_CC2520EMK - 0)
264 #if defined(BSP430_RFEM_RF1P3_PORT_PERIPH_CPPID)
265 #define BSP430_RF_CC2520_GPIO0_PORT_PERIPH_CPPID BSP430_RFEM_RF1P3_PORT_PERIPH_CPPID
266 #endif /* BSP430_RFEM_RF1P3_PORT_PERIPH_CPPID */
267 #if defined(BSP430_RFEM_RF1P3_TIMER_PERIPH_CPPID)
268 #define BSP430_RF_CC2520_GPIO0_TIMER_PERIPH_CPPID BSP430_RFEM_RF1P3_TIMER_PERIPH_CPPID
269 #endif /* BSP430_RFEM_RF1P3_TIMER_PERIPH_CPPID */
270 #if defined(BSP430_RFEM_RF1P7_PORT_PERIPH_CPPID)
271 #define BSP430_RF_CC2520_GPIO1_PORT_PERIPH_CPPID BSP430_RFEM_RF1P7_PORT_PERIPH_CPPID
272 #endif /* BSP430_RFEM_RF1P7_PORT_PERIPH_CPPID */
273 #if defined(BSP430_RFEM_RF1P7_TIMER_PERIPH_CPPID)
274 #define BSP430_RF_CC2520_GPIO1_TIMER_PERIPH_CPPID BSP430_RFEM_RF1P7_TIMER_PERIPH_CPPID
275 #endif /* BSP430_RFEM_RF1P7_TIMER_PERIPH_CPPID */
276 #if defined(BSP430_RFEM_RF1P9_PORT_PERIPH_CPPID)
277 #define BSP430_RF_CC2520_GPIO2_PORT_PERIPH_CPPID BSP430_RFEM_RF1P9_PORT_PERIPH_CPPID
278 #endif /* BSP430_RFEM_RF1P9_PORT_PERIPH_CPPID */
279 #if defined(BSP430_RFEM_RF1P9_TIMER_PERIPH_CPPID)
280 #define BSP430_RF_CC2520_GPIO2_TIMER_PERIPH_CPPID BSP430_RFEM_RF1P9_TIMER_PERIPH_CPPID
281 #endif /* BSP430_RFEM_RF1P9_TIMER_PERIPH_CPPID */
282 #if defined(BSP430_RFEM_RF1P10_PORT_PERIPH_CPPID)
283 #define BSP430_RF_CC2520_VREG_EN_PORT_PERIPH_CPPID BSP430_RFEM_RF1P10_PORT_PERIPH_CPPID
284 #endif /* BSP430_RFEM_RF1P10_PORT_PERIPH_CPPID */
285 #if defined(BSP430_RFEM_RF1P12_PORT_PERIPH_CPPID)
286 #define BSP430_RF_CC2520_GPIO3_PORT_PERIPH_CPPID BSP430_RFEM_RF1P12_PORT_PERIPH_CPPID
287 #endif /* BSP430_RFEM_RF1P12_PORT_PERIPH_CPPID */
288 #if defined(BSP430_RFEM_RF1P12_TIMER_PERIPH_CPPID)
289 #define BSP430_RF_CC2520_GPIO3_TIMER_PERIPH_CPPID BSP430_RFEM_RF1P12_TIMER_PERIPH_CPPID
290 #endif /* BSP430_RFEM_RF1P12_TIMER_PERIPH_CPPID */
291 #if defined(BSP430_RFEM_RF1P14_PORT_PERIPH_CPPID)
292 #define BSP430_RF_CC2520_CSn_PORT_PERIPH_CPPID BSP430_RFEM_RF1P14_PORT_PERIPH_CPPID
293 #endif /* BSP430_RFEM_RF1P14_PORT_PERIPH_CPPID */
294 #if defined(BSP430_RFEM_RF1P20_PORT_PERIPH_CPPID)
295 #define BSP430_RF_CC2520_SO_PORT_PERIPH_CPPID BSP430_RFEM_RF1P20_PORT_PERIPH_CPPID
296 #endif /* BSP430_RFEM_RF1P20_PORT_PERIPH_CPPID */
297 #if defined(BSP430_RFEM_RF2P15_PORT_PERIPH_CPPID)
298 #define BSP430_RF_CC2520_RESETn_PORT_PERIPH_CPPID BSP430_RFEM_RF2P15_PORT_PERIPH_CPPID
299 #endif /* BSP430_RFEM_RF2P15_PORT_PERIPH_CPPID */
300 #if defined(BSP430_RFEM_RF2P18_PORT_PERIPH_CPPID)
301 #define BSP430_RF_CC2520_GPIO4_PORT_PERIPH_CPPID BSP430_RFEM_RF2P18_PORT_PERIPH_CPPID
302 #endif /* BSP430_RFEM_RF2P18_PORT_PERIPH_CPPID */
303 #if defined(BSP430_RFEM_RF2P18_TIMER_PERIPH_CPPID)
304 #define BSP430_RF_CC2520_GPIO4_TIMER_PERIPH_CPPID BSP430_RFEM_RF2P18_TIMER_PERIPH_CPPID
305 #endif /* BSP430_RFEM_RF2P18_TIMER_PERIPH_CPPID */
306 #if defined(BSP430_RFEM_RF2P19_PORT_PERIPH_CPPID)
307 #define BSP430_RF_CC2520_GPIO5_PORT_PERIPH_CPPID BSP430_RFEM_RF2P19_PORT_PERIPH_CPPID
308 #endif /* BSP430_RFEM_RF2P19_PORT_PERIPH_CPPID */
309 #if defined(BSP430_RFEM_RF2P19_TIMER_PERIPH_CPPID)
310 #define BSP430_RF_CC2520_GPIO5_TIMER_PERIPH_CPPID BSP430_RFEM_RF2P19_TIMER_PERIPH_CPPID
311 #endif /* BSP430_RFEM_RF2P19_TIMER_PERIPH_CPPID */
312 /* Request HAL (and HPL) for all GPIO and HAL-enabled ports */
313 #define BSP430_WANT_CONFIG_HAL 1
314 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_GPIO0_PORT_PERIPH_CPPID
315 #include <bsp430/periph/want_.h>
316 #undef BSP430_WANT_PERIPH_CPPID
317 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_GPIO1_PORT_PERIPH_CPPID
318 #include <bsp430/periph/want_.h>
319 #undef BSP430_WANT_PERIPH_CPPID
320 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_GPIO2_PORT_PERIPH_CPPID
321 #include <bsp430/periph/want_.h>
322 #undef BSP430_WANT_PERIPH_CPPID
323 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_GPIO3_PORT_PERIPH_CPPID
324 #include <bsp430/periph/want_.h>
325 #undef BSP430_WANT_PERIPH_CPPID
326 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_CSn_PORT_PERIPH_CPPID
327 #include <bsp430/periph/want_.h>
328 #undef BSP430_WANT_PERIPH_CPPID
329 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_GPIO4_PORT_PERIPH_CPPID
330 #include <bsp430/periph/want_.h>
331 #undef BSP430_WANT_PERIPH_CPPID
332 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_GPIO5_PORT_PERIPH_CPPID
333 #include <bsp430/periph/want_.h>
334 #undef BSP430_WANT_PERIPH_CPPID
335 #undef BSP430_WANT_CONFIG_HAL
336 /* Request HPL for all non-GPIO ports */
337 #define BSP430_WANT_CONFIG_HPL 1
338 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_VREG_EN_PORT_PERIPH_CPPID
339 #include <bsp430/periph/want_.h>
340 #undef BSP430_WANT_PERIPH_CPPID
341 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_SO_PORT_PERIPH_CPPID
342 #include <bsp430/periph/want_.h>
343 #undef BSP430_WANT_PERIPH_CPPID
344 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_RESETn_PORT_PERIPH_CPPID
345 #include <bsp430/periph/want_.h>
346 #undef BSP430_WANT_PERIPH_CPPID
347 #undef BSP430_WANT_CONFIG_HPL
348 /* Request HAL for GPIO timers */
349 #define BSP430_WANT_CONFIG_HAL 1
350 
351 #if (configBSP430_RF_TIMER - 0) && defined(BSP430_RF_CC2520_GPIO0_TIMER_PERIPH_CPPID)
352 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_GPIO0_TIMER_PERIPH_CPPID
353 #if 0 == BSP430_RF_CC2520_GPIO0_TIMER_CCIDX
354 #define BSP430_WANT_CONFIG_HAL_CC0_ISR 1
355 #else /* BSP430_RF_CC2520_GPIO0_TIMER_CCIDX */
356 #define BSP430_WANT_CONFIG_HAL_ISR 1
357 #endif /* BSP430_RF_CC2520_GPIO0_TIMER_CCIDX */
358 #include <bsp430/periph/want_.h>
359 #undef BSP430_WANT_CONFIG_HAL_ISR
360 #undef BSP430_WANT_CONFIG_HAL_CC0_ISR
361 #undef BSP430_WANT_PERIPH_CPPID
362 #endif /* BSP430_RF_CC2520_GPIO0 timer */
363 
364 #if (configBSP430_RF_TIMER - 0) && defined(BSP430_RF_CC2520_GPIO1_TIMER_PERIPH_CPPID)
365 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_GPIO1_TIMER_PERIPH_CPPID
366 #if 0 == BSP430_RF_CC2520_GPIO1_TIMER_CCIDX
367 #define BSP430_WANT_CONFIG_HAL_CC0_ISR 1
368 #else /* BSP430_RF_CC2520_GPIO1_TIMER_CCIDX */
369 #define BSP430_WANT_CONFIG_HAL_ISR 1
370 #endif /* BSP430_RF_CC2520_GPIO1_TIMER_CCIDX */
371 #include <bsp430/periph/want_.h>
372 #undef BSP430_WANT_CONFIG_HAL_ISR
373 #undef BSP430_WANT_CONFIG_HAL_CC0_ISR
374 #undef BSP430_WANT_PERIPH_CPPID
375 #endif /* BSP430_RF_CC2520_GPIO1 timer */
376 
377 #if (configBSP430_RF_TIMER - 0) && defined(BSP430_RF_CC2520_GPIO2_TIMER_PERIPH_CPPID)
378 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_GPIO2_TIMER_PERIPH_CPPID
379 #if 0 == BSP430_RF_CC2520_GPIO2_TIMER_CCIDX
380 #define BSP430_WANT_CONFIG_HAL_CC0_ISR 1
381 #else /* BSP430_RF_CC2520_GPIO2_TIMER_CCIDX */
382 #define BSP430_WANT_CONFIG_HAL_ISR 1
383 #endif /* BSP430_RF_CC2520_GPIO2_TIMER_CCIDX */
384 #include <bsp430/periph/want_.h>
385 #undef BSP430_WANT_CONFIG_HAL_ISR
386 #undef BSP430_WANT_CONFIG_HAL_CC0_ISR
387 #undef BSP430_WANT_PERIPH_CPPID
388 #endif /* BSP430_RF_CC2520_GPIO2 timer */
389 
390 #if (configBSP430_RF_TIMER - 0) && defined(BSP430_RF_CC2520_GPIO3_TIMER_PERIPH_CPPID)
391 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_GPIO3_TIMER_PERIPH_CPPID
392 #if 0 == BSP430_RF_CC2520_GPIO3_TIMER_CCIDX
393 #define BSP430_WANT_CONFIG_HAL_CC0_ISR 1
394 #else /* BSP430_RF_CC2520_GPIO3_TIMER_CCIDX */
395 #define BSP430_WANT_CONFIG_HAL_ISR 1
396 #endif /* BSP430_RF_CC2520_GPIO3_TIMER_CCIDX */
397 #include <bsp430/periph/want_.h>
398 #undef BSP430_WANT_CONFIG_HAL_ISR
399 #undef BSP430_WANT_CONFIG_HAL_CC0_ISR
400 #undef BSP430_WANT_PERIPH_CPPID
401 #endif /* BSP430_RF_CC2520_GPIO3 timer */
402 
403 #if (configBSP430_RF_TIMER - 0) && defined(BSP430_RF_CC2520_GPIO4_TIMER_PERIPH_CPPID)
404 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_GPIO4_TIMER_PERIPH_CPPID
405 #if 0 == BSP430_RF_CC2520_GPIO4_TIMER_CCIDX
406 #define BSP430_WANT_CONFIG_HAL_CC0_ISR 1
407 #else /* BSP430_RF_CC2520_GPIO4_TIMER_CCIDX */
408 #define BSP430_WANT_CONFIG_HAL_ISR 1
409 #endif /* BSP430_RF_CC2520_GPIO4_TIMER_CCIDX */
410 #include <bsp430/periph/want_.h>
411 #undef BSP430_WANT_CONFIG_HAL_ISR
412 #undef BSP430_WANT_CONFIG_HAL_CC0_ISR
413 #undef BSP430_WANT_PERIPH_CPPID
414 #endif /* BSP430_RF_CC2520_GPIO4 timer */
415 
416 #if (configBSP430_RF_TIMER - 0) && defined(BSP430_RF_CC2520_GPIO5_TIMER_PERIPH_CPPID)
417 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC2520_GPIO5_TIMER_PERIPH_CPPID
418 #if 0 == BSP430_RF_CC2520_GPIO5_TIMER_CCIDX
419 #define BSP430_WANT_CONFIG_HAL_CC0_ISR 1
420 #else /* BSP430_RF_CC2520_GPIO5_TIMER_CCIDX */
421 #define BSP430_WANT_CONFIG_HAL_ISR 1
422 #endif /* BSP430_RF_CC2520_GPIO5_TIMER_CCIDX */
423 #include <bsp430/periph/want_.h>
424 #undef BSP430_WANT_CONFIG_HAL_ISR
425 #undef BSP430_WANT_CONFIG_HAL_CC0_ISR
426 #undef BSP430_WANT_PERIPH_CPPID
427 #endif /* BSP430_RF_CC2520_GPIO5 timer */
428 #undef BSP430_WANT_CONFIG_HAL
429 #endif /* configBSP430_RF_CC2520EMK */
430 /* END AUTOMATICALLY GENERATED CODE [emk_config] */
431 /* !BSP430! end=emk_config */
432 /* !BSP430! insert=emk_config emk=cc3000em tag=cc3000 hal=CSn gpio=IRQn */
433 /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [emk_config] */
434 #if (configBSP430_RF_CC3000EM - 0)
435 #if defined(BSP430_RFEM_RF1P10_PORT_PERIPH_CPPID)
436 #define BSP430_RF_CC3000_PWR_EN_PORT_PERIPH_CPPID BSP430_RFEM_RF1P10_PORT_PERIPH_CPPID
437 #endif /* BSP430_RFEM_RF1P10_PORT_PERIPH_CPPID */
438 #if defined(BSP430_RFEM_RF1P12_PORT_PERIPH_CPPID)
439 #define BSP430_RF_CC3000_IRQn_PORT_PERIPH_CPPID BSP430_RFEM_RF1P12_PORT_PERIPH_CPPID
440 #endif /* BSP430_RFEM_RF1P12_PORT_PERIPH_CPPID */
441 #if defined(BSP430_RFEM_RF1P12_TIMER_PERIPH_CPPID)
442 #define BSP430_RF_CC3000_IRQn_TIMER_PERIPH_CPPID BSP430_RFEM_RF1P12_TIMER_PERIPH_CPPID
443 #endif /* BSP430_RFEM_RF1P12_TIMER_PERIPH_CPPID */
444 #if defined(BSP430_RFEM_RF1P14_PORT_PERIPH_CPPID)
445 #define BSP430_RF_CC3000_CSn_PORT_PERIPH_CPPID BSP430_RFEM_RF1P14_PORT_PERIPH_CPPID
446 #endif /* BSP430_RFEM_RF1P14_PORT_PERIPH_CPPID */
447 /* Request HAL (and HPL) for all GPIO and HAL-enabled ports */
448 #define BSP430_WANT_CONFIG_HAL 1
449 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC3000_IRQn_PORT_PERIPH_CPPID
450 #include <bsp430/periph/want_.h>
451 #undef BSP430_WANT_PERIPH_CPPID
452 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC3000_CSn_PORT_PERIPH_CPPID
453 #include <bsp430/periph/want_.h>
454 #undef BSP430_WANT_PERIPH_CPPID
455 #undef BSP430_WANT_CONFIG_HAL
456 /* Request HPL for all non-GPIO ports */
457 #define BSP430_WANT_CONFIG_HPL 1
458 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC3000_PWR_EN_PORT_PERIPH_CPPID
459 #include <bsp430/periph/want_.h>
460 #undef BSP430_WANT_PERIPH_CPPID
461 #undef BSP430_WANT_CONFIG_HPL
462 /* Request HAL for GPIO timers */
463 #define BSP430_WANT_CONFIG_HAL 1
464 
465 #if (configBSP430_RF_TIMER - 0) && defined(BSP430_RF_CC3000_IRQn_TIMER_PERIPH_CPPID)
466 #define BSP430_WANT_PERIPH_CPPID BSP430_RF_CC3000_IRQn_TIMER_PERIPH_CPPID
467 #if 0 == BSP430_RF_CC3000_IRQn_TIMER_CCIDX
468 #define BSP430_WANT_CONFIG_HAL_CC0_ISR 1
469 #else /* BSP430_RF_CC3000_IRQn_TIMER_CCIDX */
470 #define BSP430_WANT_CONFIG_HAL_ISR 1
471 #endif /* BSP430_RF_CC3000_IRQn_TIMER_CCIDX */
472 #include <bsp430/periph/want_.h>
473 #undef BSP430_WANT_CONFIG_HAL_ISR
474 #undef BSP430_WANT_CONFIG_HAL_CC0_ISR
475 #undef BSP430_WANT_PERIPH_CPPID
476 #endif /* BSP430_RF_CC3000_IRQn timer */
477 #undef BSP430_WANT_CONFIG_HAL
478 #endif /* configBSP430_RF_CC3000EM */
479 /* END AUTOMATICALLY GENERATED CODE [emk_config] */
480 /* !BSP430! end=emk_config */
481 
482 #endif /* BSP430_RF_EMKBSP430CONFIG_H */
Translate functional resource requests to core resource requests.