esp-idf/components/soc/esp32s2
jingli abb6bb1181 esp_hw_support/sleep: fix cannot enable sleep reject in some cases
When enable sleep reject before this fix, we have two limitations:
1. it must be light sleep
2. RTC GPIO wakeup source must be set

We require light sleep because `esp_deep_sleep_start` function has
been declared with "noreturn" attribute, So developers don't expect
that this function may return (due to an error or a sleep reject).
But the requirement for RTC GPIO wakeup source is not reasonable for
all chips. This requirement exists because ESP32 only supports RTC GPIO
and SDIO sleep reject sources. But later chips support all sleep reject
sources.

This fix brings the following changes:
for ESP32: RTC GPIO and SDIO sleep reject sources can be enabled
           when corresponding wakeup source is set.

for later chips: all sleep reject sources can be enabled when
                 corresponding wakeup source is set.
2022-05-12 19:09:57 +08:00
..
include/soc esp_hw_support/sleep: fix cannot enable sleep reject in some cases 2022-05-12 19:09:57 +08:00
ld soc: Adds efuse hal 2022-02-24 22:20:09 +08:00
adc_periph.c soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
CMakeLists.txt usb: Add usb_phy driver to support operations on USB PHY 2021-09-13 12:39:56 +08:00
dac_periph.c Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
dedic_gpio_periph.c soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
gpio_periph.c esp8684: support GPIO peripheral, IO_MUX, GPIO matrix. 2021-12-29 22:01:45 +08:00
i2c_periph.c Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
i2s_periph.c i2s: update copyright 2022-02-21 21:28:48 +08:00
interrupts.c soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
lcd_periph.c lcd: unify callback prototype 2021-10-02 14:23:31 +08:00
ledc_periph.c Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
pcnt_periph.c pulse_cnt: new driver for PCNT peripheral 2022-03-03 22:38:32 +08:00
rmt_periph.c rmt: document and improve LL driver 2022-03-09 10:58:12 +08:00
rtc_io_periph.c esp8684: support GPIO peripheral, IO_MUX, GPIO matrix. 2021-12-29 22:01:45 +08:00
sigmadelta_periph.c sigma_delta: add periph signal list and support esp32-s3 2020-10-29 11:06:28 +08:00
spi_periph.c spi_master:support octal mode for esp32s2 and esp32s3 2021-08-19 16:40:22 +08:00
timer_periph.c gptimer: clean up hal and ll for driver-ng 2021-10-20 18:40:08 +08:00
touch_sensor_periph.c soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
uart_periph.c uart: uart_set_pin function will now use IOMUX whenever possible 2021-08-04 12:48:30 +08:00
usb_periph.c soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
usb_phy_periph.c usb: Add usb_phy driver to support operations on USB PHY 2021-09-13 12:39:56 +08:00