[errno code]fix that use RT_EFULL without -

This commit is contained in:
Zxy 2023-03-23 12:38:44 +08:00 committed by Man, Jianting (Meco)
parent 156fda61cf
commit 765c2ec5f9
7 changed files with 7 additions and 7 deletions

View File

@ -345,7 +345,7 @@ static rt_err_t _pin_attach_irq(struct rt_device *device, rt_int32_t pin,
if (pin_irq_hdr_tab[hdr_index].pin != -1)
{
rt_hw_interrupt_enable(level);
return RT_EFULL;
return -RT_EFULL;
}
pin_irq_hdr_tab[hdr_index].pin = pin;
pin_irq_hdr_tab[hdr_index].hdr = hdr;

View File

@ -345,7 +345,7 @@ static rt_err_t _pin_attach_irq(struct rt_device *device, rt_int32_t pin,
if (pin_irq_hdr_tab[hdr_index].pin != -1)
{
rt_hw_interrupt_enable(level);
return RT_EFULL;
return -RT_EFULL;
}
pin_irq_hdr_tab[hdr_index].pin = pin;
pin_irq_hdr_tab[hdr_index].hdr = hdr;

View File

@ -370,7 +370,7 @@ rt_err_t gd32_pin_attach_irq(struct rt_device *device, rt_int32_t pin,
if (pin_irq_hdr_tab[hdr_index].pin != -1)
{
rt_hw_interrupt_enable(level);
return RT_EFULL;
return -RT_EFULL;
}
pin_irq_hdr_tab[hdr_index].pin = pin;
pin_irq_hdr_tab[hdr_index].hdr = hdr;

View File

@ -293,7 +293,7 @@ rt_err_t gd32_pin_attach_irq(struct rt_device *device, rt_int32_t pin,
if (pin_irq_hdr_tab[hdr_index].pin != -1)
{
rt_hw_interrupt_enable(level);
return RT_EFULL;
return -RT_EFULL;
}
pin_irq_hdr_tab[hdr_index].pin = pin;
pin_irq_hdr_tab[hdr_index].hdr = hdr;

View File

@ -265,7 +265,7 @@ rt_err_t gd32_pin_attach_irq(struct rt_device *device, rt_int32_t pin,
if (pin_irq_hdr_tab[hdr_index].pin != -1)
{
rt_hw_interrupt_enable(level);
return RT_EFULL;
return -RT_EFULL;
}
pin_irq_hdr_tab[hdr_index].pin = pin;
pin_irq_hdr_tab[hdr_index].hdr = hdr;

View File

@ -218,7 +218,7 @@ static struct exti_line_irq *exti_line_irq_list_find(rt_int16_t pin)
static rt_err_t exti_line_irq_list_bind(struct rt_pin_irq_hdr *irq_hdr)
{
rt_err_t ret = RT_EFULL;
rt_err_t ret = -RT_EFULL;
rt_base_t level;
struct exti_line_irq *item;
int index;

View File

@ -249,7 +249,7 @@ static struct exti_line_irq *exti_line_irq_list_find(rt_int16_t pin)
static rt_err_t exti_line_irq_list_bind(struct rt_pin_irq_hdr *irq_hdr)
{
rt_err_t ret = RT_EFULL;
rt_err_t ret = -RT_EFULL;
rt_base_t level;
struct exti_line_irq *item;
int index;