ESPHome 2026.10.0
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 2143 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 2148 of file helpers.h.

◆ ~CpuFrequencyBoost() [1/2]

esphome::CpuFrequencyBoost::~CpuFrequencyBoost ( )
inline

Definition at line 2149 of file helpers.h.

◆ CpuFrequencyBoost() [3/3]

esphome::CpuFrequencyBoost::CpuFrequencyBoost ( )
inline

Definition at line 2152 of file helpers.h.

◆ ~CpuFrequencyBoost() [2/2]

esphome::CpuFrequencyBoost::~CpuFrequencyBoost ( )
inline

Definition at line 2153 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: