- 08 Jul, 2021 3 commits
-
-
Damien George authored
To reduce code duplication. Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
To reduce the number of calls to mp_hal_stdout_tx_strn and improve the overall throughput of printing data. This implementation is taken from ports/stm32/mphalport.c. Signed-off-by: Damien George <damien@micropython.org>
-
Bryan Tong Minh authored
Uses the same logic applied in 5b57ae98 to determine when to add .exe. See related: #3310, #3361, #3370, #4143, #5727.
-
- 07 Jul, 2021 1 commit
-
-
finefoot authored
For some boards, even -fm dio is too fast and they require -fm dout. This commit links to the esptool wiki about available flash modes and changes dio to dout.
-
- 06 Jul, 2021 2 commits
-
-
David Lechner authored
This test snuck through without proper formatting and is causing CI for other unrelated changes to fail. Signed-off-by: David Lechner <david@pybricks.com>
-
Tom McDermott authored
And also add a test to capture the CPython difference.
-
- 05 Jul, 2021 7 commits
-
-
David Lechner authored
This adds the --tags argument to the git describe command that is used to define the MICROPY_GIT_TAG macro. This makes it match non-annotated tags. This is useful for MicroPython derivatives that don't use annotated tags. Signed-off-by: David Lechner <david@pybricks.com>
-
Julia authored
Adds support for hardware SPI to the zephyr port. Consistent with other ports, such as rp2 and stm32, we only implement the SPI protocol functions (init and transfer). Explicit sck/mosi/miso selection is not supported and new SPI instances are initialized with default values.
-
Mike Teachman authored
This commit adds I2S protocol support for the esp32 and stm32 ports, via a new machine.I2S class. It builds on the stm32 work of blmorris, #1361. Features include: - a consistent I2S API across the esp32 and stm32 ports - I2S configurations supported: - master transmit and master receive - 16-bit and 32-bit sample sizes - mono and stereo formats - sampling frequency - 3 modes of operation: - blocking - non-blocking with callback - uasyncio - internal ring buffer size can be tuned - documentation for Pyboards and esp32-based boards - tested on the following development boards: - Pyboard D SF2W - Pyboard V1.1 - ESP32 with SPIRAM - ESP32 Signed-off-by: Mike Teachman <mike.teachman@gmail.com>
-
Damien George authored
These warnings appear with GCC 11. Keep them as warnings but not as compiler errors so they can be dealt with properly in the future. Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
The ADC_FIRST_GPIO_CHANNEL and ADC_LAST_GPIO_CHANNEL macros are no longer needed. Instead the pin_adcX table (X = 1, 2, 3) is now generated to be the exact size needed for a given MCU, and MP_ARRAY_SIZE(pin_adcX) is used to determine the upper bound. This commit also allows CPU pins to be excluded from ADC configuration if they are hidden by prefixing their name with a "-". Signed-off-by: Damien George <damien@micropython.org>
-
- 02 Jul, 2021 4 commits
-
-
iabdalkader authored
-
iabdalkader authored
* Modify common functions in adc.c to accept ADC handle. * Most external channels are connected to ADC12 which is used by default. * For ADCAll (internal channels) ADC3 is used instead. * Issue #4435 is possibly related (at least partially fixed).
-
Andrew Scheller authored
Fixes issue #7481.
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-
- 01 Jul, 2021 8 commits
-
-
Jonathan Hogg authored
Add new API for specifying the idle level and TX carrier output level, and new write_pulses modes of operation. Also fix wait_done documentation which was inverted and wrong about timing.
-
Jonathan Hogg authored
This change allows specification of the idle level and TX carrier output level (through changed initialisation API), and more flexible specification of pulses for write_pulses. This is a breaking change for the esp32.RMT constructor API. Previous code of this form: esp32.RMT(..., carrier_duty_percent=D, carrier_freq=F) will now raise an exception and should be changed to: esp32.RMT(..., tx_carrier=(F, D, 1))
-
David Lechner authored
This extends pretty-printing of OSError's to handle two arguments when the exception name is known. Signed-off-by: David Lechner <david@pybricks.com>
-
Frank Pilhofer authored
Leaves the default as-is, but allows using --no-soft-reset to disable the soft reset when connecting.
-
robert-hh authored
The firmware for Teensy 4.0, Teensy 4.1 and MIMXRT1020_EVK are created. Users of other MIMXRT10xx_EVK boards should be able to build the firmware themselves, they might need specific DEBUG settings. The Makefile had to be changed in order to build the .bin file as well.
-
David Lechner authored
This adds a call to mp_deinit() in the main function of the STM32 port. This enables the use of MICROPY_PORT_DEINIT_FUNC on that port, as well as cleaning up the GIL if threading is enabled.
-
iabdalkader authored
Fixes issue #5619.
-
iabdalkader authored
Follow up to a96afae9
-
- 30 Jun, 2021 1 commit
-
-
Damien George authored
Previous behaviour was: if boot.py had an exception then main.py would still run, which is arguably unexpected behaviour. This commit changes the behaviour so main.py is not run if boot.py has an error. Signed-off-by: Damien George <damien@micropython.org>
-
- 27 Jun, 2021 1 commit
-
-
Yonatan Goldschmidt authored
-
- 26 Jun, 2021 9 commits
-
-
Damien George authored
Currently when using uasyncio.start_server() the socket configuration is done inside a uasyncio.create_task() background function. If the address and port are already in use however this throws an OSError which cannot be cleanly caught behind the create_task(). This commit moves the getaddrinfo and socket binding to the start_server() function, and only creates the task if that succeeds. This means that any OSError from the initial socket configuration is propagated directly up the call stack, compatible with CPython behaviour. See #7444. Signed-off-by: Damien George <damien@micropython.org>
-
robert-hh authored
Mostly for compatibility reasons: - idle() - disable_irq() - enable_irq() - time_pulse_us()
-
robert-hh authored
-
robert-hh authored
-
robert-hh authored
See related #7379.
-
robert-hh authored
This avoids the irritation of the PJRC HalfKay loader on Teensy 4.0. Block 0 and 1 are properly erased and the additional formatting in the make script is not required anymore.
-
robert-hh authored
-
robert-hh authored
This class supports SPI bus controller mode, with blocking transfers. SPI device numbers start at 0, to comply with the pinout of the Teensy boards. With the configured clock frequency the fastest baud rate is 33MHz. For messages longer 16 bytes DMA is used. The class uses the existing framework with extmod/machine_spi.c. Extended driver options: - drive=n with n being between 1 and 6 or PIN.POWER_1 to PIN.POWER_6. Since the pins used by the SPI are fixed, no Pin settings can be made. Thus the drive option is added allowing to control ringing and crosstalk on the connection. - gap_ns=nnnnn is the time between sent data items in a frame given in ns. Default is 2 clock cycles.
-
Damien George authored
Coverage calculated by Codecov has the same reliability/deterministic issues as Coveralls did, so the problem is likely to do with the output of lcov/gcov, rather than the analysis and display of the data. Switch from lcov to gcov for data generation to try and simplify this process of computing coverage. Signed-off-by: Damien George <damien@micropython.org>
-
- 25 Jun, 2021 4 commits
-
-
Damien George authored
As discussed in #7455, Coveralls doesn't work properly anymore, it has many spurious errors with reduced coverage. Signed-off-by: Damien George <damien@micropython.org>
-
Jonathan Hogg authored
When looping, now disable the TX interrupt after calling rmt_write_items() function to handle change in IDF behaviour (since v4.1). Also check length of pulses to ensure it fits hardware limit. Fixes issue #7403.
-
Damien George authored
This helps the test pass on systems with an inaccurate sleep time. Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-