Added mutex for multiple SPI devices on the same SPI bus

Fork of cc3000_hostdriver_mbedsocket by Martin Kojtal

Revision:
42:bd2c631a031a
Parent:
34:1ad18123bf11
Child:
44:960b73df5981
--- a/cc3000_spi.cpp	Sat Oct 12 21:03:45 2013 +0000
+++ b/cc3000_spi.cpp	Sat Oct 12 21:53:28 2013 +0000
@@ -63,6 +63,9 @@
 void cc3000_spi::wlan_irq_enable()
 {
     NVIC_EnableIRQ(_irq_port);
+    
+    if(wlan_irq_read() == 0)
+    WLAN_IRQHandler();
 }
 
 void cc3000_spi::wlan_irq_disable() {