restore STM32 to v0.1.2

This commit is contained in:
Lyon 2024-09-07 22:52:58 +08:00
parent 2b90a1a14b
commit e0e6d56e6a

View File

@ -1135,16 +1135,16 @@ static void uart_isr(struct rt_serial_device *serial)
}
#if defined(BSP_USING_UART1)
//void USART1_IRQHandler(void)
//{
// /* enter interrupt */
// rt_interrupt_enter();
void USART1_IRQHandler(void)
{
/* enter interrupt */
rt_interrupt_enter();
// uart_isr(&(uart_obj[UART1_INDEX].serial));
uart_isr(&(uart_obj[UART1_INDEX].serial));
// /* leave interrupt */
// rt_interrupt_leave();
//}
/* leave interrupt */
rt_interrupt_leave();
}
#if defined(RT_SERIAL_USING_DMA) && defined(BSP_UART1_RX_USING_DMA)
void UART1_DMA_RX_IRQHandler(void)
{