Skip to content

Commit 19780c3

Browse files
committed
temp
1 parent f0031ae commit 19780c3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/libffi

Submodule libffi updated 324 files

ports/esp32/modesp32.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "driver/adc.h"
3434
#include "esp_heap_caps.h"
3535
#include "multi_heap.h"
36+
#include "esp_app_desc.h"
3637

3738
#include "py/nlr.h"
3839
#include "py/obj.h"
@@ -48,6 +49,7 @@
4849
#include "../multi_heap_platform.h"
4950
#include "../heap_private.h"
5051

52+
5153
static mp_obj_t esp32_wake_on_touch(const mp_obj_t wake) {
5254

5355
if (machine_rtc_config.ext0_pin != -1) {
@@ -56,6 +58,9 @@ static mp_obj_t esp32_wake_on_touch(const mp_obj_t wake) {
5658
// mp_raise_msg(&mp_type_RuntimeError, MP_ERROR_TEXT("touchpad wakeup not available for this version of ESP-IDF"));
5759

5860
machine_rtc_config.wake_on_touch = mp_obj_is_true(wake);
61+
int mask = esp_cpu_intr_get_enabled_mask();
62+
esp_cpu_intr_disable(3);
63+
esp_cpu_intr_enable(3);
5964
return mp_const_none;
6065
}
6166
static MP_DEFINE_CONST_FUN_OBJ_1(esp32_wake_on_touch_obj, esp32_wake_on_touch);

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