console.h 805 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * SPDX-License-Identifier: Apache-2.0
  3. *
  4. * Date Author Notes
  5. * 2018-12-29 ChenYong first implementation
  6. */
  7. #ifndef __CONSOLE_H__
  8. #define __CONSOLE_H__
  9. // TODO:
  10. #include <rtthread.h>
  11. #define console_printf rt_kprintf
  12. /**
  13. * XXX: Deprecated. Use LOG_DFLT instead.
  14. *
  15. * @brief Writes a formatted text entry with the specified level to the
  16. * default log module.
  17. *
  18. * The provided log level must be one of the following tokens:
  19. * o CRITICAL
  20. * o ERROR
  21. * o WARN
  22. * o INFO
  23. * o DEBUG
  24. *
  25. * This expands to nothing if the global log level is greater than
  26. * the specified level.
  27. *
  28. * @param ml_lvl_ The log level of the entry to write.
  29. */
  30. #define MODLOG_DFLT(ml_lvl_, ...) \
  31. MODLOG(ml_lvl_, LOG_MODULE_DEFAULT, __VA_ARGS__)
  32. #endif