串口接收中斷的巧妙運用(基於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
相關文章
相關標籤/搜索