diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2023-09-23 15:12:20 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2023-09-23 15:12:20 +0800 |
| commit | cf2092a08775d32b7d874f1090f79228a2f9e2ec (patch) | |
| tree | 44de8ada1193fb7836c34ca6934696b782f9e265 /main/util.c | |
| parent | 189ec46013b3cd07bfddcdded20ba5e38e8a401c (diff) | |
| download | esp32-e-reader-cf2092a08775d32b7d874f1090f79228a2f9e2ec.tar.gz | |
E-reader implementation.
Diffstat (limited to 'main/util.c')
| -rw-r--r-- | main/util.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/main/util.c b/main/util.c new file mode 100644 index 0000000..d2b6f22 --- /dev/null +++ b/main/util.c @@ -0,0 +1,10 @@ +#include <freertos/FreeRTOS.h> +#include <freertos/task.h> + +#include "util.h" + +void delay_ms(unsigned int t) +{ + vTaskDelay((TickType_t) t / portTICK_PERIOD_MS); +} + |
