Added mutex for multiple SPI devices on the same SPI bus
Fork of cc3000_hostdriver_mbedsocket by
Diff: cc3000.h
- Revision:
- 17:14b6a3a2b622
- Parent:
- 16:f3676ae62f96
- Child:
- 19:9fdf8b4e41bf
- Child:
- 21:fb34ac8d9af5
--- a/cc3000.h Wed Oct 02 16:00:41 2013 +0000
+++ b/cc3000.h Wed Oct 02 20:29:31 2013 +0200
@@ -58,15 +58,15 @@
#if CC3000_DEBUG == 1
// DBG_SOCKET, mbed socket specific debug messages
- #define DBG_SOCKET(x, ...) std::printf("[CC3000 : SOCKET] "x"\r\n", ##__VA_ARGS__);
-
+ #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__);
-
+ #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__);
+ #define DBG_CC(x, ...) std::printf("[CC3000] "x"\r\n", ##__VA_ARGS__);
#else
- #define DBG_SOCKET(x, ...)
+ #define DBG_SOCKET(x, ...)
#define DBG_HCI(x, ...)
#define DBG_CC(x, ...)
#endif
@@ -216,7 +216,6 @@
~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);
