File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,12 @@ if(IDF_VERSION_MINOR GREATER_EQUAL 2)
113
113
list (APPEND IDF_COMPONENTS esp_timer )
114
114
endif ()
115
115
116
+ if (IDF_VERSION_MINOR GREATER_EQUAL 3 )
117
+ list (APPEND IDF_COMPONENTS esp_hw_support )
118
+ list (APPEND IDF_COMPONENTS esp_pm )
119
+ list (APPEND IDF_COMPONENTS hal )
120
+ endif ()
121
+
116
122
# Register the main IDF component.
117
123
idf_component_register (
118
124
SRCS
Original file line number Diff line number Diff line change 35
35
#include "driver/adc.h"
36
36
#include "esp_heap_caps.h"
37
37
#include "multi_heap.h"
38
- #include "../heap_private.h"
39
38
40
39
#include "py/nlr.h"
41
40
#include "py/obj.h"
46
45
#include "machine_rtc.h"
47
46
#include "modesp32.h"
48
47
48
+ // These private includes are needed for idf_heap_info.
49
+ #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL (4 , 3 , 0 )
50
+ #define MULTI_HEAP_FREERTOS
51
+ #include "../multi_heap_platform.h"
52
+ #endif
53
+ #include "../heap_private.h"
54
+
49
55
STATIC mp_obj_t esp32_wake_on_touch (const mp_obj_t wake ) {
50
56
51
57
if (machine_rtc_config .ext0_pin != -1 ) {
You can’t perform that action at this time.
0 commit comments