修改ifx_pin_irq_enable函数

This commit is contained in:
Passionate0424 2025-04-24 11:08:33 +08:00 committed by Rbb666
parent 283c2fb94f
commit 6ffa53a914
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
* Change Logs:
* Date Author Notes
* 2022-07-1 Rbb666 first version
* 2025-04-24 Passionate0424 fix ifx_pin_irq_enable
*/
#include "drv_gpio.h"
@ -353,7 +354,7 @@ static rt_err_t ifx_pin_irq_enable(struct rt_device *device, rt_base_t pin,
{
level = rt_hw_interrupt_disable();
Cy_GPIO_Port_Deinit(CYHAL_GET_PORTADDR(gpio_pin));
irqmap = &pin_irq_map[gpio_port];
#if !defined(COMPONENT_CAT1C)
IRQn_Type irqn = (IRQn_Type)(irqmap->irqno + PORT_GET(irqmap->port));