#include "downUartParse.h" /* 1秒的节拍数 */ #define tick_1S configTICK_RATE_HZ /* 状态机 */ typedef enum { wait = 0, /* 串口状态机初始状态 */ startFlag, /* 接收到帧头 */ // address, /* 设备地址 */ functionCode, /* 接收到功能码 */ dataLen, /* 接收到数据长度 */ crcCheckBitGW, /* 接收到校验位 */ endFlagGW, /* 接收到帧尾 */ } uartStateMachine;