BSP430
20141115
Board Support Package for MSP430 microcontrollers
|
CC3000 Host Driver Interface for BSP430. More...
Go to the source code of this file.
Functions | |
int | iBSP430cc3000spiInitialize (tWlanCB wlan_cb, tFWPatches firmware_patch_fn, tDriverPatches driver_patch_fn, tBootLoaderPatches boot_loader_patch_fn) |
Variables | |
int | iBSP430cc3000IRQrv |
CC3000 Host Driver Interface for BSP430.
This file supports a Host Driver SPI interface for the Texas Instruments SimpleLink(TM) CC3000 Wi-Fi SOC.
This file provides only the host driver interface. The host driver itself is a separate library provided by Texas Instruments. A git repository that repackages that driver in a format suitable for linking with user applications is available at http://github.com/pabigot/cc3000.
#define BSP430_CC3000_ENABLE_SMART 0 |
Define externally to a true value when you want the CC3000 Smart Config process to work.
This feature requires that the RX buffer size be a full 1500 octets; setting this flag changes the default value for BSP430_CC3000SPI_RX_BUFFER_SIZE to satisfy that requirement.
#define BSP430_CC3000SPI_RX_BUFFER_SIZE 400 |
Size of the cc3000spi receive buffer, in octets.
The value is an integer between #CC3000_MINIMAL_RX_SIZE=119 and #CC3000_MAXIMAL_RX_SIZE=1520, unless #CC3000_TINY_DRIVER is defined in which case #CC3000_MAXIMAL_RX_SIZE is 44.
<cc3000/cc3000_common.h> unconditionally defines a CC3000_RX_BUFFER_SIZE constant, but it is not referenced by the driver and is not relevant to this implementation.
#define BSP430_CC3000SPI_TX_BUFFER_SIZE 400 |
Size of the cc3000spi transmit buffer, in octets.
The value is an integer between #CC3000_MINIMAL_TX_SIZE=119 and #CC3000_MAXIMAL_TX_SIZE=1520, unless #CC3000_TINY_DRIVER is defined in which case #CC3000_MAXIMAL_TX_SIZE is 59.
<cc3000/cc3000_common.h> unconditionally defines a CC3000_TX_BUFFER_SIZE constant, but it is not referenced by the driver and is not relevant to this implementation.
#define BSP430_RF_CC3000_CSn_PORT_BIT include <bsp430/platform.h> |
Port bit on BSP430_RF_CC3000_CSn_PORT_PERIPH_HANDLE for CSn.
This is the bit mask, not a bit position.
#define BSP430_RF_CC3000_CSn_PORT_PERIPH_CPPID include <bsp430/platform.h> |
Preprocessor-compatible identifier corresponding to BSP430_RF_CC3000_CSn_PORT_PERIPH_HANDLE.
#define BSP430_RF_CC3000_CSn_PORT_PERIPH_HANDLE include <bsp430/platform.h> |
BSP430 peripheral handle for port on which CSn is placed.
The CSn signal is ***FILL IN HERE***
#define BSP430_RF_CC3000_IRQn_PORT_BIT include <bsp430/platform.h> |
Port bit on BSP430_RF_CC3000_IRQn_PORT_PERIPH_HANDLE for IRQn.
This is the bit mask, not a bit position.
#define BSP430_RF_CC3000_IRQn_PORT_PERIPH_CPPID include <bsp430/platform.h> |
Preprocessor-compatible identifier corresponding to BSP430_RF_CC3000_IRQn_PORT_PERIPH_HANDLE.
#define BSP430_RF_CC3000_IRQn_PORT_PERIPH_HANDLE include <bsp430/platform.h> |
BSP430 peripheral handle for port on which IRQn is placed.
The IRQn signal is ***FILL IN HERE***
#define BSP430_RF_CC3000_IRQn_TIMER_CCIDX include <bsp430/platform.h> |
The capture/compare index on BSP430_RF_CC3000_IRQn_TIMER_PERIPH_HANDLE corresponding to IRQn.
This macro is defined only if IRQn is connected to a port that supports capture of a timer counter based on signal changes.
#define BSP430_RF_CC3000_IRQn_TIMER_CCIS include <bsp430/platform.h> |
The capture/compare input selector necessary to capture any signal changes associated with CC3000 IRQn.
This macro is defined only if IRQn is connected to a port that supports capture of a timer counter based on signal changes.
#define BSP430_RF_CC3000_IRQn_TIMER_PERIPH_CPPID include <bsp430/platform.h> |
Preprocessor-compatible identifier corresponding to BSP430_RF_CC3000_IRQn_TIMER_PERIPH_HANDLE.
This macro is defined only if IRQn is connected to a port that supports capture of a timer counter based on signal changes.
#define BSP430_RF_CC3000_IRQn_TIMER_PERIPH_HANDLE include <bsp430/platform.h> |
BSP430 peripheral handle for timer connected to IRQn.
This macro is defined only if IRQn is connected to a port that supports capture of a timer counter based on signal changes.
#define BSP430_RF_CC3000_PWR_EN_PORT_BIT include <bsp430/platform.h> |
Port bit on BSP430_RF_CC3000_PWR_EN_PORT_PERIPH_HANDLE for PWR_EN.
This is the bit mask, not a bit position.
#define BSP430_RF_CC3000_PWR_EN_PORT_PERIPH_CPPID include <bsp430/platform.h> |
Preprocessor-compatible identifier corresponding to BSP430_RF_CC3000_PWR_EN_PORT_PERIPH_HANDLE.
#define BSP430_RF_CC3000_PWR_EN_PORT_PERIPH_HANDLE include <bsp430/platform.h> |
BSP430 peripheral handle for port on which PWR_EN is placed.
The PWR_EN signal is ***FILL IN HERE***
#define BSP430_RF_CC3000_SPI_PERIPH_CPPID include <bsp430/platform.h> |
The CPPID associated with the serial device serving as the SPI interface to the CC3000 radio.
#define BSP430_RF_CC3000_SPI_PERIPH_HANDLE include <bsp430/platform.h> |
The serial peripheral serving as the SPI interface to the CC3000 radio.
#define configBSP430_RF_CC3000BOOST 0 |
Define to a true value to indicate intent to use a CC3000BOOST boosterpack.
This selects the boosterpack pin mapping in preference to the default RFEM pin mapping.
int iBSP430cc3000spiInitialize | ( | tWlanCB | wlan_cb, |
tFWPatches | firmware_patch_fn, | ||
tDriverPatches | driver_patch_fn, | ||
tBootLoaderPatches | boot_loader_patch_fn | ||
) |
BSP430 wrapper around CC3000 wlan_init().
This interface provides access to user-level callbacks, and adds the driver-level callbacks internally.
wlan_cb | see wlan_init() documentation. |
firmware_patch_fn | see wlan_init() documentation. Passing NULL is generally appropriate. |
driver_patch_fn | see wlan_init() documentation. Passing NULL is generally appropriate. |
boot_loader_patch_fn | see wlan_init() documentation. Passing NULL is generally appropriate. |
int iBSP430cc3000IRQrv |
A global variable used to communicate the IRQ return value back to the TI driver code, since there is no other way to do that.
Implementations of #tWlanCB passed to iBSP430cc3000spiInitialize() should assign a value consistent with Interrupt Callback Return Values to control wakeup behavior when unsolicited CC3000 events might require the application to wake. The value is cleared to zero prior to invoking the application callback, so if no interrupt chain/wakeup operations are required the variable need not be updated.