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

@@ -100,7 +100,7 @@
#define configTHREAD_LOCAL_STORAGE_DELETE_CALLBACKS 1
/* TODO: config freq by menuconfig */
#define XT_CLOCK_FREQ 80000000
#define XT_CLOCK_FREQ (CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ * 1000000)
/* Required for configuration-dependent settings */
#include "xtensa_config.h"