diff --git a/esp32c3/mdk.h b/esp32c3/mdk.h index a100320c718ea6bc45f90844b0debc9a817dfa9c..c715ac959399ba6884b65bc5a8dabb7ace5b58d6 100644 --- a/esp32c3/mdk.h +++ b/esp32c3/mdk.h @@ -110,7 +110,9 @@ static inline void soc_init(void) { REG(C3_SYSTEM)[2] |= BIT(0) | BIT(2); REG(C3_SYSTEM)[22] = BIT(19) | (40U << 12) | BIT(10); // REG(C3_RTCCNTL)[47] = 0; // RTC_APB_FREQ_REG -> freq >> 12 + #ifndef EMULATOR_HACKS ((void (*)(int)) 0x40000588)(160); // ets_update_cpu_frequency(160) + #endif #if 0 // Configure system clock timer, TRM 8.3.1, 8.9