3#ifndef __INC_FL_DELAY_H
4#define __INC_FL_DELAY_H
10#include "platforms/cycle_type.h"
18#include "platforms/delay.h"
50 delayNanoseconds_impl(
NS);
97template<
int Dummy = 0>
#define NS(_NS)
Convert from nanoseconds to number of clock cycles.
constexpr fl::u32 cycles_from_ns(fl::u32 ns, fl::u32 hz) FL_NOEXCEPT
Convert nanoseconds to CPU cycles.
constexpr fl::u32 cycles_from_ns_default(fl::u32 ns) FL_NOEXCEPT
Compute cycles using default CPU frequency (compile-time)
void delay_impl(u32 ms, bool run_async)
Internal delay implementation used by the public fl::delay wrapper.
void delayMs(u32 ms, bool run_async=true) FL_NOEXCEPT
Shorter alias for delay with optional async task pumping.
void delayUs(u32 us) FL_NOEXCEPT
Shorter alias for delayMicroseconds.
FASTLED_FORCE_INLINE void delayNanoseconds() FL_NOEXCEPT
Delay for a compile-time constant number of nanoseconds.
void delaycycles_min1() FL_NOEXCEPT
A variant of delaycycles that will always delay at least one cycle.
void delay(u32 ms, bool run_async=true) FL_NOEXCEPT
Public delay wrapper that keeps bare Arduino delay() preferred after using fl::delay; while still all...
void delaycycles< 1 >() FL_NOEXCEPT
void delayMillis(u32 ms) FL_NOEXCEPT
Delay for a given number of milliseconds (legacy - no async pumping)
void delaycycles() FL_NOEXCEPT
Forward declaration of delaycycles template.
void delayMicroseconds(u32 us)
Delay for a given number of microseconds.
void delayNs() FL_NOEXCEPT
Shorter alias for delayNanoseconds (template version)
Base definition for an LED controller.
#define FASTLED_FORCE_INLINE