Hello.
I am a newbie at ESP.
I can't find verbose information about os_delay_us function.
Could somebody advise me about these questions:
1. Are the interrupts enabled during this function?
2. What is the accuracy of this delay?
Thank you.
Details of os_delay_us function
Re: Details of os_delay_us function
#include "esp_rom_sys.h"
esp_rom_delay_us(10); // Delay for 10 microseconds
esp_rom_delay_us(10); // Delay for 10 microseconds
Re: Details of os_delay_us function
Also, interrupts are untouched in that routine (as in: if they were enabled before, they stay enabled during) and precision depends on if there is an interrupt or cache behaviour that takes away execution time. If that's not the case, it should be precise within a few CPU clock cycles.
Who is online
Users browsing this forum: PerplexityBot and 1 guest
