aboutsummaryrefslogtreecommitdiff
path: root/main/mod.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/mod.c')
-rw-r--r--main/mod.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/mod.c b/main/mod.c
index 11a1bb7..ac9107d 100644
--- a/main/mod.c
+++ b/main/mod.c
@@ -1,6 +1,13 @@
+#include <FreeRTOS.h>
+#include <task.h>
+
#include "pb.h"
#include "pb-mod.h"
const char * PB_MOD_NAME = "main controller";
const i2c_addr_t PB_MOD_ADDR = PB_ADDR_MOD_MAIN;
+void pb_mod_blocking_delay_ms(unsigned long ms) {
+ vTaskDelay(ms / portTICK_PERIOD_MS);
+}
+