mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 17:44:20 +08:00
[components][drivers][pin module]:typo fix for pin_detach_irq
This commit is contained in:
@@ -124,12 +124,12 @@ rt_err_t rt_pin_attach_irq(rt_int32_t pin, rt_uint32_t mode,
|
||||
}
|
||||
return RT_ENOSYS;
|
||||
}
|
||||
rt_err_t rt_pin_dettach_irq(rt_int32_t pin)
|
||||
rt_err_t rt_pin_detach_irq(rt_int32_t pin)
|
||||
{
|
||||
RT_ASSERT(_hw_pin.ops != RT_NULL);
|
||||
if(_hw_pin.ops->pin_dettach_irq)
|
||||
if(_hw_pin.ops->pin_detach_irq)
|
||||
{
|
||||
return _hw_pin.ops->pin_dettach_irq(&_hw_pin.parent, pin);
|
||||
return _hw_pin.ops->pin_detach_irq(&_hw_pin.parent, pin);
|
||||
}
|
||||
return RT_ENOSYS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user