diff options
| author | Meco Man <[email protected]> | 2023-03-16 00:47:22 -0400 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2023-03-16 20:21:25 -0400 |
| commit | e4e88b2f3eff319105a34ec7827c2ee135c9e8b7 (patch) | |
| tree | 10d5c4756c4606832c9147533ec2a21a23344f2b | |
| parent | 991a2f1e9e1ae7ce18415f2ce3e781de2d4719b5 (diff) | |
[error code][RT_EOK] fix RT_EOK with -
| -rw-r--r-- | bsp/hk32/libraries/rt_drivers/drv_gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/hk32/libraries/rt_drivers/drv_gpio.c b/bsp/hk32/libraries/rt_drivers/drv_gpio.c index 294d95b78c..81516d493a 100644 --- a/bsp/hk32/libraries/rt_drivers/drv_gpio.c +++ b/bsp/hk32/libraries/rt_drivers/drv_gpio.c @@ -229,7 +229,7 @@ static rt_err_t hk32_pin_attach_irq(struct rt_device *device, rt_int32_t pin, pin_irq_hdr_tab[irqindex].args == args) { rt_hw_interrupt_enable(level); - return -RT_EOK; + return RT_EOK; } if (pin_irq_hdr_tab[irqindex].pin != -1) { |
