Skip to content

Commit

Permalink
Free isr service related resources in hal_gpio_finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglingsong committed Feb 8, 2018
1 parent 433fa1f commit 5654e7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/mcu/esp32/hal/gpio.c
Original file line number Diff line number Diff line change
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 5654e7e

Please sign in to comment.