SNIC UART Interface library: Serial to Wi-Fi library for Murata TypeYD Wi-Fi module. For more information about TypeYD: http://www.murata.co.jp/products/microwave/module/lbwb1zzydz/index.html
Dependents: SNIC-xively-jumpstart-demo SNIC-FluentLogger-example TCPEchoServer murataDemo ... more
Fork of YDwifiInterface by
Diff: SNIC/MurataObject.h
- Revision:
- 43:d80bbb12ffe6
- Parent:
- 42:17d89443d899
- Child:
- 49:3376556ba6ad
diff -r 17d89443d899 -r d80bbb12ffe6 SNIC/MurataObject.h
--- a/SNIC/MurataObject.h Fri Sep 19 01:46:17 2014 +0000
+++ b/SNIC/MurataObject.h Fri Nov 14 00:52:31 2014 +0000
@@ -20,13 +20,25 @@
#define _MURATA_OBJECT_H_
#include "mbed.h"
-//#define _DEBUG /* If this definition is enabled, debug log is output. */
+#define _DEBUG /* If this definition is enabled, debug log is output. */
+//#define _FUNC_TRACE
#ifdef _DEBUG
extern Serial pc;
#define DEBUG_PRINT(...) { pc.printf(__VA_ARGS__);}
+
+#ifdef _FUNC_TRACE
+#define FUNC_IN() { pc.printf( "%s[%d]%s[tid:%x] IN\r\n", __FILE__, __LINE__, __FUNCTION__, Thread::gettid());}
+#define FUNC_OUT() { pc.printf( "%s[%d]%s[tid:%x] OUT\r\n", __FILE__, __LINE__, __FUNCTION__, Thread::gettid() );}
+#else
+#define FUNC_IN()
+#define FUNC_OUT()
+#endif
+
#else
#define DEBUG_PRINT(...)
+#define FUNC_IN()
+#define FUNC_OUT()
#endif
class C_MurataObject{
muRata

Murata TypeYD