This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
请查看下面对您的查询的解释。
1.中断处理:
•APP_UART_ISR是UART Tx和Rx中断的中断服务例程(ISR)。
•每当发生UART中断(按字节或基于FIFO阈值,根据用户配置)时,SoC首先调用APP_UART_ISR。
2.阅读完成回调:
•UART_LLD_READCompleteCallback仅在收到全部配置的字节数后触发。
•例如,如果您为100字节配置了读取操作,SOC将继续通过APP_UART_ISR处理每个字节或FIFO阈值的UART中断。
•收到100个字节后,将调用UART_LLD_READCompleteCallback以指示完整的数据块可用。