fix(examples): fix NMI interrupt example to work on ESP32-S3

This commit is contained in:
Omar Chebib
2024-10-18 10:51:51 +08:00
committed by Marius Vikhammer
parent 24056620ef
commit f6d154e761

View File

@@ -26,6 +26,7 @@ void app_main(void)
printf("example: Start\n");
gpio_reset_pin(EXAMPLE_GPIO_IN);
/* Make sure we have a pull-down on the input GPIO to prevent noise (when disconnected) */
gpio_pulldown_en(EXAMPLE_GPIO_IN);
gpio_set_direction(EXAMPLE_GPIO_IN, GPIO_MODE_INPUT_OUTPUT);