Browse Source

Update drv_uart.c

Zhao Puhan 2 months ago
parent
commit
1afed1b782
1 changed files with 5 additions and 4 deletions
  1. 5 4
      bsp/Infineon/libraries/HAL_Drivers/drv_uart.c

+ 5 - 4
bsp/Infineon/libraries/HAL_Drivers/drv_uart.c

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