generated from hulk/gd32e23x_template_cmake_vscode
update come code
This commit is contained in:
@@ -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 的接收缓冲区有数据时,触发该中断
|
||||
** 该中断为只读中断,不需要手动清除
|
||||
**
|
||||
**
|
||||
**
|
||||
*/
|
||||
}
|
Reference in New Issue
Block a user