cc3000 hostdriver with the mbed socket interface

Fork of cc3000_hostdriver_mbedsocket by Martin Kojtal

Revision:
49:aee80f12ccca
Parent:
45:50ab13d8f2dc
Child:
51:897cfc2c7e8c
diff -r 192e2fde71e9 -r aee80f12ccca cc3000_spi.cpp
--- a/cc3000_spi.cpp	Sat Feb 28 16:40:39 2015 +0000
+++ b/cc3000_spi.cpp	Sat Mar 28 21:00:14 2015 +0000
@@ -122,6 +122,7 @@
     // If the magic number is overwitten - buffer overrun occurred - we will be stuck here forever!
     uint8_t *transmit_buffer = _simple_link.get_transmit_buffer();
     if (transmit_buffer[CC3000_TX_BUFFER_SIZE - 1] != CC3000_BUFFER_MAGIC_NUMBER) {
+        DBG_CC("System halted - TX buffer overflow detected (buffer size: %d).", CC3000_TX_BUFFER_SIZE);
         while (1);
     }
 
@@ -238,6 +239,7 @@
                 // If the magic number is overwitten - buffer overrun occurred - we will be stuck here forever!
                 uint8_t *received_buffer = _simple_link.get_received_buffer();
                 if (received_buffer[CC3000_RX_BUFFER_SIZE - 1] != CC3000_BUFFER_MAGIC_NUMBER) {
+                    DBG_CC("System halted - RX buffer overflow detected (buffer size: %d).", CC3000_RX_BUFFER_SIZE);
                     while (1);
                 }