|
ESPHome 2026.11.0-dev
|
Runs the CPU at 160 MHz while alive. More...
#include <helpers.h>
Public Member Functions | |
| CpuFrequencyBoost (const CpuFrequencyBoost &)=delete | |
| CpuFrequencyBoost & | operator= (const CpuFrequencyBoost &)=delete |
| CpuFrequencyBoost () | |
| ~CpuFrequencyBoost () | |
| CpuFrequencyBoost () | |
| ~CpuFrequencyBoost () | |
Runs the CPU at 160 MHz while alive.
ESP8266 built for 80 MHz only; elsewhere it compiles to nothing.
The core resets the clock before every loop() pass, so a scope must stay within one pass, must not nest and must not yield to the main loop. Peripheral clocks are unchanged, but the cycle counter runs twice as fast, so code that times itself against F_CPU, including ISRs that fire while a scope is open, must read CPU2X.
|
delete |
|
inline |
|
inline |
|
delete |