test

Dependencies:   mbed ros_lib_kinetic nhk19mr2_can_info splitData SerialHalfDuplex_HM

debug/debug.h

Committer:
shimizuta
Date:
2019-03-11
Revision:
50:36741e8ab197
Parent:
18:0033ef1814ba

File content as of revision 50:36741e8ab197:

/** @file
*@brief デバッグ(teraterm表示)用のファイルです.DEBUG(引数);と打つとデバッグされます.
*本ヘッダファイル内のDEBUG_ONをdefineしなければと全てのデバッグ機能をなくすことが出来ます.
*/
#ifndef TEMPLATE_COMMON_DEBUG_DEBUG_H
#define TEMPLATE_COMMON_DEBUG_DEBUG_H
#include "mbed.h"
extern Serial pc;

//#define DEBUG_ON//デバッグ用。メイン文で使うか定義

#ifdef DEBUG_ON
//printf(...)と同義
#define DEBUG(...) pc.printf("" __VA_ARGS__);
#else
//DEBUGと言われても何もしない
#define DEBUG(...)
#endif


#endif