| | |
| | | #include "board.h" |
| | | //#include "Spi.h" |
| | | //#include "radio.h" |
| | | |
| | | #include "PCA9555.h" |
| | | |
| | | |
| | | //#define EUART_RX_BUF_SIZE 100 |
| | |
| | | uint8_t DMA_RXBuf_BT[200]={0}; |
| | | uint8_t Forward_BT_buff[buff_lenth]={0}; |
| | | uint8_t report_ancnum_bt=0; |
| | | |
| | | extern uint8_t uwbled,btled,loraled,powerled;; |
| | | void UsartParseDataHandler(uint8_t data) |
| | | { |
| | | static UsartRecvPackState usart_receive_state = UsartReceiveWaitHead0; |
| | |
| | | } else if ((usart_receive_state == UsartReceiveWaitMsgType) && (data == 0x41)) |
| | | { |
| | | usart_receive_state = UsartReceiveWaitDataLen; |
| | | |
| | | btled=1; |
| | | } |
| | | else { |
| | | usart_receive_state = UsartReceiveWaitHead0; |