cc3000 driver with expanded buffers.

Fork of cc3000_hostdriver_mbedsocket by Martin Kojtal

Revision:
3:ad95e296bfbf
Parent:
0:615c697c33b0
Child:
4:15b58c119a0a
--- a/cc3000.cpp	Thu Sep 19 08:02:13 2013 +0000
+++ b/cc3000.cpp	Thu Sep 19 08:04:22 2013 +0000
@@ -49,7 +49,7 @@
 
 cc3000::cc3000(PinName cc3000_irq, PinName cc3000_en, PinName cc3000_cs, SPI cc3000_spi, IRQn_Type irq_port)
             :  _event(_simple_link, _hci, _spi, *this), _socket(_simple_link, _hci, _event), _spi(cc3000_irq, cc3000_en, cc3000_cs, cc3000_spi, irq_port, _event, _simple_link), _hci(_spi),
-            _nvmem(_hci, _event, _simple_link), _netapp(_simple_link, _nvmem, _hci, _event), _wlan(_simple_link, _event, _spi, _hci), _buffer(256) {
+            _nvmem(_hci, _event, _simple_link), _netapp(_simple_link, _nvmem, _hci, _event), _wlan(_simple_link, _event, _spi, _hci) {
     /* TODO - pIRQ riorities ?? */
 
     _simple_link.set_tx_complete_signal(1);
@@ -426,19 +426,6 @@
     return _ping_report.packets_received;
 }
 
-int32_t cc3000::readable(void) {
-    return _buffer.available();
-}
-
-uint8_t cc3000::getc(void)
-{
-    char c;
-
-    while (!_buffer.available());
-    _buffer.dequeue(&c);
-    return (uint8_t)c;
-}
-
 /* Conversion between uint types and C strings */
 uint8_t* UINT32_TO_STREAM_f (uint8_t *p, uint32_t u32)
 {