| Age | Commit message (Collapse) | Author |
|
By defining MICROPY_HW_USB_VID and MICROPY_HW_USB_PID.
|
|
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>
|
|
|
|
|
|
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.
|
|
Rudimentary support for various address families.
Signed-off-by: oclyke <oclyke@gmail.com>
|
|
Also mention mpremote as a way to access the REPL.
Signed-off-by: Damien George <damien@micropython.org>
|
|
|
|
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>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
|
|
By selecting a larger prescaler when needed.
Signed-off-by: Damien George <damien@micropython.org>
|
|
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>
|
|
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.
|
|
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.
|
|
Signed-off-by: Chris Wilson <christopher.david.wilson@gmail.com>
|
|
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.
|
|
|
|
|
|
Signed-off-by: Michel Bouwmans <m.bouwmans@ep-games.eu>
|
|
Fixes issue #7534.
Signed-off-by: Michel Bouwmans <m.bouwmans@ep-games.eu>
|
|
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.
|
|
Fixes issue #5750.
Signed-off-by: Damien George <damien@micropython.org>
|
|
|
|
Allows MICROPY_PY_MATH_SPECIAL_FUNCTIONS to be enabled, and for ulab to be
built as a user C module.
|
|
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Fixes issue #7545.
Signed-off-by: Damien George <damien@micropython.org>
|
|
* Make SDRAM test cache-aware for newer MCUs.
* Use the defined data bus width (instead of the fixed 8-bits).
* Allow optional failure on error with verbose error messages.
* Test speed is now inverted (test accepts exhaustive instead fast).
|
|
This helps the OS switch to and give other threads processing time during
the sleep. It also ensures that pending events are handled, even when
sleeping for 0ms.
Fixes issue #5344.
Signed-off-by: Damien George <damien@micropython.org>
|
|
So that other threads get a chance to run when taskYIELD() is called.
See issue #5344.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Call MICROPY_EVENT_POLL_HOOK even on very short delays so that busy loops
that call sleep_ms still yield to events and other threads.
See related issue #5344.
|
|
This description is based on the existing bare-metal ports implementations.
Signed-off-by: Damien George <damien@micropython.org>
|
|
This makes sleep_ms(0) useful as a "yield" so event processing and thread
switching can take place.
Fixes issue #5345.
|
|
|
|
|
|
And add a test for the case where REG_RET could be in use.
Fixes #7523.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
|
|
To reduce code size and code duplication.
Signed-off-by: Damien George <damien@micropython.org>
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Supported features for this SoC are:
- UART REPL, filesystem
- Pin, ADC, PWM, SoftI2C, SoftSPI, Timer, RTC
- OneWire, DHT, NeoPixel
- RMT
- WiFi, Bluetooth
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Also remove mistaken usage of MASTER/SLAVE constants in comments.
|