summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornongxiaoming <[email protected]>2018-09-20 15:24:45 +0800
committernongxiaoming <[email protected]>2018-09-20 15:24:45 +0800
commit2edb385d27bbe69f9a44acd9ff08cbca6660da80 (patch)
tree08c8108d47221ea090707aae78ac7985fea5059c
parent51729e6a7c7d920b84763864c5ca7d805cb8d759 (diff)
[bsp][stm32f40x] Fix the bug of gpio driver.
-rw-r--r--bsp/stm32f40x/drivers/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/stm32f40x/drivers/gpio.c b/bsp/stm32f40x/drivers/gpio.c
index 61fb8b3977..8d8ac42bbf 100644
--- a/bsp/stm32f40x/drivers/gpio.c
+++ b/bsp/stm32f40x/drivers/gpio.c
@@ -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)
{
- irq = get_pin_irq(index->pin);
+ irq = get_pin_irq(pin);
if (irq == RT_NULL)
{
return -RT_ENOSYS;