ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::CpuFrequencyBoost Class Reference

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 ()
 

Detailed Description

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.

Definition at line 2136 of file helpers.h.

Constructor & Destructor Documentation

◆ CpuFrequencyBoost() [1/3]

esphome::CpuFrequencyBoost::CpuFrequencyBoost ( const CpuFrequencyBoost & )
delete

◆ CpuFrequencyBoost() [2/3]

esphome::CpuFrequencyBoost::CpuFrequencyBoost ( )
inline

Definition at line 2141 of file helpers.h.

◆ ~CpuFrequencyBoost() [1/2]

esphome::CpuFrequencyBoost::~CpuFrequencyBoost ( )
inline

Definition at line 2142 of file helpers.h.

◆ CpuFrequencyBoost() [3/3]

esphome::CpuFrequencyBoost::CpuFrequencyBoost ( )
inline

Definition at line 2145 of file helpers.h.

◆ ~CpuFrequencyBoost() [2/2]

esphome::CpuFrequencyBoost::~CpuFrequencyBoost ( )
inline

Definition at line 2146 of file helpers.h.

Member Function Documentation

◆ operator=()

CpuFrequencyBoost & esphome::CpuFrequencyBoost::operator= ( const CpuFrequencyBoost & )
delete

The documentation for this class was generated from the following file: