刚看到的,哈哈
- #include "stm32f10x.h"
- #include "usr_uart.h"
- uint8_t USART1_receive_data = 0,USART2_receive_data = 0;
- uint8_t USART2_receive_buf1[1024],USART2_receive_buf2[1024];
- __IO uint16_t USART2_receive_index=0; //严重注意:这里一定要至少16位的,晕,找了半天错。
- __IO uint8_t USART2_receive_flag1 =0,USART2_receive_flag2 =0;
- __IO uint8_t USART2_receive_buf_sel = 1;
|