串口接收中断的巧妙运用(基于KEA128,用于接收不定长数据帧)

//uart.c函数 unsigned int uart_rx_with_to(UART_Type *uart_prt, unsigned char *pbuffer) { unsigned int i = 0; unsigned int len = 0; while (1) { if (uart_prt->S1 & UART_S1_RDRF_MA
相关文章
相关标签/搜索