File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,14 @@ extern bool btInUse();
249
249
250
250
void initArduino ()
251
251
{
252
+ //init proper ref tick value for PLL (uncomment if REF_TICK is different than 1MHz)
253
+ //ESP_REG(APB_CTRL_PLL_TICK_CONF_REG) = APB_CLK_FREQ / REF_CLK_FREQ - 1;
254
+ #ifdef F_CPU
255
+ setCpuFrequencyMhz (F_CPU /1000000 );
256
+ #endif
257
+ #if CONFIG_SPIRAM_SUPPORT || CONFIG_SPIRAM
258
+ psramInit ();
259
+ #endif
252
260
#ifdef CONFIG_APP_ROLLBACK_ENABLE
253
261
if (!verifyRollbackLater ()){
254
262
const esp_partition_t * running = esp_ota_get_running_partition ();
@@ -264,14 +272,6 @@ void initArduino()
264
272
}
265
273
}
266
274
}
267
- #endif
268
- //init proper ref tick value for PLL (uncomment if REF_TICK is different than 1MHz)
269
- //ESP_REG(APB_CTRL_PLL_TICK_CONF_REG) = APB_CLK_FREQ / REF_CLK_FREQ - 1;
270
- #ifdef F_CPU
271
- setCpuFrequencyMhz (F_CPU /1000000 );
272
- #endif
273
- #if CONFIG_SPIRAM_SUPPORT || CONFIG_SPIRAM
274
- psramInit ();
275
275
#endif
276
276
esp_log_level_set ("*" , CONFIG_LOG_DEFAULT_LEVEL );
277
277
esp_err_t err = nvs_flash_init ();
You can’t perform that action at this time.
0 commit comments