MicroPython v1.13 Release Notes

Release Date: 2020-09-02 // 3 months ago
  • ๐Ÿš€ This release of MicroPython includes a new implementation of the uasyncio module which aims to be more compatible with CPython's asyncio module. The main change is to use a Task object for each coroutine, allowing more flexibility to queue tasks in various places, eg the main run loop, tasks waiting on events, locks or other tasks. It no longer requires pre-allocating a fixed queue size for the main run loop. A pairing heap is used to queue Tasks, and the core is optionally implemented in C.

    ๐Ÿ’… Most code in this repository is now auto-formatted using uncrustify for C code and Black for Python code. The tools/codeformat.py script is used to apply this formatting. Options for uncrustify were chosen to match as closely as possible the existing C style, but there were nevertheless quite a few changes to make the code style consistent.

    0๏ธโƒฃ BlueKitchen BTstack bindings have been added for the ubluetooth module, as an optional alternative to the NimBLE stack. The unix port can now be built with BLE support using these bindings, which works with USB Bluetooth adaptors (this feature is enabled by default on the dev and coverage variants).

    ๐Ÿ‘€ Other Bluetooth additions include: new events for service/characteristic/ descriptor discovery complete; new events for read done and indicate acknowledgement; and support for active scanning in BLE.gap_scan(). See also below for breaking changes to the ubluetooth BLE API.

    PEP 526 has been implemented which adds new syntax for variable annotations, such as "x:int = 1". PEP 572 has also been implemented, which adds the ":=" operator for assignment expressions, such as "if x := 1:...".

    ๐Ÿ‘ป The whole code base now supports compressing error messages (those strings used as arguments to exception instances) using a "common word" scheme, which can be used to reduce code size.

    โœ… Other new features include: support for non-boolean results for equality and inequality tests; the addition of the micropython.heap_locked() function to test the state of the heap; binary operations for viper uint operands in the native emitter; and mtime support on littlefs v2 filesystems (which can be disabled if needed).

    There has been an important bug fix when importing ARM machine code from an .mpy file: the system now correctly tracks the executable memory allocated to the machine code so this memory is not reclaimed by the garbage collector.

    ๐Ÿ‘€ For testing, a multi-instance test runner has been added (see tests/run-multitests.py) which allows running a synchronised test across two or more MicroPython targets. This is currently used for network and BLE tests that require communication between multiple devices.

    ๐Ÿ— In the unix port different builds are now organised into build variants, analogous to boards on bare-metal. And PEP 475 has been implemented which retries syscalls failing with EINTR.

    ๐Ÿ‘€ The stm32 port sees improved support for STM32WB MCUs, with ADC, SPI and DMA support, along with support in mboot for these MCUs. Mboot also adds optional littlefs support.

    The esp8266 port now includes three generic board definitions: GENERIC_512K, GENERIC_1M and GENERIC, with the latter for modules with 2M or more of flash. This port also changed the default filesystem to littlefs, and no longer supports hard pin IRQs. See breaking changes below for more details.

    ๐Ÿ— The esp32 port now enables Bluetooth support (via NimBLE) on both IDF v3 and v4 builds. It also changes the default filesystem from FAT to littlefs v2 (but existing devices with FAT filesystems will continue to work without change).

    There is also a new mimxrt port which targets NXP i.MX RT series CPUs.

    ๐Ÿ’ฅ Breaking changes in this release are:

    async-for no longer await's on the result of aiter. The aiter method should return an async-iterable object but is not itself awaitable. See commit 37e1b5c

    โšก๏ธ In ubluetooth, the IRQ event constants have all changed value (from a bitfield to a sequential integer) and Python code should be updated accordingly by replacing the const definitions with the new ones, which can be found at https://docs.micropython.org/en/latest/library/ubluetooth.html#ubluetooth.BLE.irq See also commit e6881f0

    In ubluetooth, the IRQ data for the _IRQ_SCAN_RESULT event has had the "connectable" entry changed to "adv_type". The existing connectable value was a boolean and True now becomes 0x00, False becomes 0x02. See commit dd0bc26

    โฌ†๏ธ For esp8266, the default filesystem has changed from FAT to littlefs v2. And the flash layout of the firmware and filesystem has changed to give more space to the firmware and frozen bytecode. When upgrading an existing esp8266 device the filesystem will be reformatted so files should be backed up first. See commit e0905e8

    ๐Ÿ‘€ For esp8266, machine.Pin no longer supports configuring a pin IRQ with "hard=True" (because the interrupt handling code is moved to iRAM). Existing code using pin IRQs should remove any "hard=True" argument. See commit 0bd58a5

    ๐Ÿ‘€ For the unix port, binaries are renamed to micropython-variant (no longer micropython_variant). See commit 977b532

    What follows is a detailed list of changes, generated from the git commit history, and organised into sections.

    Main components

    all:

    • reformat C and Python source code with tools/codeformat.py
    • convert exceptions to use mp_raise_XXX helpers in remaining places
    • โœ‚ remove spaces between nested paren and inside function arg paren
    • โœ‚ remove spaces inside and around parenthesis
    • ๐Ÿ›  fix implicit casts of float/double, and signed comparison
    • use MP_ERROR_TEXT for all error messages
    • clean up error strings to use lowercase and change cannot to can't
    • ๐Ÿ›  fix implicit floating point promotion
    • ๐Ÿ›  fix implicit conversion from double to float
    • ๐Ÿ›  fix implicit floating point to integer conversions
    • โš  enable extra conversion warnings where applicable
    • โœ‚ remove commented-out include statements
    • ๐Ÿ’… format code to add space after C++-style comment start
    • factor gchelper code to one place and use it for unix & ARM ports
    • fix auto-enable of MICROPY_GCREGS_SETJMP to select GC behaviour
    • โšก๏ธ update Python code to conform to latest black formatting

    py core:

    • โœ‚ remove commented-out debug printf's from emitbc and objlist
    • obj.h: remove comments about additional mp_buffer_info_t entries
    • objobject: add object. setattr function
    • objobject: add object. delattr function
    • โš  nlrx86: silence possible warnings about unused nlr argument
    • asmx86: fix stack to be 16-byte aligned for entry and sub-call
    • ๐Ÿšš asmx86: remove unused 5th argument facility
    • โš™ runtime: don't allocate iter buf for user-defined types
    • objsingleton: use mp_generic_unary_op for singleton objects
    • introduce MP_ROM_NONE macro for ROM to refer to None object
    • introduce MP_ROM_FALSE/MP_ROM_TRUE for ROM to refer to bool objects
    • objstr: don't use inline GET_STR_DATA_LEN for object-repr D
    • obj.h: use 32-bit shift in MP_OBJ_NEW_QSTR calc for obj-repr D
    • ๐Ÿ‘ป clean up commented-out code and comments about exception hierarchy
    • ๐Ÿ‘ objslice: add support for indices() method on slice objects
    • objslice: inline fetching of slice paramters in str_subscr()
    • make mp_obj_get_type() return a const ptr to mp_obj_type_t
    • ๐Ÿšš mkenv.mk: move usage of 32-bit flags to py.mk
    • unicode: add unichar_isalnum()
    • runtime: move MICROPY_PORT_INIT_FUNC near the end of mp_init()
    • nativeglue: use mp_const_X instead of &mp_const_X_obj
    • obj.h: redefine qstr object encoding to add immediate obj encoding
    • obj: add MICROPY_OBJ_IMMEDIATE_OBJS option to reduce code size
    • obj: optimise mp_obj_get_type for immediate objs with repr A and C
    • mpconfig.h: define BITS_PER_BYTE only if not already defined
    • objint: add mp_obj_int_get_uint_checked() helper
    • pairheap: add generic implementation of pairing heap data structure
    • gc: don't include or init gc_mutex when GIL is enabled
    • qstr: don't include or init qstr_mutex when GIL is enabled
    • objgenerator: use mp_obj_new_exception_arg1 to make StopIteration
    • objexcept: optimise mp_obj_new_exception[_arg1/_args] functions
    • obj.h: add and use mp_obj_is_bool() helper
    • ๐Ÿš€ release GIL during syscalls in reader and writer code
    • ๐Ÿ‘ป emitnative: use NULL for pending exception (not None)
    • emitnative: stop after finding an unwind target
    • mpthread.h: use strong type for mp_thread_set_state() argument
    • objtype: make mp_obj_type_t.flags constants public, moved to obj.h
    • ๐Ÿ‘Œ support non-boolean results for equality and inequality tests
    • ๐Ÿ— compile: allow 'return' outside function in minimal builds
    • scheduler: add "raise_exc" argument to mp_handle_pending
    • scheduler: move mp_keyboard_interrupt from lib/utils to py core
    • scheduler: allow a port to specify attrs for mp_keyboard_interrupt
    • scheduler: move clearing of kbd traceback to mp_keyboard_interrupt
    • expand type equality flags to 3 separate ones, fix bool/namedtuple
    • add mp_raise_type helper macro and use it where appropriate
    • add mp_raise_msg_varg helper and use it where appropriate
    • factor out definition of mp_float_union_t to one location
    • objexcept: rename mp_obj_new_exception_msg_varg2 to ..._vlist
    • ๐Ÿšš objtuple: remove code that handles tuple-subclass equality test
    • objtype: allow mp_instance_cast_to_native_base to take native obj
    • dynruntime.h: add implementation of mp_obj_cast_to_native_base
    • objarray: turn on MP_TYPE_FLAG_EQ_CHECKS_OTHER_TYPE for memoryview
    • removing dangling "else" to improve code format consistency
    • bc0.h: shift comment to start of line to improve format consistency
    • builtinimport: adjust if-block order in find_file to clean up #if's
    • malloc: put { on separate line for funcs that have selective sigs
    • ๐Ÿ”ง un-nest configuration #if/#endif's for selection of complex code
    • ๐Ÿ“œ parse: add parenthesis around calculated bit-width in struct
    • ๐Ÿ‘ builtinevex: support passing in a bytearray/buffer to eval/exec
    • ๐Ÿšš objstr: remove duplicate % in error string
    • objstringio: expose tell() on StringIO and BytesIO objects
    • โœ… modmicropython: add heap_locked function to test state of heap
    • stream.h: include sys/types.h to get size_t and off_t for POSIX API
    • mpconfig.h: enable MICROPY_MODULE_GETATTR by default
    • pairheap: properly unlink node on pop and delete
    • pairheap: add helper function to initialise a new node
    • ๐Ÿ‘‰ use preprocessor to detect error reporting level (terse/detailed)
    • dynruntime.mk: set MICROPY_ENABLE_DYNRUNTIME instead of per module
    • implement "common word" compression scheme for error messages
    • ๐Ÿ‘ป objexcept: allow compression of exception message text
    • parse: remove unnecessary check in const folding for ** operator
    • ๐Ÿšš objexcept: remove optional TimeoutError exception
    • โฑ scheduler: fix race in checking scheduler pending state
    • โฑ scheduler: add assert that scheduler is locked when unlocking
    • ๐Ÿ‘‰ makecompresseddata.py: don't prefix str with mark if not compressed
    • scope: add assert to check that low numbered qstrs do fit in uint8_t
    • always give noop defines when MICROPY_ROM_TEXT_COMPRESSION disabled
    • objarray: fix sign mismatch in comparison
    • objint: do not use fpclassify
    • ๐Ÿ‘‰ makecompresseddata.py: make compression deterministic
    • objdict: fix popitem for ordered dicts
    • stream: remove mp_stream_errno and use system errno instead
    • modio: allow uio.IOBase streams to return errno for read/write error
    • scheduler: add option to wrap mp_sched_schedule in arbitrary attr
    • ๐Ÿ“œ parse: support constant folding of power operator for integers
    • scheduler: convert mp_sched_full and mp_sched_num_pending to macros
    • ๐Ÿ“œ parse: make mp_parse_node_extract_list return size_t instead of int
    • nativeglue.h: rename "setjmp" entry to "setjmp_" to avoid any clash
    • py.mk: use additional CFLAGS to compile string0.c
    • โ†ช modmath: work around msvc float bugs in atan2, fmod and modf
    • ringbuf: fix compilation with msvc
    • modsys: use consistent naming pattern for module-level const objects
    • modbuiltins: fix getattr to work with class raising AttributeError
    • dynruntime.h: make mp_obj_str_get_str raise if arg not a str/bytes
    • objtype: add dict attribute for class objects
    • objtype: use mp_obj_dict_copy() for creating obj. dict attribute
    • obj.h: clarify comments about mp_map_t is_fixed and is_ordered
    • compile: convert scope test to SCOPE_IS_COMP_LIKE macro
    • compile: implement PEP 572, assignment expressions with := operator
    • โœ… grammar.h: consolidate duplicate sub-rules for :test and =test
    • compile: implement PEP 526, syntax for variable annotations
    • misc.h: add missing semi-colon in mp_float_union_t for big-endian
    • obj.h: add public mp_obj_is_dict_or_ordereddict() helper macro
    • ๐Ÿ‘ objtype: support passing in an OrderedDict to type() as the locals
    • asm: add funcs/macros to emit machine code for logical-shift-right
    • asm: add condition codes for signed comparisons
    • emitnative: implement binary operations for viper uint operands
    • objcomplex: add mp_obj_get_complex_maybe for use in complex bin-op
    • obj.h: make existing MP_TYPE_FLAG_xxx macros sequential
    • rework mp_convert_member_lookup to properly handle built-ins
    • obj.h: fix mp_seq_replace_slice_no_grow to use memmove not memcpy
    • compile: don't await aiter special method in async-for
    • persistentcode: maintain root ptr list of imported native .mpy code
    • ๐Ÿ–จ runtime: fix builtin compile() in "single" mode so it prints exprs
    • mphal.h: introduce mp_hal_time_ns and implement on various ports

    extmod:

    • uzlib: explicitly cast ptr-diff-expr to unsigned
    • ๐Ÿ›  fix modbluetooth and modwebrepl to build in nanbox mode
    • modbluetooth: fix func prototype, empty args should be (void)
    • ๐Ÿš€ vfs_posix: release GIL during system calls
    • modbluetooth: implement config getter for BLE rxbuf size
    • modbluetooth.h: fix typo in comment about registering services
    • modbluetooth_nimble: fix wrong offset used for descriptor flags
    • modframebuf: allow blit source to be a subclass of FrameBuffer
    • ๐Ÿšš modbluetooth_nimble: move nimble specific code, factor nimble.mk
    • modbluetooth: extract out gatts_db functionality from nimble
    • btstack: add empty modbluetooth implementation
    • btstack: implement advertising
    • btstack: implement service registration
    • btstack: implement gatts_db for btstack
    • btstack: implement scan and gatt client, connect and disconnect
    • btstack: implement notifications/indications for GATT clients
    • nimble: clarify active state and check for active in all methods
    • modbluetooth: unify error handling in remaining places
    • modbluetooth: change scan result's "connectable" to "adv_type"
    • nimble: when getting BLE MAC try public address if random fails
    • vfs: factor out vfs mount-and-chdir helper from stm32
    • modlwip: fix polling of UDP socket so it doesn't return HUP
    • โฑ modlwip: properly handle non-blocking and timeout on UDP recv
    • vfs_posix_file: lock GIL when writing and allow stdio flush
    • vfs_posix_file: include unistd.h to get STD{IN,OUT,ERR}_FILENO
    • uasyncio: add new implementation of uasyncio module
    • uasyncio: add optional implementation of core uasyncio in C
    • uasyncio: add manifest.py for freezing uasyncio Py files
    • uasyncio: don't create a Loop instance in get_event_loop()
    • uasyncio: implement Loop.stop() to stop the event loop
    • ๐Ÿš€ uasyncio: add error message to Lock.release's RuntimeError
    • uasyncio: add StreamReader/StreamWriter as aliases of Stream cls
    • ๐Ÿ‘ป uasyncio: add global exception handling methods
    • modubinascii: make code private and module self-contained
    • btstack: pass through SCAN_RSP events
    • modbluetooth: provide FLAG_WRITE_NO_RESPONSE for characteristics
    • uasyncio: add Loop.new_event_loop method
    • โœ… uasyncio: change cannot to can't in error message, and test exp
    • โšก๏ธ nimble: update to work with NimBLE 1.3
    • modbluetooth: don't hold atomic section during mp_sched_schedule
    • btstack: implement more robust init/deinit sequencing
    • โš  modbluetooth: fix sign compare and unused variable warnings
    • modbtree: retain reference to underlying stream so it's not GC'd
    • vfs_lfsx: fix path handling in uos.stat() to consider cur dir
    • vfs_lfsx: normalize path name in chdir
    • vfs_lfsx: fix rename to respect cur dir for new path
    • ๐Ÿ‘ modbluetooth: add support for changing the GAP device name
    • 0๏ธโƒฃ nimble: make error code mapping default to MP_EIO
    • vfs_lfsx: fix import_stat so it takes into account current dir
    • vfs: retain previous working directory if chdir fails
    • modbluetooth: make modbluetooth event not a bitfield
    • modbluetooth: add discover complete events for svc/char/desc
    • modbluetooth: allow discovery of svc/char by uuid
    • modbluetooth: implement read done event
    • modbluetooth: ensure status=0 always on success
    • ๐Ÿ‘ modbluetooth: support bigger characteristic values
    • ure: use single function for match/search/sub
    • uasyncio: add asyncio.wait_for_ms function
    • 0๏ธโƒฃ modbluetooth: register default GATT service and fix esp32 init
    • moductypes: use mp_obj_is_dict_or_ordereddict to simplify code
    • ๐Ÿ— vfs_lfs: fix littlefs bindings to build in nan-box mode
    • nimble: fix attr NULL ptr dereference in ble_gatt_attr_read_cb
    • โฑ btstack: schedule notify/indicate/write ops for bg completion
    • modbluetooth: ignore unused self_in in ble_gatts_indicate
    • ๐Ÿ— modbluetooth: fix so it builds in peripheral-only mode
    • modbluetooth: add event for "indicate acknowledgement"
    • ๐Ÿ‘ป modussl: improve exception error messages
    • modussl_mbedtls: integrate shorter error strings
    • uasyncio: add StreamReader.readexactly(n) method
    • vfs_reader: fix mp_reader_new_file to open file in "rb" mode
    • uasyncio: truncate negative sleeps to 0
    • ๐Ÿ‘ vfs_lfs: add mtime support to littlefs files
    • btstack: implement GAP scan duration_ms parameter
    • modbluetooth: fix race between READ_REQUEST and other IRQs
    • ๐Ÿ‘ bluetooth: support active scanning in BLE.gap_scan()
    • machine_i2c: fix buffer overrun if 'addrsize' is bigger than 32
    • modlwip: fix error return for TCP recv when not connected
    • ๐Ÿ‘ vfs: support larger integer range in VFS stat time fields
    • vfs: add option to use 1970 as Epoch

    lib:

    • utils/pyexec: introduce MICROPY_REPL_INFO, wrap debug prints in it
    • mp-readline: add an assert() to catch buffer overflows
    • ๐Ÿšš mp-readline: add word-based move/delete EMACS key sequences
    • utils: change default value of pyexec_mode_kind to 0 to put in bss
    • utils/pyexec: handle pending exceptions after disabling kbd intrs
    • โž• add BlueKitchen BTstack submodule
    • โšก๏ธ tinyusb: update to a6b916ba for i.MX support
    • โšก๏ธ btstack: update to latest master btstack commit
    • โšก๏ธ littlefs: update littlefs2 to v2.2.0
    • ๐Ÿš€ mynewt-nimble: update submodule to NimBLE release 1.3.0
    • โšก๏ธ btstack: update to c8b9823 for USB HCI reset timeout fix
    • โฌ†๏ธ nrfx: upgrade to nrfx v2.0.0
    • ๐Ÿ”’ utils: lock the scheduler when executing hard callback functions
    • utils/pyexec: add missing MP_ERROR_TEXT when compiler disabled
    • utils: protect all of mpirq.c with MICROPY_ENABLE_SCHEDULER
    • libc: add implementation of strncpy
    • mbedtls_errors: add code to patch mbedtls for shortened error strs
    • โšก๏ธ stm32lib: update library for H7 v1.6.0 and WB v1.6.0
    • libm_dbl: add round.c source code
    • libc: fix string0's implementation of strncpy
    • timeutils: add helper functions to deal with nanosecs since 1970

    drivers:

    • ๐Ÿ— cyw43: fix to build in nanbox mode
    • ๐Ÿ–จ cyw43: include stdio.h in files that use printf
    • cyw43: return early from cyw43_wifi_set_up if wifi_on fails
    • โœ… nrf24l01: change pipe addrs in test to match Arduino addrs
    • onewire: fix undefined variable errors
    • display/ssd1306.py: change the SET_COM_PIN_CFG setting
    • ๐Ÿ‘Œ support SPI/QSPI flash chips over 16MB

    mpy-cross:

    • ๐Ÿ–จ main: fix stderr_print_strn parameter type
    • ๐Ÿ–จ main: print uncaught nlr jump to stderr

    ๐Ÿ‘Œ Support components

    ๐Ÿ“„ docs:

    • more consistent capitalization and use of articles in headings
    • library/machine.I2C.rst: use positional-only arguments syntax
    • โฑ library/machine.UART.rst: detail timeout behaviour of read methods
    • README: add short paragraph about using readthedocs
    • library/machine: document machine.soft_reset() function
    • ๐Ÿ“„ library: add / to indicate positional-only args in library docs
    • library/uos.rst: improve block devices section, and ioctl ret vals
    • esp8266: in TCP tutorial, add HTTP response code and content-type
    • unix: add a new new quickref page for the UNIX port
    • library: fix framebuf monochrome 1-bit modes, swapping HLSB/HMSB
    • develop: detail how to add symbols to mp_fun_table for native mods
    • ๐Ÿ“„ library: add initial docs for uasyncio module
    • โž• add docs and test for uasyncio custom exc handler methods
    • ๐Ÿ‘ป library: note that uasyncio.wait_for() can raise exception
    • library: document that char_data/notify_data are also references
    • ๐Ÿ“Œ library: note that machine.Pin.irq's hard arg may not be supported
    • โฑ library: fix docs for machine.WDT to specify millisecond timeout
    • develop: fix module/source name in Makefile of native example
    • reference: add note about multiple exceptions when heap is locked
    • โšก๏ธ library: update ubluetooth for new events and discover by uuid
    • ๐Ÿ›  fix Sphinx 3.x warnings, and enable warnings-as-errors on build
    • ๐Ÿ“š esp8266: add quickref documentation for UART on esp8266
    • library: clarify that the arg to esp.deepsleep is in microseconds
    • esp32: add info about PWM duty cycle range to esp32 quickref
    • library: add gatts_indicate() doc to ubluetooth.rst
    • library: for ubluetooth, add docs for _IRQ_GATTS_INDICATE_DONE
    • ๐Ÿ“š library: update documentation of esp32's RMT
    • โšก๏ธ library: update pyb.SPI init method to add descr about "ti" arg
    • โšก๏ธ library: update pyb.Timer to add missing args and defaults to init
    • โšก๏ธ library: update pyb.UART to correct pyboard UART availability
    • esp32: fix machine.Timer quickref to specify HW timers
    • change \* to * in argument lists

    examples:

    • accellog.py: shift long comments to their own line
    • bluetooth/ble_temperature_central.py: shorten comment
    • natmod: add .gitignore to ignore generated example .mpy files
    • bluetooth: replace "connectable" parameter with "adv_type"
    • bluetooth: fix incorrect value of BR/EDR flag in advertising
    • bluetooth: fix event code in ble_temperature_central.py
    • bluetooth: in ble_advertising.py, skip appearance if not set
    • bluetooth: add simple UART demo with central and peripheral

    โœ… tests:

    • โœ… run-tests: add "--mpy-cross-flags" arg to specify mpy-cross flags
    • โœ… extmod: split out VfsFat finaliser tests to separate test file
    • โœ… micropython: add test for yield-from while heap is locked
    • โœ… run-tests: handle 'CRASH' return by float.py feature test
    • โœ… cpydiff: add CPy diff-test for using dict.keys() as a set
    • โœ… unix: make unix time test pass on more platforms
    • unix: add coverage test for new mp_obj_int_get_uint_checked func
    • โœ… make run-tests help and README be more descriptive of behaviour
    • โœ… extmod: add basic machine.Timer test
    • โœ… unix: add coverage tests for pairheap data structure
    • unix: add coverage test for mp_obj_new_exception_args
    • unix: add coverage tests for mp_obj_is_type() and variants
    • โž• add boolean-as-integer formatting tests for fixed regression
    • โž• add tests for generator throw and yield-from with exc handlers
    • โœ… basics: expand test cases for equality of subclasses
    • โœ… cmdline/repl_inspect: add new test for -i option
    • โœ… cmdline: add test for MICROPYINSPECT environment variable
    • cpydiff: add os module environ differences
    • ๐Ÿšš move CPy diff test to real test now that subclass equality works
    • ๐Ÿšš basics: move test for "return" outside function to own file
    • โฑ unix: add coverage tests for kbd-intr and scheduler
    • run-tests: auto-skip extmod/ticks_diff, extmod/time_ms_us tests
    • โœ… basics: add tests for equality between bool and int/float/complex
    • โœ… basics: add test for equality between tuple and namedtuple
    • โœ… basics: add test for tuple compare with class derived from tuple
    • โœ… basics/array1.py: add equality testing for array
    • โœ… run-multitests.py: add new test runner for multiple Py instances
    • โœ… multi_net: add initial set of multi-instance tests for network
    • โœ… multi_bluetooth: add initial tests for bluetooth BLE
    • โœ… run-tests: consider all tests as native when emit=native is used
    • โœ… run-multitests.py: print test summary and do exit(1) on failure
    • โœ… extmod: add uasyncio tests
    • โœ… run-tests: skip uasyncio if no async, and skip one test on native
    • 0๏ธโƒฃ make default MICROPYPATH include extmod to find uasyncio
    • โœ… multi_net: add uasyncio test for TCP server and client
    • โœ… net_inet: add uasyncio internet tests
    • ๐Ÿšš basics/dict_pop.py: remove extra comma in call and fix grammar
    • micropython/heapalloc_fail_set.py: remove extra trailing comma
    • โœ… format all Python code with black, except tests in basics subdir
    • โœ… float: add new lexer test to test parsing of float without prefix
    • โœ… run-tests: add commands to print and clean *.exp,out files
    • โšก๏ธ extmod: update littlefs test output to match new library version
    • ๐Ÿ”ง run-tests: make diff tool user configurable
    • float: fix cmath_fun_special for MICROPY_FLOAT_IMPL_FLOAT
    • โœ… extmod: add btree test for errors raised by btree DB library
    • โœ… run-multitests.py: allow filtering out lines from stdout
    • multi_bluetooth/ble_gap_advertise: fix bytes/str compare warning
    • โœ… run-multitests.py: add shortcuts for local Python instances
    • cpydiff: add cpydiff test for all used in imported package
    • thread/thread_stacksize1.py: increase stack size for CPython
    • ๐Ÿ–จ multi_bluetooth: fix typo printing wrong IRQ type
    • ๐Ÿšš run-multitests.py: add TRACE banner and move TEST output to end
    • โœ… run-tests: skip REPL feature checks when running via pyboard.py
    • โšก๏ธ multi_bluetooth: update to work with new BLE events
    • โœ… run-multitests.py: allow passing unique env vars to each instance
    • โœ… basics: add tests for assignment operator :=
    • โœ… cpydiff: add CPy diff test for assignment expression behaviour
    • โœ… basics: add tests for variable annotations
    • โœ… basics: split out memoryview slice-assign tests to separate file
    • ๐Ÿšš move .mpy import tests from import/ to micropython/ dir
    • โœ… micropython: improve .mpy import tests to run on more targets
    • โœ… extmod: add test for uasyncio.sleep of a negative time
    • โœ… extmod: make uasyncio_fair test more reliable by adjusting sleeps
    • โœ… run-tests: use absolute paths where possible
    • ๐Ÿ”ง run-tests: make test output directory configurable
    • โœ… split out complex reverse-op tests to separate test file
    • โœ… extmod: add tests for verifying FAT and littlefs mtime values

    tools:

    • gen-cpydiff.py: adjust subsections to sentence case
    • โž• add metrics.py script to build and compute port sizes/metrics
    • โšก๏ธ pydfu.py: clean up syntax, update comments and docstrings
    • pyboard.py: add option --no-follow to detach after sending script
    • pyboard.py: use slice del instead of list.clear() for Py2 compat
    • pyboard.py: change shebang to use python3
    • ๐Ÿ‘‰ makemanifest.py: support freezing with empty list of mpy files
    • codeformat.py: add formatter using uncrustify for C, black for Py
    • ๐Ÿ makemanifest.py: fix build on Windows by adding .exe to mpy-cross
    • metrics.py: use check_call instead of run to error out on error
    • codeformat.py: eliminate need for sizeof fixup
    • pydfu.py: add args for VID/PID & exit with cleaner error handling
    • pydfu.py: display any error strings from device/mboot
    • codeformat.py: include all msvc C code in auto-format
    • ๐Ÿ‘ pyboard.py: support setting device/baudrate from shell env vars
    • pyboard.py: add -d as an alias for --device
    • metrics.py: add option to diff to error if delta above threshold
    • ๐Ÿ— metrics.py: don't build mpy-cross if not needed by any ports
    • ๐Ÿ— metrics.py: use OrderedDict when reading build log
    • check_code_size.sh: remove unused script
    • codeformat.py: use -q option on uncrustify to make output quiet
    • codeformat.py: add verbose option to pass to uncrustify and black
    • uncrustify.cfg: remove deprecated sp_word_brace option
    • ๐Ÿšš codeformat.py: remove sizeof fixup
    • โšก๏ธ uncrustify: update config for v0.71.0
    • codeformat.py: include extmod/{btstack,nimble} in code formatting
    • ๐Ÿšš uncrustify: enable more opts to remove space between func and '('
    • ๐Ÿ‘‰ makemanifest.py: support freezing a subdirectory recursively
    • pydfu.py: respect longer timeouts requested by DFU device/mboot
    • ๐Ÿ‘‰ makemanifest.py: use errno.EEXIST instead of number 17
    • ๐Ÿ–จ makemanifest.py: print nicely formatted errors from mpy-cross
    • pyboard.py: replace eval() of received data with alternative
    • mpy-tool.py: fix offset of line number info
    • ๐Ÿ‘‰ makemanifest.py: use os.makedirs to make path for generated files

    CI:

    • โž• add new job to build and test unix coverage in 32-bit mode
    • โž• add stm32 build in nanbox mode
    • โšก๏ธ update travis to specify which unix variant to build
    • โž• add OSX build to CI
    • โž• add CI job to check code formatting
    • ๐Ÿ— build stm32 PYBD_SF6 with BTstack as bluetooth stack
    • โœ… run multi_net tests as part of coverage job
    • โœ… for unix tests use Makefile target instead of explicit commands
    • ๐Ÿ‘ท print errors out for OSX job
    • โœ… exclude some uasyncio tests on OSX
    • ๐Ÿ‘‰ use custom PPA to get pre-built uncrustify
    • ๐Ÿ‘‰ use grep with --text on qemu-arm output
    • build NUCLEO_L073RZ instead of B_L072Z_LRWAN1 for stm32 job
    • ๐Ÿ— build full unix coverage build on osx job
    • ๐Ÿ— build GENERIC_1M board as part of esp8266 job
    • ๐Ÿ— make OSX build work again by not installing pkgconfig
    • ๐Ÿ— split esp32 ESP-IDF v3 and v4 builds to separate jobs
    • โฌ‡ decrease build duration by starting OSX build early
    • โœ… finish jobs early after test failure
    • ๐Ÿ‘‰ use tools/metrics.py to compute size diff of minimal ports
    • ๐Ÿ‘‰ make sure upstream/master exists when computing size-diff check
    • ๐Ÿ— build more boards as part of nrf job
    • โš™ run apt commands once, to slightly speed up the CI
    • ๐Ÿ— set build name so it appears in the web interfaces
    • ๐Ÿ— for powerpc job, build both UART variants
    • ๐Ÿ”„ change nrf pca10056 board to build with soft-device enabled
    • build qemu-arm with MP_ENDIANNESS_BIG=1 to test bigendian build
    • ๐Ÿ— in stm32 job, build mboot for NUCLEO_WB55
    • ๐Ÿ— build mboot for PYBV10 with LFS2 enabled in stm32 job
    • ๐Ÿ‘ท install newer toolchain for nrf job
    • โž• add pca10090 build to nrf job
    • ๐Ÿ”„ change nrf pca10056 board to build with s140 SoftDevice
    • โž• add zephyr build to CI
    • โž• add GitHub action to build docs

    The ports

    all ports:

    • ๐Ÿ‘ allow overriding CROSS_COMPILE in a custom makefile
    • modify mp_hal_pin_write macro so it can be used as a function
    • โž• add lib/libm/roundf.c to bare-metal Makefile's
    • enable error text compression for various ports, but not all
    • disable MICROPY_PY_ASSIGN_EXPR in bare-arm and minimal ports

    cc3200 port: no changes specific to this port

    esp8266 port:

    • modules: fix AttributeError in _boot.py if flash not formatted
    • ๐Ÿ”ง modules/ntptime.py: add comment about configuring NTP host
    • put mp_keyboard_interrupt in IRAM
    • ๐Ÿ“Œ machine_pin: disable ets_loop_iter during hard IRQ handler
    • modmachine: implement machine.soft_reset()
    • ๐Ÿ— README.md: add docker build instructions
    • ๐Ÿ‘ modnetwork: add support for wlan.ifconfig('dhcp')
    • enable and freeze uasyncio
    • ๐Ÿ”„ change from FAT to littlefs v2 as default filesystem
    • ๐Ÿ— makeimg.py: print out info about RAM segments when building fw
    • ๐Ÿšš machine_pin: move pin_intr_handler to iRAM, de-support hard IRQ
    • mpconfigport.h: add definitions for BEGIN/END_ATOMIC_SECTION
    • ๐Ÿ“Œ clean up Pin intr handler by moving all code to machine_pin.c
    • ๐Ÿšš boards: move py/pairheap.c code from iRAM to iROM
    • ๐Ÿšš esp_mphal: move most functions in esp_mphal.c from iRAM to iROM
    • ๐Ÿšš uart: move a few functions from iRAM to iROM
    • ๐Ÿ— boards: allow configuring btree/FAT/LFS2 support when building
    • esppwm: fix PWM glitch when setting duty on different channel

    esp32 port:

    • ๐Ÿ‘‰ Makefile: assign result of $call to dummy var for older make
    • modmachine: add implementation of machine.soft_reset()
    • ๐Ÿ— enable NimBLE support on all builds (IDF 3.3 and 4.0)
    • modnetwork: add max_clients kw-arg to WLAN.config for AP setting
    • ๐Ÿ— Makefile: reorder includes to build with latest toolchain
    • uart: use core-provided mp_keyboard_interrupt, placed in IRAM
    • modsocket: convert EADDRINUSE error code from lwip return value
    • ๐Ÿš€ move to IDF 4.0 release version
    • deinitialize Bluetooth on soft reset
    • โšก๏ธ README.md: update build instructions for newer toolchain
    • ๐Ÿ“Š modsocket: handle poll of a closed socket
    • enable and freeze uasyncio
    • README.md: fix typo in venv instructions
    • ๐Ÿ”„ change from FAT to littlefs v2 as default filesystem
    • espneopixel: use integer arithmetic to compute timing values
    • โšก๏ธ update to ESP IDF v3.3.2
    • modesp32: add idf_heap_info(capabilities) to esp32 module
    • consolidate check_esp_err functions and add IDF error string
    • ๐Ÿ‘Œ improve support for OTA updates
    • โšก๏ธ partitions: update comments in files regarding offset
    • modsocket: fix getaddrinfo to raise on error
    • machine_sdcard: add "freq" keyword arg to SDCard constructor
    • modmachine: fix machine.reset_cause to use IDF's esp_reset_reason
    • mpthreadport: fix calculation of thread stack size
    • โšก๏ธ update IDF v4.0 supported hash to v4.0.1
    • ๐Ÿ‘ esp32_rmt: extend RMT to support carrier feature
    • esp32_rmt: call rmt_driver_install before rmt_config
    • esp32_rmt: properly fix looping behaviour of RMT
    • ๐Ÿ‘ network_lan: add support for IP101 PHY
    • mphalport: fix mp_hal_time_ns offset

    javascript port: no changes specific to this port

    mimxrt port:

    • โž• add new, minimal port to NXP i.MX RT series CPUs
    • โž• add MIMXRT1010 board
    • โž• add MIMXRT1060_EVK board
    • โž• add initial impl of machine.LED class, and basic pin support
    • tusb_config.h: preliminary fix for TinyUSB HS endpoint overflow
    • boards: enable LED class for MIMXRT1060_EVK board
    • ๐Ÿ‘ boards: integrate support for MIMXRT1020_EVK board
    • boards: set heap_size to 0 in MIMXRT1011.ld

    minimal port:

    • ๐Ÿ— make build more flexible and work as 64-bit build

    nrf port:

    • ๐Ÿšš main: remove unnecessary repl_info(0) call
    • boards/common.ld: add ENTRY(Reset_Handler) in linker script
    • drivers: use mp_raise_msg where appropriate, and shorten exc msgs
    • drivers/bluetooth: fix variable initialisation error with older gcc
    • โœ‚ remove custom "random" module and use extmod version instead
    • use MICROPY_HW_ENABLE_RNG instead of MICROPY_PY_RANDOM_HW_RNG
    • ๐Ÿ— Makefile: don't use -fno-builtin for Cortex-M0 builds
    • mphalport: remove need for "syntax unified" in mp_hal_delay_us
    • โšก๏ธ update to work with nrfx v2.0.0, to match TinyUSB
    • โž• add openocd as a supported flasher
    • bluetooth: use MP_ERROR_TEXT for all error messages
    • bluetooth/ble_uart: fix implicit declaration of function
    • โšก๏ธ bluetooth: handle data length update request
    • bluetooth/ble_uart: add mp_hal_stdio_poll function
    • bluetooth/ble_uart: fix random advertisement name
    • bluetooth/ble_uart: swap end character on cooked strings
    • ๐Ÿ‘‰ Makefile: disable ROM text compression when compiling for debug
    • โž• add support for time.ticks_xxx functions using RTC1
    • 0๏ธโƒฃ enable nrf tick support on all boards by default
    • ๐Ÿ‘ boards: add initial support for Actinius Icarus
    • nrfx_config: disable RTC2 for nRF9160 targets
    • boards: enable RTCounter machine module for nrf9160 boards
    • โž• add board definition for nRF52840-MDK-USB-Dongle
    • split mpconfigport.h into multiple files
    • enable more features for all targets
    • ๐Ÿ‘‰ Makefile: improve user C modules support

    pic16bit port: no changes specific to this port

    powerpc port:

    • ๐Ÿ›  fix Makefile rule when linking
    • 0๏ธโƒฃ set better default compiler
    • ๐Ÿ— uart: choose which UART to use at build time, not runtime

    qemu-arm port:

    • โœ… set default board as mps2-an385 to get more flash for tests
    • โšก๏ธ README: update link to toolchain
    • ๐Ÿ‘Œ support building in debug mode with DEBUG=1
    • ๐Ÿ‘‰ Makefile: add CFLAGS_EXTRA to CFLAGS

    samd port:

    • ๐Ÿ›  fix to build with latest tinyusb

    stm32 port:

    • mbedtls: resize mbedtls output buffer from 16 down to 4 kiB
    • ๐Ÿ›  fix to build in nanbox mode
    • โž• add configuration to build in nanbox mode
    • boards/PYBD: change RTC asynch prediv from 1 to 4
    • softtimer: change linear linked list to a pairing heap
    • powerctrl: for F7, allow PLLM!=HSE when setting PLLSAI to 48MHz
    • ๐Ÿ‘‰ Makefile: allow a board's .mk file to add things to CFLAGS
    • boards/STM32F769DISC: add config to use external SPI as filesys
    • powerctrl: disable HSI if not needed to save a bit of power
    • powerctrl: enable overdrive on F7 when waking from stop mode
    • boards/stm32f746_af.csv: add ADC alt functions to correct pins
    • ๐Ÿ‘ sdio: add support for H7 MCUs
    • stm32_it: don't call __HAL_USB_HS_EXTI_CLEAR_FLAG on H7 MCUs
    • ๐Ÿ‘ powerctrl: improve support for changing system freq on H7 MCUs
    • powerctrl: reenable PLL3 on H7 MCUs when waking from stop mode
    • โœ… sdram: expose the result of sdram startup test in stm32_main
    • ๐Ÿ”ง usbd_conf: allow boards to configure USB HS ULPI NXT/DIR pins
    • usbd_cdc_interface: remove "interrupt_char != -1" check
    • โœ… sdram: fix compile issue from unused sdram startup test flag
    • mpconfigport.h: add option to have custom help text
    • ๐Ÿšš modnetwork: remove redundant call to nimble_poll in lwip poll
    • โ™ป๏ธ refactor bluetooth stack/hci/driver bindings
    • โž• add bindings for BTstack implementation
    • ๐Ÿ— boards/PYBD: allow building with BTstack (via make command line)
    • โ™ป๏ธ refactor Bluetooth HCI RX to be independent of transport layer
    • main: fix bug mounting 3rd SD partition
    • mboot: allow overriding led_init and led_state in board folder
    • โšก๏ธ mboot: update dfu state/status flags to better match standard
    • mboot: protect against invalid address flash writes
    • โšก๏ธ mboot: update LED0 state from systick handler
    • ๐Ÿšš mboot: remove unnecessary test for led being 1 in led_state
    • softtimer: initialise pairing-heap node before pushing to heap
    • enable and freeze uasyncio
    • ๐Ÿšš mpconfigport.h: remove unused root pointer for BTstack bindings
    • ๐Ÿ”ง mpconfigport.h: make most extended modules configurable by board
    • boards: disable pend_throw, uheapq, utimeq on small-flash boards
    • ๐Ÿ‘‰ Makefile: add missing ordering dependency on generated headers
    • storage: fix start address of second, internal block device
    • mboot/README: clarify that mboot can access FAT formatted FS only
    • mboot: expose custom DFU USB VID/PID values at makefile level
    • Makefile: rename SRC_LIB to LIB_SRC_C to match other ports
    • main: peform a clean shutdown of btstack on soft reset
    • boards/PYBD_SF2: put BTstack library in external QSPI XIP flash
    • README: reorg DFU flashing instructions with addition for PYBD
    • โž• add support for F412 MCUs
    • boards: add board config for Nucleo-F412ZG development board
    • machine_uart: retain attached-to-repl setting when init'ing UART
    • machine_uart: allow re-init'ing a static UART object
    • modmachine: allow changing AHB and APB bus frequencies on STM32WB
    • ๐Ÿ‘ adc: add support to pyb.ADC for STM32WB MCUs
    • machine_adc: make setting of ADC1_COMMON->CCR clearer on STM32WB
    • ๐Ÿ‘ dma: add support for DMA on STM32WB, with SPI settings provided
    • boards/xxx_WB55: enable pyb.ADC and hardware SPI on WB55 boards
    • ๐Ÿ‘‰ Makefile: quote libgcc path so spaces are not an issue
    • boards/STM32F769DISC: use macro instead of const for flash size
    • factoryreset: provide empty create-FS function when FAT disabled
    • ๐Ÿ‘ usb: add support for 2xVCP on L0, L432 and WB MCUs
    • 0๏ธโƒฃ rfcore: leave txpower level as default when initialising rfcore
    • boards/NUCLEO_WB55: add more CPU pins and aliases to SW1/2/3
    • irq: clean up irq.h so it does not depend on core uPy defines
    • powerctrlboot: include irq.h to get definitions of IRQ priorities
    • flash: make flash C-API reusable, and funcs return an error code
    • ๐Ÿ‘ i2cslave: add support for WB MCUs
    • flash: add flash_is_valid_addr, and extend sectors for 2MB F7
    • mboot: use flash routines from main stm32 code rather than custom
    • mboot: use CMSIS system source code for SystemInit function
    • ๐Ÿ‘ mboot: add support for using mboot with WB MCUs
    • ๐Ÿ— boards: add build-time option for NUCLEO_WB55 to use mboot
    • mboot: set VTOR on start up to ensure it has the correct value
    • mboot: use additional CFLAGS to compile string0.c
    • mpconfigport.h: enable PY_IO_FILEIO when any VFS is enabled
    • ๐Ÿ‘ timer: support TIM1 on WB MCUs
    • boards: enable LFS2 on PYBD_SF3 and PYBD_SF6
    • mboot: don't search for firmware on FS, just attempt to open it
    • mboot: decouple stream, filesystem and top-level loading code
    • ๐Ÿ‘ mboot: add support for littlefs
    • โšก๏ธ mboot: update README to describe WB and littlefs support
    • ๐Ÿ‘ i2cslave: pass I2C instance to callbacks to support multi I2Cs
    • usbd_cdc_interface: remove full==size-1 limitation on tx ringbuf
    • timer: properly initialise timer deadtime/brk on WB MCUs
    • mboot: implement DFU mass erase
    • flash: update flash_get_sector_info to return -1 on invalid addr
    • mboot: add DFU logic to respond to DFU_GETSTATE request
    • ๐Ÿšš mboot: remove the use of timeout in DFU_GETSTATUS
    • 0๏ธโƒฃ mboot: disable polling mode by default and use IRQ mode instead
    • fdcan: use the right FIFO to calc element address in can_receive
    • fdcan: use FDCAN_RXFxS_FxFL instead of hard-coded value
    • fdcan: support maximum timeout of HAL_MAX_DELAY in can_receive
    • โฑ pyb_can: handle timeout arg for FDCAN in pyb_can_send
    • usbdev: fix calculation of SCSI LUN size with multiple LUNs
    • pin_defs_stm32: fix pin printing to show IN mode correctly
    • powerctrl.h: include stdbool.h to get definition of bool

    teensy port: no changes specific to this port

    unix port:

    • modtime: add utime.mktime function, to complement utime.localtime
    • modos: add uos.rename and uos.rmdir
    • โž• add build variants, analogous to boards on bare-metal
    • โž• add placeholder DEV variant with settrace enabled
    • ๐Ÿ“‡ rename unix binaries to micropython-variant (not _variant)
    • Makefile: reserve CFLAGS_EXTRA/LDFLAGS_EXTRA for external use
    • ๐Ÿš€ release GIL during all system calls
    • unix_mphal: add compile check for incompatible GIL+ASYNC_KBD_INTR
    • ๐Ÿ–จ main: print usage and NLR errors to stderr instead of stdout
    • ๐Ÿ‘ main: add support for MICROPYINSPECT environment variable
    • main: add #if guard around -v option usage and document -i/-m opts
    • ๐Ÿ–จ main: add command-line -h option for printing help text
    • modos: implement putenv and unsetenv to complement getenv
    • main: use OS-dependent path separator when searching path
    • ๐Ÿšš Makefile: remove old variant targets that are no longer needed
    • variants/standard: fix role of PREFIX when used to install
    • ๐Ÿ‘‰ Makefile: allow to install all variants of the executable
    • mpthreadport: use SIGRTMIN+5 instead of SIGUSR1 for thread-GC
    • ๐Ÿ— mpthreadport: fix Mac build by using SIGUSR1 if SIGRTMIN not avail
    • ๐Ÿ‘‰ mphalport.h: fix build when MICROPY_USE_READLINE=0
    • unix_mphal: adjust #if in mp_hal_stdin_rx_chr to improve format
    • file: don't raise OSError(EINVAL) on sys.stdin/out/err.flush()
    • โœ… Makefile: detect and pass thru mpy-cross flags when running tests
    • โœ‚ remove custom file implementation to use extmod's VFS POSIX one
    • remove custom definition of MP_PLAT_PRINT_STRN
    • โœ… coverage: init all pairheap test nodes before using them
    • ๐Ÿ— enable uasyncio C helper module on coverage build
    • mpthreadport: fix crash when thread stack size <= 8k
    • implement PEP 475 to retry syscalls failing with EINTR
    • mpthreadport: ensure enough thread stack to detect overflow
    • ๐Ÿ›  fix behaviour of COPT/NDEBUG for unix variants
    • implement MICROPY_BEGIN/END_ATOMIC_SECTION protection macros
    • ๐Ÿ‘‰ Makefile: fix regression using install on non-GNU systems
    • modmachine: add machine.idle(), implemented using sched_yield
    • โž• add support for modbluetooth and BLE using btstack
    • enable modbluetooth on the "dev" and "coverage" variants
    • โž• add btstack to the unix submodules list
    • main: enter REPL when inspect active, even with stdin redirected
    • btstack_usb: allow choosing adaptor via environment variable
    • ๐Ÿ‘‰ make manifest selection match other ports
    • enable uasyncio on dev variant
    • ๐Ÿ‘ variants: enable VFS and all supported filesystems on dev variant
    • make the MICROPY_xxx_ATOMIC_SECTION mutex recursive
    • fatfs_port: implement get_fattime
    • ๐Ÿ— variants: fix fast and freedos variants so they build again
    • ๐Ÿ‘ modos: support larger integer range in uos.stat fields

    ๐Ÿ windows port:

    • ๐Ÿ‘Œ support word-based move/delete key sequences for REPL
    • ๐Ÿš€ windows_mphal: release GIL during system calls
    • ๐Ÿ‘Œ improve default search path
    • โš  msvc: fix warnings regarding function declarations
    • remove custom definition of MP_PLAT_PRINT_STRN
    • ๐Ÿ windows_mphal: fix missing semicolon
    • โšก๏ธ update genhdr.targets to match makeqstrdefs.py args
    • ๐Ÿ‘‰ make appveyor.yml self-contained

    zephyr port:

    • โšก๏ธ update include paths for Zephyr v2.0
    • ๐Ÿ—„ replace deprecated time conversion macro
    • remove reference to syscall_macros_h_target
    • implement block device protocol via zephyr disk access api
    • enable virtual file system and uos module
    • enable fatfs
    • implement block device protocol via zephyr flash map api
    • enable littlefs
    • mount a file system during init
    • enable usb mass storage class on mimxrt1050_evk
    • execute main.py file if it exists
    • โšก๏ธ update machine.Pin class to use new zephyr gpio api
    • ๐Ÿ‘ท use zephyr build system to merge configurations
    • ๐Ÿ›  fix and rename stacks_analyze function in zephyr module
    • ๐Ÿ›  fix floating point configuration
    • โ™ป๏ธ update for refactored zephyr device structures
    • โšก๏ธ update to new zephyr timeout API
    • convert DT_FLASH_AREA usages to new dts macros
    • increase minimum required cmake version to 3.13.1
    • ๐Ÿ“ฆ use cmake find_package to locate zephyr
    • ๐Ÿ“Œ implement machine.Pin.irq() for setting callbacks on pin change
    • ๐Ÿ— make-minimal: disable FAT and LFS2 options to make it build
    • include storage/flash_map.h unconditionally
    • โšก๏ธ README: update required Zephyr version and mention new features

Previous changes from v1.12

  • ๐Ÿš€ This release sees a reduction in overall bytecode size due to compression of the bytecode prelude, saving 7 bytes of bytecode per function for roughly 80% of functions. The bytecode opcode values are also redefined to group them based on their argument size and format. Support is also added for the matrix multiplication operator "@" (PEP 465).

    ๐Ÿ“š The .mpy file format moved to version 5 to support the new bytecode encoding, and added support for relocation of native machine code, along with separate rodata and BSS sections. This allows a MicroPython system to import dynamic native modules, .mpy files that are generated from C code. Examples of this feature are provided in "examples/natmod/" and documentation in "docs/develop/natmod.rst".

    Some code-size saving optimisations were implemented leading to a reduction in size of minimal firmware: bare-arm reduced by 584 bytes, minimal x86 by 5476 bytes (partly due to changed compiler optimisation flags) and minimal ARM Thumb 2 by 1440 bytes (all measured with gcc 9.2.0).

    โšก๏ธ A new mechanism to freeze scripts into firmware is provided - a frozen manifest - whereby scripts to freeze are listed in a Python file (eg manifest.py). All ports are updated to use this new feature.

    When weak module links are enabled (via MICROPY_MODULE_WEAK_LINKS) an import will now automatically search for the built-in u-variant of a module if the non-u-variant fails (eg searches for "ufoo" if "foo" fails), so ports no longer provide an explicit list of these. The unix and windows ports now enable this feature.

    ๐ŸŽ A performance benchmarking test suite is added which can be used to compare changes in absolute performance when optimising features, as well as compare across different ports. See "tests/run-perfbench.py".

    ๐Ÿ‘ Bluetooth (BLE only) support is added via the "ubluetooth" module and provides the ability to implement the four BLE roles. The BLE stack is used is Mynewt Nimble and it currently runs on PYBD boards, STM32WB55 MCUs and ESP32 boards.

    ๐Ÿ‘Œ Support for littlefs filesystems is added through the MicroPython VFS interface, and it works on the unix, stm32, esp8266 and esp32 ports.

    A new "machine.ADC.read_u16()" method is defined and implemented on stm32, esp8266, esp32 and nrf ports, providing a consistent way to read an ADC that returns a value in the range 0-65535. This new method should be preferred to the existing "ADC.read()" method.

    ๐Ÿ“š The stm32 port sees support for the new PYBD range of pyboards which include a fully integrated CYW43xx WiFi/BT chip. USB is enhanced to support VCP+MSC+HID mode and up to 3x simultaneous VCP interfaces. Support is also added for STM32WBxx MCUs including BLE. There is a new machine.ADC class which is compatible with other ports, along with a new machine.Timer class that implements a software timer with millisecond resolution and number of active timers only limited by RAM. Support for littlefs is available by default via uos.VfsLfs2. Documentation for using littlefs is found in "docs/reference/filesystem.rst".

    ๐Ÿ— The esp8266 port has switched to use per-board configurations and builds, as well as the new frozen manifest feature. It also has optional littlefs support (requires a separate build).

    ๐Ÿ— The esp32 port has the following new features: native code generation, machine.SDCard, hardware I2C, mDNS queries and responder, esp32.Partition, esp32.RMT, BLE (requires IDF v4), and built-in support for VfsLfs2. It has switched to use per-board configurations and builds, and frozen manifests. The default SSL output buffer is resized from 16kiB down to 4kiB to save RAM.

    There are new, minimal ports to Microchip SAMDxx microcontrollers, and the bare metal PowerPC architecture.

    A code-of-conduct based on the PSF's code is added in CODEOFCONDUCT.md.

    The following new Git submodules are added: mbedtls, asf4, tinyusb, mynewt-nimble. And a new third-party library: littlefs.

    A detailed list of changes follows.

    py core:

    • ๐Ÿšš nativeglue: make private glue funs all static, remove commented code
    • nativeglue: remove dependency on mp_fun_table in dyn-compiler mode
    • obj: optimise small-int comparison to 0 in mp_obj_is_true
    • โช nlrthumb: save and restore VFP registers s16-s21 when CPU has them
    • mkrules.mk: use $(CPP) not $(CC) -E for preprocessor rule
    • define EMIT_MACHINE_CODE as EMIT_NATIVE || EMIT_INLINE_ASM
    • persistentcode: fix compilation with load and save both enabled
    • persistentcode: ensure prelude_offset is always initialised
    • asmarm: use __clear_cache on Linux/GCC when creating new asm code
    • nlrthumb: check thumb2 instead of ARM_ARCH_6M
    • objgenerator: add missing #if guard for PY_GENERATOR_PEND_THROW
    • asmarm: use __builtin___clear_cache instead of __clear_cache
    • ๐Ÿ‘‰ makeqstrdata.py: allow using \r\n as a qstr if a port requires it
    • scheduler: rename sched_stack to sched_queue
    • objstringio: guard bytesio_stream_p struct w/ MICROPY_PY_IO_BYTESIO
    • objdict: quote non-string types when used as keys in JSON output
    • builtinimport: populate file when importing frozen or mpy files
    • runtime: allow to override builtins. import with Python func
    • modio: call mp_import_name to do resource stream import
    • ๐Ÿ‘ allow to pass in read-only buffers to viper and inline-asm funcs
    • ๐Ÿ‘‰ showbc: fix off-by-one when showing address of unknown opcode
    • implement new sys.atexit feature
    • ๐Ÿ†“ objarray: fix amount of free space in array when doing slice assign
    • modmath: implement math.isclose() for non-complex numbers
    • introduce MP_UNREACHABLE macro to annotate unreachable code
    • nlr: use MP_UNREACHABLE at the end of arch-specific nlr_jump funcs
    • compile: improve the line numbering precision for comprehensions
    • emitbc: rewrite switch in load_const_tok to reduce code size
    • emitbc: make all emit_write_bytecode_* funcs take a stack_adj arg
    • objgenerator: move defn of mp_const_GeneratorExit_obj here
    • vm: shorten error message for not-implemented opcode
    • vm: don't add traceback info for exc's propagated through a finally
    • vm: don't add traceback info for exceptions that are re-raised
    • add global default_emit_opt variable to make emit kind persistent
    • compile: improve the line numbering precision for lambdas
    • bc: factor out code to get bytecode line number info into new func
    • profile: add initial implementation of sys.settrace feature
    • โ†” integrate sys.settrace feature into the VM and runtime
    • profile: add debugging for sys.settrace feature
    • objtuple: allow compatible subclasses of tuple in mp_obj_tuple_get
    • modstruct: fix struct.unpack with unaligned offset of native type
    • modstruct: fix struct.pack_into with unaligned offset of native type
    • binary: change mp_uint_t to size_t for index, size, align args
    • bc: fix size calculation of UNWIND_JUMP opcode in mp_opcode_format
    • mkenv.mk: add GDB variable
    • vm: factor cached map lookup code to inline function
    • mkrules.mk: add QSTR_GLOBAL_REQUIREMENTS variable for qstr auto-gen
    • ๐Ÿ persistentcode: enable persistent code saving for Windows ports
    • lexer: reorder operator tokens to match corresponding binary ops
    • ๐Ÿ“œ parse: use calculation instead of table to convert token to operator
    • compile: use calculation instead of switch to convert token to op
    • โž• add support for matmul operator @ as per PEP 465
    • bc0: order opcodes into groups based on their size and format
    • bc: replace big opcode format table with simple macro
    • introduce and use constants for multi-opcode sizes
    • split RAISE_VARARGS opcode into 3 separate ones
    • nlr.h: factor out constants to specific macros
    • emitnative: factor sizeof/offsetof calculations to macros
    • rename MP_QSTR_NULL to MP_QSTRnull to avoid intern collisions
    • nativeglue: make mp_fun_table fixed size regardless of config
    • persistentcode: bump .mpy version to 5
    • ringbuf: add helpers for put16/get16
    • bc: change mp_code_state_t.exc_sp to exc_sp_idx
    • add n_state to mp_code_state_t struct
    • compress first part of bytecode prelude
    • rework and compress second part of bytecode prelude
    • bc: don't include mp_decode_uint funcs when not needed
    • compile: disallow 'import *' outside module level
    • ๐Ÿšš makeqstrdefs.py: remove unused blacklist
    • vm: fix handling of unwind jump out of active finally
    • โš™ runtime: fix PEP479 behaviour throwing StopIteration into yield from
    • ๐Ÿ‘ emitnative: add support for archs with windowed registers
    • ๐Ÿ‘ emitnative: add support for using setjmp with native emitter
    • ๐Ÿ‘ emitnative: add support for archs that cannot read executable data
    • ๐Ÿ‘ asmxtensa: add support for Xtensa with windowed registers
    • โž• add new Xtensa-Windowed arch for native emitter
    • persistentcode: make .mpy more compact with qstr directly in prelude
    • objtype: add type. bases attribute
    • โš  mkrules.mk: add warning/error for invalid frozen config
    • objstr: size-optimise failure path for mp_obj_str_get_buffer
    • automatically provide weak links from "foo" to "ufoo" module name
    • modarray: rename "array" module to "uarray"
    • โš™ runtime: reorder some binary ops so they don't require conditionals
    • stream.h: add MP_STREAM_POLL_NVAL constant
    • nativeglue: remove unused mp_obj_new_cell from mp_fun_table
    • objgenerator: remove globals from mp_obj_gen_instance_t
    • objgenerator: allow pend_throw to an unstarted generator
    • ๐Ÿšš persistentcode: move declarations for .mpy header from .c to .h file
    • modsys: report .mpy version in sys.implementation
    • emitnative: fix typo, REG_PARENT_ARG_RET should be REG_PARENT_RET
    • emitnx86: make mp_f_n_args table match order of mp_fun_kind_t
    • ๐Ÿ‘ objdict: support ujson.dump() of OrderedDict objects
    • ringbuf: add peek16 method
    • compile: coalesce error message for break/continue outside loop
    • ๐Ÿ‘ป builtinimport: raise exception on empty module name
    • qstr: raise exception in qstr_from_strn if str to intern is too long
    • objstringio: slightly optimize stringio_copy_on_write for code size
    • objenumerate: check for valid args in enumerate constructor
    • persistentcode: add ability to relocate loaded native code
    • nativeglue: add new header file with native function table typedef
    • nativeglue: add funcs/types to native glue table for dynamic runtime
    • ๐Ÿ‘ persistentcode: make ARM Thumb archs support multiple sub-archs
    • nativeglue: add float new/get functions with both single and double
    • ๐Ÿ‘ dynruntime: add support for float API to make/get floats
    • dynruntime: implement uint new/get, mp_obj_len and mp_obj_subscr
    • ๐Ÿšš persistentcode: move loading of rodata/bss to before obj/raw-code

    extmod:

    • โž• add network-level class binding to cyw43 driver
    • factor out makefile rules from py.mk to new extmod.mk file
    • extmod.mk: integrate mbedTLS so it is built from source
    • ๐Ÿ— modussl_mbedtls: allow to build with object representation D
    • ๐Ÿ— extmod.mk: include mdns app source in lwIP build
    • uos_dupterm: add mp_uos_dupterm_poll to poll all dupterms
    • moduwebsocket: make close_resp static array const to not use RAM
    • modwebrepl: make prompt/ver static arrays const to not use RAM
    • modwebrepl: add config option to put filebuf[512] on stack/bss
    • modlwip: for TCP send keep trying tcp_write if it returns ERR_MEM
    • modlwip: use mp_sched_schedule to schedule socket callbacks
    • modlwip: implement raw sockets for lwIP
    • modure: make regex dump-code debugging feature optional
    • moducryptolib: use "static" not "STATIC" for inline functions
    • give vars/funcs unique names so STATIC can be set to nothing
    • ๐Ÿ‘ modujson: support passing bytes/bytearray to json.loads
    • crypto-algorithms: add source to header and populate copyright
    • vfs_posix: include stdio.h for declaration of function 'rename'
    • nimble: add nimble bindings
    • modbluetooth: add low-level Python BLE API
    • modbluetooth_nimble: implement modbluetooth API with Nimble
    • modbluetooth_nimble: use random addr if public isn't available
    • modbluetooth: allow MP_BLUETOOTH_MAX_ATTR_SIZE in board config
    • modbluetooth: allow config of scan interval/window
    • modbluetooth: use us instead of ms for advertising interval
    • modbluetooth: increase maximum connections from 1 to 4
    • ๐Ÿ›ฐ modbluetooth: clear gap_advertise payload when data is empty
    • modbluetooth: fix order of params to IRQ_GATTS_WRITE event
    • modbluetooth: improve ringbuf handling
    • modbluetooth: make gap_disconnect not raise when disconnected
    • modbluetooth: in gap_advertise only accept None to stop adv
    • ๐Ÿ‘ re1.5: support escaping within RE classes
    • ๐Ÿ‘ modbluetooth: make UUID support the buffer protocol
    • modbluetooth: persist reference to NimBLE service instances
    • modbluetooth_nimble: use data_alloc length to truncate writes
    • modbluetooth: rename module to "ubluetooth"
    • factor out block-device struct to make independent of fatfs
    • vfs_blockdev: factor out block device interface code
    • vfs_blockdev: add extended read/write methods
    • โž• add VFS littlefs bindings
    • vfs: rename BP_IOCTL_xxx constants to MP_BLOCKDEV_IOCTL_xxx
    • vfs: add MP_BLOCKDEV_IOCTL_BLOCK_ERASE constant
    • modbluetooth: add gatts_set_buffer
    • vfs_lfs: allow compiling in VfsLfs1 and VfsLfs2 separately
    • modlwip: unconditionally return POLLHUP when polling new socket
    • ๐Ÿ“Š modlwip: make socket poll return POLLNVAL in case of bad file
    • modlwip: unconditionally return POLLHUP/POLLERR when polling
    • modussl_mbedtls: fix getpeercert to return None if no cert avail
    • modussl_mbedtls: check for invalid key/cert data
    • ๐Ÿšš nimble: remove unneeded nimble_sprintf wrapper function
    • nimble: factor out stm32-specific HCI UART RX/TX code
    • modbtree: make FILEVTABLE const to put it in ROM
    • convert nlr_raise(mp_obj_new_exception_msg(x)) to mp_raise_msg(x)
    • vfs: add autodetect of littlefs filesystem when mounting
    • consolidate FAT FS config to MICROPY_VFS_FAT across all ports
    • modbluetooth: prioritise non-scan-result events
    • modbluetooth: create UUID from bytes and allow comparison ops
    • modbluetooth_nimble: make gap_scan_stop no-op if no scan ongoing
    • modbluetooh_nimble: fix UUID conversion for 16 and 32 bit values
    • modbluetooth: simplify management of pre-allocated event data
    • vfs_lfs: pass flag along to ioctl when init'ing bdev for lfs
    • vfs_lfs: fix bug when passing no args to constructor and mkfs
    • โฑ modbluetooth: simplify how BLE IRQ callback is scheduled
    • ๐Ÿšš modbluetooth: remove limit on data coming from gattc data input
    • modbluetooth: add optional 4th arg to gattc_write for write mode
    • modbluetooth: allow setting ringbuf size via BLE.config(rxbuf=)
    • ๐Ÿ–จ modbtree: use mp_printf instead of printf
    • โž• add dynamic-runtime guards to btree/framebuf/uheapq/ure/uzlib
    • ๐Ÿšš webrepl: move webrepl scripts to common place and use manifest

    lib:

    • โฌ†๏ธ cmsis: upgrade to CMSIS 5.5.1
    • netutils: add DHCP server component
    • โž• add new submodule for mbedtls, currently at v2.17.0
    • utils/sys_stdio_mphal: add support to poll sys.stdin and sys.stdout
    • โž• add asf4 as a submodule
    • โž• add tinyusb as a submodule
    • โšก๏ธ stm32lib: update library for updated H7xx, new L0xx, new WBxx
    • lwip: update lwIP to v2.1.2, tag STABLE-2_1_2_RELEASE
    • mynewt-nimble: add Apache mynewt nimble as a submodule
    • littlefs: add littlefs v1.7.2 source
    • littlefs: add littlefs v2.1.3 source
    • littlefs: add README describing origin and how to gen lfs1/lfs2
    • libc/string0: add simple implementations of strspn and strcspn

    drivers:

    • โž• add driver for CYW43xx WiFi SoCs
    • ๐Ÿ‘ memory/spiflash: add support to put SPI flash in sleep mode
    • cyw43: add low-level CYW43xx Bluetooth HCI UART driver
    • ๐Ÿ‘ onewire/ds18x20.py: add support for DS1822 sensor
    • ๐Ÿ‘ป sdcard: raise exception on timeout of readinto
    • ๐Ÿ›  wiznet5k: allow selecting maximum fixed buffer size for MACRAW

    tools:

    • mpy-tool.py: fix linking qstrs in native code, and multiple files
    • mpy-tool.py: fix linking of qstr objects in native ARM Thumb code
    • โž• add uf2conv.py from Microsoft/uf2 repository
    • pyboard.py: add filesystem commands to ls/cat/cp/rm remote files
    • mpy-tool.py: force native func alignment to halfword/word on ARM
    • ๐Ÿ‘ mpy-tool.py: add initial support for frozen with settrace
    • mpy-tool.py: fix freezing of non-bytecode funcs with settrace
    • ๐Ÿ‘‰ make-frozen.py: allow to run with no directory passed in
    • โž• add mechanism to provide a manifest of frozen files
    • ๐Ÿ‘‰ makemanifest.py: eval relative paths w.r.t. current manifest file
    • mpy-tool.py: use "@progbits #" attribute for native xtensa code
    • ๐Ÿ‘‰ makemanifest.py: follow symlinks when freezing linked directories
    • โš  makemanifest.py: skip freezing unsupported files with warning
    • ๐Ÿ‘‰ makemanifest.py: use sys.executable when invoking Python scripts
    • ๐Ÿ‘ mpy-tool.py: support qstr linking when freezing Xtensa native mpy
    • ๐Ÿ”€ mpy-tool.py: add ability to merge multiple .mpy files into one
    • mpy_ld.py: add new mpy_ld.py tool and associated build files
    • ๐Ÿ‘ป mpy-tool.py: raise exception if trying to freeze relocatable mpy
    • ๐Ÿ‘ pyboard.py: support executing .mpy files directly
    • โœ… tinytest-codegen.py: add extra newline and result message

    โœ… tests:

    • โœ… rename "bench" tests to "internal_bench" and run-internalbench.py
    • โž• add performance benchmarking test-suite framework
    • ๐ŸŽ perf_bench: add some benchmarks from python-performance
    • ๐ŸŽ perf_bench: add some miscellaneous performance benchmarks
    • ๐ŸŽ perf_bench: add some viper performance benchmarks
    • stress/recursive_iternext.py: increase large depth to 5000
    • โœ… run-perfbench.py: add --emit option to select emitter for tests
    • add tests for overriding builtins. import
    • โœ… misc/sys_atexit: add test for new sys.atexit feature
    • โšก๏ธ unix: update extra_coverage expected output with new atexit func
    • โœ… extmod: split json.loads of bytes/bytearray into separate test
    • โœ… split out test for optimisation level and line-no printing
    • โž• add tests for sys.settrace feature
    • โœ… basics: add test for matmul operator
    • โšก๏ธ update tests for changes to opcode ordering
    • โœ… micropython: add test for native generators
    • โœ… basics: add test for getting name of func with closed over locals
    • โœ… basics: add test for throw into yield-from with normal return
    • perf_bench: add bm_fft test
    • โš™ run-perfbench.py: show error when truth check fails
    • โœ… run-perfbench.py: skip complex tests if target doesn't enable it
    • cpydiff: fix typo in types_bytes_keywords.py doc comments
    • ๐Ÿ“‡ rename "array" module to "uarray"
    • โœ… extmod: add littlefs tests
    • โœ… extmod: add test for blockdev with standard and extended protocol
    • basics: use str.format instead of % for formatting messages
    • basics/builtin_dir.py: look for "version" in dir(sys)
    • โž• add feature check for bytearray and skip corresponding tests
    • โœ… basics: split out specific bytearray tests to separate files
    • basics: use bytes not bytearray when checking user buffer proto
    • โž• add feature check for slice and skip corresponding tests
    • โœ… basics: split out specific slice tests to separate files
    • โœ… run-tests: add misc list of tests that use slice, to skip them
    • โœ… basics: automatically skip tests that use str/bytes modulo-format
    • โž• add feature check for uio module and skip corresponding tests
    • โœ… basics: split sys.exit test to separate file so it can be skipped
    • โœ… extmod: add test for ussl when passing in key/cert params
    • โœ… stress: add test for maximum length limit of qstrs
    • โœ… import: add test for importing viper code with additional flags
    • โž• add script to run dynamic-native-module tests
    • โž• add .exp files for basics/parser and import/import_override
    • stress/qstr_limit: tune params to run with stm32 port
    • basics/memoryview_itemsize: make portable to 32- and 64-bit archs
    • extmod/vfs_lfs_error: use small ints in seek error test
    • โ™ป๏ธ pyb: refactor pyboard tests to work on PYBv1, PYBLITEv1 and PYBD

    mpy-cross:

    • ๐Ÿ— do not automatically build mpy-cross, rather do it manually
    • main: only accept full emit cmdline options if native enabled
    • ๐Ÿ‘‰ make mpconfigport.h compatible with msvc compiler
    • โž• add msvc build of mpy-cross
    • set number of registers in nlr_buf_t based on native arch
    • enable Xtensa-Windowed native emitter
    • ๐Ÿ‘Œ support armv7em, armv7emsp, armv7emdp architectures
    • README.md: add notes about -march and -O

    all ports:

    • provide mp_hal_stdio_poll for sys.stdio polling where needed
    • โž• add new make target "submodules" which inits required modules

    minimal port:

    • ๐Ÿ‘‰ use soft float for CROSS=1 Cortex-M4 target
    • โœ… frozentest: recompile now that mpy version has changed
    • set CSUPEROPT=-Os to get minimal firmware size

    unix port:

    • โšก๏ธ mpconfigport.mk: update comment about TLS implementations
    • unix_mphal: use CLOCK_MONOTONIC for ticks_ms/us when available
    • enable sys.atexit, triggered after the main script ends
    • main: only accept full emit cmd-line options if native enabled
    • โœ… coverage: add coverage tests for ringbuf
    • convert to use FROZEN_MANIFEST to specify frozen code
    • enable module weak links
    • ๐Ÿ— enable uos.VfsLfs1, uos.VfsLfs2 on coverage build
    • modtermios: fix output speed setter in tcsetattr

    ๐Ÿ windows port:

    • mpconfigport.h: define empty MP_WEAK symbol
    • mpconfigport.h: don't define restrict/inline/alignof for C++
    • โš  msvc: treat compiler warnings as errors
    • Makefile: make use of CFLAGS_EXTRA, LDFLAGS_EXTRA and SRC_MOD
    • ๐Ÿšš msvc: remove unneeded definitions for qstr generation
    • ๐Ÿ— msvc: move build options from .vcxproj to .props files
    • ๐Ÿ— msvc: enable overriding directories used in the build
    • msvc: change the way sources are listed
    • 0๏ธโƒฃ default to binary mode for files
    • enable module weak links

    qemu-arm port:

    • โž• add testing of frozen native modules
    • convert to use FROZEN_MANIFEST to specify frozen code
    • โž• add ldscript dependency in the final firmware.elf target
    • ๐Ÿ— let tinytest.o be built by standard build rules
    • ๐Ÿ‘‰ Makefile: allow overriding CROSS_COMPILE from another makefile

    stm32 port:

    • โ™ป๏ธ usb: refactor CDC VCP code to enable N CDC interfaces
    • ๐Ÿ‘ usb: support up to 3 VCP interfaces on USB device peripheral
    • ๐Ÿ“Œ boards/make-pins.py: allow pins.csv to skip or hide board-pin name
    • boards/pllvalues.py: search nested headers for HSx_VALUE defines
    • boards: add board definition files for PYBD -SF2, -SF3, -SF6
    • modpyb: add pyb.country() function to set the country
    • extint: add extint_set() function for internal C access to EXTI
    • ๐Ÿ‘ mphalport: add support for having MAC in OTP region
    • โž• add low-level SDIO interface for cyw43 driver
    • โ†” integrate in the cyw43 driver and network.WLAN class
    • boards/PYBD_SFx: enable CYW43 WLAN driver
    • modnetwork: replace generic netif NIC polling with specific code
    • โ†” integrate optional mbedTLS component for ussl module
    • boards/PYBD_SFx: enable ussl module using mbedTLS
    • ๐Ÿ‘Œ support optional lwIP mDNS responder
    • โšก๏ธ lwip_inc: update to enable mDNS, TCP listen backlog, faster DHCP
    • ๐Ÿ‘ usbd_msc: rework USBD MSC code to support multiple logical units
    • usbd_msc: provide custom irquiry processing by MSC interface
    • usbd_msc: provide Mode Sense response data in MSC interface
    • usb: use ARG_xxx enums to access kw args in pyb_usb_mode
    • usb: add "msc" kw-arg to pyb.usb_mode to select MSC logical units
    • usbd_msc: allow to compile when USB enabled and SD card disabled
    • in link script, define start of stack separately from heap end
    • boards: enable ussl module via mbedtls for boards with network
    • ๐Ÿ–จ Makefile: print info messages about use of mboot/QSPI flash
    • enter bootloader via a system reset
    • boards/pllvalues.py: support HSx_VALUE defined without uint32_t
    • boards: add stm32??xx_hal_conf_base.h files with common settings
    • boards: rework all stm32??xx_hal_conf.h files to use common code
    • usb: fix regression with auto USB PID value giving PID=0xffff
    • boards: optimise flash and RAM allocation for L4 boards
    • ๐Ÿ”ง mpu: add helper functions for configuring MPU
    • ๐Ÿ”ง eth: use MPU helper functions to configure MPU for ETH use
    • ๐Ÿ”ง sdram: use MPU helper functions to configure MPU for SDRAM use
    • qspi: use MPU to allow access to valid memory-mapped QSPI region
    • qspi: force a reset of the QSPI peripheral when initialising it
    • qspi: handle bus acquisition
    • powerctrl: add hooks for a board to perform actions on sleep/wake
    • boards/PYBD_SFx: put SPI flash to sleep during sleep modes
    • mpconfigport.h: enable useful networking modules if lwIP enabled
    • ๐Ÿ‘ usb: add support to auto-detect USB interface, either FS or HS
    • usb: add "port" keyword argument to pyb.usb_mode, to select FS/HS
    • spi: factor out code to calculate SPI source frequency
    • ๐Ÿ‘ extint: simplify bitband support config for different MCUs
    • modmachine: make RTC class available in machine module
    • boards/PYBD_SF2: put mbedtls library code in external QSPI flash
    • โšก๏ธ update components to work with new H7xx HAL
    • ๐Ÿšš Makefile: remove Wno-attributes for ll_usb HAL file
    • Makefile: use startup_stm32*.s file from stm32lib
    • boards: remove startup_stm32*.s files now they are in stm32lib
    • mpu: include MPU functions when ETH is enabled
    • ๐Ÿšง lwip_inc: define LWIP_NO_CTYPE_H=1 to use lwIP ctype funcs
    • modmachine: disable IRQs before entering bootloader
    • ๐Ÿ”ง boards/PYBD_SFx: configure EN_3V3 pin as output on boot
    • sdcard: add hook for a board to power on SD/MMC
    • boards/PYBD_SFx: automatically turn on EN_3V3 when powering SD/MMC
    • โž• add initial support for STM32L0xx MCUs
    • ๐Ÿ‘ boards: add MCU support files for STM32L072
    • ๐Ÿ”ง mpconfigport.h: make "framebuf" module configurable by a board
    • boards/NUCLEO_L073RZ: add definition files for new board
    • ๐Ÿšš powerctrl: move L0's SystemClock_Config to powerctrlboot.c file
    • ๐Ÿšš powerctrl: move F0's SystemClock_Config to powerctrlboot.c
    • โœ‚ remove SystemInit funcs, use stm32lib versions instead
    • boards/NUCLEO_F446RE: enable DAC
    • โž• add support for STM32L452 MCUs
    • boards/NUCLEO_L452RE: add definition files for new board
    • ๐Ÿšš boards/NUCLEO_F413ZH: remove STARTUP_FILE, it's defined globally
    • โš  mboot: make _estack an array to avoid compiler warnings
    • โšก๏ธ mboot: remove use of BSRRL/H for H7 MCUs due to stm32lib update
    • mboot: use STARTUP_FILE from stm32lib
    • โšก๏ธ mboot: update dependencies to enable parallel build with -j
    • boards/B_L072Z_LRWAN1: add definition files for new board
    • gccollect: always use MP_STATE_THREAD(stack_top) to get stack top
    • usb: add config options to disable USB MSC and/or HID
    • usbd_cdc_interface: make CDC TX/RX buffer sizes configurable
    • โž• add support for USB on L0 MCUs
    • powerctrlboot: increase SYSCLK to 32MHz for L0 MCUs
    • mphalport: fix GPIO clock enable for L0 MCUs
    • ๐Ÿ‘‰ Makefile: allow a board to disable float support
    • boards/B_L072Z_LRWAN1: enable USB VCP support
    • boards/STM32F769DISC: fix length of FLASH_APP section
    • ๐Ÿ‘‰ make-stmconst.py: allow more variation in parens and int-suffix L
    • โž• add initial support for STM32WBxx MCUs
    • ๐Ÿ‘ boards: add MCU support files for STM32WB55
    • boards/NUCLEO_WB55: add definition files for new board
    • boards/USBDONGLE_WB55: add definition files for new board
    • ๐Ÿ‘ flashbdev: support internal filesystem on STM32F722/23/32/33
    • boards/stm32f722.ld: provide memory regions for internal FS
    • boards/NUCLEO_F722ZE: add definition files for new board
    • dma: fix re-start of DMA stream by clearing all event flags
    • usbd_hid_interface: rewrite USB HID interface code
    • boards/xxx_WB55: enable USB HID now that it works on WB MCUs
    • usbd_hid_interface: include extra header to build with threading
    • lwip_inc: enable raw socket type
    • mpconfigport.h: enable lwIP raw sockets
    • ๐Ÿ”ง sdcard: support configuring the SD/MMC bus width to 1 or 4 bits
    • modpyb: support building with PY_PYB_LEGACY on and HW_USB_HID off
    • usbd: introduce MICROPY_HW_USB_IS_MULTI_OTG to simplify USB config
    • ๐Ÿ‘ usbd: support USB device mode on STM32L432 MCUs
    • ๐Ÿ‘ boards/NUCLEO_L432KC: add config for USB VCP support
    • ๐Ÿ”ง usbd: make USB device FIFO sizes dynamically configurable
    • i2c: fix generation of restart condition for hw I2C on F0/F7
    • mphalport: put PYBD specific MAC code in board specific file
    • ๐Ÿ— mboot/Makefile: define "BUILDING_MBOOT" when building mboot
    • ๐Ÿ— boards/PYBD_SF2: exclude certain things when building mboot
    • extint: fix EXTI mapping of PVD and RTC events for H7 MCUs
    • stm32_it: include correct EXTI interrupt handlers for L0 MCUs
    • dma: fix DMA config for L0 MCUs
    • powerctrl: fix machine.bootloader() for L0 MCUs
    • machine_adc: add machine.ADC class
    • machine_adc: improve operation of ADC for H7, L4 and WB MCUs
    • ๐Ÿ“Œ boards/stm32wb55_af.csv: fix ADC pin-channel function mapping
    • ๐Ÿ‘ mboot: support boards with only two LEDs
    • boards/NUCLEO_L073RZ: fix typo in MCU name
    • boards/MIKROE_CLICKER2_STM32: add MikroElektronika Clicker2 board
    • boards/STM32F769DISC: fix number of SDRAM row bits
    • board/NUCLEO_F746ZG: enable Ethernet periph, lwip and ussl
    • ๐Ÿ‘ usb: add support for VCP+MSC+HID mode, incl 2xVCP and 3xVCP
    • usb: verify number of used endpoints doesn't exceed maximum
    • lwip_inc: allocate additional MEMP_SYS_TIMEOUT when mDNS enabled
    • ๐Ÿšง lwip_inc: enable LWIP_NETIF_EXT_STATUS_CALLBACK for mDNS
    • ๐Ÿ— machine_adc: fix build for F4 and L4 MCUs that only have ADC1
    • modusocket: fix NULL deref when accept() an unbound socket
    • machine_i2c: add ability to specify I2C(4) by name
    • can: factor CAN driver into low-level and Python bindings
    • โž• add support for FDCAN peripheral, exposed as pyb.CAN
    • boards/NUCLEO_H743ZI: enable FDCAN on this board
    • ๐Ÿ–จ use mp_printf with MICROPY_ERROR_PRINTER for uncaught exceptions
    • can: guard header file by MICROPY_HW_ENABLE_CAN
    • usbd_cdc_interface: add CTS flow control option for USB VCP
    • ๐Ÿ‘Œ support disabling the compiler
    • powerctrlboot: fix clock and PLL selection for HSI48 on F0 MCUs
    • ๐Ÿ‘ powerctrlboot: add support for HSI at 8MHz on F0 MCUs
    • ๐Ÿ”ง uart: add RTS/CTS pin configuration support to UART4
    • provide port-specific implementation for Nimble on STM32
    • mpconfigport.h: add modbluetooth module to stm32
    • boards/PYBD: enable BLE for Pyboard D
    • ๐Ÿ‘ system_stm32: support selection of HSE and LSI on L4 MCUs
    • boards: enable MICROPY_HW_RTC_USE_LSE on L4 boards
    • {adc,machine_adc}: change ADC clock and sampling time for F0 MCUs
    • usbdev: fix compile error if MICROPY_HW_USB_CDC_NUM is set to 2
    • boards/PYBD_SF2: put nimble library in external QSPI XIP flash
    • extract port-specific Nimble implementation
    • mboot: add option to automatically reset when USB is disconnected
    • ๐Ÿ“Œ sdcard: support boards with no SD card detect pin
    • ๐Ÿ‘‰ use hardware double sqrt on F7/H7 MCUs
    • boards: add new board ADAFRUIT_F405_EXPRESS
    • convert to use FROZEN_MANIFEST to specify frozen code
    • โšก๏ธ adc: update ADC driver to work with the new H7 HAL
    • ๐Ÿšš adc: remove unused macro and channel check, and fix spacing
    • adc: use IS_CHANNEL_INTERNAL macro to check for internal channels
    • adc: fix sampling for internal channels on H7 MCUs
    • ๐Ÿ”ง mpu: save and restore the IRQ state when configuring MPU
    • accel: rename MMA I2C macro constants to make it generic
    • ๐Ÿ‘ accel: add support for KXTJ3
    • boards: add NADHAT_PYB405 board
    • accel: fix Accel.read() method so it does read a byte
    • powerctrlboot: fix config of systick IRQ priority on F0/L0/WB MCU
    • sdram: fix to use new mpu_config_start/mpu_config_end signature
    • ๐Ÿ‘‰ Makefile: only enable hardware sqrt on parts that support it
    • timer: fix Timer.freq() calc so mult doesn't overflow uint32_t
    • โž• add soft timer implementation, using SysTick at 1ms resolution
    • โž• add machine.Timer with soft timer implementation
    • โž• add support for RF coprocessor on WB55 MCUs
    • ๐Ÿ‘ boards: enable support for bluetooth on WB55 boards
    • mpthreadport: include runtime.h to get defn of mp_raise_msg
    • boards/stm32f405_af.csv: fix typo in ETH_RMII_REF_CLK on PA1
    • nimble_hci_uart.c: prevent scheduler running during CYW-BT wakeup
    • ๐Ÿ‘ generalise flash mounting code so it supports arbitrary FS
    • ๐Ÿ”ง storage: make pyb.Flash configurable, and support ext block proto
    • main: auto detect block device used for main filesystem
    • moduos: add VfsLfs1 and VfsLfs2 to uos module, if enabled
    • boards: enable LFS2 on PYBv1.x and PYBD boards
    • storage: change storage_read/write_blocks to return int type
    • storage: make start/len args of pyb.Flash keyword only
    • ๐Ÿšš qstrdefsport.h: remove unused qstrs and make USB ones conditional
    • ๐Ÿ“Œ boards/NUCLEO_L073RZ: skip board-pin names for CPU only pins
    • main: fix auto creation of pyb.Flash on boot with kw-only args
    • mpconfigport.h: use IRQ_PRI_PENDSV to protect bluetooth ringbuf
    • ๐Ÿ‘ uart: add support for UART4/5 on L0 MCUs
    • boards/xxx_WB55: enable littlefs2 on WB55 boards
    • 0๏ธโƒฃ main: fix SKIPSD file detection so SD card is mounted by default
    • ๐Ÿ‘‰ Makefile: enable max buffer size on W5200 NIC when used with lwIP
    • modusocket: handle case of NULL NIC in socket ioctl
    • ๐Ÿ”ง boards/PYBD_SF2: configure LEDs as inverted, for LED.intensity()
    • boards/NUCLEO_F767ZI: add pins and config for using an SD card
    • โšก๏ธ boards/NUCLEO_F767ZI: update pins, peripherals and total flash
    • boards/NUCLEO_H743ZI: add extra pins and peripheral definitions
    • timer: add missing TIM 1/15/16/17 IRQ handlers for H7 MCUs
    • boards/PYBD: include webrepl helper scripts in frozen manifest

    esp8266 port:

    • uart: fix invalid ringbuf name when event driven REPL enabled
    • provide custom machine_time_pulse_us that feeds soft WDT
    • mpconfigport.h: enable lwIP raw sockets
    • machine_uart: allow remapping UART TX/RX pins from 1/3 to 15/13
    • put new profile code in iROM
    • machine_adc: rename pyb_adc_* to machine_adc_*
    • machine_adc: add read_u16 method and refactor
    • โž• add per-board configs, following other ports
    • modules/ntptime.py: always close socket, and set day-of-week
    • convert to use FROZEN_MANIFEST to specify frozen code
    • ๐Ÿ‘ allow building without a manifest
    • ๐Ÿš€ boards: add manifest_release.py with files for a release
    • ๐Ÿ‘ modules/flashbdev.py: support extended block protocol
    • ๐Ÿ‘ moduos: add optional support for VfsLfs1 and VfsLfs2

    esp32 port:

    • machine_timer: reuse Timer handles, deallocate only on soft-reset
    • โž• add machine.SDCard class using built-in HW SD/MMC controller
    • โšก๏ธ update to use ESP IDF v3.3-beta3
    • modnetwork: still try to reconnect to WLAN even with AUTH_FAIL
    • ๐Ÿ— Makefile: include all driver/*.c source files in the build
    • network_ppp: add ppp_set_usepeerdns(pcb, 1) when init'ing iface
    • โž• add support for hardware I2C
    • Makefile: fix path expansion for ESPIDF_DRIVER_O
    • Makefile: put OBJ and LIB rule additions in gen_espidf_lib_rule
    • ๐Ÿ‘‰ Makefile: simplify include of IDF source by using wildcards
    • ๐Ÿ“Œ pin MicroPython tasks to a specific core
    • ๐Ÿ‘‰ Makefile: include CFLAGS_EXTRA in CFLAGS definition
    • ๐Ÿ‘ network_ppp: add authentication support to the PPP interface
    • โž• add support for mDNS queries and responder
    • modules: on initial setup mount internal flash at root
    • โž• add per-board configs, following other ports
    • โž• add esp32.Partition class to expose partition and OTA funcs
    • โž• add 'config' function to network.LAN, reusing network.WLAN
    • Makefile: fix subst->patsubst in ESPIDF_BOOTLOADER_SUPPORT_O
    • machine_adc: add ADC.read_u16() method
    • โšก๏ธ update to use ESP IDF v3.3
    • boards/TINYPICO: switch to use QIO and 80MHz for SPI interface
    • โž• add VFS FAT partition to partitions.csv and mount it as the FS
    • โž• add support for ESP32-D2WD with 2MiB internal flash
    • modules/inisetup.py: use bdev.ioctl instead of bdev.SEC_SIZE
    • Makefile: add SDKCONFIG_H to QSTR_GLOBAL_REQUIREMENTS
    • ๐Ÿ‘Œ support building with ESP IDF 4.0-beta1
    • โž• add check to Makefile for pyparsing version
    • โž• add check to Makefile that the toolchain is in PATH
    • main: use both 3.3 and 4.0 config vars to enable SPIRAM
    • ๐Ÿ–จ Makefile: fix printing of supported git hash
    • enable native emitter
    • implement BLE using Nimble from IDF 4.x
    • ๐Ÿ— boards: enable BLE by default when building with IDF 4.x
    • โž• add 4.x version of IDLE WDT config
    • โš™ run NimBLE on the app core
    • convert to use FROZEN_MANIFEST to specify frozen code
    • machine_uart: add ability to invert UART pins
    • 0๏ธโƒฃ boards: split out CPU frequency config, make 160MHz the default
    • machine_hw_spi: fix exception msg when host is already in use
    • Makefile: add correct arch to MPY_CROSS_FLAGS for native code
    • โœ‚ remove unused "esponewire.c" in favour of extmod/modonewire
    • ๐Ÿ‘ esp32_partition: support extended block protocol
    • moduos: enable uos.VfsLfs2 for littlefs filesystems
    • boards/sdkconfig.base: resize SSL output buffer from 16 to 4kiB
    • rtc: set system microseconds when setting time via RTC.datetime()
    • ๐Ÿ”ง machine_rtc: make RTC.memory size and availability configurable
    • ๐Ÿ–จ machine_rtc: reduce memory footprint of user mem functionality
    • ๐Ÿ”ง boards: enable ULP in base sdk configuration
    • boards/TINYPICO: add tinypico.py, dotstar.py with custom manifest
    • ๐Ÿ‘ esp32_rmt: add initial support for RMT peripheral

    javascript port:

    • enable support for frozen bytecode via FROZEN_MPY_DIR

    nrf port:

    • led: adjust how board LEDs are defined
    • clean up source by removing tabs, trailing spaces, non-ASCII chars
    • machine/adc: add ADC.read_u16() method
    • โž• add ADC channel mapping to alt function table
    • ๐Ÿ“Œ machine/adc: allow to pass a Pin object in to ADC constructor
    • ๐Ÿ“Œ machine/adc: fix mapping of ADC channel to pin
    • boards/make-pins.py: fix gen of board pins to use correct index
    • ๐Ÿ‘‰ Makefile: add support for flashing with a Black Magic Probe
    • ๐Ÿ”ง boards: add Particle Xenon board configuration (an nRF52840)
    • boards: add board definition for uBlox Nina B1 series BLE modules
    • ๐Ÿ‘ i2c: add support for TWIM (EasyDMA)
    • ๐Ÿ”ง temp: move module configuration guard
    • ๐Ÿ‘ uart: add support for UARTE (EasyDMA)
    • โšก๏ธ flash: update flash driver to use nrfx_nvmc driver
    • led: expose public API for LED manipulation
    • โšก๏ธ main: update the way the LED is used on startup
    • add support to activate MICROPY_PY_SYS_STDFILES
    • device: correct SPIM3 IRQ handler entry for nrf52840
    • โž• add tinyusb support for nrf52840
    • ๐Ÿ‘ boards: add support for pca10059
    • โž• add nrf9160 base support
    • boards: add nrf9160 pca10090 board
    • main: execute boot.py/main.py frozen modules without a file system
    • boards/particle_xenon: enable USB CDC on Particle Xenon board

    powerpc port:

    • โž• add initial port to bare metal PowerPC arch

    samd port:

    • โž• add new port to Microchip SAMDxx microcontrollers
    • ๐Ÿ‘‰ make common linker scripts, rename board.mk to mpconfigboard.mk
    • ๐Ÿ”ง boards: add Adafruit Feather M0 Express board configuration
    • ๐Ÿ”ง boards: add Mini SAM M4 board configuration
    • โž• add minimum config for Atmel SAMD21-XPLAINED-PRO board

    zephyr port:

    • main: use mp_stack API instead of local pointer for stack top

    ๐Ÿ“„ docs:

    • ๐Ÿ“„ machine: add initial docs for new machine.SDCard class
    • library/framebuf: add missing module reference in example code
    • ๐Ÿ“š library/sys: add documentation for sys.atexit function
    • โšก๏ธ pyboard: update name of mounted volume to match code
    • pyboard: clarify initial files on pyboard and fix up formatting
    • library: document that sys.version_info returns a 3-tuple only
    • pyboard: emphasize the instructions for making a USB mouse
    • โšก๏ธ reference/speed_python: update that read-only buffers are accepted
    • reference/speed_python: add missing self to var caching example
    • library/pyb.DAC.rst: correct frequency for triangle mode output
    • ๐Ÿ“„ rename machine.ADC docs to machine.ADCWiPy
    • library: specify new machine.ADC class
    • โšก๏ธ library/pyb.rst: update docs for pyb.usb_mode() function
    • โšก๏ธ library/pyb.rst: update pyb.usb_mode() to mention VCP+MSC+HID
    • library/pyb.USB_VCP.rst: add info about id and flow params
    • ๐Ÿ“š develop/qstr.rst: add documentation for string interning
    • ๐Ÿ“š library/bluetooth: add initial BLE documentation
    • reference/glossary.rst: add new terms and reduce complexity of old
    • library/bluetooth.rst: clarify gap_advertise adv_data behavior
    • library/bluetooth.rst: explain how to increase char buffer size
    • library/bluetooth.rst: fix typo in HR/UART services example
    • esp8266/tutorial: make http_get sample function self contained
    • library: clarify relation between machine and port-specific mods
    • esp8266: add ntptime usage to esp8266 quickref
    • ๐Ÿ›  fix spelling in various parts of the docs
    • wipy/tutorial: link Blynk examples to the official library
    • library: rename "array" module to "uarray"
    • library/bluetooth: rename to "ubluetooth"
    • ๐Ÿšš move ubluetooth under "MicroPython-specific libraries"
    • ๐Ÿ“š library: add documentation for extended block device protocol
    • library/ubluetooth: add docs for gatts_set_buffer
    • conf.py: fix path to favicon.ico
    • ๐Ÿ—„ templates/topindex.html: replace usage of deprecated defindex.html
    • โœ๏ธ library/machine.SDCard.rst: fix various typos
    • library/ubluetooth: fix name and link to FLAG_xxx constants
    • ๐Ÿ“„ reference: add docs describing use of pyboard.py
    • ๐Ÿ“„ library: add docs for pyb.Flash class
    • โž• add littlefs docs and a filesystem tutorial
    • reference/filesystem: fix typo in block device code example
    • reference/filesystem: add note and example about using filesystem
    • library/ubluetooth: add note about API being under development
    • library/uos: add notes and links about littlefs failures
    • library/uos.rst: clarify why the extended interface exists
    • ๐Ÿ‘ esp8266/quickref: add note that machine.RTC is not fully supported
    • ๐Ÿ“š reference: add documentation describing use of .mpy files
    • ๐Ÿ“š develop: add documentation on how to build native .mpy modules
    • ๐Ÿ“„ esp32: add quickref and full docs for esp32.RMT class

    travis:

    • ๐Ÿ— build PYBD_SF2 board as part of the stm32 job
    • selectively fetch git submodules only when needed
    • ๐Ÿ— build esp8266 firmware as part of Travis CI
    • ๐Ÿ— build esp32 firmware as part of Travis CI
    • ๐ŸŽ enable performance benchmark tests on standard unix build
    • โž• add samd port to Travis build
    • ๐Ÿ— build stm32 mboot for PYBD_SF6 as part of CI
    • ๐Ÿ— switch unix stackless build to use clang
    • ๐Ÿ— build an stm32 board with threading enabled to test it with CI
    • โž• add new job to test unix port with sys.settrace enabled
    • โž• add ESP32 build with IDF v4
    • ๐Ÿ— build more stm32 boards to cover all supported MCUs
    • ๐Ÿ— build unix nanbox with PYTHON=python2
    • โž• add BLE submodules to ESP32 IDF4 build
    • โž• add esp8266 GENERIC_512K build to CI
    • ๐Ÿ‘‰ use "make submodules" to init required modules for each port
    • โž• add job to build and test unix minimal port
    • โž• add tests for building and importing dynamic native modules
    • ๐Ÿ— build urandom native module in coverage job

    examples:

    • bluetooth: add basic BLE peripheral examples
    • ๐Ÿ›ฐ bluetooth: use UUIDs directly to add services to adv payload
    • bluetooth/ble_uart_peripheral.py: add usage demo
    • embedding: replace symlink of mpconfigport.h with real file
    • bluetooth/ble_uart_peripheral: use append mode for RX char
    • ๐Ÿ— embedding: remove obsolete fatfs files from build
    • ๐Ÿ›ฐ bluetooth: add helpers for decoding advertising payloads
    • bluetooth: add example for reading temperature sensor
    • natmod: add btree example
    • natmod: add uheapq example
    • natmod: add uzlib example
    • natmod: add framebuf example
    • natmod: add ure example
    • natmod: add features1 and features2 examples
    • natmod: add urandom native module example
    • โœ… network: add testing key/cert to SSL HTTP server example
    • natmod: add very simple features0 example to compute factorial

    miscellaneous:

    • top: add CODEOFCONDUCT.md document based on the PSF code of conduct
    • ๐Ÿ— gitignore: put build-*/ pattern in top-level gitignore file
    • gitattributes: mark *.a files as binary