Skip to content

WIP: Align to micropython v1.20 #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1,053 commits into from
Jun 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1053 commits
Select commit Hold shift + click to select a range
bd86ce5
lib/re1.5: Reduce code size when checking for named class char.
dpgeorge Jan 17, 2023
64193c7
lib/re1.5: Add support for named classes in class sets.
dpgeorge Oct 22, 2021
fc745d8
tests/extmod/ure_namedclass: Add tests for named classes in class sets.
dpgeorge Jan 17, 2023
efb4bd3
esp32/network_lan: Add support for LAN8710 PHY.
robert-hh Dec 24, 2022
4b52003
esp32/network_lan: Support configuration of ETH ref_clk pin.
robert-hh Dec 24, 2022
30bac47
docs/esp32/quickref: Add docs for the LAN interface constructor.
robert-hh Dec 25, 2022
e982c1d
esp32/network_lan: Add support for SPI-based ethernet chips.
damz Jan 13, 2023
c7301b8
esp32/network_lan: Fix setting MAC address of ethernet devices.
damz Jan 13, 2023
67097d8
esp32/network_lan: Fix compilation on IDF lower than v4.4.
dpgeorge Jan 18, 2023
fb0dd86
esp32/machine_sdcard: Change dma_channel to SPI_DMA_CH_AUTO for ESP32S3.
maripo Jan 13, 2023
e30e543
esp8266/modnetwork: Add ability to set tx power for WLAN interface.
antonellomargo Jan 4, 2023
4eb7063
esp8266/README: Remove notice about port being "experimental".
dpgeorge Jan 19, 2023
720f2cf
unix/Makefile: Disable building the shared library of libffi.
juanfra684 Dec 31, 2022
7f6345a
docs/library/machine.Timer: Add freq argument to machine.Timer.
LiaoJingyi Oct 23, 2022
23ef297
docs/reference/constrained: Add missing heap-dump symbols to mem_info().
chrisovergaauw Dec 19, 2022
5c10727
docs/zephyr/quickref: Fix zsensor module usage examples.
jaenrig-ifx Aug 30, 2022
3634781
CODECONVENTIONS: Explain uncrustify dependency for pre-commit setup.
projectgus Nov 15, 2022
3b5cafc
stm32/Makefile: Leave DFU mode after download when using dfu-util.
iabdalkader Oct 12, 2022
32a858e
esp32/boards: Add board definition for Olimex ESP32 PoE boards.
robert-hh Dec 25, 2022
54e85fe
esp32/boards/GENERIC_UNICORE: Add board definition for unicore chips.
AwesomeCronk Feb 21, 2022
30db33d
esp32/network_lan: Add support for Ethernet PHY KSZ8081.
ma-lalonde May 30, 2022
d6bc34a
esp32: Add a small delay before leaving wlan.active().
robert-hh Jan 19, 2023
5c4153e
py/objarray: Raise error on out-of-bound memoryview slice start.
pi-anl Aug 7, 2022
fb8792c
py/lexer: Wrap in parenthesis all f-string arguments passed to format.
jimmo Oct 19, 2022
94ee1b6
unix/main: Free pathbuf when there's an error opening a file.
xqyjlj Oct 22, 2022
abaa4ab
py: Add parenthesis to default impl of MP_OBJ_TO_PTR, MP_OBJ_FROM_PTR.
ar-cetitec Jan 19, 2023
a8a1ad1
embed: Add new "embed" port which builds a simple C package.
dpgeorge Oct 6, 2022
4f3780a
examples/embedding: Rework example to use ports/embed.
dpgeorge Oct 6, 2022
d4a4cde
rp2: Fix crash in a pin.irq handler.
robert-hh Jan 22, 2023
d387ae3
py/objint_mpz: Catch and reject @ and @= operating on big integers.
dpgeorge Jan 23, 2023
31139b4
py/mkrules: Support mpy-tool-flags in cmake frozen code generation.
dpgeorge Jan 24, 2023
1978b83
shared/runtime: Use mp_printf consistently, instead of printf.
dpgeorge Jan 24, 2023
8a03535
rp2/main: Use mp_printf in nlr_jump_fail.
dpgeorge Jan 24, 2023
67fac4e
rp2/machine_pin: Fix configuring OPEN_DRAIN with initial value.
dpgeorge Jan 24, 2023
be420bf
rp2/boards/NULLBITS_BIT_C_PRO: Add Bit-C PRO board.
jaygreco Dec 20, 2022
0baf6c8
nrf/mpconfigport: Enable seeding of the PRNG by the hardware RNG.
robert-hh Jan 23, 2023
c2ab1b5
esp32/boards/OLIMEX_ESP32_POE: Remove id from and update board.json.
robert-hh Jan 24, 2023
3446d44
shared/runtime/gchelper: Drop cpu directive from ARM asm helpers.
dlech Jan 23, 2023
c9baf49
lib/micropython-lib: Update submodule to latest.
dpgeorge Feb 1, 2023
6250337
ports: Make all network-capable boards use bundle-networking.
jimmo Jan 27, 2023
55a76f4
windows/msvc: Remove variant suffix from executable filename.
stinos Jan 23, 2023
65941ea
windows/msvc: Make mpy-cross independent of micropython variant.
stinos Jan 24, 2023
e145318
windows/msvc: Fix qstr generation dependency.
stinos Jan 24, 2023
7e9a159
mpy-cross: Force forward slashes in paths.
stinos Jan 30, 2023
6abf03b
windows/msvc: Fix module freezing.
stinos Jan 24, 2023
850f09b
tools/mpy-tool.py: Initialize line_info_top.
mmilata Jan 26, 2023
fe2a833
stm32/boards/NUCLEO_H743ZI2: Refer to NUCLEO_H743ZI for frozen manifest.
dpgeorge Feb 1, 2023
8b27482
top: Update Python formatting to black "2023 stable style".
jimmo Feb 2, 2023
9ea64a3
top: Update .git-blame-ignore-revs for latest formatting commit.
dpgeorge Feb 3, 2023
0afe60b
rp2/rp2_pio: Track use of PIO resources and free them on soft reset.
dpgeorge Feb 3, 2023
35524a6
examples/rp2: Add comment that examples using IO25 don't work on Pico W.
dpgeorge Feb 7, 2023
9848b06
py/mkrules.cmake: Force build mpversion.h and frozen_content.c.
jimmo Feb 8, 2023
5c3c1c7
tests/float: Skip new complex tests if complex unavailable.
dpgeorge Feb 9, 2023
b1123a5
tests/extmod: Get DecompIO test running on low-memory targets.
dpgeorge Feb 9, 2023
d99ebb3
tests/extmod: Skip vfs tests if target doesn't have enough memory.
dpgeorge Feb 9, 2023
41ed01f
tests/micropython: Split viper_misc test into two files.
dpgeorge Feb 9, 2023
e1f211c
examples/bluetooth: Fix check for _conn_handle being None.
dpgeorge Feb 15, 2023
fe330c7
extmod/utime_mphal: Fix comment re delta range check in time_ticks_add.
dpgeorge Feb 15, 2023
799d888
tests/float: Add domain checks for log and also -inf.
dpgeorge Feb 15, 2023
177ae2f
tests/float: Make output of math function tests more readable.
dpgeorge Feb 15, 2023
75e7e7d
stm32/boards/STM32F769DISC: Fix building with USE_QSPI_XIP=1.
pi-anl Aug 19, 2022
e140c7d
stm32/boards/ARDUINO_PORTENTA_H7: Fix macro value check for QSPI.
iabdalkader Feb 14, 2023
5812611
rp2/boards/ARDUINO_NANO_RP2040_CONNECT: Use default aioble.
jimmo Feb 16, 2023
4eb72b3
stm32/boards/ARDUINO_PORTENTA_H7: Use default aioble.
jimmo Feb 16, 2023
68d049e
nrf/Makefile: Add support for BOSSAC flasher.
iabdalkader Feb 13, 2023
de1f1dd
shared/runtime/softtimer: Use consistently the same clock source.
robert-hh Feb 12, 2023
b1cdb20
shared/runtime/softtimer: Fix ticks range when computing ticks diff.
jimmo Feb 15, 2023
c7391a2
github/workflows: Add "shared/**" to list of paths that trigger CI.
dpgeorge Feb 17, 2023
4bd4b6a
tools/ci.sh: Install pkg-config for macos builds.
dpgeorge Feb 17, 2023
c6140ad
rp2/mpconfigport: Enable os.dupterm and hashlib.sha1 on all boards.
dpgeorge Feb 17, 2023
fa8b2cb
lib/cyw43-driver: Update driver to latest version.
dpgeorge Feb 16, 2023
198579a
lib/pico-sdk: Update to version 1.5.0.
dpgeorge Feb 16, 2023
b257c01
rp2/cyw43_configport: Specify the chipset firmware include file.
dpgeorge Feb 16, 2023
7198c25
mimxrt/Makefile: Move the FROZEN_MANIFEST setting after board config.
robert-hh Feb 2, 2023
4598b89
samd: Add Pin.board and Pin.cpu classes to Pin.
robert-hh Feb 3, 2023
294098d
minimal: Increase heap size for Linux builds.
manobendro Feb 2, 2023
e0d1127
tools/ci.sh: Add unix, stm32 and rp2 ports to code size check.
dpgeorge Feb 17, 2023
9508269
extmod/modbtree: Move system includes within MICROPY_PY_BTREE guard.
dpgeorge Feb 21, 2023
c3afafd
samd/boards: Clean up comments and some pins in pins.csv files.
robert-hh Jan 1, 2023
60ab556
samd/mcu: Rework the comments in clock_config.c.
robert-hh Jan 24, 2023
7e0b1bc
samd/mcu: Use the FDPLL96M clock for the SAMD21 CPU.
robert-hh Jan 24, 2023
76cf98c
samd/mcu: Implement a hardware seed for the SAMD21 random module.
robert-hh Jan 24, 2023
4160ec0
samd/mcu: Set the SAMD21 us-counter to 2 MHz for better resolution.
robert-hh Jan 25, 2023
b110266
samd/moduos: Add uos.urandom() using the phase-jitter rng.
robert-hh Feb 14, 2023
69b9352
ports: Make BOARD default from BOARD_DIR in Makefile's.
jimmo Feb 21, 2023
742037e
esp32/Makefile: Allow specifying BOARD_DIR on make command line.
jimmo Feb 21, 2023
8e430a7
rp2/Makefile: Allow specifying BOARD_DIR on make command line.
jimmo Feb 21, 2023
8d9a7fd
stm32/Makefile: Clean up nested if-else to chained if-else-if.
dpgeorge Feb 22, 2023
ce9f7cd
tools/mpremote: Use hatch to build mpremote package.
jimmo Feb 2, 2023
7c6a985
github/workflows: Add workflow to build mpremote wheel.
jimmo Feb 2, 2023
e9335e4
drivers/cyw43: Use board-defined BLE UART secondary baudrate.
iabdalkader Feb 23, 2023
5327cd1
tools/pyboard.py: Use '/' exclusively when dealing with paths.
dpgeorge Feb 23, 2023
2e4dda3
py/modmath: Fix two-argument math function domain check.
dpgeorge Feb 22, 2023
72e9318
py/emitnative: Explicitly compare comparison ops in binary_op emitter.
pepijndevos Feb 25, 2023
ddebda5
github/workflows: Bump actions/setup-python from 1 to 4.
dependabot[bot] Feb 24, 2023
cd4e53a
github/workflows: Bump actions/checkout from 2 to 3.
dependabot[bot] Feb 24, 2023
fc4c47f
github/workflows: Bump actions/upload-artifact from 2 to 3.
dependabot[bot] Feb 24, 2023
a377302
extmod/modnetwork: Add network.hostname() and network.country().
jimmo Feb 1, 2023
f78464c
extmod/modnetwork: Allow more extensive port-specific customisation.
jimmo Feb 1, 2023
eb51ca4
esp32: Use extmod/modnetwork.c instead of port-specific version.
jimmo Feb 1, 2023
6207b60
esp8266: Use extmod/modnetwork.c instead of port-specific version.
jimmo Feb 1, 2023
bad0098
stm32: Update to use the open-source lib version of cyw43-driver.
jimmo Feb 1, 2023
593375a
stm32/boards: Update linker scripts now that big_const is gone.
dpgeorge Feb 21, 2023
8b277d3
docs/library/network: Update docs for network.country, network.hostname.
jimmo Feb 1, 2023
7d40317
stm32: Add a default implementation of pyb.country.
jimmo Feb 2, 2023
36ae5d3
extmod/network_cyw43: Use CYW43_CHANNEL_NONE for default arg in connect.
dpgeorge Feb 27, 2023
4937174
stm32/cyw43_configport: Fix build for boards without an RF switch.
iabdalkader Feb 28, 2023
fb65ef4
drivers/cyw43: Use a different baudrate for BT firmware download.
iabdalkader Feb 24, 2023
e98d7ec
stm32/boards/PYBD_SF2: Set CYW43 Bluetooth fimrware download baudrate.
iabdalkader Feb 24, 2023
0f92954
stm32/cyw43_configport: Allow boards to override default resource files.
iabdalkader Mar 1, 2023
0098096
CODECONVENTIONS: Fix brew uncrustify installation instructions.
BrianPugh Feb 24, 2023
2bcd88d
py/makeversionhdr.py: Optionally get git tag and git hash from env vars.
DavidEGrayson Feb 22, 2023
7a817a3
drivers/ninaw10: Fix machine_pin GPIO read.
iabdalkader Mar 6, 2023
3257243
mpy-cross/main: Fix return type of mp_import_stat.
dpgeorge Mar 7, 2023
4d3897f
mimxrt: Enable ROM text compression.
iabdalkader Mar 4, 2023
9171cb9
mimxrt/pendsv: Add MICROPY_BOARD_PENDSV_ENTRIES for board customisation.
iabdalkader Mar 5, 2023
ddf3979
rp2/pendsv: Add MICROPY_BOARD_PENDSV_ENTRIES for board customisation.
iabdalkader Mar 5, 2023
fb94ae4
samd/pendsv: Add MICROPY_BOARD_PENDSV_ENTRIES for board customisation.
iabdalkader Mar 5, 2023
d18de7e
stm32/boards/ARDUINO_PORTENTA_H7: Update board config files.
iabdalkader Feb 17, 2023
fd202fe
rp2/boards/ARDUINO_NANO_RP2040_CONNECT: Include "time" in manifest.
iabdalkader Feb 17, 2023
cc645b6
nrf/boards/arduino_nano_33_ble_sense: Add support for REV-2 chipset.
iabdalkader Feb 13, 2023
449be91
stm32/Makefile: Include HAL HSEM driver on H747 MCUs.
iabdalkader Feb 18, 2023
b6904cb
stm32/boards/ARDUINO_NICLA_VISION: Add support for Arduino Nicla Vision.
iabdalkader Feb 17, 2023
40a49f5
stm32/boards/ARDUINO_GIGA: Add support for Arduino Giga H7 board.
iabdalkader Feb 14, 2023
ad863fe
lib/cyw43-driver: Update driver to latest version v0.9.0.
iabdalkader Mar 2, 2023
64556ca
drivers/cyw43: Include CYW43 config file.
iabdalkader Mar 2, 2023
e764bf0
stm32/cyw43_configport: Add cyw43_sdio_enable_high_speed_4bit function.
iabdalkader Mar 7, 2023
46c432e
drivers/ninaw10: Add missing external pins 34 and 39.
iabdalkader Mar 7, 2023
6bb6074
rp2/boards/ARDUINO_NANO_RP2040_CONNECT: Add more external pins.
iabdalkader Mar 7, 2023
2ec101e
lib/micropython-lib: Update submodule to latest.
dpgeorge Mar 7, 2023
2eca86e
stm32/powerctrl: Add sleep RCC semaphore management for WB55 MCUs.
pi-anl Mar 23, 2022
c551723
stm32/powerctrl: Disable WB55 BLE before entering deepsleep.
pi-anl Feb 23, 2022
8b3f1d4
stm32/powerctrlboot: Provide custom SystemInit for WB55.
dpgeorge Mar 6, 2023
211859b
tests/run-multitests.py: Add ability to test instance over reboot.
pi-anl Jun 28, 2022
0359aac
tests/multi_bluetooth: Add bluetooth multi-test for deepsleep.
pi-anl Mar 7, 2022
a234aa4
stm32/powerctrl: Don't compile WB helpers on WL MCUs.
dpgeorge Mar 8, 2023
8307046
stm32/boards: Include "senml" in manifest for ARDUINO boards.
iabdalkader Mar 8, 2023
dc2186c
rp2/boards/ARDUINO_NANO_RP2040_CONNECT: Include "senml" in manifest.
iabdalkader Mar 8, 2023
673957b
rp2/modrp2: Support reading the BOOTSEL button on the Pico board.
GitHub30 Aug 30, 2022
f80d040
rp2/modrp2: Disable other core, shorten delay to 8us in bootsel_button.
DavidEGrayson Mar 3, 2023
c80e7c1
rp2: Allocate GC heap from unused RAM.
cpottle9 Mar 7, 2023
7c1584a
py/compile: Fix scope of assignment expression target in comprehensions.
dpgeorge Mar 2, 2023
b9dad0a
stm32: Remove commented-out printf's and debugging code.
dpgeorge Mar 9, 2023
b981e37
stm32/main: Use mp_printf instead of printf for MPY start-up messages.
dpgeorge Mar 9, 2023
98937dc
stm32/i2c: Return error code and raise exception if I2C init fails.
dpgeorge Mar 9, 2023
6c8b19c
stm32/spi: Return error code and raise exception if SPI init fails.
dpgeorge Mar 9, 2023
f6a35f7
stm32/modmachine: Make machine.info print using mp_printf.
dpgeorge Mar 9, 2023
f43c4df
stm32/extint: Make ExtInt.regs print using mp_printf.
dpgeorge Mar 9, 2023
067c7cd
stm32/pin: Make pin_find debug output use mp_printf.
dpgeorge Mar 9, 2023
b336b6b
stm32/pybthread: Make pyb_thread_dump take a printer as its argument.
dpgeorge Mar 9, 2023
cf43df4
nrf/modules/machine/pwm: Add paramter checks and error messages.
robert-hh Mar 4, 2023
a1f838c
nrf/modules/machine/pwm: Use extmod/machine_pwm.c for PWM module.
robert-hh Mar 4, 2023
e3b8778
nrf/modules/machine/soft_pwm: Add PWM for nrf51x boards using soft PWM.
robert-hh Mar 5, 2023
ed1f42c
nrf/modules/machine/pwm: Support using all 4 channels of a PWM module.
robert-hh Mar 8, 2023
f450e94
ports: Rename remaining "Micro Python" to "MicroPython".
dpgeorge Mar 9, 2023
b3c8ab3
py/gc: Make gc_dump_info/gc_dump_alloc_table take a printer as argument.
dpgeorge Mar 9, 2023
78dc2db
py/mpconfig: Provide config option for internal printf printer.
dpgeorge Mar 9, 2023
f3a596d
py/builtinimport: Fix unix port build with external imports disabled.
laurensvalk Mar 9, 2023
4376c96
all: Fix Python comparison to None and True, and use "not in".
cclauss Mar 8, 2023
668a7bd
py/makeversionhdr.py: Always add micro to version string even if it's 0.
dpgeorge Mar 10, 2023
416707e
esp32/machine_pin: Use const for size of machine_pin_irq_handler array.
IhorNehrutsa Oct 31, 2022
d5c45a8
embed: Fix arguments to mp_raw_code_load_mem.
pmendham Mar 12, 2023
05bb260
samd: Always provide the machine.RTC class.
robert-hh Mar 10, 2023
fa8ebb1
py/obj: Add MP_NOINLINE to mp_obj_malloc_helper.
dlech Mar 17, 2023
44ec57f
examples/usercmodule/cexample: Use mp_obj_malloc().
dlech Mar 17, 2023
a197823
ports: Fix MCU tags in Arduino board.json files.
iabdalkader Mar 13, 2023
42511b5
stm32/boards/NUCLEO_H743ZI2: Fix MCU tag in board.json file.
dpgeorge Mar 20, 2023
7ea192a
nrf/modules/machine/uart: Add timeout keyword options and "any" method.
robert-hh Sep 12, 2022
2cd3a7b
nrf/nrfx_config: Use the UARTE definitions and drivers for the NRF52xx.
robert-hh Mar 19, 2023
3bbf2ef
nrf/modules/machine: Use a dedicated function for machine.idle().
robert-hh Mar 19, 2023
a2b31f9
nrf/modules/machine: Support the freq=n argument for machine.I2C.
robert-hh Mar 10, 2023
be686e6
rp2: Allow disabling USB via MICROPY_HW_ENABLE_USBDEV config.
robert-hh Mar 18, 2023
711bac5
rp2/main: Keep UART REPL with DEBUG=1 and MICROPY_HW_ENABLE_UART_REPL=1.
robert-hh Mar 18, 2023
2e5f071
lib/stm32lib: Update library to get H7 v1.11.0.
dpgeorge Dec 21, 2022
3187e4c
stm32/mphalport: Update HAL version to 1.11.0 to match stm32lib.
dpgeorge Dec 21, 2022
13fcd84
stm32: Add support for STM32H723 MCUs.
dpgeorge Dec 20, 2022
d995c01
stm32/boards: Add ld and af.csv for H723.
dpgeorge Dec 20, 2022
051e290
stm32/boards/NUCLEO_H723ZG: Add new H723 board.
dpgeorge Dec 20, 2022
d677023
extmod/vfs_posix: Do not filter '..*' in ilistdir when filtering '..'.
jeremysrand Mar 17, 2023
5d4bfce
py/mpstate: Add mp_thread_is_main_thread() helper macro.
dpgeorge Dec 16, 2022
d54208a
py/scheduler: Implement VM abort flag and mp_sched_vm_abort().
dpgeorge Dec 16, 2022
b5ceb9d
tools/pyboard.py: Fix joining of path in filesystem_command.
dpgeorge Mar 22, 2023
b7ea90d
rp2/machine_uart: Fix setting of UART LCR parameters.
robert-hh Mar 8, 2023
c7923b1
stm32: Add support for USB on G0 MCUs.
dpgeorge Mar 21, 2023
3163847
stm32/mboot: Add support for G0 MCUs.
dpgeorge Mar 21, 2023
31e7a05
stm32/boards/NUCLEO_G0B1RE: Add config for USB and mboot.
dpgeorge Mar 21, 2023
af42634
tests/run-multitests.py: Support outputting test metrics.
dpgeorge Mar 17, 2023
6c76248
tests/multi_bluetooth: Use multitest.output_metric in BLE perf tests.
dpgeorge Mar 17, 2023
38e7b84
ports: Implement simple write polling for stdout.
dpgeorge Mar 21, 2023
283c1ba
py/obj: Fix spelling of staticmethod.
dlech Mar 28, 2023
a467214
tests/extmod/vfs_fat_ilistdir_del.py: Use 512-byte erase block size.
dpgeorge Mar 29, 2023
0a3600a
stm32/boards/ARDUINO_NICLA_VISION: Fix incorrect bootloader PID.
sebromero Mar 23, 2023
783ddfc
shared/tinyusb: Allow max USB descriptor string to be configured.
dpgeorge Apr 4, 2023
9f74ffb
tools/pyboard.py: Fix ESPxx boards hanging in bootloader after reset.
Josverl Mar 19, 2023
5652f1f
stm32/flash: Fix get_bank function for STM32H750.
jahr Mar 31, 2023
9025671
drivers/ninaw10: Fix ESP32 input-only pins.
iabdalkader Mar 26, 2023
3d46fe6
extmod/network_ninaw10: Check socket types when creating new sockets.
iabdalkader Mar 29, 2023
11b5ee0
extmod/network_cyw43: Fix setting hostname using config() method.
Mar 11, 2023
f34af3e
extmod/network_cyw43: Add support to get STA RSSI using status() method.
Mar 11, 2023
b4a0390
extmod/network_ninaw10: Add missing raw socket type to socket().
iabdalkader Apr 4, 2023
4085565
nrf/modules/machine/pwm: Fix resource conflict, and change id to device.
robert-hh Mar 11, 2023
a529e0e
nrf/nrfx_config: Use UARTE for nrf52xxx devices.
robert-hh Mar 21, 2023
eb6e514
nrf/modules/machine/uart: Prevent UART lock-up after a receive error.
robert-hh Mar 22, 2023
db4b416
mimxrt/pendsv: Clean up PendSV code.
iabdalkader Apr 4, 2023
c046b23
shared/runtime/pyexec: Don't allow Ctrl+C to interrupt frozen boot code.
DavidEGrayson Apr 4, 2023
cfd3b70
tools/manifestfile.py: Add support for publishing packages to PyPI.
jimmo Mar 31, 2023
a22136a
py/makeqstrdefs.py: Fix handling GreenHills C/C++ preprocessor output.
ar-cetitec Feb 21, 2023
ed5e359
mimxrt/Makefile: Fix internal flash configuration and build.
iabdalkader Feb 28, 2023
944b4c2
mimxrt/boards/MIMXRT1064_EVK: Fix board config to use internal flash.
iabdalkader Feb 28, 2023
8b72721
mimxrt/mpconfigport: Allow configuring different network interfaces.
iabdalkader Mar 7, 2023
bde222c
mimxrt/modmachine: Implement machine.bootloader().
iabdalkader Apr 9, 2023
0acc733
mimxrt: Fix the build for boards without ROM API.
iabdalkader Apr 12, 2023
b525f1c
tools/mpremote: Add ctrl-x as additonal mpremote disconnect shortcut.
brainelectronics Apr 5, 2023
bf3eb9d
rp2/machine_i2c: Add timeout parameter for machine.I2C().
DavidEGrayson Apr 13, 2023
ec1eecc
shared/tinyusb: Revert setting of CFG_TUD_CDC_EP_BUFSIZE to 256.
dpgeorge Apr 21, 2023
9e6885a
extmod/btstack: Switch to use hci_dump_init instead of hci_dump_open.
dpgeorge Apr 21, 2023
bc9ec1c
extmod/modbluetooth: Merge gatts_notify/indicate implementation.
jimmo Mar 2, 2023
256f47e
extmod/btstack: Fix indicate/notify queuing.
jimmo Mar 2, 2023
a6aa739
extmod/btstack: Include value handle in client read/write events.
jimmo Mar 2, 2023
dcb863e
tests/multi_bluetooth: Use time.sleep_ms instead of time.sleep.
jimmo Mar 8, 2023
a652695
tests/multi_bluetooth/ble_mtu: Split peripheral/central-initiated.
jimmo Mar 9, 2023
a2df439
extmod/btstack: Fix MTU handling.
jimmo Mar 9, 2023
f9b60a2
tests/multi_bluetooth/ble_subscribe: Use end_handle in desc discovery.
jimmo Mar 9, 2023
bb4ee06
extmod/btstack: Add support for CCCD to allow client subscriptions.
jimmo Mar 9, 2023
e6de665
extmod/nimble: Fix flags for descriptor registration.
jimmo Apr 11, 2023
80fc1c8
tests/multi_bluetooth: Add test for descriptors.
jimmo Apr 11, 2023
419017e
tests/multi_bluetooth/ble_characteristic.py: Add write-no-response.
jimmo Apr 11, 2023
201f5df
examples/bluetooth/ble_temperature_central.py: Remove service tuple.
jimmo Apr 11, 2023
ab31e23
tests/multi_bluetooth: Use multitest.broadcast instead of sleep.
jimmo Apr 12, 2023
a42a802
extmod/modbluetooth: Make all HCI transports trace in the same format.
jimmo Apr 13, 2023
67fb0be
extmod/btstack/modbluetooth_btstack: Add default services.
jimmo Apr 13, 2023
7ea06a3
esp32/esp32_rmt: Fix looping behaviour for RMT on ESP32-S3.
IcedRooibos Apr 13, 2023
fe4ac49
rp2/memmap_mp.ld: Allow a board to reserve memory for the C heap.
dpgeorge Apr 4, 2023
41a2415
lib/cyw43-driver: Update driver to latest version v1.0.0.
dpgeorge Apr 26, 2023
a14e79b
stm32/cyw43_configport: Provide cyw43_hal_pin_config_irq_falling func.
dpgeorge Apr 26, 2023
c27d686
lib/micropython-lib: Update submodule to latest.
dpgeorge Apr 26, 2023
57ca8b7
LICENSE,docs: Update copyright year range to include 2023.
dpgeorge Apr 26, 2023
294baf5
all: Bump version to 1.20.0.
dpgeorge Apr 26, 2023
5af201d
Merge tag 'v1.20.0' into update_micropython_v1.20
amirgon Jun 2, 2023
6ce2871
Align to Micropyton v1.20.0
amirgon Jun 3, 2023
d3f379d
Remove VARIANT=dev on unix port
amirgon Jun 5, 2023
808d72d
Update LVGL
amirgon Jun 10, 2023
c8299de
Move unix specific build rules
amirgon Jun 16, 2023
6c20437
Fix symlink path
amirgon Jun 16, 2023
753e1ff
ESP32 fixes in lv_bindings submodule
amirgon Jun 16, 2023
7e9fa61
stm32: fix include path
amirgon Jun 17, 2023
52615da
stm32: fix manifest
amirgon Jun 17, 2023
bcaf844
stm32 update root pointer
amirgon Jun 17, 2023
4766e94
Update CFLAGS variable name for stm32
embeddedt Jun 18, 2023
fb095f2
Rebase lv_bindings and update LVGL
amirgon Jun 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#all: Reformat remaining C code that doesn't have a space after a comma.
# top: Update Python formatting to black "2023 stable style".
8b2748269244304854b3462cb8902952b4dcb892

