Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of cc3000_hostdriver_mbedsocket by
Revision 55:3d640d25a7ec, committed 2014-05-06
- Comitter:
- heroic
- Date:
- Tue May 06 21:22:41 2014 +0000
- Parent:
- 54:cae3dfc6df20
- Child:
- 56:9ab991c1d2db
- Commit message:
- Move debug LED access around;
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 20:37:02 2014 +0000
+++ b/cc3000_event.cpp Tue May 06 21:22:41 2014 +0000
@@ -208,11 +208,11 @@
uint32_t return_value;
uint8_t * RecvParams;
uint8_t *RetParams;
- led1=0;
while (1)
{
if (_simple_link.get_data_received_flag() != 0)
{
+ led1=0;
received_data = _simple_link.get_received_data();
if (*received_data == HCI_TYPE_EVNT)
{
@@ -406,6 +406,7 @@
}
}
+ led1=1;
if (received_op_code == _simple_link.get_op_code())
{
_simple_link.set_op_code(0);
@@ -441,7 +442,6 @@
}
if ((_simple_link.get_op_code() == 0) && (_simple_link.get_pending_data() == 0))
{
- led1=1;
return NULL;
}
}
