app_err.h 642 B

12345678910111213141516171819202122232425262728
  1. #ifndef __app_err_h__
  2. #define __app_err_h__
  3. #include <stdbool.h>
  4. #include <stdint.h>
  5. #include <string.h>
  6. #include "sdk_common.h"
  7. #include "SEGGER_RTT.h"
  8. #include "usr_config.h"
  9. enum { //错误编号
  10. ERR_NUM_NONE = 0, //留
  11. ERR_NUM_FLASH, //FLASH错误
  12. ERR_NUM_IMU_PRESS, //IMU 压力错误
  13. ERR_NUM_IMU_MPU9250, //IMU 9轴错误
  14. ERR_NUM_IMU_BMI160, //IMU 6轴错误
  15. ERR_NUM_IMU_QMC5883L, //地磁计错误
  16. ERR_NUM_IMU_QMC6310, //地磁计错误
  17. ERR_NUM_GAME, //游戏模式错误
  18. ERR_NUM_CONNET, //连接右鞋错误
  19. ERR_NUM_LOG, //日志打印
  20. ERR_NUM_OF_T, //命令连续用此值
  21. };
  22. void app_err_Init(void);
  23. void app_err_Set(uint8_t errNum,uint8_t errCode);
  24. #endif