summaryrefslogtreecommitdiffstats
path: root/main/util.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2023-09-23 15:12:20 +0800
committerSadeep Madurange <sadeep@asciimx.com>2023-09-23 15:12:20 +0800
commitcf2092a08775d32b7d874f1090f79228a2f9e2ec (patch)
tree44de8ada1193fb7836c34ca6934696b782f9e265 /main/util.c
parent189ec46013b3cd07bfddcdded20ba5e38e8a401c (diff)
downloadesp32-e-reader-cf2092a08775d32b7d874f1090f79228a2f9e2ec.tar.gz
E-reader implementation.
Diffstat (limited to 'main/util.c')
-rw-r--r--main/util.c10
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);
+}
+