mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-26 14:54:35 +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
@@ -176,7 +176,7 @@ rt_err_t am_pin_irq_enable(struct rt_device *device, rt_base_t pin, rt_uint32_t
|
||||
{
|
||||
if (am_hal_gpio_int_enable_get() != AM_HAL_GPIO_BIT(am_pin_irq_hdr_tab[irqindex].pin))
|
||||
{
|
||||
return RT_ENOSYS;
|
||||
return -RT_ENOSYS;
|
||||
}
|
||||
|
||||
/* Disable the GPIO/button interrupt */
|
||||
@@ -184,7 +184,7 @@ rt_err_t am_pin_irq_enable(struct rt_device *device, rt_base_t pin, rt_uint32_t
|
||||
}
|
||||
else
|
||||
{
|
||||
return RT_ENOSYS;
|
||||
return -RT_ENOSYS;
|
||||
}
|
||||
|
||||
return RT_EOK;
|
||||
|
||||
Reference in New Issue
Block a user