File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,11 @@ uint8_t getFlashSourceFrequencyMHz(void) {
379
379
380
380
uint8_t source_freq = 80 ; // Default
381
381
382
- #if CONFIG_IDF_TARGET_ESP32S3
382
+ #if CONFIG_IDF_TARGET_ESP32
383
+ // ESP32 classic supports 40 MHz and 80 MHz
384
+ // Note: ESP32 uses the PLL clock (80 MHz) as source and divides it
385
+ source_freq = 80 ; // Always 80 MHz source, divider determines 40/80 MHz
386
+ #elif CONFIG_IDF_TARGET_ESP32S3
383
387
switch (core_clk_sel) {
384
388
case 0 : source_freq = 80 ; break ;
385
389
case 1 : source_freq = 120 ; break ;
@@ -398,9 +402,6 @@ uint8_t getFlashSourceFrequencyMHz(void) {
398
402
case 0 : source_freq = 80 ; break ;
399
403
case 1 : source_freq = 120 ; break ;
400
404
}
401
- #elif CONFIG_IDF_TARGET_ESP32
402
- // ESP32 classic - simplified
403
- source_freq = 80 ;
404
405
#endif
405
406
406
407
return source_freq;
You can’t perform that action at this time.
0 commit comments