mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
low frequency for C3 chip
This commit is contained in:
@@ -377,7 +377,11 @@ void System::start() {
|
|||||||
// disable bluetooth module
|
// disable bluetooth module
|
||||||
// periph_module_disable(PERIPH_BT_MODULE);
|
// periph_module_disable(PERIPH_BT_MODULE);
|
||||||
if (low_clock_) {
|
if (low_clock_) {
|
||||||
|
#if CONFIG_IDF_TARGET_ESP32C3
|
||||||
|
setCpuFrequencyMhz(80);
|
||||||
|
#else
|
||||||
setCpuFrequencyMhz(160);
|
setCpuFrequencyMhz(160);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
fstotal_ = LittleFS.totalBytes() / 1024; // read only once, it takes 500 ms to read
|
fstotal_ = LittleFS.totalBytes() / 1024; // read only once, it takes 500 ms to read
|
||||||
psram_ = ESP.getPsramSize() / 1024;
|
psram_ = ESP.getPsramSize() / 1024;
|
||||||
|
|||||||
Reference in New Issue
Block a user