# all: Reformat remaining C code that doesn't have a space after a comma.
5b700b0af90591d6b1a2c087bb8de6b7f1bfdd2d

# ports: Reformat more C and Python source code.
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ assignees: ''

---

* Remove all placeholder text below before submitting.

* Please search existing issues before raising a new issue. For questions about MicroPython or for help using MicroPython, please see the MicroPython Forum -- https://forum.micropython.org/
* Please search existing issues before raising a new issue. For questions about MicroPython or for help using MicroPython, or any sort of "how do I?" requests, please use the Discussions tab or raise a documentation request instead.

* In your issue, please include a clear and concise description of what the bug is, the expected output, and how to replicate it.

Expand All @@ -23,3 +21,5 @@ assignees: ''
- firmware file name
- git commit hash and port/board
- version information shown in the REPL (hit Ctrl-B to see the startup message)

* Remove all placeholder text above before submitting.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
blank_issues_enabled: false
contact_links:
- name: MicroPython Forum
url: https://forum.micropython.org/
- name: MicroPython GitHub Discussions
url: https://github.com/orgs/micropython/discussions
about: Community discussion about all things MicroPython. This is the best place to start if you have questions about using MicroPython or getting started with MicroPython development.
- name: MicroPython Documentation
url: https://docs.micropython.org/
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ assignees: ''

