#ifndef __app_err_h__ #define __app_err_h__ #include #include #include #include "sdk_common.h" #include "SEGGER_RTT.h" #include "usr_config.h" enum { //错误编号 ERR_NUM_NONE = 0, //留 ERR_NUM_FLASH, //FLASH错误 ERR_NUM_IMU_LSM6DS3TR, //IMU 6轴错误 ERR_NUM_IMU_QMC6310, //地磁计错误 ERR_NUM_GAME, //游戏模式错误 ERR_NUM_CONNET, //连接右鞋错误 ERR_NUM_LOG, //日志打印 ERR_NUM_OF_T, //命令连续用此值 }; void app_err_Init(void); void app_err_Set(uint8_t errNum,uint8_t errCode); #endif