From 2edb385d27bbe69f9a44acd9ff08cbca6660da80 Mon Sep 17 00:00:00 2001 From: nongxiaoming Date: Thu, 20 Sep 2018 15:24:45 +0800 Subject: [PATCH] [bsp][stm32f40x] Fix the bug of gpio driver. --- bsp/stm32f40x/drivers/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- GitLab