debug.c 628 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #include "app_config.h"
  2. #include "typedef.h"
  3. #ifndef CONFIG_DEBUG_ENABLE
  4. int putchar(int a)
  5. {
  6. return a;
  7. }
  8. int puts(const char *out)
  9. {
  10. return 0;
  11. }
  12. int printf(const char *format, ...)
  13. {
  14. return 0;
  15. }
  16. void put_buf(const u8 *buf, int len)
  17. {
  18. }
  19. void put_u8hex(u8 dat)
  20. {
  21. }
  22. void put_u16hex(u16 dat)
  23. {
  24. }
  25. void put_u32hex(u32 dat)
  26. {
  27. }
  28. void log_print(int level, const char *tag, const char *format, ...)
  29. {
  30. }
  31. #ifndef CONFIG_DEBUG_LITE_ENABLE
  32. void log_putbyte(char c)
  33. {
  34. }
  35. #endif /* #ifndef CONFIG_DEBUG_LITE_ENABLE */
  36. int assert_printf(const char *format, ...)
  37. {
  38. cpu_assert_debug();
  39. return 0;
  40. }
  41. #endif