BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
cc3000.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 
50 #ifndef BSP430_RF_CC3000_H
51 #define BSP430_RF_CC3000_H
52 
53 #include <bsp430/platform.h>
54 #include <cc3000/cc3000_common.h>
55 
56 #ifndef BSP430_CC3000_ENABLE_SMART
57 
67 #define BSP430_CC3000_ENABLE_SMART 0
68 #endif /* BSP430_CC3000_ENABLE_SMART */
69 
92 #ifndef BSP430_CC3000SPI_RX_BUFFER_SIZE
93 #if (BSP430_CC3000_ENABLE_SMART - 0)
94 #define BSP430_CC3000SPI_RX_BUFFER_SIZE 1500
95 #else /* BSP430_CC3000_ENABLE_SMART */
96 #define BSP430_CC3000SPI_RX_BUFFER_SIZE 400
97 #endif /* BSP430_CC3000_ENABLE_SMART */
98 #endif /* BSP430_CC3000SPI_RX_BUFFER_SIZE */
99 
112 #ifndef BSP430_CC3000SPI_TX_BUFFER_SIZE
113 #define BSP430_CC3000SPI_TX_BUFFER_SIZE 400
114 #endif /* BSP430_CC3000SPI_TX_BUFFER_SIZE */
115 
126 #ifndef configBSP430_RF_CC3000BOOST
127 #define configBSP430_RF_CC3000BOOST 0
128 #endif /* configBSP430_RF_CC3000BOOST */
129 
130 #if defined(BSP430_DOXYGEN)
131 
135 #define BSP430_RF_CC3000_SPI_PERIPH_CPPID include <bsp430/platform.h>
136 
139 #define BSP430_RF_CC3000_SPI_PERIPH_HANDLE include <bsp430/platform.h>
140 
141 /* -- Begin material from genrf */
142 
147 #define BSP430_RF_CC3000_CSn_PORT_PERIPH_HANDLE include <bsp430/platform.h>
148 
153 #define BSP430_RF_CC3000_IRQn_PORT_PERIPH_HANDLE include <bsp430/platform.h>
154 
159 #define BSP430_RF_CC3000_PWR_EN_PORT_PERIPH_HANDLE include <bsp430/platform.h>
160 /* *** END OF CUSTOMIZED DECLARATIONS */
161 
162 
167 #define BSP430_RF_CC3000_CSn_PORT_PERIPH_CPPID include <bsp430/platform.h>
168 
173 #define BSP430_RF_CC3000_CSn_PORT_BIT include <bsp430/platform.h>
174 
179 #define BSP430_RF_CC3000_IRQn_PORT_PERIPH_CPPID include <bsp430/platform.h>
180 
188 #define BSP430_RF_CC3000_IRQn_TIMER_PERIPH_CPPID include <bsp430/platform.h>
189 
194 #define BSP430_RF_CC3000_IRQn_PORT_BIT include <bsp430/platform.h>
195 
201 #define BSP430_RF_CC3000_IRQn_TIMER_PERIPH_HANDLE include <bsp430/platform.h>
202 
211 #define BSP430_RF_CC3000_IRQn_TIMER_CCIDX include <bsp430/platform.h>
212 
221 #define BSP430_RF_CC3000_IRQn_TIMER_CCIS include <bsp430/platform.h>
222 
227 #define BSP430_RF_CC3000_PWR_EN_PORT_PERIPH_CPPID include <bsp430/platform.h>
228 
233 #define BSP430_RF_CC3000_PWR_EN_PORT_BIT include <bsp430/platform.h>
234 
235 /* -- End material from genrf */
236 
237 #endif /* BSP430_DOXYGEN */
238 
263 int iBSP430cc3000spiInitialize (tWlanCB wlan_cb,
264  tFWPatches firmware_patch_fn,
265  tDriverPatches driver_patch_fn,
266  tBootLoaderPatches boot_loader_patch_fn);
267 
279 
280 #endif /* BSP430_RF_CC3000_H */
Entrypoint for platform-specific capabilities.
int iBSP430cc3000IRQrv
Definition: cc3000.h:278
int iBSP430cc3000spiInitialize(tWlanCB wlan_cb, tFWPatches firmware_patch_fn, tDriverPatches driver_patch_fn, tBootLoaderPatches boot_loader_patch_fn)