diff options
| author | Bernard Xiong <[email protected]> | 2018-06-27 13:30:56 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-06-27 13:30:56 +0800 |
| commit | cf73f3a3c0211d133d834f6dfd390ac8b432b5d0 (patch) | |
| tree | 4305d0feef435e9c0683a328468e1c572cc4a9e2 /components/drivers/misc | |
| parent | 37ce32e840dadd89a91b7d804f0c1cb67eaa045e (diff) | |
| parent | ef8398c2bb48b691d16cf40fec69ca27954efa4a (diff) | |
Merge pull request #1574 from misonyo/dev
[components][drivers][pin module]:typo fix for pin_detach_irq
Diffstat (limited to 'components/drivers/misc')
| -rw-r--r-- | components/drivers/misc/pin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/drivers/misc/pin.c b/components/drivers/misc/pin.c index dc2137eb17..ce78f97f87 100644 --- a/components/drivers/misc/pin.c +++ b/components/drivers/misc/pin.c @@ -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; } |
