mirror of https://github.com/RT-Thread/rt-thread
Update drv_uart.c
This commit is contained in:
parent
cb1a58cf37
commit
1afed1b782
|
@ -4,9 +4,10 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*
|
*
|
||||||
* Change Logs:
|
* Change Logs:
|
||||||
* 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:
|
||||||
|
|
Loading…
Reference in New Issue