I’m working with the ESP32 port of FreeRTOS, and have some problems with port/taskENTER_CRITICAL (and EXIT, of course). First, I read here that portENTER/EXIT_CRITICAL are internall calls, and should not be used; instead, taskENTER/EXIT_CRITICAL should be used (commented in this forum: difference between portENTER_CRITICAL () and ); in fact, in the documentation I can find only the taskENTER/EXIT_CRITICAL calls.
Now I try to use them in an ESP32, and I receive a warning that taskENTER/EXIT are deprecated and that I should use portENTER/EXIT… Is this something official, or only something for ESP32?
Also, in the ESP32 the calls receive a parameter, a mux… but in the official documentation they receive nothing. IIRC, I read somewhere that since the ESP32 has two cores, it not only disables the interruptions, but also uses an spinlock to avoid problems between both cores. Is this something that will be added to the standard FreeRTOS, or will be only for ESP32? Also, is it just a mutex semaphore, or is something different? Do I have to initialize the mutex to an specific value, or just calling to xSemaphoreCreateMutex() is enough?
Thanks in advance.