diff options
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); +} + |