Added mutex for multiple SPI devices on the same SPI bus
Fork of cc3000_hostdriver_mbedsocket by
Diff: Socket/Endpoint.cpp
- Revision:
- 13:5e36c267e62f
- Parent:
- 11:5e3771b29385
- Child:
- 16:f3676ae62f96
diff -r 5e3771b29385 -r 5e36c267e62f Socket/Endpoint.cpp --- a/Socket/Endpoint.cpp Tue Oct 01 21:17:44 2013 +0000 +++ b/Socket/Endpoint.cpp Wed Oct 02 15:00:07 2013 +0000 @@ -109,15 +109,14 @@ _remote_host.sin_family = AF_INET; _remote_host.sin_port = htons(port); -#if (CC3000_DEBUG == 1) - printf("DEBUG: remote host address (string): %s\r\n",get_address()); - printf("DEBUG: remote host address from s_addr : %d.%d.%d.%d\r\n", + DBG_SOCKET("remote host address (string): %s",get_address()); + DBG_SOCKET("remote host address from s_addr : %d.%d.%d.%d", int(_remote_host.sin_addr.s_addr & 0xFF), int((_remote_host.sin_addr.s_addr & 0xFF00) >> 8), int((_remote_host.sin_addr.s_addr & 0xFF0000) >> 16), int((_remote_host.sin_addr.s_addr & 0xFF000000) >> 24)); - printf("DEBUG: port: %d \r\n", port); -#endif + DBG_SOCKET("port: %d", port); + return 0; }