MakerLabs ACM
delay.h File Reference
#include <chrono>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"

Go to the source code of this file.

Variables

auto timeout
 
auto delay
 

Variable Documentation

◆ delay

auto delay
Initial value:
= [](const auto duration)
{
vTaskDelay(timeout(duration));
}
auto timeout
Definition: delay.h:18

◆ timeout

auto timeout
Initial value:
= [](
const auto duration,
const TickType_t time_base = portTICK_RATE_MS
) -> TickType_t
{
return (
std::chrono::milliseconds(duration).count()
/ time_base
);
}