utest_log.h 630 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2006-2021, 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. #ifndef __UTEST_LOG_H__
  11. #define __UTEST_LOG_H__
  12. #include <rtthread.h>
  13. // #define UTEST_DEBUG
  14. #undef DBG_TAG
  15. #undef DBG_LVL
  16. #define DBG_TAG "utest"
  17. #ifdef UTEST_DEBUG
  18. #define DBG_LVL DBG_LOG
  19. #else
  20. #define DBG_LVL DBG_INFO
  21. #endif
  22. #include <rtdbg.h>
  23. #define UTEST_LOG_ALL (1u)
  24. #define UTEST_LOG_ASSERT (2u)
  25. void utest_log_lv_set(rt_uint8_t lv);
  26. #endif /* __UTEST_LOG_H__ */