diff --git a/package/STM32/pika_hal_stm32_UART.c b/package/STM32/pika_hal_stm32_UART.c index cb402f701..12207505f 100644 --- a/package/STM32/pika_hal_stm32_UART.c +++ b/package/STM32/pika_hal_stm32_UART.c @@ -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) {