vTaskDelay() Doubt
Posted: Sat Jul 08, 2017 4:13 am
I have begun to interest in how FreeRTOS works, and because of I don't have my ESP32 yet, i decided to try it in my arduino micro. So, I note that the vTaskDelay in the arduino does a delay of 15ms because of the Watchdog timer, this is the piece of code that says it
So, my question is, if I put a vTaskDelay(1) on my code, under ESP-IDF, What is the time that it took?.
I hope I have made myself clear, thank you.
Code: Select all
for (;;)
{
// read the input on analog pin 0:
int sensorValue = analogRead(A0);
// print out the value you read:
Serial.println(sensorValue);
vTaskDelay(1); // one tick delay (15ms) in between reads for stability
}
I hope I have made myself clear, thank you.