summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-08-01rp2/tusb_port: Allow boards to configure USB VID and PID.iabdalkader
By defining MICROPY_HW_USB_VID and MICROPY_HW_USB_PID.
2021-07-31py/builtinimport: Fix condition for including do_execute_raw_code().David Lechner
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>
2021-07-31tools/autobuild: Add the MIMXRT1050_EVKB board to the daily builds.robert-hh
2021-07-31mimxrt/boards: Add support for the MIMXRT1050_EVKB board.robert-hh
2021-07-31mimxrt: Add support for Hyperflash chips.robert-hh
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.
2021-07-31extmod/uasyncio: In open_connection use address info in socket creation.oclyke
Rudimentary support for various address families. Signed-off-by: oclyke <oclyke@gmail.com>
2021-07-31stm32/README.md: Update supported MCUs, and submodule and mboot use.Damien George
Also mention mpremote as a way to access the REPL. Signed-off-by: Damien George <damien@micropython.org>
2021-07-31stm32/Makefile: Update to only pull in used Bluetooth library.Tobias Thyrrestrup
2021-07-31stm32/boards/LEGO_HUB_NO6: Add board definition for LEGO_HUB_NO6.Tobias Thyrrestrup
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>
2021-07-27stm32/boards/NUCLEO_F439ZI: Add board definition for NUCLEO_F439ZI.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-07-26stm32/boards/STM32F429DISC: Set correct UART2 pins and add UART3/6.Matúš Olekšák
2021-07-26stm32/uart: Support low baudrates on LPUART1.Damien George
By selecting a larger prescaler when needed. Signed-off-by: Damien George <damien@micropython.org>
2021-07-26stm32/uart: Fix LPUART1 baudrate set/get.Damien George
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>
2021-07-25rp2/machine_uart: Fix read when FIFO has chars but ringbuf doesn't.robert-hh
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.
2021-07-25rp2/machine_uart: Fix poll ioctl to also check hardware FIFO.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.
2021-07-23stm32/boards: Add support for SparkFun STM32 MicroMod Processor board.Chris Wilson
Signed-off-by: Chris Wilson <christopher.david.wilson@gmail.com>
2021-07-23extmod/nimble: Add "memory stalling" mechanism for l2cap_send.Jim Mussared
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.
2021-07-23extmod/nimble: Allow modbluetooth binding to hook "sent HCI packet".Jim Mussared
2021-07-23extmod/modbluetooth: Clamp MTU values to 32->UINT16_MAX.Jim Mussared
2021-07-23tools/mpremote: Raise OSError on unsupported RemoteFile.seek.Michel Bouwmans
Signed-off-by: Michel Bouwmans <m.bouwmans@ep-games.eu>
2021-07-23tools/mpremote: Add seek whence for mounted files.Michel Bouwmans
Fixes issue #7534. Signed-off-by: Michel Bouwmans <m.bouwmans@ep-games.eu>
2021-07-23py/runtime: Fix bool unary op for subclasses of native types.Jim Mussared
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.
2021-07-23minimal/Makefile: Add support for building with user C modules.Damien George
Fixes issue #5750. Signed-off-by: Damien George <damien@micropython.org>
2021-07-23stm32/boards/NUCLEO_F446RE: Enable CAN bus support.Sashkoiv
2021-07-22esp8266/Makefile: Add more libm files to build.Roberto Colistete Jr
Allows MICROPY_PY_MATH_SPECIAL_FUNCTIONS to be enabled, and for ulab to be built as a user C module.
2021-07-22tools/autobuild: Add FeatherS2 and TinyS2 to esp32 auto builds.Seon Rozenblum
2021-07-22tools/autobuild: Use separate IDF version to build newer esp32 SoCs.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-07-22docs/library/uasyncio.rst: Document stream readexactly() method.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-07-22samd: Add support for building with user C modules.Damien George
Fixes issue #7545. Signed-off-by: Damien George <damien@micropython.org>
2021-07-22stm32/sdram: Make SDRAM test cache aware, and optional failure with msg.iabdalkader
* 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).
2021-07-22esp32/mphalport: Always yield at least once in delay_ms.Damien George
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>
2021-07-22esp32/modmachine: Release the GIL in machine.idle().Damien George
So that other threads get a chance to run when taskYIELD() is called. See issue #5344. Signed-off-by: Damien George <damien@micropython.org>
2021-07-22stm32/systick: Always POLL_HOOK when delaying for milliseconds.Josh Lloyd
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.
2021-07-22docs/library/utime.rst: Clarify behaviour and precision of sleep ms/us.Damien George
This description is based on the existing bare-metal ports implementations. Signed-off-by: Damien George <damien@micropython.org>
2021-07-22extmod/utime: Always invoke mp_hal_delay_ms when >= to 0ms.Josh Lloyd
This makes sleep_ms(0) useful as a "yield" so event processing and thread switching can take place. Fixes issue #5345.
2021-07-20docs/rp2: Update general section to give a brief technical overview.NitiKaur
2021-07-20docs/rp2: Enhance quickref and change image to Pico pinout.NitiKaur
2021-07-19py/emitnative: Ensure stack settling is safe mid-branch.Jim Mussared
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>
2021-07-19py/emitnative: Reuse need_reg_all func in need_stack_settled.Damien George
To reduce code size and code duplication. Signed-off-by: Damien George <damien@micropython.org>
2021-07-19rp2/machine_spi: Allow boards to configure SPI pins using new macros.Mike Causer
2021-07-19rp2/machine_i2c: Allow boards to configure I2C pins using new macros.Mike Causer
2021-07-19rp2/machine_uart: Allow overriding default machine UART pins.iabdalkader
2021-07-19rp2/machine_uart: Add hardware flow control support.iabdalkader
2021-07-18tools/ci.sh: Build GENERIC_C3 board as part of esp32 CI.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-07-18esp32/boards/GENERIC_C3: Add generic C3-based board.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-07-18esp32: Add initial support for ESP32C3 SoCs.Damien George
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>
2021-07-18esp32: Fix use of mp_int_t, size_t and uintptr_t.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-07-18esp32/machine_i2s: Add MICROPY_PY_MACHINE_I2S option, enable by default.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-07-18esp32/machine_dac: Add MICROPY_PY_MACHINE_DAC option, enable by default.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2021-07-18nrf/modules: Replace master/slave with controller/peripheral in SPI.David P
Also remove mistaken usage of MASTER/SLAVE constants in comments.