[errno code]fix that use RT_EFULL without -
This commit is contained in:
parent
156fda61cf
commit
765c2ec5f9
|
@ -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)
|
if (pin_irq_hdr_tab[hdr_index].pin != -1)
|
||||||
{
|
{
|
||||||
rt_hw_interrupt_enable(level);
|
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].pin = pin;
|
||||||
pin_irq_hdr_tab[hdr_index].hdr = hdr;
|
pin_irq_hdr_tab[hdr_index].hdr = hdr;
|
||||||
|
|
|
@ -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)
|
if (pin_irq_hdr_tab[hdr_index].pin != -1)
|
||||||
{
|
{
|
||||||
rt_hw_interrupt_enable(level);
|
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].pin = pin;
|
||||||
pin_irq_hdr_tab[hdr_index].hdr = hdr;
|
pin_irq_hdr_tab[hdr_index].hdr = hdr;
|
||||||
|
|
|
@ -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)
|
if (pin_irq_hdr_tab[hdr_index].pin != -1)
|
||||||
{
|
{
|
||||||
rt_hw_interrupt_enable(level);
|
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].pin = pin;
|
||||||
pin_irq_hdr_tab[hdr_index].hdr = hdr;
|
pin_irq_hdr_tab[hdr_index].hdr = hdr;
|
||||||
|
|
|
@ -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)
|
if (pin_irq_hdr_tab[hdr_index].pin != -1)
|
||||||
{
|
{
|
||||||
rt_hw_interrupt_enable(level);
|
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].pin = pin;
|
||||||
pin_irq_hdr_tab[hdr_index].hdr = hdr;
|
pin_irq_hdr_tab[hdr_index].hdr = hdr;
|
||||||
|
|
|
@ -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)
|
if (pin_irq_hdr_tab[hdr_index].pin != -1)
|
||||||
{
|
{
|
||||||
rt_hw_interrupt_enable(level);
|
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].pin = pin;
|
||||||
pin_irq_hdr_tab[hdr_index].hdr = hdr;
|
pin_irq_hdr_tab[hdr_index].hdr = hdr;
|
||||||
|
|
|
@ -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)
|
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;
|
rt_base_t level;
|
||||||
struct exti_line_irq *item;
|
struct exti_line_irq *item;
|
||||||
int index;
|
int index;
|
||||||
|
|
|
@ -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)
|
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;
|
rt_base_t level;
|
||||||
struct exti_line_irq *item;
|
struct exti_line_irq *item;
|
||||||
int index;
|
int index;
|
||||||
|
|
Loading…
Reference in New Issue