Skip to content

Commit 83909b2

Browse files
illustriousnessRbb666
authored andcommitted
[Fix] <bsp>:gd32_uart_gpio_init 过早开中断触发断言rx_fifo == NULL
Solution: gd32_uart_gpio_init 不开中断 等驱动框架初始化好fifo后通过 device_control 开中断 Signed-off-by: Yucai Liu <[email protected]>
1 parent 236e830 commit 83909b2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

bsp/gd32/arm/libraries/gd32_drivers/drv_usart.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ void gd32_uart_gpio_init(struct gd32_uart *uart)
416416
#endif
417417

418418
NVIC_SetPriority(uart->irqn, 0);
419-
NVIC_EnableIRQ(uart->irqn);
420419
}
421420

422421
/**

0 commit comments

Comments
 (0)