---

* Remove all placeholder text below before submitting.

* Please search existing issues before raising a new issue. For questions about MicroPython or for help using MicroPython, please see the MicroPython Forum -- https://forum.micropython.org/
* Please search existing issues before raising a new issue. For questions about MicroPython or for help using MicroPython, or any sort of "how do I?" requests, please use the Discussions tab instead.

* Describe what was missing from the documentation and/or what was incorrect/incomplete.

* If possible, please link to the relevant page on https://docs.micropython.org/

* Remove all placeholder text above before submitting.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ assignees: ''

---

* Remove all placeholder text below before submitting.

* Please search existing issues before raising a new issue. For questions about MicroPython or for help using MicroPython, please see the MicroPython Forum -- https://forum.micropython.org/
* Please search existing issues before raising a new issue. For questions about MicroPython or for help using MicroPython, or any sort of "how do I?" requests, please use the Discussions tab or raise a documentation request instead.

* Describe the feature you'd like to see added to MicroPython. In particular, what does this feature enable and why is it useful. MicroPython aims to strike a balance between functionality and code size, so please consider whether this feature can be optionally enabled and whether it can be provided in other ways (e.g. pure-Python library).

Expand All @@ -22,3 +20,5 @@ assignees: ''
* For drivers (e.g. for external hardware), please link to datasheets and/or existing drivers from other sources.

