mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
Updated Spark/cc3000 files from David Sidrane
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -37,9 +37,6 @@ typedef void (*gcSpiHandleRx)(void *p);
|
||||
* Public Data
|
||||
*****************************************************************************/
|
||||
|
||||
extern uint16_t SPIInterruptsEnabled;
|
||||
extern uint8_t wlan_tx_buffer[];
|
||||
|
||||
/*****************************************************************************
|
||||
* Public Function Prototypes
|
||||
*****************************************************************************/
|
||||
|
||||
@@ -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
|
||||
*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user