Added mutex for multiple SPI devices on the same SPI bus

Fork of cc3000_hostdriver_mbedsocket by Martin Kojtal

Revision:
3:ad95e296bfbf
Parent:
0:615c697c33b0
Child:
5:245ac5b73132
--- a/Socket/TCPSocketConnection.cpp	Thu Sep 19 08:02:13 2013 +0000
+++ b/Socket/TCPSocketConnection.cpp	Thu Sep 19 08:04:22 2013 +0000
@@ -39,18 +39,7 @@
 // -1 if unsuccessful, else number of bytes written
 int TCPSocketConnection::send_all(char* data, int length)
 {
-    Timer tmr;
-    int idx = 0;
-    tmr.start();
 
-    while ((tmr.read_ms() < _timeout) || _blocking) {
-
-        idx += wifi->send(data, length);
-
-        if (idx == length)
-            return idx;
-    }
-    return (idx == 0) ? -1 : idx;
 }
 
 // -1 if unsuccessful, else number of bytes received