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.
Dependencies: UniGraphic mbed vt100
DebugIO.hpp
00001 #ifndef _MARUSOL_DEBUG_IO_HPP_ 00002 #define _MARUSOL_DEBUG_IO_HPP_ 00003 00004 #if defined (TARGET_TEENSY3_1) 00005 #include "USBSerial.h" 00006 #else 00007 #include "mbed.h" 00008 #endif 00009 00010 // #define SERIAL_PRINT_DBG_ON 00011 #ifdef SERIAL_PRINT_DBG_ON 00012 #define SERIAL_PRINT_DBG(...) (printf(__VA_ARGS__)) 00013 #define SERIAL_PRINT_DBG_FUNCNAME() (printf("%s,%d,%s\n",__FILE__,__LINE__,__PRETTY_FUNCTION__)) 00014 #else 00015 #define SERIAL_PRINT_DBG(...) 00016 #define SERIAL_PRINT_DBG_FUNCNAME() 00017 #endif //SERIAL_PRINT_DBG_ON 00018 00019 // #define SERIAL_PRINT_DBG_ASR_ON 00020 #ifdef SERIAL_PRINT_DBG_ASR_ON 00021 #define SERIAL_PRINT_DBG_ASR(...) (printf(__VA_ARGS__)) 00022 #else 00023 #define SERIAL_PRINT_DBG_ASR(...) 00024 #endif //SERIAL_PRINT_DBG_ASR_ON 00025 00026 #endif //_MARUSOL_DEBUG_IO_HPP_
Generated on Tue Jul 12 2022 21:26:07 by
1.7.2