mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
feat(esp8266): Add option to configurate CPU frequncy to 160MHz before "app_main"
This commit is contained in:
@ -81,6 +81,10 @@ static void user_init_entry(void *param)
|
||||
assert(esp_pthread_init() == 0);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP8266_DEFAULT_CPU_FREQ_160
|
||||
rtc_clk_cpu_freq_set(RTC_CPU_FREQ_160M);
|
||||
#endif
|
||||
|
||||
app_main();
|
||||
|
||||
wifi_task_delete(NULL);
|
||||
|
Reference in New Issue
Block a user