diff --git a/.gitmodules b/.gitmodules index 5c2363610..35aef82d3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,7 +1,6 @@ [submodule "lib/axtls"] path = lib/axtls - url = https://github.com/pfalcon/axtls - branch = micropython + url = https://github.com/micropython/axtls.git [submodule "lib/libffi"] path = lib/libffi url = https://github.com/atgreen/libffi diff --git a/LICENSE b/LICENSE index 7f39931ba..5b5c37f7d 100644 --- a/LICENSE +++ b/LICENSE @@ -38,10 +38,6 @@ used during the build process and is not part of the compiled source code. /cc3000 (BSD-3-clause) /cc3100 (BSD-3-clause) /wiznet5k (BSD-3-clause) - /extmod - /crypto-algorithms (NONE) - /re15 (BSD-3-clause) - /uzlib (Zlib) /lib /asf4 (Apache-2.0) /axtls (BSD-3-clause) @@ -52,6 +48,7 @@ used during the build process and is not part of the compiled source code. /berkeley-db-1xx (BSD-4-clause) /btstack (See btstack/LICENSE) /cmsis (BSD-3-clause) + /crypto-algorithms (NONE) /libhydrogen (ISC) /littlefs (BSD-3-clause) /lwip (BSD-3-clause) @@ -60,9 +57,11 @@ used during the build process and is not part of the compiled source code. /nxp_driver (BSD-3-Clause) /oofatfs (BSD-1-clause) /pico-sdk (BSD-3-clause) + /re15 (BSD-3-clause) /stm32lib (BSD-3-clause) /tinytest (BSD-3-clause) /tinyusb (MIT) + /uzlib (Zlib) /logo (uses OFL-1.1) /ports /cc3200 diff --git a/docs/conf.py b/docs/conf.py index 239934bfa..1a3c18a4f 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -74,7 +74,7 @@ copyright = '- The MicroPython Documentation is Copyright © 2014-2021, Damien P # # We don't follow "The short X.Y version" vs "The full version, including alpha/beta/rc tags" # breakdown, so use the same version identifier for both to avoid confusion. -version = release = '1.16' +version = release = '1.17' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/develop/library.rst b/docs/develop/library.rst index bebddcc8a..47ea2dc8d 100644 --- a/docs/develop/library.rst +++ b/docs/develop/library.rst @@ -34,7 +34,7 @@ An example is the ``gc`` module discussed in :ref:`memorymanagement`. >>> gc.enable() >>> -MicroPython has several other builtin standard/core modules like ``io``, ``uarray`` etc. +MicroPython has several other builtin standard/core modules like ``io``, ``array`` etc. Adding a new core module involves several modifications. First, create the ``C`` file in the ``py/`` directory. In this example we are adding a diff --git a/docs/develop/porting.rst b/docs/develop/porting.rst index 59dd57000..549227d76 100644 --- a/docs/develop/porting.rst +++ b/docs/develop/porting.rst @@ -42,8 +42,8 @@ The basic MicroPython firmware is implemented in the main port file, e.g ``main. #include "py/gc.h" #include "py/mperrno.h" #include "py/stackctrl.h" - #include "lib/utils/gchelper.h" - #include "lib/utils/pyexec.h" + #include "shared/runtime/gchelper.h" + #include "shared/runtime/pyexec.h" // Allocate memory for the MicroPython GC heap. static char heap[4096]; @@ -106,10 +106,10 @@ We also need a Makefile at this point for the port: SRC_C = \ main.c \ mphalport.c \ - lib/mp-readline/readline.c \ - lib/utils/gchelper_generic.c \ - lib/utils/pyexec.c \ - lib/utils/stdout_helpers.c \ + shared/readline/readline.c \ + shared/runtime/gchelper_generic.c \ + shared/runtime/pyexec.c \ + shared/runtime/stdout_helpers.c \ # Define the required object files. OBJ = $(PY_CORE_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o)) @@ -245,8 +245,8 @@ That should give a MicroPython REPL. You can then run commands like: .. code-block:: bash MicroPython v1.13 on 2021-01-01; example-board with unknown-cpu - >>> import usys - >>> usys.implementation + >>> import sys + >>> sys.implementation ('micropython', (1, 13, 0)) >>> diff --git a/docs/esp32/quickref.rst b/docs/esp32/quickref.rst index 77c7027c4..3153ebd57 100644 --- a/docs/esp32/quickref.rst +++ b/docs/esp32/quickref.rst @@ -98,7 +98,7 @@ A useful function for connecting to your local WiFi network is:: pass print('network config:', wlan.ifconfig()) -Once the network is established the :mod:`socket ` module can be used +Once the network is established the :mod:`socket ` module can be used to create and use TCP/UDP sockets as usual, and the ``urequests`` module for convenient HTTP requests. @@ -113,7 +113,7 @@ to reconnect forever). Delay and timing ---------------- -Use the :mod:`time ` module:: +Use the :mod:`time