| | |
| | | UsartReceiveWaitData, |
| | | UsartReceiveWaitChecksum// |
| | | }UsartRecvPackState; |
| | | |
| | | // 定义状态枚举 |
| | | typedef enum { |
| | | Usart0ReceiveWaitHead0, |
| | | Usart0ReceiveWaitHead1, |
| | | Usart0ReceiveWaitCmdType, |
| | | Usart0ReceiveWaitMsgType, |
| | | Usart0ReceiveWaitDataLen, |
| | | Usart0ReceiveWaitParamAddr, |
| | | Usart0ReceiveWaitData, |
| | | Usart0ReceiveWaitChecksum, |
| | | } Usart0ReceiveState; |
| | | |
| | | extern uint8_t mUsartReceivePack[100]; |
| | | extern uint8_t mUsart2ReceivePack[100]; |
| | | |
| | | void UsartParseDataHandler(uint8_t data); |
| | | |
| | | void Usart2ParseDataHandler(uint8_t data); |
| | | void Usart0ParseDataHandler(uint8_t data); |
| | | |
| | | void UpdateProcess(uint8_t index); |
| | | #endif |