Websocket_Sample for MurataTypeYD

Dependencies:   mbed picojson

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MurataObject.h Source File

MurataObject.h

00001 /* Copyright (C) 2014 Murata Manufacturing Co.,Ltd., MIT License
00002  *  muRata, SWITCH SCIENCE Wi-FI module TypeYD SNIC-UART.
00003  *
00004  * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
00005  * and associated documentation files (the "Software"), to deal in the Software without restriction,
00006  * including without limitation the rights to use, copy, modify, merge, publish, distribute,
00007  * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
00008  * furnished to do so, subject to the following conditions:
00009  *
00010  * The above copyright notice and this permission notice shall be included in all copies or
00011  * substantial portions of the Software.
00012  *
00013  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
00014  * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00015  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
00016  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00017  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00018  */
00019 #ifndef _MURATA_OBJECT_H_
00020 #define _MURATA_OBJECT_H_
00021 #include "mbed.h"
00022 
00023 // KTEC MOD S
00024 //#define _DEBUG      /* If this definition is enabled, debug log is output. */
00025 #define _DEBUG      /* If this definition is enabled, debug log is output. */
00026 // KTEC MOD E
00027 //#define _FUNC_TRACE
00028 
00029 #ifdef _DEBUG
00030 extern Serial pc;
00031 #define DEBUG_PRINT(...)    { pc.printf(__VA_ARGS__);}
00032 
00033 #ifdef _FUNC_TRACE
00034 #define FUNC_IN()             { pc.printf( "%s[%d]%s[tid:%x] IN\r\n", __FILE__, __LINE__, __FUNCTION__, Thread::gettid());}
00035 #define FUNC_OUT()            { pc.printf( "%s[%d]%s[tid:%x] OUT\r\n", __FILE__, __LINE__, __FUNCTION__, Thread::gettid() );}
00036 #else
00037 #define FUNC_IN()
00038 #define FUNC_OUT()
00039 #endif
00040 
00041 #else
00042 #define DEBUG_PRINT(...)
00043 #define FUNC_IN()
00044 #define FUNC_OUT()
00045 #endif
00046 
00047 class C_MurataObject{
00048    
00049 };
00050 
00051 #endif