Merge pull request #1829 from nongxiaoming/master

[bsp][stm32f40x] Fix the bug of gpio driver.
This commit is contained in:
Bernard Xiong 2018-09-21 13:19:12 +08:00 committed by GitHub
commit 1159377c86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -763,7 +763,7 @@ rt_err_t stm32_pin_irq_enable(struct rt_device *device, rt_base_t pin, rt_uint32
} }
else if (enabled == PIN_IRQ_DISABLE) else if (enabled == PIN_IRQ_DISABLE)
{ {
irq = get_pin_irq(index->pin); irq = get_pin_irq(pin);
if (irq == RT_NULL) if (irq == RT_NULL)
{ {
return -RT_ENOSYS; return -RT_ENOSYS;