* Who do you expect will implement the feature you are requesting? Would you be willing to sponsor this work?

* Remove all placeholder text above before submitting.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ assignees: ''

---

* Remove all placeholder text before submitting the new issue.

* If you need to raise this issue privately with the MicroPython team, please email [email protected] instead.

* Include a clear and concise description of what the security issue is.

* What does this issue allow an attacker to do?

* Remove all placeholder text above before submitting.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
105 changes: 105 additions & 0 deletions .github/workflows/code_size_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: Code size comment

on:
workflow_run:
workflows: [Check code size]
types: [completed]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
comment:
runs-on: ubuntu-20.04
steps:
- name: 'Download artifact'
id: download-artifact
uses: actions/github-script@v6
with:
result-encoding: string
script: |
const fs = require('fs');

const allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.payload.workflow_run.id,
});

const matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name == "code-size-report"
});

if (matchArtifact.length === 0) {
console.log('no matching artifact found');
console.log('result: "skip"');

return 'skip';
}

const download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact[0].id,
archive_format: 'zip',
});

fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/code-size-report.zip`, Buffer.from(download.data));

console.log('artifact downloaded to `code-size-report.zip`');
console.log('result: "ok"');

return 'ok';
- name: 'Unzip artifact'
if: steps.download-artifact.outputs.result == 'ok'
run: unzip code-size-report.zip
- name: Post comment to pull request
if: steps.download-artifact.outputs.result == 'ok'
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const fs = require('fs');

const prNumber = Number(fs.readFileSync('pr_number'));
const codeSizeReport = `Code size report:

