diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-10-18 17:14:58 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-10-18 17:14:58 -0600 |
commit | 95621702e8ce219b6c53edc5bc2e444ce6694cad (patch) | |
tree | 7bd36a2ac7dd665561bb190361a565067dc57683 /nuttx/drivers/wireless/cc3000/spi.c | |
parent | a500d703dcd27675581b173ae43ff5c3dfa8d4de (diff) | |
download | px4-nuttx-95621702e8ce219b6c53edc5bc2e444ce6694cad.tar.gz px4-nuttx-95621702e8ce219b6c53edc5bc2e444ce6694cad.tar.bz2 px4-nuttx-95621702e8ce219b6c53edc5bc2e444ce6694cad.zip |
Updated Spark/cc3000 files from David Sidrane
Diffstat (limited to 'nuttx/drivers/wireless/cc3000/spi.c')
-rw-r--r-- | nuttx/drivers/wireless/cc3000/spi.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/nuttx/drivers/wireless/cc3000/spi.c b/nuttx/drivers/wireless/cc3000/spi.c index 08734a10a..38d5f413e 100644 --- a/nuttx/drivers/wireless/cc3000/spi.c +++ b/nuttx/drivers/wireless/cc3000/spi.c @@ -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) } |