ext0 和 ext1 唤醒 不能同时生效吗?

lolomarx
Posts: 2
Joined: Sat Feb 22, 2020 1:40 am

ext0 和 ext1 唤醒 不能同时生效吗?

Postby lolomarx » Sat Feb 22, 2020 8:19 am

Code: Select all

[Codebox=c file=Untitled.c]
#define WAKE_UP_GPIO_25_MASK 0x2000000
esp_sleep_enable_ext0_wakeup(35,1)  // wake up when USB connected ,gpio  35 is high

esp_sleep_enable_ext1_wakeup(WAKE_UP_GPIO_25_MASK,ESP_EXT1_WAKEUP_ALL_LOW )  //
[/Codebox]
在 main.c里面添加以上代码,esp_sleep_enable_ext0_wakeup,和 esp_sleep_enable_ext1_wakeup 分别单独执行都生效,一起执行,就只有后面定义的能生效,
是不能同时使用这两个唤醒吗?还是需要什么特别的设置呢?

Who is online

Users browsing this forum: No registered users and 49 guests