Add sleep function

This commit is contained in:
GHOSCHT 2023-03-24 14:09:00 +01:00
parent 9f4fd4e143
commit 3b553ecb39

View file

@ -0,0 +1,8 @@
#pragma once
#include <Arduino.h>
namespace freertos {
/// @brief Blocks the task for the specified amount of time
/// @param time in milliseconds
void sleep(int time) { vTaskDelay(time * portTICK_PERIOD_MS); }
} // namespace freertos