summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-18unix/Makefile: Remove explicit addition of -std=c++ flag.stijn
This was added merely for building the C++ user module example, so it's a better fit to add it in the corresponding micropython.mk.
2022-02-18drivers/sdcard: Allow setting the final SPI baudrate.robert-hh
This baudrate is supplied in the constructor. The default is 1320000 as before. Example: sd = sdcard.SDCard(spi, cs, baudrate=20_000_000)
2022-02-18drivers/ninaw10: Add NIC-level ioctl function.iabdalkader
This commit adds support in the driver for irregular commands. It currently supports setting GPIO pin mode, and GPIO pin read/write value.
2022-02-18tools/verifygitlog.py: Ignore line length in body if it's a URL.David Lechner
This changes the git commit message line length check to ignore lines that contain URLs, since these cannot be wrapped without breaking tools that detect URLs and create a link. Signed-off-by: David Lechner <david@pybricks.com>
2022-02-18windows/appveyor: Fix printing of test failures.David Lechner
In the `after_test` section, the current directory is `ports/windows` when tests are run, so running `run-tests.py` without changing the directory or specifying a path causes a file not found error. This commit fixes the problem by changing the directory before calling `run-tests.py`. Signed-off-by: David Lechner <david@pybricks.com>
2022-02-18README: Update link for ARM embedded toolchain to developer.arm.com.Bradley Wogsland
2022-02-18rp2/Makefile: Add FROZEN_MANIFEST Makefile option, to override default.YoungJoon Chun
2022-02-17py/gc: Update debug code to compile with changes to qstr pool types.Damien George
Following on from 18b1ba086c0e5547ca81030bf13b026961f80720 and f46a7140f55a8f6d80f9c2d5f8db7af3de116794. Signed-off-by: Damien George <damien@micropython.org>
2022-02-12tests/extmod/vfs_fat_finaliser.py: Make finalisation more robust.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-02-11py/qstr: Use `const` consistently to avoid a cast.Artyom Skrobov
Originally at adafruit#4707 Signed-off-by: Artyom Skrobov <tyomitch@gmail.com>
2022-02-11py/qstr: Separate hash and len from string data.Artyom Skrobov
This allows the compiler to merge strings: e.g. "update", "difference_update" and "symmetric_difference_update" will all point to the same memory. No functional change. The size reduction depends on the number of qstrs in the build. The change this commit brings is: bare-arm: -4 -0.007% minimal x86: +150 +0.092% [incl +48(data)] unix x64: -608 -0.118% unix nanbox: -572 -0.126% [incl +32(data)] stm32: -1392 -0.352% PYBV10 cc3200: -448 -0.244% esp8266: -1208 -0.173% GENERIC esp32: -1028 -0.068% GENERIC[incl -1020(data)] nrf: -440 -0.252% pca10040 rp2: -1072 -0.217% PICO samd: -368 -0.264% ADAFRUIT_ITSYBITSY_M4_EXPRESS Performance is also improved (on bare metal at least) for the core_import_mpy_multi.py, core_import_mpy_single.py and core_qstr.py performance benchmarks. Originally at adafruit#4583 Signed-off-by: Artyom Skrobov <tyomitch@gmail.com>
2022-02-11tests/run-perfbench.py: Use SKIP consistently, and increase print width.Damien George
A script will print "SKIP" if it wants to be skipped, so the test runner must also use uppercase SKIP. Signed-off-by: Damien George <damien@micropython.org>
2022-02-11tests/perf_bench: Add perf test for yield-from execution.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-02-10tests/perf_bench: Add perf tests for qstr interning and importing .mpy.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-02-10tests/run-perfbench.py: Allow a test to SKIP, and to have a .exp file.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-02-09rp2/machine_uart: Fix UART RTS behaviour so RTS is deasserted.YoungJoon Chun
The UART hardware flow control was not working correctly, the receive FIFO was always fetched and RTS was never deasserted. This is not a problem when hardware flow control is not used: normally, if the receive FIFO is full, the UART receiver won't receive data into the FIFO anymore, but the current implementation fetches from the FIFO and discards it instead. The problem is that data is discarded even when RTS is enabled. This commit fixes the issue by only taking from the FIFO if there is room in the ring buffer to put the character. Signed-off-by: YoungJoon Chun <yjchun@mac.com>
2022-02-09docs/library/uasyncio.rst: Fix description of ThreadSafeFlag.wait.Lars Kellogg-Stedman
When a task waits on a ThreadSafeFlag (and the wait method returns), the flag is immediately reset. This was not clear in the documentation, which appeared to copy the description of the wait method from the Event class. Signed-off-by: Lars Kellogg-Stedman <lars@oddbit.com>
2022-02-09docs/library/machine.Pin.rst: Document defaults for Pin.init.Jos Verlinde
2022-02-09docs/library/pyb.SPI.rst: Document default for prescaler argument.Jos Verlinde
To prevent "non-default argument follows default argument" errors.
2022-02-09docs/library/esp.rst: Document the osdebug function.Jos Verlinde
2022-02-09docs/library/machine.WDT.rst: Use correct case for WDT.feed.Jos Verlinde
2022-02-09docs/library/machine.SPI.rst: Add class constant SoftSPI.MSB and .LSB.Jos Verlinde
2022-02-09docs/library/pyb.DAC.rst: Add DAC class constants.Jos Verlinde
2022-02-09docs/library/pyb.rst: Add pyb.hid_mouse and pyb.hid_keyboard constants.Jos Verlinde
2022-02-09docs/library/pyb.Timer.rst: Add pyb.Timer class constants.Jos Verlinde
2022-02-09docs/library/socket.rst: Document socket as a class.Jos Verlinde
Following CPython: https://bugs.python.org/issue45772
2022-02-09docs: Use the correct * keyword-only notation.Jos Verlinde
2022-02-09docs/library/collections.rst: Use class for deque and OrderedDict.Jos Verlinde
2022-02-09tests/multi_net/udp_data.py: Make UDP test more reliable.iabdalkader
The current test depends on a specific number and order of packets to pass, which can't be reproduced every run due to the unreliable UDP protocol. This patch adds simple packets sequencing, retransmits with timeouts, and a packet loss threshold, to make the test more tolerant to UDP protocol packet drops and reordering.
2022-02-09esp32/boards: Add three UM ESP32-S3 based boards.Seon Rozenblum
2022-02-08esp32/machine_adc: Fix configuration of default ADC atten value.Damien George
Prior to this fix, if the ADC atten value was not explicitly given then adc1_config_channel_atten() would never be called. Fixes issue #8275. Signed-off-by: Damien George <damien@micropython.org>
2022-02-08esp32/machine_adcblock: Fix ADC bit width for ESP32-S3.Seon Rozenblum
2022-02-08esp32/partitions-16MiB.csv: Increase 14MiB filesystem to maximum size.Damien George
The original value was 14000000, it's now changed to 14 * 1024 * 1024. Fixes issue #8266. Signed-off-by: Damien George <damien@micropython.org>
2022-02-07windows/uasyncio: Add support for uasyncio to windows dev variant.Andrew Leech
2022-02-07windows/uselect: Enable micropython select in dev variant.Andrew Leech
2022-02-07windows/mingw: Include extmod/shared/lib sources properly.Andrew Leech
2022-02-07tools/mpremote: Fix special handling of ctrl-D when host FS is mounted.Damien George
Changes are: - decision to remount local filesystem on remote device is made only if "MPY: soft reboot" is seen in the output after sending a ctrl-D - a nice message is printed to the user when the remount occurs - soft reset during raw REPL is now handled correctly Fixes issue #7731. Signed-off-by: Damien George <damien@micropython.org>
2022-02-04tools/mpremote: Correctly manage mounted flag during soft-reset.Andrew Leech
2022-02-04tools/mpremote: Accept both --help and help to show usage.Andrew Leech
2022-02-04tools/mpremote: During soft reboot wait long enough for 115200 data.Andrew Leech
2022-02-04tools/mpremote: Make ConsolePosix work without .raw attribute.Andrew Leech
When running mpremote in the vscode terminal on OSX the sys.stdout.buffer does not have the raw attribute. It works fine without it.
2022-02-04tools/mpremote: Fix "fs cp -r" on Windows.Andrew Leech
A backslash in the directory name will end up being passed through to the device and becoming a backslash in a filename, rather than being interpreted as directories. This makes "cp -r" problematic on Windows. Changing to simply "/",join() fixes this.
2022-02-04stm32/boards/NUCLEO_L432KC: Disable MICROPY_OPT_COMPUTED_GOTO.Damien George
To save space, after recent fixes to L4 ADC made it overflow flash. Signed-off-by: Damien George <damien@micropython.org>
2022-02-04docs/reference/isr_rules.rst: Describe uasyncio-IRQ interface.Peter Hinch
2022-02-04docs/esp32/quickref: Update ADC documentation.Jonathan Hogg
Update ADC documentation now that the new API is described in the main docs.
2022-02-04docs/reference/isr_rules.rst: Fix inconsistent variable name in example.Luiz Brandao
Fixed to be conistent with the code example above it.
2022-02-04docs/develop/porting.rst: Fix build and import problems in the example.Cem Eliguzel
2022-02-04rp2/modutime: Fix time.localtime day-of-week value.Damien George
The correct day-of-week is stored in the RTC (0=Monday, 6=Sunday) so there is no need to adjust it for the return value of time.localtime(). Fixes issue #7889. Signed-off-by: Damien George <damien@micropython.org>
2022-02-04stm32/adc: Remove obsolete FIRST/LAST GPIO channel macros.iabdalkader
2022-02-04stm32/adc: Fix L4 ADC channel numbers.iabdalkader
Use HAL macro to map decimal numbers to channel numbers. This is needed since updating L4 HAL v1.17.0 in a0f5b3148a5c276aa1abf7b77b0964eec80cda16. Fixes issue #8233.