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