Skip to content

Commit 5a42cef

Browse files
authored
Merge pull request #117 from wanglingsong/dev_esp32_gpio_hal_
Free isr service related resources in hal_gpio_finalize
2 parents 1abf92a + 5654e7e commit 5a42cef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

platform/mcu/esp32/hal/gpio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ int32_t hal_gpio_finalize(aos_gpio_dev_t *gpio)
171171
io_conf.pull_up_en = 0;
172172
//configure GPIO with the given settings
173173
ret = gpio_config(&io_conf);
174-
174+
// uninstall isr service
175+
gpio_uninstall_isr_service();
175176
return ret;
176177
}

0 commit comments

Comments
 (0)