BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
emk_platform.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 
39 #ifndef BSP430_RF_EMKPLATFORM_H
40 #define BSP430_RF_EMKPLATFORM_H
41 
42 /* !BSP430! insert=emk_platform emk=cc110xemk tag=cc110x hal=CSn gpio=GDO0,GDO1,GDO2 */
43 /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [emk_platform] */
44 #if (configBSP430_RF_CC110XEMK - 0)
45 #define BSP430_RF_CC110X 1
46 #define BSP430_RF_CC110X_SPI_PERIPH_HANDLE BSP430_RFEM_SERIAL_PERIPH_HANDLE
47 #if defined(BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE)
48 #define BSP430_RF_CC110X_GDO0_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE
49 #endif /* BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE */
50 #if defined(BSP430_RFEM_RF1P10_PORT_BIT)
51 #define BSP430_RF_CC110X_GDO0_PORT_BIT BSP430_RFEM_RF1P10_PORT_BIT
52 #endif /* BSP430_RFEM_RF1P10_PORT_BIT */
53 #if defined(BSP430_RFEM_RF1P10_TIMER_PERIPH_HANDLE)
54 #define BSP430_RF_CC110X_GDO0_TIMER_PERIPH_HANDLE BSP430_RFEM_RF1P10_TIMER_PERIPH_HANDLE
55 #endif /* BSP430_RFEM_RF1P10_TIMER_PERIPH_HANDLE */
56 #if defined(BSP430_RFEM_RF1P10_TIMER_CCIDX)
57 #define BSP430_RF_CC110X_GDO0_TIMER_CCIDX BSP430_RFEM_RF1P10_TIMER_CCIDX
58 #endif /* BSP430_RFEM_RF1P10_TIMER_CCIDX */
59 #if defined(BSP430_RFEM_RF1P10_TIMER_CCIS)
60 #define BSP430_RF_CC110X_GDO0_TIMER_CCIS BSP430_RFEM_RF1P10_TIMER_CCIS
61 #endif /* BSP430_RFEM_RF1P10_TIMER_CCIS */
62 #if defined(BSP430_RFEM_RF1P20_PORT_PERIPH_HANDLE)
63 #define BSP430_RF_CC110X_GDO1_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P20_PORT_PERIPH_HANDLE
64 #endif /* BSP430_RFEM_RF1P20_PORT_PERIPH_HANDLE */
65 #if defined(BSP430_RFEM_RF1P20_PORT_BIT)
66 #define BSP430_RF_CC110X_GDO1_PORT_BIT BSP430_RFEM_RF1P20_PORT_BIT
67 #endif /* BSP430_RFEM_RF1P20_PORT_BIT */
68 #if defined(BSP430_RFEM_RF1P20_TIMER_PERIPH_HANDLE)
69 #define BSP430_RF_CC110X_GDO1_TIMER_PERIPH_HANDLE BSP430_RFEM_RF1P20_TIMER_PERIPH_HANDLE
70 #endif /* BSP430_RFEM_RF1P20_TIMER_PERIPH_HANDLE */
71 #if defined(BSP430_RFEM_RF1P20_TIMER_CCIDX)
72 #define BSP430_RF_CC110X_GDO1_TIMER_CCIDX BSP430_RFEM_RF1P20_TIMER_CCIDX
73 #endif /* BSP430_RFEM_RF1P20_TIMER_CCIDX */
74 #if defined(BSP430_RFEM_RF1P20_TIMER_CCIS)
75 #define BSP430_RF_CC110X_GDO1_TIMER_CCIS BSP430_RFEM_RF1P20_TIMER_CCIS
76 #endif /* BSP430_RFEM_RF1P20_TIMER_CCIS */
77 #if defined(BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE)
78 #define BSP430_RF_CC110X_GDO2_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE
79 #endif /* BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE */
80 #if defined(BSP430_RFEM_RF1P12_PORT_BIT)
81 #define BSP430_RF_CC110X_GDO2_PORT_BIT BSP430_RFEM_RF1P12_PORT_BIT
82 #endif /* BSP430_RFEM_RF1P12_PORT_BIT */
83 #if defined(BSP430_RFEM_RF1P12_TIMER_PERIPH_HANDLE)
84 #define BSP430_RF_CC110X_GDO2_TIMER_PERIPH_HANDLE BSP430_RFEM_RF1P12_TIMER_PERIPH_HANDLE
85 #endif /* BSP430_RFEM_RF1P12_TIMER_PERIPH_HANDLE */
86 #if defined(BSP430_RFEM_RF1P12_TIMER_CCIDX)
87 #define BSP430_RF_CC110X_GDO2_TIMER_CCIDX BSP430_RFEM_RF1P12_TIMER_CCIDX
88 #endif /* BSP430_RFEM_RF1P12_TIMER_CCIDX */
89 #if defined(BSP430_RFEM_RF1P12_TIMER_CCIS)
90 #define BSP430_RF_CC110X_GDO2_TIMER_CCIS BSP430_RFEM_RF1P12_TIMER_CCIS
91 #endif /* BSP430_RFEM_RF1P12_TIMER_CCIS */
92 #if defined(BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE)
93 #define BSP430_RF_CC110X_CSn_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE
94 #endif /* BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE */
95 #if defined(BSP430_RFEM_RF1P14_PORT_BIT)
96 #define BSP430_RF_CC110X_CSn_PORT_BIT BSP430_RFEM_RF1P14_PORT_BIT
97 #endif /* BSP430_RFEM_RF1P14_PORT_BIT */
98 #endif /* configBSP430_RF_CC110XEMK */
99 /* END AUTOMATICALLY GENERATED CODE [emk_platform] */
100 /* !BSP430! end=emk_platform */
101 /* !BSP430! insert=emk_platform emk=cc1125emk tag=cc1125 hal=CSn gpio=GPIO0,GPIO1,GPIO2,GPIO3 */
102 /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [emk_platform] */
103 #if (configBSP430_RF_CC1125EMK - 0)
104 #define BSP430_RF_CC1125 1
105 #define BSP430_RF_CC1125_SPI_PERIPH_HANDLE BSP430_RFEM_SERIAL_PERIPH_HANDLE
106 #if defined(BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE)
107 #define BSP430_RF_CC1125_GPIO0_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE
108 #endif /* BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE */
109 #if defined(BSP430_RFEM_RF1P10_PORT_BIT)
110 #define BSP430_RF_CC1125_GPIO0_PORT_BIT BSP430_RFEM_RF1P10_PORT_BIT
111 #endif /* BSP430_RFEM_RF1P10_PORT_BIT */
112 #if defined(BSP430_RFEM_RF1P10_TIMER_PERIPH_HANDLE)
113 #define BSP430_RF_CC1125_GPIO0_TIMER_PERIPH_HANDLE BSP430_RFEM_RF1P10_TIMER_PERIPH_HANDLE
114 #endif /* BSP430_RFEM_RF1P10_TIMER_PERIPH_HANDLE */
115 #if defined(BSP430_RFEM_RF1P10_TIMER_CCIDX)
116 #define BSP430_RF_CC1125_GPIO0_TIMER_CCIDX BSP430_RFEM_RF1P10_TIMER_CCIDX
117 #endif /* BSP430_RFEM_RF1P10_TIMER_CCIDX */
118 #if defined(BSP430_RFEM_RF1P10_TIMER_CCIS)
119 #define BSP430_RF_CC1125_GPIO0_TIMER_CCIS BSP430_RFEM_RF1P10_TIMER_CCIS
120 #endif /* BSP430_RFEM_RF1P10_TIMER_CCIS */
121 #if defined(BSP430_RFEM_RF1P20_PORT_PERIPH_HANDLE)
122 #define BSP430_RF_CC1125_GPIO1_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P20_PORT_PERIPH_HANDLE
123 #endif /* BSP430_RFEM_RF1P20_PORT_PERIPH_HANDLE */
124 #if defined(BSP430_RFEM_RF1P20_PORT_BIT)
125 #define BSP430_RF_CC1125_GPIO1_PORT_BIT BSP430_RFEM_RF1P20_PORT_BIT
126 #endif /* BSP430_RFEM_RF1P20_PORT_BIT */
127 #if defined(BSP430_RFEM_RF1P20_TIMER_PERIPH_HANDLE)
128 #define BSP430_RF_CC1125_GPIO1_TIMER_PERIPH_HANDLE BSP430_RFEM_RF1P20_TIMER_PERIPH_HANDLE
129 #endif /* BSP430_RFEM_RF1P20_TIMER_PERIPH_HANDLE */
130 #if defined(BSP430_RFEM_RF1P20_TIMER_CCIDX)
131 #define BSP430_RF_CC1125_GPIO1_TIMER_CCIDX BSP430_RFEM_RF1P20_TIMER_CCIDX
132 #endif /* BSP430_RFEM_RF1P20_TIMER_CCIDX */
133 #if defined(BSP430_RFEM_RF1P20_TIMER_CCIS)
134 #define BSP430_RF_CC1125_GPIO1_TIMER_CCIS BSP430_RFEM_RF1P20_TIMER_CCIS
135 #endif /* BSP430_RFEM_RF1P20_TIMER_CCIS */
136 #if defined(BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE)
137 #define BSP430_RF_CC1125_GPIO2_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE
138 #endif /* BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE */
139 #if defined(BSP430_RFEM_RF1P12_PORT_BIT)
140 #define BSP430_RF_CC1125_GPIO2_PORT_BIT BSP430_RFEM_RF1P12_PORT_BIT
141 #endif /* BSP430_RFEM_RF1P12_PORT_BIT */
142 #if defined(BSP430_RFEM_RF1P12_TIMER_PERIPH_HANDLE)
143 #define BSP430_RF_CC1125_GPIO2_TIMER_PERIPH_HANDLE BSP430_RFEM_RF1P12_TIMER_PERIPH_HANDLE
144 #endif /* BSP430_RFEM_RF1P12_TIMER_PERIPH_HANDLE */
145 #if defined(BSP430_RFEM_RF1P12_TIMER_CCIDX)
146 #define BSP430_RF_CC1125_GPIO2_TIMER_CCIDX BSP430_RFEM_RF1P12_TIMER_CCIDX
147 #endif /* BSP430_RFEM_RF1P12_TIMER_CCIDX */
148 #if defined(BSP430_RFEM_RF1P12_TIMER_CCIS)
149 #define BSP430_RF_CC1125_GPIO2_TIMER_CCIS BSP430_RFEM_RF1P12_TIMER_CCIS
150 #endif /* BSP430_RFEM_RF1P12_TIMER_CCIS */
151 #if defined(BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE)
152 #define BSP430_RF_CC1125_CSn_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE
153 #endif /* BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE */
154 #if defined(BSP430_RFEM_RF1P14_PORT_BIT)
155 #define BSP430_RF_CC1125_CSn_PORT_BIT BSP430_RFEM_RF1P14_PORT_BIT
156 #endif /* BSP430_RFEM_RF1P14_PORT_BIT */
157 #if defined(BSP430_RFEM_RF2P15_PORT_PERIPH_HANDLE)
158 #define BSP430_RF_CC1125_RESETn_PORT_PERIPH_HANDLE BSP430_RFEM_RF2P15_PORT_PERIPH_HANDLE
159 #endif /* BSP430_RFEM_RF2P15_PORT_PERIPH_HANDLE */
160 #if defined(BSP430_RFEM_RF2P15_PORT_BIT)
161 #define BSP430_RF_CC1125_RESETn_PORT_BIT BSP430_RFEM_RF2P15_PORT_BIT
162 #endif /* BSP430_RFEM_RF2P15_PORT_BIT */
163 #if defined(BSP430_RFEM_RF2P18_PORT_PERIPH_HANDLE)
164 #define BSP430_RF_CC1125_GPIO3_PORT_PERIPH_HANDLE BSP430_RFEM_RF2P18_PORT_PERIPH_HANDLE
165 #endif /* BSP430_RFEM_RF2P18_PORT_PERIPH_HANDLE */
166 #if defined(BSP430_RFEM_RF2P18_PORT_BIT)
167 #define BSP430_RF_CC1125_GPIO3_PORT_BIT BSP430_RFEM_RF2P18_PORT_BIT
168 #endif /* BSP430_RFEM_RF2P18_PORT_BIT */
169 #if defined(BSP430_RFEM_RF2P18_TIMER_PERIPH_HANDLE)
170 #define BSP430_RF_CC1125_GPIO3_TIMER_PERIPH_HANDLE BSP430_RFEM_RF2P18_TIMER_PERIPH_HANDLE
171 #endif /* BSP430_RFEM_RF2P18_TIMER_PERIPH_HANDLE */
172 #if defined(BSP430_RFEM_RF2P18_TIMER_CCIDX)
173 #define BSP430_RF_CC1125_GPIO3_TIMER_CCIDX BSP430_RFEM_RF2P18_TIMER_CCIDX
174 #endif /* BSP430_RFEM_RF2P18_TIMER_CCIDX */
175 #if defined(BSP430_RFEM_RF2P18_TIMER_CCIS)
176 #define BSP430_RF_CC1125_GPIO3_TIMER_CCIS BSP430_RFEM_RF2P18_TIMER_CCIS
177 #endif /* BSP430_RFEM_RF2P18_TIMER_CCIS */
178 #endif /* configBSP430_RF_CC1125EMK */
179 /* END AUTOMATICALLY GENERATED CODE [emk_platform] */
180 /* !BSP430! end=emk_platform */
181 /* !BSP430! insert=emk_platform emk=cc2520emk tag=cc2520 hal=CSn gpio=GPIO0,GPIO1,GPIO2,GPIO3,GPIO4,GPIO5 */
182 /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [emk_platform] */
183 #if (configBSP430_RF_CC2520EMK - 0)
184 #define BSP430_RF_CC2520 1
185 #define BSP430_RF_CC2520_SPI_PERIPH_HANDLE BSP430_RFEM_SERIAL_PERIPH_HANDLE
186 #if defined(BSP430_RFEM_RF1P3_PORT_PERIPH_HANDLE)
187 #define BSP430_RF_CC2520_GPIO0_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P3_PORT_PERIPH_HANDLE
188 #endif /* BSP430_RFEM_RF1P3_PORT_PERIPH_HANDLE */
189 #if defined(BSP430_RFEM_RF1P3_PORT_BIT)
190 #define BSP430_RF_CC2520_GPIO0_PORT_BIT BSP430_RFEM_RF1P3_PORT_BIT
191 #endif /* BSP430_RFEM_RF1P3_PORT_BIT */
192 #if defined(BSP430_RFEM_RF1P3_TIMER_PERIPH_HANDLE)
193 #define BSP430_RF_CC2520_GPIO0_TIMER_PERIPH_HANDLE BSP430_RFEM_RF1P3_TIMER_PERIPH_HANDLE
194 #endif /* BSP430_RFEM_RF1P3_TIMER_PERIPH_HANDLE */
195 #if defined(BSP430_RFEM_RF1P3_TIMER_CCIDX)
196 #define BSP430_RF_CC2520_GPIO0_TIMER_CCIDX BSP430_RFEM_RF1P3_TIMER_CCIDX
197 #endif /* BSP430_RFEM_RF1P3_TIMER_CCIDX */
198 #if defined(BSP430_RFEM_RF1P3_TIMER_CCIS)
199 #define BSP430_RF_CC2520_GPIO0_TIMER_CCIS BSP430_RFEM_RF1P3_TIMER_CCIS
200 #endif /* BSP430_RFEM_RF1P3_TIMER_CCIS */
201 #if defined(BSP430_RFEM_RF1P7_PORT_PERIPH_HANDLE)
202 #define BSP430_RF_CC2520_GPIO1_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P7_PORT_PERIPH_HANDLE
203 #endif /* BSP430_RFEM_RF1P7_PORT_PERIPH_HANDLE */
204 #if defined(BSP430_RFEM_RF1P7_PORT_BIT)
205 #define BSP430_RF_CC2520_GPIO1_PORT_BIT BSP430_RFEM_RF1P7_PORT_BIT
206 #endif /* BSP430_RFEM_RF1P7_PORT_BIT */
207 #if defined(BSP430_RFEM_RF1P7_TIMER_PERIPH_HANDLE)
208 #define BSP430_RF_CC2520_GPIO1_TIMER_PERIPH_HANDLE BSP430_RFEM_RF1P7_TIMER_PERIPH_HANDLE
209 #endif /* BSP430_RFEM_RF1P7_TIMER_PERIPH_HANDLE */
210 #if defined(BSP430_RFEM_RF1P7_TIMER_CCIDX)
211 #define BSP430_RF_CC2520_GPIO1_TIMER_CCIDX BSP430_RFEM_RF1P7_TIMER_CCIDX
212 #endif /* BSP430_RFEM_RF1P7_TIMER_CCIDX */
213 #if defined(BSP430_RFEM_RF1P7_TIMER_CCIS)
214 #define BSP430_RF_CC2520_GPIO1_TIMER_CCIS BSP430_RFEM_RF1P7_TIMER_CCIS
215 #endif /* BSP430_RFEM_RF1P7_TIMER_CCIS */
216 #if defined(BSP430_RFEM_RF1P9_PORT_PERIPH_HANDLE)
217 #define BSP430_RF_CC2520_GPIO2_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P9_PORT_PERIPH_HANDLE
218 #endif /* BSP430_RFEM_RF1P9_PORT_PERIPH_HANDLE */
219 #if defined(BSP430_RFEM_RF1P9_PORT_BIT)
220 #define BSP430_RF_CC2520_GPIO2_PORT_BIT BSP430_RFEM_RF1P9_PORT_BIT
221 #endif /* BSP430_RFEM_RF1P9_PORT_BIT */
222 #if defined(BSP430_RFEM_RF1P9_TIMER_PERIPH_HANDLE)
223 #define BSP430_RF_CC2520_GPIO2_TIMER_PERIPH_HANDLE BSP430_RFEM_RF1P9_TIMER_PERIPH_HANDLE
224 #endif /* BSP430_RFEM_RF1P9_TIMER_PERIPH_HANDLE */
225 #if defined(BSP430_RFEM_RF1P9_TIMER_CCIDX)
226 #define BSP430_RF_CC2520_GPIO2_TIMER_CCIDX BSP430_RFEM_RF1P9_TIMER_CCIDX
227 #endif /* BSP430_RFEM_RF1P9_TIMER_CCIDX */
228 #if defined(BSP430_RFEM_RF1P9_TIMER_CCIS)
229 #define BSP430_RF_CC2520_GPIO2_TIMER_CCIS BSP430_RFEM_RF1P9_TIMER_CCIS
230 #endif /* BSP430_RFEM_RF1P9_TIMER_CCIS */
231 #if defined(BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE)
232 #define BSP430_RF_CC2520_VREG_EN_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE
233 #endif /* BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE */
234 #if defined(BSP430_RFEM_RF1P10_PORT_BIT)
235 #define BSP430_RF_CC2520_VREG_EN_PORT_BIT BSP430_RFEM_RF1P10_PORT_BIT
236 #endif /* BSP430_RFEM_RF1P10_PORT_BIT */
237 #if defined(BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE)
238 #define BSP430_RF_CC2520_GPIO3_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE
239 #endif /* BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE */
240 #if defined(BSP430_RFEM_RF1P12_PORT_BIT)
241 #define BSP430_RF_CC2520_GPIO3_PORT_BIT BSP430_RFEM_RF1P12_PORT_BIT
242 #endif /* BSP430_RFEM_RF1P12_PORT_BIT */
243 #if defined(BSP430_RFEM_RF1P12_TIMER_PERIPH_HANDLE)
244 #define BSP430_RF_CC2520_GPIO3_TIMER_PERIPH_HANDLE BSP430_RFEM_RF1P12_TIMER_PERIPH_HANDLE
245 #endif /* BSP430_RFEM_RF1P12_TIMER_PERIPH_HANDLE */
246 #if defined(BSP430_RFEM_RF1P12_TIMER_CCIDX)
247 #define BSP430_RF_CC2520_GPIO3_TIMER_CCIDX BSP430_RFEM_RF1P12_TIMER_CCIDX
248 #endif /* BSP430_RFEM_RF1P12_TIMER_CCIDX */
249 #if defined(BSP430_RFEM_RF1P12_TIMER_CCIS)
250 #define BSP430_RF_CC2520_GPIO3_TIMER_CCIS BSP430_RFEM_RF1P12_TIMER_CCIS
251 #endif /* BSP430_RFEM_RF1P12_TIMER_CCIS */
252 #if defined(BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE)
253 #define BSP430_RF_CC2520_CSn_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE
254 #endif /* BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE */
255 #if defined(BSP430_RFEM_RF1P14_PORT_BIT)
256 #define BSP430_RF_CC2520_CSn_PORT_BIT BSP430_RFEM_RF1P14_PORT_BIT
257 #endif /* BSP430_RFEM_RF1P14_PORT_BIT */
258 #if defined(BSP430_RFEM_RF1P20_PORT_PERIPH_HANDLE)
259 #define BSP430_RF_CC2520_SO_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P20_PORT_PERIPH_HANDLE
260 #endif /* BSP430_RFEM_RF1P20_PORT_PERIPH_HANDLE */
261 #if defined(BSP430_RFEM_RF1P20_PORT_BIT)
262 #define BSP430_RF_CC2520_SO_PORT_BIT BSP430_RFEM_RF1P20_PORT_BIT
263 #endif /* BSP430_RFEM_RF1P20_PORT_BIT */
264 #if defined(BSP430_RFEM_RF2P15_PORT_PERIPH_HANDLE)
265 #define BSP430_RF_CC2520_RESETn_PORT_PERIPH_HANDLE BSP430_RFEM_RF2P15_PORT_PERIPH_HANDLE
266 #endif /* BSP430_RFEM_RF2P15_PORT_PERIPH_HANDLE */
267 #if defined(BSP430_RFEM_RF2P15_PORT_BIT)
268 #define BSP430_RF_CC2520_RESETn_PORT_BIT BSP430_RFEM_RF2P15_PORT_BIT
269 #endif /* BSP430_RFEM_RF2P15_PORT_BIT */
270 #if defined(BSP430_RFEM_RF2P18_PORT_PERIPH_HANDLE)
271 #define BSP430_RF_CC2520_GPIO4_PORT_PERIPH_HANDLE BSP430_RFEM_RF2P18_PORT_PERIPH_HANDLE
272 #endif /* BSP430_RFEM_RF2P18_PORT_PERIPH_HANDLE */
273 #if defined(BSP430_RFEM_RF2P18_PORT_BIT)
274 #define BSP430_RF_CC2520_GPIO4_PORT_BIT BSP430_RFEM_RF2P18_PORT_BIT
275 #endif /* BSP430_RFEM_RF2P18_PORT_BIT */
276 #if defined(BSP430_RFEM_RF2P18_TIMER_PERIPH_HANDLE)
277 #define BSP430_RF_CC2520_GPIO4_TIMER_PERIPH_HANDLE BSP430_RFEM_RF2P18_TIMER_PERIPH_HANDLE
278 #endif /* BSP430_RFEM_RF2P18_TIMER_PERIPH_HANDLE */
279 #if defined(BSP430_RFEM_RF2P18_TIMER_CCIDX)
280 #define BSP430_RF_CC2520_GPIO4_TIMER_CCIDX BSP430_RFEM_RF2P18_TIMER_CCIDX
281 #endif /* BSP430_RFEM_RF2P18_TIMER_CCIDX */
282 #if defined(BSP430_RFEM_RF2P18_TIMER_CCIS)
283 #define BSP430_RF_CC2520_GPIO4_TIMER_CCIS BSP430_RFEM_RF2P18_TIMER_CCIS
284 #endif /* BSP430_RFEM_RF2P18_TIMER_CCIS */
285 #if defined(BSP430_RFEM_RF2P19_PORT_PERIPH_HANDLE)
286 #define BSP430_RF_CC2520_GPIO5_PORT_PERIPH_HANDLE BSP430_RFEM_RF2P19_PORT_PERIPH_HANDLE
287 #endif /* BSP430_RFEM_RF2P19_PORT_PERIPH_HANDLE */
288 #if defined(BSP430_RFEM_RF2P19_PORT_BIT)
289 #define BSP430_RF_CC2520_GPIO5_PORT_BIT BSP430_RFEM_RF2P19_PORT_BIT
290 #endif /* BSP430_RFEM_RF2P19_PORT_BIT */
291 #if defined(BSP430_RFEM_RF2P19_TIMER_PERIPH_HANDLE)
292 #define BSP430_RF_CC2520_GPIO5_TIMER_PERIPH_HANDLE BSP430_RFEM_RF2P19_TIMER_PERIPH_HANDLE
293 #endif /* BSP430_RFEM_RF2P19_TIMER_PERIPH_HANDLE */
294 #if defined(BSP430_RFEM_RF2P19_TIMER_CCIDX)
295 #define BSP430_RF_CC2520_GPIO5_TIMER_CCIDX BSP430_RFEM_RF2P19_TIMER_CCIDX
296 #endif /* BSP430_RFEM_RF2P19_TIMER_CCIDX */
297 #if defined(BSP430_RFEM_RF2P19_TIMER_CCIS)
298 #define BSP430_RF_CC2520_GPIO5_TIMER_CCIS BSP430_RFEM_RF2P19_TIMER_CCIS
299 #endif /* BSP430_RFEM_RF2P19_TIMER_CCIS */
300 #endif /* configBSP430_RF_CC2520EMK */
301 /* END AUTOMATICALLY GENERATED CODE [emk_platform] */
302 /* !BSP430! end=emk_platform */
303 /* !BSP430! insert=emk_platform emk=cc3000em tag=cc3000 hal=CSn gpio=IRQn */
304 /* BEGIN AUTOMATICALLY GENERATED CODE---DO NOT MODIFY [emk_platform] */
305 #if (configBSP430_RF_CC3000EM - 0)
306 #define BSP430_RF_CC3000 1
307 #define BSP430_RF_CC3000_SPI_PERIPH_HANDLE BSP430_RFEM_SERIAL_PERIPH_HANDLE
308 #if defined(BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE)
309 #define BSP430_RF_CC3000_PWR_EN_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE
310 #endif /* BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE */
311 #if defined(BSP430_RFEM_RF1P10_PORT_BIT)
312 #define BSP430_RF_CC3000_PWR_EN_PORT_BIT BSP430_RFEM_RF1P10_PORT_BIT
313 #endif /* BSP430_RFEM_RF1P10_PORT_BIT */
314 #if defined(BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE)
315 #define BSP430_RF_CC3000_IRQn_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE
316 #endif /* BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE */
317 #if defined(BSP430_RFEM_RF1P12_PORT_BIT)
318 #define BSP430_RF_CC3000_IRQn_PORT_BIT BSP430_RFEM_RF1P12_PORT_BIT
319 #endif /* BSP430_RFEM_RF1P12_PORT_BIT */
320 #if defined(BSP430_RFEM_RF1P12_TIMER_PERIPH_HANDLE)
321 #define BSP430_RF_CC3000_IRQn_TIMER_PERIPH_HANDLE BSP430_RFEM_RF1P12_TIMER_PERIPH_HANDLE
322 #endif /* BSP430_RFEM_RF1P12_TIMER_PERIPH_HANDLE */
323 #if defined(BSP430_RFEM_RF1P12_TIMER_CCIDX)
324 #define BSP430_RF_CC3000_IRQn_TIMER_CCIDX BSP430_RFEM_RF1P12_TIMER_CCIDX
325 #endif /* BSP430_RFEM_RF1P12_TIMER_CCIDX */
326 #if defined(BSP430_RFEM_RF1P12_TIMER_CCIS)
327 #define BSP430_RF_CC3000_IRQn_TIMER_CCIS BSP430_RFEM_RF1P12_TIMER_CCIS
328 #endif /* BSP430_RFEM_RF1P12_TIMER_CCIS */
329 #if defined(BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE)
330 #define BSP430_RF_CC3000_CSn_PORT_PERIPH_HANDLE BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE
331 #endif /* BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE */
332 #if defined(BSP430_RFEM_RF1P14_PORT_BIT)
333 #define BSP430_RF_CC3000_CSn_PORT_BIT BSP430_RFEM_RF1P14_PORT_BIT
334 #endif /* BSP430_RFEM_RF1P14_PORT_BIT */
335 #endif /* configBSP430_RF_CC3000EM */
336 /* END AUTOMATICALLY GENERATED CODE [emk_platform] */
337 /* !BSP430! end=emk_platform */
338 
339 #endif /* BSP430_RF_EMKPLATFORM_H */