Skip to content

Commit 6c3dcb1

Browse files
karlpdpgeorge
authored andcommitted
all: Update to micropython v1.21.0.
Updates the micropython submodule to v1.21.0, and updates the example modules, and CUSTOM_ESP32 and CUSTOM_PYBD_SF2 boards to build with this version. Tested on a lilygo-t-display board, and PYBv1.1 and PYBD-SF2W boards. Signed-off-by: Karl Palsson <[email protected]> Signed-off-by: Damien George <[email protected]>
1 parent 330065e commit 6c3dcb1

File tree

9 files changed

+17
-12
lines changed

9 files changed

+17
-12
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Include MicroPython ESP32 component.
22
get_filename_component(MICROPY_DIR "../../../lib/micropython" ABSOLUTE)
33
set(PROJECT_DIR ${MICROPY_DIR}/ports/esp32)
4-
include(${PROJECT_DIR}/main/CMakeLists.txt)
4+
include(${PROJECT_DIR}/main_esp32/CMakeLists.txt)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## IDF Component Manager Manifest File
2+
dependencies:
3+
espressif/mdns: "~1.1.0"
4+
idf:
5+
version: ">=5.0.2"

boards/CUSTOM_ESP32/manifest.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
freeze("$(PORT_DIR)/modules")
2-
freeze("$(BOARD_DIR)/../../src/utils", "xxd.py")
1+
# include default manifest
2+
include("$(PORT_DIR)/boards/manifest.py")
3+
4+
# include our own extra...
5+
module("xxd.py", base_path="$(BOARD_DIR)/../../src/utils")

boards/CUSTOM_ESP32/partitions.csv renamed to boards/CUSTOM_ESP32/partitions-4MiB.csv

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Name, Type, SubType, Offset, Size, Flags
44
nvs, data, nvs, 0x9000, 0x6000,
55
phy_init, data, phy, 0xf000, 0x1000,
6-
factory, app, factory, 0x10000, 0x180000,
6+
factory, app, factory, 0x10000, 0x1F0000,
77
vfs, data, fat, 0x200000, 0x200000,

boards/CUSTOM_PYBD_SF2/manifest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
1+
include("$(MPY_DIR)/extmod/asyncio/manifest.py")

boards/CUSTOM_PYBD_SF2/mpconfigboard.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ TEXT1_SECTIONS = .text_ext
1212
# MicroPython settings
1313
MICROPY_PY_LWIP = 1
1414
MICROPY_PY_NETWORK_CYW43 = 1
15-
MICROPY_PY_USSL = 1
15+
MICROPY_PY_SSL = 1
1616
MICROPY_SSL_MBEDTLS = 1
1717
MICROPY_VFS_LFS2 = 1
1818

lib/micropython

Submodule micropython updated 3750 files

src/cmodules/cexample/modcexample.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,4 @@ const mp_obj_module_t example_user_cmodule = {
3131
};
3232

3333
// Register the module to make it available in Python.
34-
// Note: the "1" in the third argument means this module is always enabled.
35-
// This "1" can be optionally replaced with a macro like MODULE_CEXAMPLE_ENABLED
36-
// which can then be used to conditionally enable this module.
37-
MP_REGISTER_MODULE(MP_QSTR_cexample, example_user_cmodule, 1);
34+
MP_REGISTER_MODULE(MP_QSTR_cexample, example_user_cmodule);

src/cmodules/cexample2/modcexample2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ const mp_obj_module_t example_user_cmodule2 = {
1818
.globals = (mp_obj_dict_t *)&example_module_globals,
1919
};
2020

21-
MP_REGISTER_MODULE(MP_QSTR_cexample2, example_user_cmodule2, 1);
21+
MP_REGISTER_MODULE(MP_QSTR_cexample2, example_user_cmodule2);

0 commit comments

Comments
 (0)