cc3000 driver with expanded buffers.

Fork of cc3000_hostdriver_mbedsocket by Martin Kojtal

Files at this revision

API Documentation at this revision

Comitter:
heroic
Date:
Tue May 06 20:37:02 2014 +0000
Parent:
53:66e86aa98dbe
Child:
55:3d640d25a7ec
Commit message:
Debug HCI with LED.

Changed in this revision

cc3000_event.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/cc3000_event.cpp	Tue May 06 18:25:20 2014 +0000
+++ b/cc3000_event.cpp	Tue May 06 20:37:02 2014 +0000
@@ -198,6 +198,8 @@
 #endif
 }
 
+DigitalOut led1(p3);
+
 uint8_t *cc3000_event::hci_event_handler(void *ret_param, uint8_t *from, uint8_t *fromlen) {
     uint8_t *received_data, argument_size;
     uint16_t length;
@@ -206,9 +208,9 @@
     uint32_t return_value;
     uint8_t * RecvParams;
     uint8_t *RetParams;
-
+    led1=0;
     while (1)
-    {
+    {   
         if (_simple_link.get_data_received_flag() != 0)
         {
             received_data = _simple_link.get_received_data();
@@ -439,6 +441,7 @@
             }
             if ((_simple_link.get_op_code() == 0) && (_simple_link.get_pending_data() == 0))
             {
+                led1=1;
                 return NULL;
             }
         }