SparkFun cc3000 on Nucleo F401RE with rtos
Dependencies: NVIC_set_all_priorities SDFileSystem cc3000_hostdriver_mbedsocket mbed-rtos mbed-src
Fork of CC3000Project by
Revision 9:2ba1a5c87e73, committed 2014-10-16
- Comitter:
- vpcola
- Date:
- Thu Oct 16 13:41:56 2014 +0000
- Parent:
- 8:71a0638eaa90
- Commit message:
- Updated spi access using mutex to prevent contention on the same SPI bus;
Changed in this revision
diff -r 71a0638eaa90 -r 2ba1a5c87e73 SDFileSystem.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SDFileSystem.lib Thu Oct 16 13:41:56 2014 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/vpcola/code/SDFileSystem/#f0bd1dfd6f62
diff -r 71a0638eaa90 -r 2ba1a5c87e73 cc3000_hostdriver_mbedsocket.lib --- a/cc3000_hostdriver_mbedsocket.lib Thu Oct 16 13:22:12 2014 +0000 +++ b/cc3000_hostdriver_mbedsocket.lib Thu Oct 16 13:41:56 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/Kojto/code/cc3000_hostdriver_mbedsocket/#50ab13d8f2dc +http://developer.mbed.org/users/vpcola/code/cc3000_hostdriver_mbedsocket/#cc9a2501e29f
diff -r 71a0638eaa90 -r 2ba1a5c87e73 main.cpp --- a/main.cpp Thu Oct 16 13:22:12 2014 +0000 +++ b/main.cpp Thu Oct 16 13:41:56 2014 +0000 @@ -14,6 +14,7 @@ * limitations under the License. */ #include "mbed.h" +#include "rtos.h" #include "cc3000.h" #include "main.h" @@ -30,7 +31,8 @@ cc3000 wifi(p9, p10, p8, SPI(p5, p6, p7), "ssid", "key", WPA2, false); Serial pc(USBTX, USBRX); #elif (MY_BOARD == SPARK_FUN) -cc3000 wifi(PA_10, PA_8, PB_6, SPI(PA_7, PA_6, PA_5), "ssid", "key", WPA2, false); +Mutex sparkFunMutex; +cc3000 wifi(PA_10, PA_8, PB_6, SPI(PA_7, PA_6, PA_5), sparkFunMutex, "ssid", "key", WPA2, false); Serial pc(USBTX, USBRX); #else