van_bsp_debug_shell.h 975 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /******************************************************************
  2. * Copyright (C) 2023 - 2023 OneChip, Inc. All rights reserved.
  3. * File name: van_bsp_debug_shell.c
  4. * Author: fanyidong Date:2020.11.21
  5. * Description: 单片机仿shell函数
  6. * Others:
  7. * History:
  8. 1. Date:
  9. Author:
  10. Modification:
  11. *****************************************************************/
  12. #ifndef VAN_BSP_DEBUG_SHELL_H
  13. #define VAN_BSP_DEBUG_SHELL_H
  14. typedef enum {
  15. VAN_LOG_ALLPRINT = 0,
  16. VAN_LOG_ERROR = 0x01,
  17. VAN_LOG_WARN = 0x02,
  18. VAN_LOG_INFO = 0x04,
  19. VAN_LOG_NOTICE = 0x08,
  20. VAN_LOG_WIFI = 0x10,
  21. VAN_LOG_TEMP = 0x20,
  22. VAN_LOG_COMM = 0x40,
  23. VAN_LOG_DEBUG = 0x80,
  24. }VAN_LOG_LEVEL_DEF;
  25. void addChartoCmdBuf(unsigned char inputchar);
  26. void addinputtocmdbuf(unsigned char *cmdbuf, unsigned int len);
  27. void decodedebugfunction(void);
  28. void decodedebugvariable(void);
  29. void find_stm32_Peripherals(void *peripheralsAdd, char *name);
  30. #endif // DRIVER_COMMON_H