controller-pcba/User/driver/error.h

13 lines
315 B
C

#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 */