esp-idf/components/soc/esp32c2
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 adc: unify adc_ll_num_t and adc_unit_t 2022-03-18 11:36:50 +08:00
CMakeLists.txt esp8684: rename target to esp32c2 2022-01-19 11:08:57 +08:00
dedic_gpio_periph.c esp8684: rename target to esp32c2 2022-01-19 11:08:57 +08:00
gdma_periph.c esp8684: rename target to esp32c2 2022-01-19 11:08:57 +08:00
gpio_periph.c esp8684: rename target to esp32c2 2022-01-19 11:08:57 +08:00
i2c_bbpll.h esp8684: rename target to esp32c2 2022-01-19 11:08:57 +08:00
i2c_periph.c esp8684: rename target to esp32c2 2022-01-19 11:08:57 +08:00
interrupts.c esp8684: rename target to esp32c2 2022-01-19 11:08:57 +08:00
ledc_periph.c esp8684: rename target to esp32c2 2022-01-19 11:08:57 +08:00
spi_periph.c esp8684: rename target to esp32c2 2022-01-19 11:08:57 +08:00
timer_periph.c esp8684: rename target to esp32c2 2022-01-19 11:08:57 +08:00
uart_periph.c esp8684: rename target to esp32c2 2022-01-19 11:08:57 +08:00