Updated Spark/cc3000 files from David Sidrane

This commit is contained in:
Gregory Nutt
2013-10-18 17:14:58 -06:00
parent b05bf917b8
commit 6fda497bc1
9 changed files with 80 additions and 62 deletions
+1 -5
View File
@@ -195,7 +195,6 @@ static void *unsoliced_thread_func(void *parameter)
void SpiOpen(gcSpiHandleRx pfRxHandler)
{
pthread_attr_t attr;
int status;
DEBUGASSERT(spiconf.cc3000fd == 0);
@@ -206,10 +205,7 @@ void SpiOpen(gcSpiHandleRx pfRxHandler)
spiconf.cc3000fd = fd;
spiconf.run = true;
status = pthread_attr_init(&attr);
DEBUGASSERT(status == 0)
status = pthread_create(&spiconf.unsoliced_thread, &attr,
status = pthread_create(&spiconf.unsoliced_thread,NULL,
unsoliced_thread_func, NULL);
DEBUGASSERT(status == 0)
}
-3
View File
@@ -37,9 +37,6 @@ typedef void (*gcSpiHandleRx)(void *p);
* Public Data
*****************************************************************************/
extern uint16_t SPIInterruptsEnabled;
extern uint8_t wlan_tx_buffer[];
/*****************************************************************************
* Public Function Prototypes
*****************************************************************************/
+6
View File
@@ -91,6 +91,12 @@
#define WLAN_CONNECT_PARAM_LEN (29)
#define WLAN_SMART_CONFIG_START_PARAMS_LEN (4)
/****************************************************************************
* Private Variables
****************************************************************************/
static uint8_t wlan_tx_buffer[CC3000_TX_BUFFER_SIZE];
/*****************************************************************************
* Public Data
*****************************************************************************/