drv_log.h 613 B

123456789101112131415161718192021222324252627282930
  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-15 SummerGift change to new framework
  9. */
  10. /*
  11. * NOTE: DO NOT include this file on the header file.
  12. */
  13. #define DBG_ENABLE
  14. #define DBG_COLOR
  15. #ifndef LOG_TAG
  16. #define DBG_SECTION_NAME "drv"
  17. #else
  18. #define DBG_SECTION_NAME LOG_TAG
  19. #endif /* LOG_TAG */
  20. #ifdef DRV_DEBUG
  21. #define DBG_LEVEL DBG_LOG
  22. #else
  23. #define DBG_LEVEL DBG_INFO
  24. #endif /* DRV_DEBUG */
  25. #include <rtdbg.h>