Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SNICInterface by
Diff: SNIC/MurataObject.h
- Revision:
- 43:d80bbb12ffe6
- Parent:
- 42:17d89443d899
--- 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{
