version_2.0
Dependents: cc3000_ping_demo_try_2
Fork of cc3000_hostdriver_mbedsocket by
Diff: cc3000.cpp
- Revision:
- 47:e9d12b82813e
- Parent:
- 46:ca8c234997c0
--- a/cc3000.cpp Sun Nov 10 21:41:44 2013 +0100 +++ b/cc3000.cpp Wed Jun 25 06:08:39 2014 +0000 @@ -82,7 +82,9 @@ static char networkmask[17] = "\0"; void cc3000::init() { + printf("CC3000 init start. \r\n"); _wlan.start(0); + printf("CC3000 init 1. \r\n"); uint32_t subnet[4] = {0}; uint32_t ip[4] = {0}; @@ -90,12 +92,18 @@ uint32_t dns[4] = {0}; _netapp.dhcp(ip, subnet, getway, dns); + printf("CC3000 init 2. \r\n"); _wlan.stop(); + printf("CC3000 init 3. \r\n"); wait(1); + printf("CC3000 init 4. \r\n"); _wlan.start(0); + printf("CC3000 init 5. \r\n"); _status.enabled = 1; _wlan.set_event_mask(HCI_EVNT_WLAN_UNSOL_INIT | HCI_EVNT_WLAN_KEEPALIVE); + printf("CC3000 init 6. \r\n"); + printf("CC3000 init done. \r\n"); } void cc3000::init(const char *ip, const char *mask, const char *gateway) { @@ -366,9 +374,12 @@ } void cc3000::start(uint8_t patch) { + printf("CC3000 start 1. \r\n"); _wlan.start(patch); + printf("CC3000 start 2. \r\n"); _status.enabled = 1; _wlan.set_event_mask(HCI_EVNT_WLAN_UNSOL_INIT | HCI_EVNT_WLAN_KEEPALIVE); + printf("CC3000 start 3. \r\n"); } void cc3000::stop(void) {