update come code

This commit is contained in:
2025-08-12 00:32:39 +08:00
parent ddb2dfbd2a
commit 9b3d19cffa
3 changed files with 12 additions and 13 deletions

View File

@@ -101,14 +101,6 @@ void SysTick_Handler(void) {
void USART0_IRQHandler(void) {
if (RESET != usart_interrupt_flag_get(USART0, USART_INT_FLAG_RBNE)) {
uint8_t data = usart_data_receive(USART0);
uart_rx_put(data);
(void)uart_ring_buffer_put(data); // 缓冲满时丢弃,返回值可用于统计
}
/* 处理 USART0 中断
** USART_INT_FLAG_RBNE 读缓冲区非空中断标志
** 即:当 USART0 的接收缓冲区有数据时,触发该中断
** 该中断为只读中断,不需要手动清除
**
**
**
*/
}