23#include <freertos/FreeRTOS.h>
24#include <freertos/task.h>
42template<
typename Rep,
typename Period>
43void delay(
const std::chrono::duration<Rep, Period>& duration) {
44 delay(std::chrono::ceil<std::chrono::microseconds>(duration));
49void delay(
const std::chrono::microseconds& duration);
76template<
typename Clock,
typename Duration>
77void delay_until(
const std::chrono::time_point<Clock, Duration>& target) {
78 auto remaining = target - Clock::now();
79 if (remaining >
decltype(remaining)::zero()) {
void yield_from_isr(bool higher_priority_task_woken=true) noexcept
Requests a context switch from ISR context.
void delay_until(const std::chrono::time_point< Clock, Duration > &target)
Delays until the specified time point.
void yield() noexcept
Yields execution to other ready tasks of equal priority.
void delay(const std::chrono::duration< Rep, Period > &duration)
Delay for the specified duration.