\`\`\`
${fs.readFileSync('diff')}
\`\`\`
`;

const comments = await github.paginate(
github.rest.issues.listComments,
{
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
}
);

comments.reverse();

const previousComment = comments.find(comment =>
comment.user.login === 'github-actions[bot]'
)

// if github-actions[bot] already made a comment, update it,
// otherwise create a new comment.

if (previousComment) {
await github.rest.issues.updateComment({
owner: context.repo.owner,
repo: context.repo.repo,
comment_id: previousComment.id,
body: codeSizeReport,
});
} else {
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
body: codeSizeReport,
});
}
9 changes: 7 additions & 2 deletions .github/workflows/ports_esp32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@ on:
- 'tools/**'
- 'py/**'
- 'extmod/**'
- 'shared/**'
- 'lib/**'
- 'drivers/**'
- 'ports/esp32/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build_idf402:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Initialize lv_bindings submodule
run: git submodule update --init --recursive lib/lv_bindings
- name: Install packages
Expand All @@ -27,7 +32,7 @@ jobs:
build_idf44:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Initialize lv_bindings submodule
run: git submodule update --init --recursive lib/lv_bindings
- name: Install packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unix_port.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
- name: Initialize lv_bindings submodule
run: git submodule update --init --recursive lib/lv_bindings
- name: Update submodules
run: make -C ports/unix VARIANT=dev DEBUG=1 submodules
run: make -C ports/unix DEBUG=1 submodules
- name: Build mpy-cross
run: make -j $(nproc) -C mpy-cross
- name: Build the unix port
run: make -j $(nproc) -C ports/unix VARIANT=dev DEBUG=1
run: make -j $(nproc) -C ports/unix DEBUG=1
- name: Run tests
run: |
export XDG_RUNTIME_DIR=/tmp
Expand Down
20 changes: 10 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,31 +39,31 @@ Session.vim
tags
TAGS

