mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-02 14:49:04 +00:00
Merge branch 'bugfix/enable_additional_lp_io_wakeup' into 'master'
fix(lp_io): enable setting edge type wakeup sources for targets that support this See merge request espressif/esp-idf!35122
This commit is contained in:
@@ -34,7 +34,7 @@ static void wakeup_gpio_init(void)
|
||||
rtc_gpio_set_direction(WAKEUP_PIN, RTC_GPIO_MODE_INPUT_ONLY);
|
||||
rtc_gpio_pulldown_dis(WAKEUP_PIN);
|
||||
rtc_gpio_pullup_en(WAKEUP_PIN);
|
||||
rtc_gpio_wakeup_enable(WAKEUP_PIN, GPIO_INTR_LOW_LEVEL);
|
||||
rtc_gpio_wakeup_enable(WAKEUP_PIN, GPIO_INTR_NEGEDGE);
|
||||
}
|
||||
|
||||
void app_main(void)
|
||||
|
@@ -14,9 +14,6 @@ int main (void)
|
||||
{
|
||||
ulp_lp_core_wakeup_main_processor();
|
||||
|
||||
/* Wakeup interrupt is a level interrupt, wait 1 sec to
|
||||
allow user to release button to avoid waking up the ULP multiple times */
|
||||
ulp_lp_core_delay_us(1000*1000);
|
||||
ulp_lp_core_gpio_clear_intr_status();
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user