mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 20:57:20 +08:00
[errno code]fix that use RT_ENOSYS without - (#7084)
* [errno code]fix that use RT_ENOSYS without - * Update bsp/airm2m/air32f103/libraries/rt_drivers/drv_hwtimer.c --------- Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
This commit is contained in:
co-authored by
Man, Jianting (Meco) <920369182@qq.com>
parent
e15adf5e45
commit
4ed9bc11f7
@@ -384,7 +384,7 @@ static rt_err_t swm_pin_irq_enable(struct rt_device *device,
|
||||
gpio_obj = _pin2struct(pin);
|
||||
if (gpio_obj == RT_NULL)
|
||||
{
|
||||
return RT_ENOSYS;
|
||||
return -RT_ENOSYS;
|
||||
}
|
||||
|
||||
if (enabled == PIN_IRQ_ENABLE)
|
||||
|
||||
@@ -406,7 +406,7 @@ static rt_err_t swm_pin_irq_enable(struct rt_device *device,
|
||||
gpio_obj = _pin2struct(pin);
|
||||
if (gpio_obj == RT_NULL)
|
||||
{
|
||||
return RT_ENOSYS;
|
||||
return -RT_ENOSYS;
|
||||
}
|
||||
|
||||
if (enabled == PIN_IRQ_ENABLE)
|
||||
|
||||
Reference in New Issue
Block a user