diff --git a/Firmware/src/FreeRTOS/Util.h b/Firmware/src/FreeRTOS/Util.h new file mode 100644 index 0000000..4feead0 --- /dev/null +++ b/Firmware/src/FreeRTOS/Util.h @@ -0,0 +1,8 @@ +#pragma once +#include + +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