diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-23 13:31:49 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-23 13:31:49 +0200 |
commit | 648d87ea98ec39d5745d36a0b5c5078cd9491211 (patch) | |
tree | d57d3cd5fb736012d6ac81a2e96e5244e56b9a77 /main/mod.c | |
parent | 381c80d765628f5d85b58b3b97e5a6bf3a0d1eb7 (diff) |
place rp2040 back in pbdrv
Diffstat (limited to 'main/mod.c')
-rw-r--r-- | main/mod.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); +} + |