KonstantinKondrashov
50606887b2
esp_hw_support: Fix time spent in light sleep when RTC is used for gettimeofday
...
The esp_timer was not advanced correctly.
2022-06-09 14:51:44 +00:00
jingli
8309e3e5ce
esp_hw_support/sleep: fix cannot lightsleep again after a wakeup from ULP
...
Since ulp wakeup signal are connected to ulp int raw(except esp32), we
need to clear ulp int raw before sleep when ulp wakeup enabled. Otherwise,
if the ulp int raw is already set, chip will not sleep properly.
Closes https://github.com/espressif/esp-idf/issues/6229
2022-05-19 23:54:29 +08:00
jingli
92ccc5fa95
fix _rtc_slow_length being incorrectly optimized by compiler
2022-05-01 23:22:05 +08:00
Armando
fe5a5284ba
sleep: restore analog calibration registers after waking up from light sleep
...
Closes https://github.com/espressif/esp-idf/issues/8287
Closes https://github.com/espressif/esp-idf/issues/7921
2022-03-07 21:58:42 +08:00
Michael (XIAO Xufeng)
f8e45766b5
sleep: fixed ext1 cannot wakeup via RTCIO >= 18 issue
2022-02-18 11:10:49 +08:00
Omar Chebib
e615a9546b
Sleep: fix wrong debug level
...
Fix usage of ESP_LOGD in sleep_modes.c which triggers a panic when
used in debug log level.
* Closes https://github.com/espressif/esp-idf/issues/7942
2021-11-22 16:42:48 +08:00
morris
eef5add97e
Merge branch 'bugfix/fix_esp32s2_deep_sleep_timer_wake_up_fail_backport_v4.3' into 'release/v4.3'
...
rtc: fix esp32s2 fall into sleep forever when deep-sleep time is set to 0(backport v4.3)
See merge request espressif/esp-idf!13560
2021-10-19 04:44:47 +00:00
Li Shuai
aac59ed5ec
Power Management: add XTAL power domain to control whether external 40MHz xtal is powered down during sleep
2021-09-28 11:21:31 +08:00
Li Shuai
4ef6e37fcb
Power Management: add RTC8M power domain to control whether internal 8m oscillator is powered down during sleep
2021-09-28 11:19:57 +08:00
Li Shuai
3f17cc2ab8
light sleep: fix Flash leakage when its CS pin has no hardware pullup
2021-09-17 16:28:47 +08:00
Li Shuai
acdf49a5ac
light sleep: fix SPIRAM leakage when its CS pin has no hardware pullup
2021-09-17 16:28:47 +08:00
Chen Yi Qun
eb01aaacc7
fix esp32s2 fall into sleep forever when deep-sleep time is set to 0
...
(backport v4.3)
2021-07-19 21:11:04 +08:00
Li Shuai
139afb094e
fix wifi mac sleep bug when wifi is initialized multiple times
2021-06-29 10:26:02 +08:00
Marius Vikhammer
38aa99d63d
soc: merge C3 caps into a single soc_caps.h
2021-05-11 15:20:54 +08:00
ninh
6dc067dda7
esp_wifi: fix nolightsleep after wifi init (backport to v4.3)
2021-04-29 22:01:55 +08:00
Michael (XIAO Xufeng)
6059ef26fb
gpio, rtcio: removed unsupported features on different targets
2021-04-24 15:55:13 +00:00
Shu Chen
42ae0166d7
esp32c3: fix typos of c3 path
2021-04-23 21:09:06 +08:00
ninh
bd03a0e66a
esp_pm: fix an issue and add an interface (backport to v4.3)
2021-04-13 17:16:23 +08:00
fuzhibo
e310fb1393
fix: reduce the consumption of touch sensor during deep sleep
2021-04-12 12:24:53 +08:00
Omar Chebib
ae3b4819da
esp_system: add VDD_SDIO power domain configuration to documentation
...
Add a warning in `sleep_modes` doc page to explain how to keep
VDD_SDIO power domain ON.
2021-04-06 14:04:22 +08:00
Omar Chebib
b0684e8b3c
esp_system: add VDD_SDIO power domain configuration for light sleep
...
VDD_SDIO power domain can now be configured for light sleep
by the application. It is now possible to keep the power domain
ON during light sleep, keeping the GPIOs connected to it powered.
The power domain will, by default be:
- Kept ON if CONFIG_ESP_SYSTEM_PD_FLASH is not set
- Turned OFF if not set
The application can still force it to be ON by calling
`esp_sleep_pd_config(ESP_PD_DOMAIN_VDDSDIO, ESP_PD_OPTION_ON);`
2021-04-06 14:01:38 +08:00
Li Shuai
be56456add
light sleep: add software workaround for esp32c3 gpio reset issue
2021-03-29 15:06:23 +08:00
fuzhibo
918875424e
fix: clear interrupt in touch sensor initialization
2021-03-16 11:37:41 +08:00
Li Shuai
37946ab300
deep sleep: power down wifi and bt during deep sleep
2021-03-11 07:32:30 +00:00
baohongde
e6ace495b4
Fix issues during light sleep and DFS
2021-03-10 14:14:49 +08:00
Angus Gratton
1d9d444c07
Merge branch 'bugfix/deepsleep_disable_brownout_s2_v4.3' into 'release/v4.3'
...
deep_sleep: on S2 disable the brown out detector before deep sleeping (v4.3)
See merge request espressif/esp-idf!12499
2021-03-01 03:50:20 +00:00
Cao Sen Miao
198d350fe5
esp_system: support gpio wakeup from deep sleep on esp32c3
2021-02-26 17:08:22 +08:00
Marius Vikhammer
c6ed522d60
deep_sleep: on S2 disable the brown out detector before deep sleeping
...
On S2 the brown out detector would occasionally trigger erroneously during deep sleep.
Disable it before sleeping to circumvent this issue.
Closes https://github.com/espressif/esp-idf/issues/6179
2021-02-25 10:53:06 +08:00
baohongde
eef66789d4
Mac BB power down in light sleep
...
components/bt: Do not use feature: timer support isr dispatch method
disable controller after wake up finished.
protect critical section of power down
choose clk in sleep
components/coex: mac bb power down in light sleep
components/coex: Macro changed
components/os: protect reserved interrupt number
update phy to phy_version 300,6e46ba7,Jan 25 2021
some bugfix
2021-01-28 22:28:04 +08:00
Jiang Jiang Jian
d097988608
Merge branch 'bugfix/keep_esp_rtc_time_correct' into 'master'
...
newlib: Keep esp rtc time correct
See merge request espressif/esp-idf!11932
2021-01-27 15:22:43 +08:00
Angus Gratton
d3ffaf4684
esp_system: Add soc_caps guards in esp_sleep.h
2021-01-25 17:20:04 +00:00
Angus Gratton
4026e7b250
esp_system esp32c3: Fix uart flush on entering deep sleep
2021-01-25 17:20:04 +00:00
ninh
25dcc68b5d
newlib: keep esp_rtc_get_time_us when rewrite the value of RTC_SLOW_CLK_CAL_REG
2021-01-21 02:28:21 +00:00
Li Shuai
58ab3975ea
light sleep: fix cpu pd bug of normal light sleep
2021-01-21 10:03:39 +08:00
Li Shuai
f168ac3b39
light sleep: add cpu power down support for esp32c3
2021-01-19 14:51:50 +08:00
Li Shuai
a43de3a44b
fix set UART_FORCE_XOFF
can't stop new Tx request issue
2021-01-19 14:51:22 +08:00
Li Shuai
ac7d1bec76
light sleep: overhead time accuracy optimization for esp32c3
2021-01-19 14:50:58 +08:00
Li Shuai
aa7fd175b9
light sleep: light sleep support for esp32c3
2021-01-19 14:50:58 +08:00
ninh
659d805411
esp_wifi: light sleep optimization
2021-01-18 15:31:03 +08:00
ninh
27aa6c289f
components/pm: Add slp gpio configure workaround
2021-01-15 15:34:45 +08:00
ninh
6dd6c8c3cf
ci: fix IDFCI-377
2021-01-12 13:04:53 +00:00
ninh
dc7bdb9857
adjust lightsleep overhead time and cali slowclk
2021-01-06 03:40:28 +00:00
Marius Vikhammer
68608f804c
esp32c3: Misc fixes needed to build & run
2020-12-31 15:20:05 +11:00
Marius Vikhammer
eb788deb03
esp_hw_support: merge C3 changes to master
...
Merge RTC related C3 changes to master
2020-12-30 12:20:41 +08:00
Angus Gratton
1b0442b963
Merge branch 'feature/unify_rtc_fast_mem_as_heap_config_across_chips' into 'master'
...
esp_system: make rtc fast memory to heap configuration unified across chips
Closes IDF-2503
See merge request espressif/esp-idf!11693
2020-12-29 11:41:05 +08:00
Mahavir Jain
880a63b2e9
esp_system: make rtc fast memory to heap configuration unified across chips
...
Closes IDF-2503
2020-12-24 09:46:35 +05:30
Angus Gratton
01696afc34
esp32c3: Add new esp_sleep_is_valid_wakeup_gpio() function
2020-12-24 13:40:01 +11:00
Ivan Grokhotkov
829d94ad01
Merge branch 'fix/rtc_fast_memory_force_on_in_use_for_heap' into 'master'
...
fix: RTC_FAST_MEM always power on if used for heap
See merge request espressif/esp-idf!11555
2020-12-15 18:45:20 +08:00
fuzhibo
985e94139d
driver(touch): fix touch sensor false trigger in sleep mode
2020-12-10 17:43:14 +08:00
fuzhibo
f4aedfd017
fix: RTC_FAST_MEM always power on if used for heap
2020-12-10 14:45:41 +08:00