summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
2022-02-04stm32/system_stm32: Make SystemClock_Config() a weak symbol.Peter D. Gray
This allows boards to override as needed.
2022-02-04stm32/boards/NUCLEO_WL55: Add new board definition.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-02-04stm32: Add initial support for STM32WL MCUs.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-02-04stm32/Makefile: Make stm32lib configurable.Damien George
The default stm32lib remains lib/stm32lib, but it can now be easily overriden at build time by specifying STM32LIB_DIR, or STM32LIB_CMSIS_DIR and STM32LIB_HAL_DIR. Signed-off-by: Damien George <damien@micropython.org>
2022-02-04stm32/rtc: Use LL_RTC functions to simplify some MCU-specific code.Damien George
This also fixes a possible race condition when exiting initialisation mode: reading then writing to ISR (via ISR &= ~RTC_ISR_INIT) will clear any flags that were set by the hardware between the read and the write. The correct way to clear just the INIT bit is to just do a single write via ISR = ~RTC_ISR_INIT, which will not clear any other flags (they must be written to 0 to clear), and that is exactly what LL_RTC_DisableInitMode does. Signed-off-by: Damien George <damien@micropython.org>
2022-02-03stm32/mboot: Add support for F469/479 MCUs in fwupdate.py.Damien George
And don't assert on the sector number in sector_erase, so it can support erasing arbitrary sectors. Signed-off-by: Damien George <damien@micropython.org>
2022-02-03stm32/mboot: Add MBOOT_BOARD_ENTRY_INIT for a board to add entry code.Damien George
Also change the signature of stm32_main to uint32_t, which is what it should be. Signed-off-by: Damien George <damien@micropython.org>
2022-02-03stm32/mboot: Allow HSI to be used as the main clock source.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-02-03ports: Consolidate inclusion of umachine module in built-ins.Damien George
The inclusion of `umachine` in the list of built-in modules is now done centrally in py/objmodule.c. Enabling MICROPY_PY_MACHINE will include this module. As part of this, all ports now have `umachine` as the core module name (previously some had only `machine` as the name). Signed-off-by: Damien George <damien@micropython.org>
2022-02-02tools/autobuild: Provide .uf2 images for esp32 builds when available.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-02-02esp32: Create .uf2 binaries for S2 and S3 chips.Damien George
The name of the filesystem partition is updated to support "ffat", as used by TinyUF2. Signed-off-by: Damien George <damien@micropython.org>
2022-02-02tools/uf2conv.py: Update to latest version.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-02-02top: Update .git-blame-ignore-revs for latest Black formatting commits.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-02-02all: Update Python formatting to latest Black version 22.1.0.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-02-02docs: Remove reference to obsolete neopixel_write function.Damien George
It has been replaced by machine.bitstream. Signed-off-by: Damien George <damien@micropython.org>
2022-02-02esp32: Remove unneeded modesp.h.Damien George
Made redundant by 71f4faac2732d932dcc03bdbc9f80434e5757edb Signed-off-by: Damien George <damien@micropython.org>
2022-02-02esp32/adc: Fix wrong mapping between ADC2 channel and GPIO number.Emil Kondayan
According to the IO_MUX table in the ESP32 datasheet, the ADC2 channels are mapped to different GPIO numbers.
2022-02-02esp32/main: Automatically size SPIRAM heap when allocated using malloc.Michael O'Cleirigh
This change allows the same heap allocation rules to be used when using malloc regardless if the board has SPRAM or normal RAM. Integrating with the esp32-camera for example requires that ESP32 SPRAM be allocatable using the esp-idf capabilities aware allocation functions. In the case of esp32-camera it's for the framebuffer. Detect when CONFIG_SPIRAM_USE_MALLOC is in use and use the standard automatic configuration of leaving 1/2 of the SPRAM available to other FreeRTOS tasks.
2022-02-01esp32/esp32_rmt: Select correct last RMT channel on S2, S3, C3 variants.Damien George
For example the ESP32-C3 has 2 TX channels and 2 RX channels in total, and in this case channel 1 must be the default for bitstream. Signed-off-by: Damien George <damien@micropython.org>
2022-02-01esp32/machine_pwm: Clean up macro names and their use.IhorNehrutsa
- Remove UI_RES_SHIFT macro. - Rename PWFREQ to PWM_FREQ. - Rename PWRES to PWM_RES_10_BIT. - Use UI_RES_16_BIT flag instead of HIGHEST_PWM_RES.
2022-02-01esp32/machine_pwm: Fix PWM not allowing frequencies < 611 Hz.IhorNehrutsa
Fixes issue #8189.
2022-02-01gitmodules: Update branch for stm32lib submodule.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-02-01stm32: Add support for G4 MCUs, and add NUCLEO_G474RE board defn.Herwin Grobben
This commit adds support for the STM32G4 series of MCUs, and a board definition for NUCLEO_G474RE. This board has the REPL on LPUART1 which is connected to the on-board ST-link USB-UART.
2022-01-31stm32/mboot: Compute and check CRC32 of dfu file in fwupdate.py.Damien George
Signed-off-by: Damien George <damien@micropython.org>