diff --git a/boards/CUSTOM_ESP32/main/CMakeLists.txt b/boards/CUSTOM_ESP32/main/CMakeLists.txt index 7021122..c74259b 100644 --- a/boards/CUSTOM_ESP32/main/CMakeLists.txt +++ b/boards/CUSTOM_ESP32/main/CMakeLists.txt @@ -1,4 +1,4 @@ # Include MicroPython ESP32 component. get_filename_component(MICROPY_DIR "../../../lib/micropython" ABSOLUTE) set(PROJECT_DIR ${MICROPY_DIR}/ports/esp32) -include(${PROJECT_DIR}/main/CMakeLists.txt) +include(${PROJECT_DIR}/main_esp32/CMakeLists.txt) diff --git a/boards/CUSTOM_ESP32/main/idf_component.yml b/boards/CUSTOM_ESP32/main/idf_component.yml new file mode 100644 index 0000000..8be21ed --- /dev/null +++ b/boards/CUSTOM_ESP32/main/idf_component.yml @@ -0,0 +1,5 @@ +## IDF Component Manager Manifest File +dependencies: + espressif/mdns: "~1.1.0" + idf: + version: ">=5.0.2" diff --git a/boards/CUSTOM_ESP32/manifest.py b/boards/CUSTOM_ESP32/manifest.py index f047eb9..f0220c8 100644 --- a/boards/CUSTOM_ESP32/manifest.py +++ b/boards/CUSTOM_ESP32/manifest.py @@ -1,2 +1,5 @@ -freeze("$(PORT_DIR)/modules") -freeze("$(BOARD_DIR)/../../src/utils", "xxd.py") +# include default manifest +include("$(PORT_DIR)/boards/manifest.py") + +# include our own extra... +module("xxd.py", base_path="$(BOARD_DIR)/../../src/utils") diff --git a/boards/CUSTOM_ESP32/partitions.csv b/boards/CUSTOM_ESP32/partitions-4MiB.csv similarity index 86% rename from boards/CUSTOM_ESP32/partitions.csv rename to boards/CUSTOM_ESP32/partitions-4MiB.csv index d304dcc..53f0f16 100644 --- a/boards/CUSTOM_ESP32/partitions.csv +++ b/boards/CUSTOM_ESP32/partitions-4MiB.csv @@ -3,5 +3,5 @@ # Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x9000, 0x6000, phy_init, data, phy, 0xf000, 0x1000, -factory, app, factory, 0x10000, 0x180000, +factory, app, factory, 0x10000, 0x1F0000, vfs, data, fat, 0x200000, 0x200000, diff --git a/boards/CUSTOM_PYBD_SF2/manifest.py b/boards/CUSTOM_PYBD_SF2/manifest.py index de3cdbc..14ae663 100644 --- a/boards/CUSTOM_PYBD_SF2/manifest.py +++ b/boards/CUSTOM_PYBD_SF2/manifest.py @@ -1 +1 @@ -include("$(MPY_DIR)/extmod/uasyncio/manifest.py") +include("$(MPY_DIR)/extmod/asyncio/manifest.py") diff --git a/boards/CUSTOM_PYBD_SF2/mpconfigboard.mk b/boards/CUSTOM_PYBD_SF2/mpconfigboard.mk index 446c914..df2932f 100644 --- a/boards/CUSTOM_PYBD_SF2/mpconfigboard.mk +++ b/boards/CUSTOM_PYBD_SF2/mpconfigboard.mk @@ -12,7 +12,7 @@ TEXT1_SECTIONS = .text_ext # MicroPython settings MICROPY_PY_LWIP = 1 MICROPY_PY_NETWORK_CYW43 = 1 -MICROPY_PY_USSL = 1 +MICROPY_PY_SSL = 1 MICROPY_SSL_MBEDTLS = 1 MICROPY_VFS_LFS2 = 1 diff --git a/lib/micropython b/lib/micropython index 0009a7d..e00a144 160000 --- a/lib/micropython +++ b/lib/micropython @@ -1 +1 @@ -Subproject commit 0009a7dc305b9cce693b2e3fe94174c85dc1ef2e +Subproject commit e00a144008f368df878c12606fdbf651af2a1dc0 diff --git a/src/cmodules/cexample/modcexample.c b/src/cmodules/cexample/modcexample.c index 49ebc7a..93a58be 100644 --- a/src/cmodules/cexample/modcexample.c +++ b/src/cmodules/cexample/modcexample.c @@ -31,7 +31,4 @@ const mp_obj_module_t example_user_cmodule = { }; // Register the module to make it available in Python. -// Note: the "1" in the third argument means this module is always enabled. -// This "1" can be optionally replaced with a macro like MODULE_CEXAMPLE_ENABLED -// which can then be used to conditionally enable this module. -MP_REGISTER_MODULE(MP_QSTR_cexample, example_user_cmodule, 1); +MP_REGISTER_MODULE(MP_QSTR_cexample, example_user_cmodule); diff --git a/src/cmodules/cexample2/modcexample2.c b/src/cmodules/cexample2/modcexample2.c index b3a3789..5b9fb9e 100644 --- a/src/cmodules/cexample2/modcexample2.c +++ b/src/cmodules/cexample2/modcexample2.c @@ -18,4 +18,4 @@ const mp_obj_module_t example_user_cmodule2 = { .globals = (mp_obj_dict_t *)&example_module_globals, }; -MP_REGISTER_MODULE(MP_QSTR_cexample2, example_user_cmodule2, 1); +MP_REGISTER_MODULE(MP_QSTR_cexample2, example_user_cmodule2);