pikapython/package/BL808/BL808_Time.c
2022-10-19 17:15:54 +08:00

12 lines
244 B
C

#include "BL808_Time.h"
#include <FreeRTOS.h>
#include <task.h>
void BL808_Time_sleep_ms(PikaObj* self, int ms) {
vTaskDelay(pdMS_TO_TICKS(ms));
}
void BL808_Time_sleep_s(PikaObj* self, int s) {
vTaskDelay(pdMS_TO_TICKS(1000 * s));
}