Skip to content

Commit 8a3e39f

Browse files
committed
ports/esp32/*: Updated to work with latest esp32 branch and IDF
1 parent ecb732d commit 8a3e39f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

ports/esp32/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ ESPIDF_ESP32_O = $(addprefix $(ESPCOMP)/esp32/,\
240240
intr_alloc.o \
241241
dport_access.o \
242242
wifi_init.o \
243+
sleep_modes.o \
243244
)
244245

245246
ESPIDF_HEAP_O = $(addprefix $(ESPCOMP)/heap/,\

ports/esp32/modmachine.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,21 @@ STATIC mp_obj_t machine_deepsleep(size_t n_args, const mp_obj_t *pos_args, mp_ma
8282
mp_int_t expiry = args[ARG_sleep_ms].u_int;
8383

8484
if (expiry != 0) {
85-
esp_deep_sleep_enable_timer_wakeup(expiry * 1000);
85+
esp_sleep_enable_timer_wakeup(expiry * 1000);
8686
}
8787

8888
if (machine_rtc_config.ext0_pin != -1) {
89-
esp_deep_sleep_enable_ext0_wakeup(machine_rtc_config.ext0_pin, machine_rtc_config.ext0_level ? 1 : 0);
89+
esp_sleep_enable_ext0_wakeup(machine_rtc_config.ext0_pin, machine_rtc_config.ext0_level ? 1 : 0);
9090
}
9191

9292
if (machine_rtc_config.ext1_pins != 0) {
93-
esp_deep_sleep_enable_ext1_wakeup(
93+
esp_sleep_enable_ext1_wakeup(
9494
machine_rtc_config.ext1_pins,
9595
machine_rtc_config.ext1_level ? ESP_EXT1_WAKEUP_ANY_HIGH : ESP_EXT1_WAKEUP_ALL_LOW);
9696
}
9797

9898
if (machine_rtc_config.wake_on_touch) {
99-
esp_deep_sleep_enable_touchpad_wakeup();
99+
esp_sleep_enable_touchpad_wakeup();
100100
}
101101

102102
esp_deep_sleep_start();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy