esp-idf/components/soc/esp32s2/include/soc
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
..
adc_channel.h adc: unify adc_ll_num_t and adc_unit_t 2022-03-18 11:36:50 +08:00
apb_ctrl_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
apb_ctrl_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
apb_saradc_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
apb_saradc_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
assist_debug_reg.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
bb_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
boot_mode.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
clk_tree_defs.h clk_tree: added default clock source for peripheral 2022-04-14 15:44:56 +08:00
clkout_channel.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
cp_dma_reg.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
cp_dma_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
crypto_dma_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
dac_channel.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
dedic_gpio_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
dedic_gpio_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
dport_access.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
dport_reg.h trax: Adds ESP32-S3 support 2021-10-22 23:36:28 +03:00
efuse_reg.h soc: Adds efuse hal 2022-02-24 22:20:09 +08:00
efuse_struct.h soc: Adds efuse hal 2022-02-24 22:20:09 +08:00
ext_mem_defs.h cache/mmu: implememnt cache and mmu hal APIs in bootloader 2022-03-11 22:43:11 +08:00
extmem_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
fe_reg.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
frc_timer_reg.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
gdma_channel.h gdma: support IRAM interrupt 2021-11-08 16:14:51 +08:00
gpio_pins.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
gpio_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
gpio_sd_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
gpio_sd_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
gpio_sig_map.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
gpio_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
hwcrypto_reg.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
i2c_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
i2c_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
i2s_reg.h i2s: update copyright 2022-02-21 21:28:48 +08:00
i2s_struct.h i2s: update copyright 2022-02-21 21:28:48 +08:00
interrupt_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
io_mux_reg.h esp8684: support GPIO peripheral, IO_MUX, GPIO matrix. 2021-12-29 22:01:45 +08:00
Kconfig.soc_caps.in spi_flash: refactor the spi_flash clock configuration, and add support for esp32c2 2022-04-26 15:22:37 +08:00
ledc_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
ledc_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
memprot_defs.h ESP32S2: No assert()/abort() in Memprot API, use esp_err_t instead 2021-08-26 09:20:00 +02:00
mmu.h cache/mmu: implememnt cache and mmu hal APIs in bootloader 2022-03-11 22:43:11 +08:00
nrx_reg.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
pcnt_reg.h pulse_cnt: new driver for PCNT peripheral 2022-03-03 22:38:32 +08:00
pcnt_struct.h pulse_cnt: new driver for PCNT peripheral 2022-03-03 22:38:32 +08:00
periph_defs.h Temperature_sensor: Create new temperature sensor API 2022-03-04 18:13:35 +08:00
reg_base.h soc: move peripheral base address into reg_base.h 2022-01-06 21:43:12 +08:00
regi2c_defs.h hw_support: fixed regi2c not protected by lock on ESP32S2 2022-03-13 00:24:08 +08:00
reset_reasons.h soc: add reset reasons in soc component 2021-07-13 10:45:38 +08:00
rmt_reg.h rmt: document and improve LL driver 2022-03-09 10:58:12 +08:00
rmt_struct.h rmt: do not support rx wrap on esp32s2 2022-02-08 13:57:31 +08:00
rtc_cntl_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
rtc_cntl_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
rtc_i2c_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
rtc_i2c_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
rtc_io_channel.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
rtc_io_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
rtc_io_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
rtc.h esp_hw_support/sleep: fix cannot enable sleep reject in some cases 2022-05-12 19:09:57 +08:00
sdio_slave_pins.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
sdmmc_pins.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
sens_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
sens_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
sensitive_reg.h xtensa: move out trax 2021-02-26 19:45:48 +08:00
soc_caps.h spi_flash: refactor the spi_flash clock configuration, and add support for esp32c2 2022-04-26 15:22:37 +08:00
soc_pins.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
soc_ulp.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
soc.h soc: remove dport register assert for esp32s2 2022-01-06 23:10:22 +08:00
spi_mem_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
spi_mem_struct.h spi_flash: Add auto suspend mode on esp32c3 2021-01-25 11:14:02 +08:00
spi_pins.h spi_master:support octal mode for esp32s2 and esp32s3 2021-08-19 16:40:22 +08:00
spi_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
spi_struct.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
syscon_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
syscon_struct.h rename APB_CTRL ro SYS_CON 2021-09-16 20:57:57 +08:00
system_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
systimer_reg.h systimer: update soc data 2021-04-22 21:07:35 +08:00
systimer_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
timer_group_reg.h timer_group: fix wrongly generated reg header that introduced in 443845fd54 2021-08-30 13:51:25 +08:00
timer_group_struct.h gptimer: clean up hal and ll for driver-ng 2021-10-20 18:40:08 +08:00
touch_sensor_channel.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
touch_sensor_pins.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
tracemem_config.h trax: Adds ESP32-S3 support 2021-10-22 23:36:28 +03:00
twai_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
uart_channel.h uart: fixed incorrect channel number on ESP32S2, S3 and C3 2022-03-01 18:21:27 +08:00
uart_pins.h uart: uart_set_pin function will now use IOMUX whenever possible 2021-08-04 12:48:30 +08:00
uart_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
uart_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
uhci_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
uhci_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
usb_pins.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
usb_reg.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
usb_struct.h Fix incorrect D- pulldown and cleanup USB device struct 2021-05-13 17:18:35 +08:00
usb_types.h soc: descriptive part occupy whole component 2020-10-28 07:21:29 +08:00
usb_wrap_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
usb_wrap_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
usbh_struct.h soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one 2021-08-30 13:50:58 +08:00
wdev_reg.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00