Frank Vannieuwkerke / CC3000_Hostdriver

Dependencies:   NVIC_set_all_priorities

Dependents:   CC3000_Simple_Socket Wi-Go_IOT_Demo

Revision:
12:0366fd270fc8
Parent:
11:3884d0600caa
diff -r 3884d0600caa -r 0366fd270fc8 cc3000_common.cpp
--- a/cc3000_common.cpp	Fri Sep 20 07:26:44 2013 +0000
+++ b/cc3000_common.cpp	Thu Oct 17 17:18:17 2013 +0000
@@ -64,6 +64,7 @@
     WLAN_SPI_PORT_INIT;
     WLAN_SPI_SET_FREQ;
     WLAN_SPI_SET_IRQ_HANDLER;
+//    WLAN_DISABLE_IRQ;
     // WLAN On API Implementation
     wlan_init( CC3000_UsynchCallback,
                sendWLFWPatch,
@@ -102,13 +103,14 @@
     return (WLAN_READ_IRQ);
 }
 
-
 void WlanInterruptEnable()
 {
     WLAN_ENABLE_IRQ;
+    if(!WLAN_READ_IRQ)
+        WLAN_IRQHandler();
+    //NVIC_EnableIRQ(_irq_port);
 }
 
-
 void WlanInterruptDisable()
 {
     WLAN_DISABLE_IRQ;
@@ -178,3 +180,5 @@
 }
 
 
+
+