File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 33
33
#include "driver/adc.h"
34
34
#include "esp_heap_caps.h"
35
35
#include "multi_heap.h"
36
+ #include "esp_app_desc.h"
36
37
37
38
#include "py/nlr.h"
38
39
#include "py/obj.h"
48
49
#include "../multi_heap_platform.h"
49
50
#include "../heap_private.h"
50
51
52
+
51
53
static mp_obj_t esp32_wake_on_touch (const mp_obj_t wake ) {
52
54
53
55
if (machine_rtc_config .ext0_pin != -1 ) {
@@ -56,6 +58,9 @@ static mp_obj_t esp32_wake_on_touch(const mp_obj_t wake) {
56
58
// mp_raise_msg(&mp_type_RuntimeError, MP_ERROR_TEXT("touchpad wakeup not available for this version of ESP-IDF"));
57
59
58
60
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 );
59
64
return mp_const_none ;
60
65
}
61
66
static MP_DEFINE_CONST_FUN_OBJ_1 (esp32_wake_on_touch_obj , esp32_wake_on_touch ) ;
You can’t perform that action at this time.
0 commit comments