selfcheck.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef __SELFCHECK_H__
  2. #define __SELFCHECK_H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*Includes ------------------------------------------------------*/
  7. #include <stdbool.h>
  8. #include <stdint.h>
  9. #include <string.h>
  10. #include "sdk_common.h"
  11. #include "SEGGER_RTT.h"
  12. #include "usr_config.h"
  13. /*Private macro ------------------------------------------------------------------------------------------------------------------------------------*/
  14. /*STRUCTION ----------------------------------------------------*/
  15. typedef enum {
  16. SELFCHECK_FLOW_TOOLING_BOARD = 0x55, //工装板自检
  17. SELFCHECK_FLOW_COMPLETE_BOARD, //完整板自检
  18. SELFCHECK_FLOW_DONE, //自检完成
  19. } SELFCHECK_FLOW_e; //自检流程
  20. /*API -------------------------------------------------------*/
  21. /**
  22. @brief 初始化自检
  23. @param 无
  24. @return 当前的自检流程
  25. */
  26. SELFCHECK_FLOW_e selfcheck_Init(void);
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif