Skip to content

Commit 6ffa53a

Browse files
Passionate0424Rbb666
authored andcommitted
修改ifx_pin_irq_enable函数
1 parent 283c2fb commit 6ffa53a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bsp/Infineon/libraries/HAL_Drivers/drv_gpio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Change Logs:
77
* Date Author Notes
88
* 2022-07-1 Rbb666 first version
9+
* 2025-04-24 Passionate0424 fix ifx_pin_irq_enable
910
*/
1011

1112
#include "drv_gpio.h"
@@ -353,7 +354,7 @@ static rt_err_t ifx_pin_irq_enable(struct rt_device *device, rt_base_t pin,
353354
{
354355
level = rt_hw_interrupt_disable();
355356

356-
Cy_GPIO_Port_Deinit(CYHAL_GET_PORTADDR(gpio_pin));
357+
irqmap = &pin_irq_map[gpio_port];
357358

358359
#if !defined(COMPONENT_CAT1C)
359360
IRQn_Type irqn = (IRQn_Type)(irqmap->irqno + PORT_GET(irqmap->port));

0 commit comments

Comments
 (0)