[components][drivers][pin module]:typo fix for pin_detach_irq

This commit is contained in:
luo jiao
2018-06-26 22:18:58 +08:00
parent 355e9f29fb
commit ef8398c2bb
11 changed files with 23 additions and 25 deletions
+3 -3
View File
@@ -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;
}