OVMS3-idf/components/esp32
Ivan Grokhotkov 9377d4acd4 pm: fix incorrect configuration at startup
s_cpu_freq_by_mode array was statically initialised with 80MHz CPU
frequency in CPU_MAX and APB_MAX modes, but sdkconfig setting for the
CPU frequency could have been different. For the case of 240MHz CPU
frequency, this would cause a frequency switch between 240MHz and
80MHz to happen, even though such switch is not supported in the fast
path switching functions used by the DFS implementation.

This fixes the issue by moving initialisation into esp_pm_impl_init,
which is called at startup before the first mode switch can happen.

Fixes https://github.com/espressif/esp-idf/issues/1729.
2018-03-20 18:06:58 +08:00
..
hwcrypto hwcrypto: Fix bug with concurrent SHA access 2017-08-25 16:08:03 +10:00
include bugfix of wpa2 assert when use sha256 do signature 2018-03-20 11:08:20 +08:00
ld freertos: Adds C11 TLS support 2018-02-07 18:46:57 +03:00
lib@e7921eea87 esp32: Fix wifi stop never return issue 2018-03-19 21:16:29 +08:00
test watchdog: enable INT WDT unit test 2017-12-01 20:10:26 +08:00
brownout.c brownout detector: enable by default 2017-07-10 17:25:55 +08:00
cache_err_int.c esp32: fix cache error interrupt handler 2017-09-08 09:59:09 +08:00
clk.c Fix the clock subsystem so it doesn't undo the weird condition spiram_psram.c jams the enable/reset bits of SPI3 in when 80MHz mode is selected anymore 2017-12-19 19:12:58 +08:00
component.mk build: Remove explict -lstdc++-psram-workaround 2018-01-11 10:32:02 +11:00
core_dump.c freertos: deprecate XT_CLOCK_FREQ 2017-10-18 14:19:19 +08:00
cpu_start.c Add option to continue running (with less ram) if psram is enabled but not detected 2018-02-12 13:44:11 +08:00
crosscore_int.c crosscore_int: add support for FREQ_SWITCH event 2017-10-18 12:31:38 +08:00
dport_access.c esp32: exclude DPORT-related code in single core mode 2017-09-22 12:07:05 +08:00
dport_panic_highint_hdl.S esp32: exclude DPORT-related code in single core mode 2017-09-22 12:07:05 +08:00
esp_clk_internal.h esp_clk.h: make public, add getters for RTC time, CPU/APB freq 2017-10-18 14:19:14 +08:00
esp_err_to_name.c Make it easier to look up error messages 2018-02-15 14:19:03 +01:00
esp_err_to_name.c.in Make it easier to look up error messages 2018-02-15 14:19:03 +01:00
esp_timer.c esp_timer: fix for the case when timer is deleted in callback 2017-11-29 11:44:46 +08:00
esp_timer_esp32.c component/esp32: fix esp_timer bug 2018-02-28 10:49:45 +08:00
esp_timer_impl.h esp_timer: add support for frequency scaling 2017-10-18 14:19:18 +08:00
ets_timer_legacy.c wifi/bt coexistence: Fix disabled cache access race when writing to flash 2017-10-16 19:47:33 +08:00
event_default_handlers.c log: Remove non-static TAG variables 2017-12-15 10:59:48 +11:00
event_loop.c esp_event_send: check if the event loop is initialized 2017-06-05 11:01:26 +08:00
fast_crypto_ops.c bugfix of wpa2 assert when use sha256 do signature 2018-03-20 11:08:20 +08:00
freertos_hooks.c New Task Watchdog API (Revert of Revert) 2017-11-02 16:47:51 +08:00
gdbstub.c Fix small bug in gdbstub where it sometimes would not return a valid stop reason, timing out gdb. Also clean up the code a bit. 2016-12-02 17:42:11 +08:00
hw_random.c freertos: deprecate XT_CLOCK_FREQ 2017-10-18 14:19:19 +08:00
int_wdt.c Dump the frame of the other core when interrupt watchdog happens 2018-01-18 23:10:29 +00:00
intr_alloc.c Add esp_intr_set_in_iram 2017-12-08 05:46:34 +03:00
ipc.c fix buffer overflow in ipc.c 2017-11-27 18:47:40 +08:00
Kconfig bugfix/remove MEMMAP_SMP config 2018-02-27 17:56:44 +08:00
lib_printf.c uart_tx_wait_idle: fix issue with last character not transmitted 2016-12-08 01:42:37 +08:00
libhal.a Initial public version 2016-08-17 23:08:22 +08:00
Makefile.projbuild build: Remove explict -lstdc++-psram-workaround 2018-01-11 10:32:02 +11:00
panic.c Dump the frame of the other core when interrupt watchdog happens 2018-01-18 23:10:29 +00:00
phy.h soc: add source code of rtc_clk, rtc_pm 2017-04-11 15:45:54 +08:00
phy_init.c components/phy: add IRAM_ATTR attribute to the two APIs used in phy calibration 2018-01-26 17:12:59 +08:00
phy_init_data.h component/esp32 : update phy & rtc 2017-10-17 18:02:42 +08:00
pm_esp32.c pm: fix incorrect configuration at startup 2018-03-20 18:06:58 +08:00
pm_impl.h pm: initial implementation for ESP32 2017-10-18 14:19:16 +08:00
pm_locks.c pm: initial version of power management APIs 2017-10-18 14:19:16 +08:00
pm_trace.c pm: support for tracing using GPIOs 2017-10-18 14:19:18 +08:00
pm_trace.h pm: support for tracing using GPIOs 2017-10-18 14:19:18 +08:00
restore.c esp_system: remove link time dependency on WiFi stack 2017-06-15 18:15:36 +08:00
sleep_modes.c soc/rtc: add function to get/set VDDSDIO configuration 2017-11-03 15:49:09 +08:00
smartconfig.c Refractor smartconfig 2017-09-13 16:55:30 +08:00
smartconfig.h Refractor smartconfig 2017-09-13 16:55:30 +08:00
spiram.c Add option to continue running (with less ram) if psram is enabled but not detected 2018-02-12 13:44:11 +08:00
spiram_psram.c Fix the clock subsystem so it doesn't undo the weird condition spiram_psram.c jams the enable/reset bits of SPI3 in when 80MHz mode is selected anymore 2017-12-19 19:12:58 +08:00
spiram_psram.h Add initial SPI RAM support. This adds support for an ESP-PSRAM32 chip connected to the default flash pins and GPIO 16 and 17. The RAM is mapped to address 0x3F800000, but otherwise ignored by esp-idf as of yet. 2017-09-04 12:05:49 +08:00
stack_check.c esp32: Adds Stack Smashing Protection Feature 2017-11-17 12:08:36 +03:00
system_api.c esp32: remove duplicate definition of system_restore 2018-01-28 19:26:37 +08:00
task_wdt.c watchdogs: make sure timer group peripherals are enabled 2017-12-01 20:10:26 +08:00
wifi_init.c esp32: add power management hooks for WiFi library 2017-10-18 14:19:19 +08:00
wifi_internal.c Allocate some memories in SPIRAM first. 2017-10-13 10:11:24 +08:00