test

Dependencies:   mbed ros_lib_kinetic nhk19mr2_can_info splitData SerialHalfDuplex_HM

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers debug.h Source File

debug.h

Go to the documentation of this file.
00001 /** @file
00002 *@brief デバッグ(teraterm表示)用のファイルです.DEBUG(引数);と打つとデバッグされます.
00003 *本ヘッダファイル内のDEBUG_ONをdefineしなければと全てのデバッグ機能をなくすことが出来ます.
00004 */
00005 #ifndef TEMPLATE_COMMON_DEBUG_DEBUG_H
00006 #define TEMPLATE_COMMON_DEBUG_DEBUG_H
00007 #include "mbed.h"
00008 extern Serial pc;
00009 
00010 //#define DEBUG_ON//デバッグ用。メイン文で使うか定義
00011 
00012 #ifdef DEBUG_ON
00013 //printf(...)と同義
00014 #define DEBUG(...) pc.printf("" __VA_ARGS__);
00015 #else
00016 //DEBUGと言われても何もしない
00017 #define DEBUG(...)
00018 #endif
00019 
00020 
00021 #endif