#ifndef __ERROR_H #define __ERROR_H /** * @brief 错误码定义 */ #define SUCCESS 0 /* 操作成功 */ #define FAILURE -1 /* 操作失败 */ #define INVALID_VAL -2 /* 无效参数 */ #define COMM_ERR -3 /* 通信错误 */ #define TIMEOUT -4 /* 超时错误 */ #endif /* __ERROR_H */