Update drv_uart.c

This commit is contained in:
Zhao Puhan 2025-05-12 09:42:12 +08:00 committed by Rbb666
parent cb1a58cf37
commit 1afed1b782
1 changed files with 5 additions and 4 deletions

View File

@ -7,6 +7,7 @@
* Date Author Notes * Date Author Notes
* 2022-06-29 Rbb666 first version * 2022-06-29 Rbb666 first version
* 2025-04-21 hydevcode modify xmc7100d uart * 2025-04-21 hydevcode modify xmc7100d uart
* 2025-05-12 Passionate0424 update ifx_control
*/ */
#include <rtthread.h> #include <rtthread.h>
@ -217,7 +218,7 @@ static rt_err_t ifx_control(struct rt_serial_device *serial, int cmd, void *arg)
switch (cmd) switch (cmd)
{ {
case RT_DEVICE_CTRL_CLR_INT: case RT_DEVICE_CTRL_CLR_INT:
NVIC_DisableIRQ(uart->config->UART_SCB_IRQ_cfg->intrSrc);
break; break;
case RT_DEVICE_CTRL_SET_INT: case RT_DEVICE_CTRL_SET_INT: