- 07 Aug, 2021 6 commits
-
-
Damien George authored
Commit 41739506 removed automatic building of mpy-cross, which rebuilt it whenever any of its dependent source files changed. But needing to build mpy-cross, and not knowing how, is a frequent issue. This commit aims to help by automatically building mpy-cross only if it doesn't exist. For Makefiles it uses an order-only prerequisite, while for CMake it uses a custom command. If MICROPY_MPYCROSS (which is what makemanifest.py uses to locate the mpy-cross executable) is defined in the environment then automatic build will not be attempted, allowing a way to prevent this auto-build if needed. Thanks to Trammell Hudson aka @osresearch for the original idea; see #5760. Signed-off-by: Damien George <damien@micropython.org>
-
Peter Züger authored
Basically just copied ujson_dump(s).py and added various valid/invalid separator tests. Signed-off-by: Peter Züger <zueger.peter@icloud.com>
-
Peter Züger authored
Optionally enabled via MICROPY_PY_UJSON_SEPARATORS. Enabled by default. For dump, make sure mp_get_stream_raise is called after mod_ujson_separators since CPython does it in this order (if both separators and stream are invalid, separators will raise an exception first). Add separators argument in the docs as well. Signed-off-by: Peter Züger <zueger.peter@icloud.com> Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
Addresses issues #2697 and #5329. Signed-off-by: Damien George <damien@micropython.org>
-
Jim Mussared authored
Reverse operations are supported on stm32 and rp2, and esp32 has enough space to also enable inplace operations, to make it complete. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
Patrick Van Oosterwijck authored
For rev 7+ boards with 16MB of flash. Partition table allocates 2.4 MiB for MicroPython, 11 MiB for the filesystem.
-
- 04 Aug, 2021 1 commit
-
-
Will Sowerbutts authored
This enables optional support for the hardware UART to use the RTS and/or CTS pins for flow control. The new "flow" constructor keyword specifies a bitmask of RTS and/or CTS. This matches the interface used by machine.UART on stm32 and rp2. Previously on ESP32 it was possible to specify which pins to use for the RTS and CTS signals, but hardware flow control was never functional: CTS was not checked before transmitting bytes, and RTS was always driven high (signalling no buffer space available). With this patch, CTS and RTS both operate as expected. This also includes an update to the machine.UART documentation. Signed-off-by: Will Sowerbutts <will@sowerbutts.com>
-
- 01 Aug, 2021 10 commits
-
-
Mike Causer authored
-
Mike Causer authored
-
Mike Causer authored
-
Mike Causer authored
-
Mike Causer authored
-
Mike Causer authored
-
Mike Causer authored
-
Mike Causer authored
-
iabdalkader authored
-
iabdalkader authored
By defining MICROPY_HW_USB_VID and MICROPY_HW_USB_PID.
-
- 31 Jul, 2021 8 commits
-
-
David Lechner authored
Commit e33bc597 ("py: Remove calls to file reader functions when these are disabled.") changed the condition for one caller of do_execute_raw_code() from MICROPY_PERSISTENT_CODE_LOAD to MICROPY_HAS_FILE_READER && MICROPY_PERSISTENT_CODE_LOAD The condition that enables compiling the function itself needs to be changed to match. Signed-off-by: David Lechner <david@pybricks.com>
-
robert-hh authored
-
robert-hh authored
-
robert-hh authored
Hyperflash is used by the MIMXRT1050_EVKB, MIMXRT1060_EVK and MIMXRT1064_EVK boards. This commit includes: - add support for Hyperflash - modify MIMXRT1060_EVK and MIMXRT1064_EVK to change from QSPI to hyperflash. - minor incidental changes to other boards so they still build Note: Erasing a sector on the hyperflash is slow. It takes about a second, which seems too long, but matches the data sheet.
-
oclyke authored
Rudimentary support for various address families. Signed-off-by: oclyke <oclyke@gmail.com>
-
Damien George authored
Also mention mpremote as a way to access the REPL. Signed-off-by: Damien George <damien@micropython.org>
-
Tobias Thyrrestrup authored
-
Tobias Thyrrestrup authored
Add basic support for LEGO HUB NO.6 (e.g. LEGO SPIKE Prime, LEGO MINDSTORMS Robot Inventor). See README.md for details. Thanks to @dpgeorge for helping put this together. Signed-off-by: Tobias Thyrrestrup <tt@LEGO.com>
-
- 27 Jul, 2021 1 commit
-
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-
- 26 Jul, 2021 3 commits
-
-
Matúš Olekšák authored
-
Damien George authored
By selecting a larger prescaler when needed. Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
It needs to use a different function because the formula to compute the baudrate on LPUART1 is different to a normal UART. Fixes issue #7466. Signed-off-by: Damien George <damien@micropython.org>
-
- 25 Jul, 2021 2 commits
-
-
robert-hh authored
Prior to this fix, if the UART hardware FIFO had a few chars but still below the FIFO trigger threshold, and the ringbuf was empty, the read function would timeout if timeout==0 (the default timeout). This fix follows the suggestion of @iabdalkader.
-
iabdalkader authored
The RX IRQ does not trigger if the FIFO is less than the trigger level, in which case characters may be available in the FIFO, yet not in the ringbuf, and the ioctl returns false.
-
- 23 Jul, 2021 8 commits
-
-
Chris Wilson authored
Signed-off-by: Chris Wilson <christopher.david.wilson@gmail.com>
-
Jim Mussared authored
When l2cap_send detects that the sys mempool is running low (used to store the outgoing HCI payloads), it will report stalled back to the application, and then only unstall once these HCI payloads have been sent. This prevents a situation where a remote receiver with very large MTU can cause NimBLE to queue up more than MYNEWT_VAL_MSYS_1_BLOCK_COUNT (i.e. 12) payloads, causing further attempts to send to fail with ENOMEM (even though the channel is not stalled and we have room in the channel mbufs). The regular credit/stall flow control is not effective here because the receiver's MTU is large enough that it will not activate (i.e. there are lots of credits available). Thresholds of 1/2 (stall) and 1/4 (unstall) chosen to allow headroom for other payloads (e.g. notifications) and that when a regular stall occurs it might keep sending (and creating more payloads) in the background.
-
Jim Mussared authored
-
Jim Mussared authored
-
Michel Bouwmans authored
Signed-off-by: Michel Bouwmans <m.bouwmans@ep-games.eu>
-
Michel Bouwmans authored
Fixes issue #7534. Signed-off-by: Michel Bouwmans <m.bouwmans@ep-games.eu>
-
Jim Mussared authored
Previously a subclass of a type that didn't implement unary_op, or didn't handle MP_UNARY_OP_BOOL, would raise TypeError on bool conversion. Fixes #5677.
-
Damien George authored
Fixes issue #5750. Signed-off-by: Damien George <damien@micropython.org>
-
- 22 Jul, 2021 1 commit
-
-
Sashkoiv authored
-