[DeviceDriver] Change `pin_irq_enable` to `rt_pin_irq_enable`.
This commit is contained in:
parent
1bbe09df94
commit
ba2f149a4c
|
@ -96,7 +96,7 @@ int rt_pin_read(rt_base_t pin);
|
||||||
rt_err_t rt_pin_attach_irq(rt_int32_t pin, rt_uint32_t mode,
|
rt_err_t rt_pin_attach_irq(rt_int32_t pin, rt_uint32_t mode,
|
||||||
void (*hdr)(void *args), void *args);
|
void (*hdr)(void *args), void *args);
|
||||||
rt_err_t rt_pin_dettach_irq(rt_int32_t pin);
|
rt_err_t rt_pin_dettach_irq(rt_int32_t pin);
|
||||||
rt_err_t pin_irq_enable(rt_base_t pin, rt_uint32_t enabled);
|
rt_err_t rt_pin_irq_enable(rt_base_t pin, rt_uint32_t enabled);
|
||||||
|
|
||||||
int rt_device_pin_irq_register(const char *name, const struct rt_pin_ops *ops,
|
int rt_device_pin_irq_register(const char *name, const struct rt_pin_ops *ops,
|
||||||
void *user_data);
|
void *user_data);
|
||||||
|
|
|
@ -117,7 +117,7 @@ rt_err_t rt_pin_dettach_irq(rt_int32_t pin)
|
||||||
}
|
}
|
||||||
return RT_ENOSYS;
|
return RT_ENOSYS;
|
||||||
}
|
}
|
||||||
rt_err_t pin_irq_enable(rt_base_t pin, rt_uint32_t enabled)
|
rt_err_t rt_pin_irq_enable(rt_base_t pin, rt_uint32_t enabled)
|
||||||
{
|
{
|
||||||
RT_ASSERT(_hw_pin.ops != RT_NULL);
|
RT_ASSERT(_hw_pin.ops != RT_NULL);
|
||||||
if(_hw_pin.ops->pin_irq_enable)
|
if(_hw_pin.ops->pin_irq_enable)
|
||||||
|
|
Loading…
Reference in New Issue