app_err.h 537 B

12345678910111213141516171819202122232425
  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_LSM6DS3TR, //IMU 6轴错误
  13. ERR_NUM_IMU_QMC6310, //地磁计错误
  14. ERR_NUM_GAME, //游戏模式错误
  15. ERR_NUM_CONNET, //连接右鞋错误
  16. ERR_NUM_LOG, //日志打印
  17. ERR_NUM_OF_T, //命令连续用此值
  18. };
  19. void app_err_Init(void);
  20. void app_err_Set(uint8_t errNum,uint8_t errCode);
  21. #endif