cc3000 hostdriver with the mbed socket interface
Dependents: cc3000_hello_world_demo cc3000_simple_socket_demo cc3000_ntp_demo cc3000_ping_demo ... more
Diff: cc3000_event.cpp
- Revision:
- 17:14b6a3a2b622
- Parent:
- 14:28c8bbbea025
- Child:
- 20:30b6ed7bf8fd
- Child:
- 23:fed7f64dd520
diff -r f3676ae62f96 -r 14b6a3a2b622 cc3000_event.cpp
--- a/cc3000_event.cpp Wed Oct 02 16:00:41 2013 +0000
+++ b/cc3000_event.cpp Wed Oct 02 20:29:31 2013 +0200
@@ -176,10 +176,10 @@
}
}
-void cc3000_event::hci_event_debug_print ( uint16_t hciEventNo )
+static void hci_event_debug_print(uint16_t hciEventNo)
{
#if CC3000_DEBUG == 1
- if (( hciEventNo > HCI_CMND_SOCKET_BASE) && ( hciEventNo <= HCI_CMND_MDNS_ADVERTISE))
+ if ((hciEventNo > HCI_CMND_SOCKET_BASE) && ( hciEventNo <= HCI_CMND_MDNS_ADVERTISE))
{
DBG_HCI("Event Received : 0x%04X - %s", hciEventNo, HCI_EVENT_STR[hciEventNo-HCI_CMND_SOCKET]);
}
@@ -226,7 +226,7 @@
STREAM_TO_UINT8(received_data, HCI_DATA_LENGTH_OFFSET, length);
hci_event_debug_print( received_op_code );
-
+
switch(received_op_code)
{
case HCI_CMND_READ_BUFFER_SIZE:
SimpleLink Wi-Fi CC3000
Avnet Wi-Go System