AutoTest.h 635 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * AutoTest.h
  3. *
  4. * Created on: Jun 13, 2024
  5. * Author: Administrator
  6. */
  7. #ifndef APP_INCLUDE_AUTOTEST_H_
  8. #define APP_INCLUDE_AUTOTEST_H_
  9. #include "typedef.h"
  10. #if AUTO_TEST
  11. typedef enum{
  12. TEST_INIT,
  13. TEST_READY,
  14. TEST_BUSY,
  15. TEST_FINISH,
  16. }TEST_STATE;
  17. void AutoTestInit(void);
  18. TEST_STATE GetTestState(void);
  19. void ReturnTestResult(BOOL rst);
  20. void AutoTestHandle(void);
  21. #define TEST_START_PIN GPIO_Pin_5 //PA5
  22. #define TEST_BUSY_PIN GPIO_Pin_1 //PB1
  23. #define TEST_OK_PIN GPIO_Pin_6 //PA6
  24. #define TEST_NG_PIN GPIO_Pin_7 //PA7
  25. #endif
  26. #endif /* APP_INCLUDE_AUTOTEST_H_ */