# Build directories
######################
# This .gitignore file is intended to be minimal.
#
# If you find that you need additional rules, such as IDE temporary
# files, please do so either via a global .gitignore file (registered
# with core.excludesFile), or by adding private repository-specific
# rules to .git/info/exclude. See https://git-scm.com/docs/gitignore
# for more information.

# Build directories
build/
build-*/
docs/genrst/

# Test failure outputs
######################
tests/results/*

# Python cache files
######################
__pycache__/
*.pyc

# Customized Makefile/project overrides
######################
GNUmakefile
user.props
ports/javascript/node_modules
.vscode/

# Generated rst files
######################
genrst/

# MacOS desktop metadata files
######################
.DS_Store
8 changes: 7 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[submodule "lib/stm32lib"]
path = lib/stm32lib
url = https://github.com/micropython/stm32lib
branch = work-F0-1.9.0+F4-1.16.0+F7-1.7.0+G4-1.3.0+H7-1.6.0+L0-1.11.2+L4-1.17.0+WB-1.10.0+WL-1.1.0
branch = work-F0-1.9.0+F4-1.16.0+F7-1.7.0+G0-1.5.1+G4-1.3.0+H7-1.6.0+L0-1.11.2+L1-1.10.3+L4-1.17.0+WB-1.10.0+WL-1.1.0
[submodule "lib/nrfx"]
path = lib/nrfx
url = https://github.com/NordicSemiconductor/nrfx.git
Expand Down Expand Up @@ -53,3 +53,9 @@
url = https://github.com/andrewleech/wiznet_ioLibrary_Driver.git
# Requires https://github.com/Wiznet/ioLibrary_Driver/pull/120
# url = https://github.com/Wiznet/ioLibrary_Driver.git
[submodule "lib/cyw43-driver"]
path = lib/cyw43-driver
url = https://github.com/georgerobotics/cyw43-driver.git
[submodule "lib/micropython-lib"]
path = lib/micropython-lib
url = https://github.com/micropython/micropython-lib.git
8 changes: 4 additions & 4 deletions .gitpod
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ ports:
onOpen: ignore
tasks:
- init: |
make -C ports/unix VARIANT=dev DEBUG=1 submodules
make -j $(nproc) -C mpy-cross VARIANT=dev DEBUG=1
make -j $(nproc) -C ports/unix VARIANT=dev DEBUG=1
make -C ports/unix DEBUG=1 submodules
make -j $(nproc) -C mpy-cross DEBUG=1
make -j $(nproc) -C ports/unix DEBUG=1
# source tools/ci.sh && ci_esp32_idf44_setup
# source tools/ci.sh && ci_esp32_build
command: |
xrandr --fb 500x500 # Fix resolution for LVGL screens which are smaller
ports/unix/micropython-dev -i lib/lv_bindings/examples/advanced_demo.py
ports/unix/build-standard/micropython -i lib/lv_bindings/examples/advanced_demo.py
vscode:
extensions:
- ms-vscode.cpptools
Expand Down
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
repos:
- repo: local
hooks:
- id: codeformat
name: MicroPython codeformat.py for changed files
entry: tools/codeformat.py -v -f
language: python
- id: verifygitlog
name: MicroPython git commit message format checker
entry: tools/verifygitlog.py --check-file --ignore-rebase
language: python
verbose: true
stages: [commit-msg]
Loading