1 /* 2 * Copyright (c) 2006-2018, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2018-11-19 MurphyZhao the first version 9 */ 10 11 #ifndef __UTEST_LOG_H__ 12 #define __UTEST_LOG_H__ 13 14 #include <rtthread.h> 15 16 #define UTEST_DEBUG 17 18 #undef DBG_SECTION_NAME 19 #undef DBG_LEVEL 20 #undef DBG_COLOR 21 #undef DBG_ENABLE 22 23 #define DBG_ENABLE 24 #define DBG_SECTION_NAME "testcase" 25 #ifdef UTEST_DEBUG 26 #define DBG_LEVEL DBG_LOG 27 #else 28 #define DBG_LEVEL DBG_INFO 29 #endif 30 #define DBG_COLOR 31 #include <rtdbg.h> 32 33 #define UTEST_LOG_ALL (1u) 34 #define UTEST_LOG_ASSERT (2u) 35 36 void utest_log_lv_set(rt_uint8_t lv); 37 38 #endif /* __UTEST_LOG_H__ */ 39