File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,14 @@ idf_component_register(
202
202
${IDF_COMPONENTS}
203
203
)
204
204
205
+ # If a ULP binary image is to be embedded into the build, you can define the
206
+ # appropriate variables to have ESP-IDF build it for your board using your
207
+ # mpconfigboard.cmake
208
+ if (DEFINED ulp_app_name )
209
+ message ("ULP embedded APP: ${ulp_app_name} ${ulp_sources} ${ulp_exp_dep_srcs} " )
210
+ ulp_embed_binary (${ulp_app_name} "${ulp_sources} " "${ulp_exp_dep_srcs} " )
211
+ endif ()
212
+
205
213
# Set the MicroPython target as the current (main) IDF component target.
206
214
set (MICROPY_TARGET ${COMPONENT_TARGET} )
207
215
Original file line number Diff line number Diff line change 26
26
27
27
#include "py/runtime.h"
28
28
29
- #if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
29
+ #if MICROPY_PY_ULP && ( CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 )
30
30
31
31
#if CONFIG_IDF_TARGET_ESP32
32
32
#include "esp32/ulp.h"
@@ -104,4 +104,4 @@ MP_DEFINE_CONST_OBJ_TYPE(
104
104
locals_dict , & esp32_ulp_locals_dict
105
105
);
106
106
107
- #endif // CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
107
+ #endif // MICROPY_PY_ULP && ( CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3)
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ static const mp_rom_map_elem_t esp32_module_globals_table[] = {
232
232
{ MP_ROM_QSTR (MP_QSTR_NVS ), MP_ROM_PTR (& esp32_nvs_type ) },
233
233
{ MP_ROM_QSTR (MP_QSTR_Partition ), MP_ROM_PTR (& esp32_partition_type ) },
234
234
{ MP_ROM_QSTR (MP_QSTR_RMT ), MP_ROM_PTR (& esp32_rmt_type ) },
235
- #if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
235
+ #if MICROPY_PY_ULP && ( CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 )
236
236
{ MP_ROM_QSTR (MP_QSTR_ULP ), MP_ROM_PTR (& esp32_ulp_type ) },
237
237
#endif
238
238
Original file line number Diff line number Diff line change 87
87
#define MICROPY_GC_SPLIT_HEAP_AUTO (1)
88
88
89
89
// extended modules
90
+ #ifndef MICROPY_PY_ULP
91
+ #define MICROPY_PY_ULP (1)
92
+ #endif
90
93
#ifndef MICROPY_PY_ESPNOW
91
94
#define MICROPY_PY_ESPNOW (1)
92
95
#endif
You can’t perform that action at this time.
0 commit comments