set cpu freq in ESP32Board.h

This commit is contained in:
Florent de Lamotte 2025-03-11 09:11:14 +01:00
parent d367f7d7bb
commit 4a0f4f4b68
6 changed files with 6 additions and 19 deletions

View file

@ -17,6 +17,10 @@ public:
// for future use, sub-classes SHOULD call this from their begin()
startup_reason = BD_STARTUP_NORMAL;
#ifdef ESP32_CPU_FREQ
setCpuFrequencyMhz(ESP32_CPU_FREQ);
#endif
#ifdef PIN_VBAT_READ
// battery read support
pinMode(PIN_VBAT_READ, INPUT);