FastLED 3.9.15
Loading...
Searching...
No Matches
fastled_delay.h File Reference

Detailed Description

Utility functions and classes for managing delay cycles.

Deprecated
Use fl/system/delay.h for new code

Definition in file fastled_delay.h.

#include "platforms/cycle_type.h"
#include "fl/stl/compiler_control.h"
#include "fl/system/delay.h"
#include "platforms/cpu_frequency.h"
+ Include dependency graph for fastled_delay.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CMinWait< WAIT >
 Class to ensure that a minimum amount of time has kicked since the last time run - and delay if not enough time has passed yet. More...
 

Macros

#define __INC_FASTLED_DELAY_H
 
Some timing related macros/definitions
#define CLKS_TO_MICROS(_CLKS)
 Convert from number of clock cycles to microseconds.
 
#define F_CPU_MHZ   (GET_CPU_FREQUENCY() / 1000000L)
 CPU speed, in megahertz (MHz) - compile-time constant Uses GET_CPU_FREQUENCY() from platforms/cpu_frequency.h which provides a compile-time constant value, avoiding issues with platforms like STM32duino where F_CPU may be defined as a runtime variable (SystemCoreClock)
 
#define NO_TIME(A, B, C)
 Macro for making sure there's enough time available.
 
#define NS(_NS)
 Convert from nanoseconds to number of clock cycles.