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.
Fork of mbed-os-example-mbed5-blinky by
baidu_ca_debug.h
00001 // Copyright 2017 Baidu Inc. All Rights Reserved. 00002 // Author: Su Hao (suhao@baidu.com) 00003 // 00004 // Description: The APIs for debug the programs. 00005 00006 #ifndef BAIDU_IOT_TINYDU_IOT_OS_SRC_IOT_BAIDU_CA_SOURCE_BAIDU_CA_DEBUG_H 00007 #define BAIDU_IOT_TINYDU_IOT_OS_SRC_IOT_BAIDU_CA_SOURCE_BAIDU_CA_DEBUG_H 00008 00009 #include "baidu_ca_types.h" 00010 //TODO this file don't need any more see duer_log.h 00011 /* 00012 * debug function 00013 * 00014 * @Param level, in, void *, debug level 00015 * @Param file, in, const char *, debug file 00016 * @Param line, in, bca_u32_t, debug file line 00017 * @Param msg, in, debug message 00018 */ 00019 //BCA_INT void bca_debug_print(bca_u32_t level, const char* file, 00020 // bca_u32_t line, const char* msg); 00021 00022 /* 00023 * debug function 00024 * 00025 * @Param level, in, void *, debug level 00026 * @Param file, in, const char *, debug file 00027 * @Param line, in, bca_u32_t, debug file line 00028 * @Param fmt, in, debug message print format 00029 */ 00030 //BCA_INT void bca_debug(bca_u32_t level, const char* file, 00031 // bca_u32_t line, const char* fmt, ...); 00032 00033 //#ifdef BCA_DEBUG_LEVEL 00034 //#define BCA_DEBUG_EXT(_l, _f, _li, ...) bca_debug(_l, _f, _li, __VA_ARGS__) 00035 //#else 00036 //#define BCA_DEBUG_EXT(...) 00037 //#endif 00038 // 00039 //#if defined(BCA_DEBUG_LEVEL) && (BCA_DEBUG_LEVEL >= 5) 00040 //#define BCA_LOGV_EXT(_f, _l, ...) BCA_DEBUG_EXT(5, _f, _l, __VA_ARGS__) 00041 //#else 00042 //#define BCA_LOGV_EXT(...) 00043 //#endif 00044 // 00045 //#if defined(BCA_DEBUG_LEVEL) && (BCA_DEBUG_LEVEL >= 4) 00046 //#define BCA_LOGD_EXT(_f, _l, ...) BCA_DEBUG_EXT(4, _f, _l, __VA_ARGS__) 00047 //#else 00048 //#define BCA_LOGD_EXT(...) 00049 //#endif 00050 // 00051 //#if defined(BCA_DEBUG_LEVEL) && (BCA_DEBUG_LEVEL >= 3) 00052 //#define BCA_LOGI_EXT(_f, _l, ...) BCA_DEBUG_EXT(3, _f, _l, __VA_ARGS__) 00053 //#else 00054 //#define BCA_LOGI_EXT(...) 00055 //#endif 00056 // 00057 //#if defined(BCA_DEBUG_LEVEL) && (BCA_DEBUG_LEVEL >= 2) 00058 //#define BCA_LOGW_EXT(_f, _l, ...) BCA_DEBUG_EXT(2, _f, _l, __VA_ARGS__) 00059 //#else 00060 //#define BCA_LOGW_EXT(...) 00061 //#endif 00062 // 00063 //#if defined(BCA_DEBUG_LEVEL) && (BCA_DEBUG_LEVEL >= 1) 00064 //#define BCA_LOGE_EXT(_f, _l, ...) BCA_DEBUG_EXT(1, _f, _l, __VA_ARGS__) 00065 //#else 00066 //#define BCA_LOGE_EXT(...) 00067 //#endif 00068 // 00069 //#if defined(BCA_DEBUG_LEVEL) && (BCA_DEBUG_LEVEL >= 0) 00070 //#define BCA_LOGWTF_EXT(_f, _l, ...) BCA_DEBUG_EXT(0, _f, _l, __VA_ARGS__) 00071 //#else 00072 //#define BCA_LOGWTF_EXT(...) 00073 //#endif 00074 // 00075 //#define BCA_DEBUG(_l, ...) BCA_DEBUG_EXT(_l, __FILE__, __LINE__, __VA_ARGS__) 00076 //#define BCA_LOGV(...) BCA_LOGV_EXT(__FILE__, __LINE__, __VA_ARGS__) 00077 //#define BCA_LOGD(...) BCA_LOGD_EXT(__FILE__, __LINE__, __VA_ARGS__) 00078 //#define BCA_LOGI(...) BCA_LOGI_EXT(__FILE__, __LINE__, __VA_ARGS__) 00079 //#define BCA_LOGW(...) BCA_LOGW_EXT(__FILE__, __LINE__, __VA_ARGS__) 00080 //#define BCA_LOGE(...) BCA_LOGE_EXT(__FILE__, __LINE__, __VA_ARGS__) 00081 //#define BCA_LOGWTF(...) BCA_LOGWTF_EXT(__FILE__, __LINE__, __VA_ARGS__) 00082 00083 #endif // BAIDU_IOT_TINYDU_IOT_OS_SRC_IOT_BAIDU_CA_SOURCE_BAIDU_CA_DEBUG_H
Generated on Tue Jul 12 2022 16:28:52 by
1.7.2
