Home > other >  Freertos critical region and semaphore
Freertos critical region and semaphore

Time:03-04

1
TaskENTER_CRITICAL
TaskEXIT_CRITICAL

Combination of 2
XSemaphoreCreateMutex
XSemaphoreTake
XSemaphoreGive

I know 1 to protect critical region code, but the combination of 2 as if also can,
Question: what is the detailed difference between the two, can have bosses system about?
  • Related