components/esp32: add CPU frequency selection in menuconfig

Note that with WiFi stack enabled, system_init will reset frequency to 240MHz.
To make this setting useful, esp32-wifi-libs submodule needs to be updated.
This commit is contained in:
Ivan Grokhotkov
2016-09-13 18:10:58 +08:00
committed by Wu Jian Gang
parent e04e6b0c7f
commit 5ab769516d
5 changed files with 102 additions and 1 deletions

View File

@@ -33,4 +33,14 @@ static inline bool cpu_in_interrupt_context(void)
return (ps & PS_UM) == 0;
}
/*
* @brief Set CPU frequency to the value defined in menuconfig
*
* Called from cpu_start.c, not intended to be called from other places.
* This is a temporary function which will be replaced once dynamic
* CPU frequency changing is implemented.
*/
void esp_set_cpu_freq();
#endif