aboutsummaryrefslogtreecommitdiff
path: root/main/mod.c
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-23 13:31:49 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-23 13:31:49 +0200
commit648d87ea98ec39d5745d36a0b5c5078cd9491211 (patch)
treed57d3cd5fb736012d6ac81a2e96e5244e56b9a77 /main/mod.c
parent381c80d765628f5d85b58b3b97e5a6bf3a0d1eb7 (diff)
place rp2040 back in pbdrv
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);
+}
+