Skip to content

Commit 7b613c1

Browse files
authored
Added documentation regarding delay() resolution in esp-idf component (#3014)
1 parent cee2359 commit 7b613c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: docs/esp-idf_component.md

+5
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ If you are writing code that does not require Arduino to compile and you want yo
7272
#endif
7373
```
7474

75+
## FreeRTOS Tick Rate (Hz)
76+
77+
You might notice that Arduino-esp32's `delay()` function will only work in multiples of 10ms. That is because, by default, esp-idf handles task events 100 times per second.
78+
To fix that behavior you need to set FreeRTOS tick rate to 1000Hz in `make menuconfig` -> `Component config` -> `FreeRTOS` -> `Tick rate`.
79+
7580
## Compilation Errors
7681

7782
As commits are made to esp-idf and submodules, the codebases can develop incompatibilities which cause compilation errors. If you have problems compiling, follow the instructions in [Issue #1142](https://github.com/espressif/arduino-esp32/issues/1142) to roll esp-idf back to a known good version.

0 commit comments

Comments
 (0)