cc3000 hostdriver with the mbed socket interface
Fork of cc3000_hostdriver_mbedsocket by
Diff: cc3000.h
- Revision:
- 14:28c8bbbea025
- Parent:
- 13:5e36c267e62f
- Child:
- 15:aae737ca3dd2
--- a/cc3000.h Wed Oct 02 15:00:07 2013 +0000 +++ b/cc3000.h Wed Oct 02 15:26:41 2013 +0000 @@ -56,11 +56,19 @@ #define CC3000_DEBUG 1 #if CC3000_DEBUG == 1 + + // DBG_SOCKET, mbed socket specific debug messages #define DBG_SOCKET(x, ...) std::printf("[CC3000 : SOCKET] "x"\r\n", ##__VA_ARGS__); + + // DBG_HCI, prints a message for every recieved HCI event, quite a lot of debug #define DBG_HCI(x, ...) std::printf("[CC3000 : HCI] "x"\r\n", ##__VA_ARGS__); + + // DBG_CC, General cc3000 debug messages + #define DBG_CC(x, ...) std::printf("[CC3000] "x"\r\n", ##__VA_ARGS__); #else #define DBG_SOCKET(x, ...) #define DBG_HCI(x, ...) + #define DBG(x, ...) #endif namespace mbed_cc3000 { @@ -208,6 +216,7 @@ ~cc3000_event(); void hci_unsol_handle_patch_request(uint8_t *event_hdr); + void hci_event_debug_print ( uint16_t hciEventNo ); uint8_t *hci_event_handler(void *ret_param, uint8_t *from, uint8_t *fromlen); int32_t hci_unsol_event_handler(uint8_t *event_hdr); int32_t hci_unsolicited_event_handler(void);