Add sleep function

This commit is contained in:
GHOSCHT 2023-03-24 14:09:00 +01:00
parent 1e40e1f870
commit 21b5796ee3
No known key found for this signature in database

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