version_2.0
Dependents: cc3000_ping_demo_try_2
Fork of cc3000_hostdriver_mbedsocket by
Diff: cc3000.h
- Revision:
- 13:5e36c267e62f
- Parent:
- 11:5e3771b29385
- Child:
- 14:28c8bbbea025
diff -r 5e3771b29385 -r 5e36c267e62f cc3000.h --- a/cc3000.h Tue Oct 01 21:17:44 2013 +0000 +++ b/cc3000.h Wed Oct 02 15:00:07 2013 +0000 @@ -55,6 +55,14 @@ */ #define CC3000_DEBUG 1 +#if CC3000_DEBUG == 1 + #define DBG_SOCKET(x, ...) std::printf("[CC3000 : SOCKET] "x"\r\n", ##__VA_ARGS__); + #define DBG_HCI(x, ...) std::printf("[CC3000 : HCI] "x"\r\n", ##__VA_ARGS__); +#else + #define DBG_SOCKET(x, ...) + #define DBG_HCI(x, ...) +#endif + namespace mbed_cc3000 { /** User info structure