Hi,
I am creating a semaphore and it is creating successfully, but xSemaphoreGive and xSemaphoreTake is not working
here to check i have done below test:
xSemaphoreGive(spi_sem);
xSemaphoreTake(spi_sem, portMAX_DELAY);
Here my code gets stucks when i use some delay instead of MAX_DELAY then it comes out after given time
xSemaphoreGive(spi_sem);
xSemaphoreTake(spi_sem, 2000);
So Can you please help me in this ?