support ESP32-S2 CPUs

Note: these don't have Bluetooth and only a single physical core.
This commit is contained in:
Thomas Göttgens
2022-12-14 13:32:26 +01:00
parent 627b21f3f2
commit bb24b86018
4 changed files with 63 additions and 7 deletions

View File

@@ -300,6 +300,8 @@ void enableModemSleep()
#if CONFIG_IDF_TARGET_ESP32S3
esp32_config.max_freq_mhz = CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ;
#elif CONFIG_IDF_TARGET_ESP32S2
esp32_config.max_freq_mhz = CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ;
#else
esp32_config.max_freq_mhz = CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ;
#endif