Skip to content

Commit

Permalink
Merge pull request #117 from wanglingsong/dev_esp32_gpio_hal_
Browse files Browse the repository at this point in the history
Free isr service related resources in hal_gpio_finalize
  • Loading branch information
junjiec committed Feb 8, 2018
2 parents 1abf92a + 5654e7e commit 5a42cef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/mcu/esp32/hal/gpio.c
Expand Up @@ -171,6 +171,7 @@ int32_t hal_gpio_finalize(aos_gpio_dev_t *gpio)
io_conf.pull_up_en = 0;
//configure GPIO with the given settings
ret = gpio_config(&io_conf);

// uninstall isr service
gpio_uninstall_isr_service();
return ret;
}

0 comments on commit 5a42cef

Please sign in to comment.