mirror of https://github.com/RT-Thread/rt-thread
修改ifx_pin_irq_enable函数
This commit is contained in:
parent
283c2fb94f
commit
6ffa53a914
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue