yuto kawamura
/
George_Slave_BOTHMOVE
right and left move at the same time
debug/debug.h
- Committer:
- shimizuta
- Date:
- 2019-05-08
- Revision:
- 9:ac95473a5d86
File content as of revision 9:ac95473a5d86:
/** @file *@brief デバッグ(teraterm表示)用のファイルです.DEBUG(引数);と打つとデバッグされます. *本ヘッダファイル内のDEBUG_ONをdefineしなければと全てのデバッグ機能をなくすことが出来ます. */ #ifndef TEMPLATE_COMMON_DEBUG_DEBUG_H #define TEMPLATE_COMMON_DEBUG_DEBUG_H #include "mbed.h" //#define DEBUG_ON//デバッグ用。使わないときはコメントアウト #ifdef DEBUG_ON extern Serial pc; //printf(...)と同義 #define DEBUG(...) pc.printf("" __VA_ARGS__); #else //DEBUGと言われても何もしない #define DEBUG(...) #endif #endif