GPIO functions thread safe
Posted: Wed Jan 24, 2024 1:26 pm
Working on my first project with the ESP32 using ESP-IDF; the peripheral API documentation have a Thread safety section for each peripheral listing the thread safe functions. There is no such section on the GPIO API. Is gpio_set_level() function thread safe when called for different pins?
Example :TaskA controlling GPIO16 and TaskB controlling GPIO22
NB: The example uses the gpio_set_level() in one task and gpio_get_level() in separate task
Example :TaskA controlling GPIO16 and TaskB controlling GPIO22
NB: The example uses the gpio_set_level() in one task and gpio_get_level() in separate task