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