BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
cc2520.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 
46 #ifndef BSP430_RF_CC2520_H
47 #define BSP430_RF_CC2520_H
48 
49 #include <bsp430/rf/rf.h>
50 
67 #ifndef configBSP430_RF_CC2520EMK
68 #define configBSP430_RF_CC2520EMK 0
69 #endif /* configBSP430_RF_CC2520EMK */
70 
71 #if defined(BSP430_DOXYGEN)
72 
77 #define BSP430_RF_CC2520 include <bsp430/platform.h>
78 #endif /* BSP430_DOXYGEN */
79 
80 #if defined(BSP430_DOXYGEN) || (BSP430_RF_CC2520 - 0)
81 
86 #define BSP430_RF_CC2520_SPI_CTL0_BYTE BSP430_SERIAL_ADJUST_CTL0_INITIALIZER(UCCKPH | UCMSB | UCMST)
87 #endif /* BSP430_RF_CC2520 */
88 
89 #if defined(BSP430_DOXYGEN)
90 
94 #define BSP430_RF_CC2520_SPI_PERIPH_CPPID include <bsp430/platform.h>
95 
98 #define BSP430_RF_CC2520_SPI_PERIPH_HANDLE include <bsp430/platform.h>
99 
100 /* -- Begin material from genrf */
101 
106 #define BSP430_RF_CC2520_CSn_PORT_PERIPH_HANDLE include <bsp430/platform.h>
107 
112 #define BSP430_RF_CC2520_GPIO0_PORT_PERIPH_HANDLE include <bsp430/platform.h>
113 
118 #define BSP430_RF_CC2520_GPIO1_PORT_PERIPH_HANDLE include <bsp430/platform.h>
119 
124 #define BSP430_RF_CC2520_GPIO2_PORT_PERIPH_HANDLE include <bsp430/platform.h>
125 
130 #define BSP430_RF_CC2520_GPIO3_PORT_PERIPH_HANDLE include <bsp430/platform.h>
131 
136 #define BSP430_RF_CC2520_GPIO4_PORT_PERIPH_HANDLE include <bsp430/platform.h>
137 
142 #define BSP430_RF_CC2520_GPIO5_PORT_PERIPH_HANDLE include <bsp430/platform.h>
143 
148 #define BSP430_RF_CC2520_RESETn_PORT_PERIPH_HANDLE include <bsp430/platform.h>
149 
154 #define BSP430_RF_CC2520_SO_PORT_PERIPH_HANDLE include <bsp430/platform.h>
155 /* *** END OF CUSTOMIZED DECLARATIONS */
156 
157 
162 #define BSP430_RF_CC2520_CSn_PORT_PERIPH_CPPID include <bsp430/platform.h>
163 
168 #define BSP430_RF_CC2520_CSn_PORT_BIT include <bsp430/platform.h>
169 
174 #define BSP430_RF_CC2520_GPIO0_PORT_PERIPH_CPPID include <bsp430/platform.h>
175 
183 #define BSP430_RF_CC2520_GPIO0_TIMER_PERIPH_CPPID include <bsp430/platform.h>
184 
189 #define BSP430_RF_CC2520_GPIO0_PORT_BIT include <bsp430/platform.h>
190 
196 #define BSP430_RF_CC2520_GPIO0_TIMER_PERIPH_HANDLE include <bsp430/platform.h>
197 
206 #define BSP430_RF_CC2520_GPIO0_TIMER_CCIDX include <bsp430/platform.h>
207 
216 #define BSP430_RF_CC2520_GPIO0_TIMER_CCIS include <bsp430/platform.h>
217 
222 #define BSP430_RF_CC2520_GPIO1_PORT_PERIPH_CPPID include <bsp430/platform.h>
223 
231 #define BSP430_RF_CC2520_GPIO1_TIMER_PERIPH_CPPID include <bsp430/platform.h>
232 
237 #define BSP430_RF_CC2520_GPIO1_PORT_BIT include <bsp430/platform.h>
238 
244 #define BSP430_RF_CC2520_GPIO1_TIMER_PERIPH_HANDLE include <bsp430/platform.h>
245 
254 #define BSP430_RF_CC2520_GPIO1_TIMER_CCIDX include <bsp430/platform.h>
255 
264 #define BSP430_RF_CC2520_GPIO1_TIMER_CCIS include <bsp430/platform.h>
265 
270 #define BSP430_RF_CC2520_GPIO2_PORT_PERIPH_CPPID include <bsp430/platform.h>
271 
279 #define BSP430_RF_CC2520_GPIO2_TIMER_PERIPH_CPPID include <bsp430/platform.h>
280 
285 #define BSP430_RF_CC2520_GPIO2_PORT_BIT include <bsp430/platform.h>
286 
292 #define BSP430_RF_CC2520_GPIO2_TIMER_PERIPH_HANDLE include <bsp430/platform.h>
293 
302 #define BSP430_RF_CC2520_GPIO2_TIMER_CCIDX include <bsp430/platform.h>
303 
312 #define BSP430_RF_CC2520_GPIO2_TIMER_CCIS include <bsp430/platform.h>
313 
318 #define BSP430_RF_CC2520_GPIO3_PORT_PERIPH_CPPID include <bsp430/platform.h>
319 
327 #define BSP430_RF_CC2520_GPIO3_TIMER_PERIPH_CPPID include <bsp430/platform.h>
328 
333 #define BSP430_RF_CC2520_GPIO3_PORT_BIT include <bsp430/platform.h>
334 
340 #define BSP430_RF_CC2520_GPIO3_TIMER_PERIPH_HANDLE include <bsp430/platform.h>
341 
350 #define BSP430_RF_CC2520_GPIO3_TIMER_CCIDX include <bsp430/platform.h>
351 
360 #define BSP430_RF_CC2520_GPIO3_TIMER_CCIS include <bsp430/platform.h>
361 
366 #define BSP430_RF_CC2520_GPIO4_PORT_PERIPH_CPPID include <bsp430/platform.h>
367 
375 #define BSP430_RF_CC2520_GPIO4_TIMER_PERIPH_CPPID include <bsp430/platform.h>
376 
381 #define BSP430_RF_CC2520_GPIO4_PORT_BIT include <bsp430/platform.h>
382 
388 #define BSP430_RF_CC2520_GPIO4_TIMER_PERIPH_HANDLE include <bsp430/platform.h>
389 
398 #define BSP430_RF_CC2520_GPIO4_TIMER_CCIDX include <bsp430/platform.h>
399 
408 #define BSP430_RF_CC2520_GPIO4_TIMER_CCIS include <bsp430/platform.h>
409 
414 #define BSP430_RF_CC2520_GPIO5_PORT_PERIPH_CPPID include <bsp430/platform.h>
415 
423 #define BSP430_RF_CC2520_GPIO5_TIMER_PERIPH_CPPID include <bsp430/platform.h>
424 
429 #define BSP430_RF_CC2520_GPIO5_PORT_BIT include <bsp430/platform.h>
430 
436 #define BSP430_RF_CC2520_GPIO5_TIMER_PERIPH_HANDLE include <bsp430/platform.h>
437 
446 #define BSP430_RF_CC2520_GPIO5_TIMER_CCIDX include <bsp430/platform.h>
447 
456 #define BSP430_RF_CC2520_GPIO5_TIMER_CCIS include <bsp430/platform.h>
457 
462 #define BSP430_RF_CC2520_RESETn_PORT_PERIPH_CPPID include <bsp430/platform.h>
463 
468 #define BSP430_RF_CC2520_RESETn_PORT_BIT include <bsp430/platform.h>
469 
474 #define BSP430_RF_CC2520_SO_PORT_PERIPH_CPPID include <bsp430/platform.h>
475 
480 #define BSP430_RF_CC2520_SO_PORT_BIT include <bsp430/platform.h>
481 
482 /* -- End material from genrf */
483 
484 #endif /* BSP430_DOXYGEN */
485 
486 #endif /* BSP430_RF_RFEM_H */
RF Support.