PlatformIO / Arduino ESP32 的默认 TIMER_BASE_CLK 是多少?

在 PlatformIO / Arduino 上,默认情况下 TIMER_BASE_CLK80 MHz(ESP32 可以运行的最大频率)。

如果你想自己验证这一点,使用此固件:

timer_example.cpp
#include <Arduino.h>

void setup() {
    Serial.begin(115200);
    Serial.println(getCpuFrequencyMhz());
}

void loop() {
}

Check out similar posts by category: Arduino, Electronics, Embedded, ESP8266/ESP32, PlatformIO