Search found 2 matches

by BonaFid3
Mon Apr 03, 2017 7:17 am
Forum: ESP-IDF
Topic: ESP32 ISR
Replies: 3
Views: 9771

Re: ESP32 ISR

Ok, you are right. I have copied the code from event_groups.h and that says "portYIELD_FROM_ISR( xHigherPriorityTaskWoken );"
However the correct way to call portYIELD_FROM_ISR() without parameter.

So I have commented the portYIELD_FROM_ISR( xHigherPriorityTaskWoken ) line because I got this error ...
by BonaFid3
Sun Apr 02, 2017 7:19 pm
Forum: ESP-IDF
Topic: ESP32 ISR
Replies: 3
Views: 9771

ESP32 ISR

Hello,

I need to use external interrupt with my ESP32. I set up the code like this:


gpio_pad_select_gpio(GPIO_NUM_5);
gpio_set_direction(GPIO_NUM_5, static_cast<gpio_mode_t>(GPIO_MODE_INPUT));
gpio_set_pull_mode(GPIO_NUM_5, GPIO_PULLUP_ONLY);
gpio_set_intr_type(GPIO_NUM_5, GPIO_INTR_NEGEDGE ...

Go to advanced search