aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/ext/freertos/pb-mod.c
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-18 17:29:25 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-18 17:29:25 +0200
commit3f3bef9c6bf0b9143da80e4b4363eb0362fb91c9 (patch)
treec4344b281fd589690b6b82bc6b5c2e91a4f2a13f /lib/pbdrv/ext/freertos/pb-mod.c
parentc1007f50de3ad7284d4a1afa6bfb3b6e427c3556 (diff)
clean up code for getting main controller compiling again
Diffstat (limited to 'lib/pbdrv/ext/freertos/pb-mod.c')
-rw-r--r--lib/pbdrv/ext/freertos/pb-mod.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/pbdrv/ext/freertos/pb-mod.c b/lib/pbdrv/ext/freertos/pb-mod.c
new file mode 100644
index 0000000..75495be
--- /dev/null
+++ b/lib/pbdrv/ext/freertos/pb-mod.c
@@ -0,0 +1,9 @@
+#include <FreeRTOS.h>
+#include <task.h>
+
+#include "../../pb-types.h"
+
+__weak void pb_mod_blocking_delay_ms(unsigned long ms) {
+ vTaskDelay(ms / portTICK_PERIOD_MS);
+}
+