- 29 Sep, 2023 29 commits
-
-
Jim Mussared authored
1. Remove the skip for detecting support for polling user-defined objects as this is always possible now on all ports. 2. Don't print when the scheduled task runs as the ordering of this relative to the other prints is dependent on other factors (e.g. if using the native emitter). This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
Jim Mussared authored
iobase_ioctl expects that an ioctl method must return an integer, and will raise otherwise. This was tripping up aioble on Unix, where the new hybrid modselect.c implementation will attempt to extract a file descriptor from the pollable via ioctl(MP_STREAM_GET_FILENO). However, ThreadSafeFlag's ioctl only supported MP_STREAM_POLL, and returned None otherwise. This makes it return `-1` (to match tests/extmod/select_poll_custom.py). It should probably be `-22` (corresponding to MP_EINVAL), but the value is never checked, and MP_EINVAL can be a different value on different ports. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
Thomas authored
Signed-off-by: Thomas <th.acker.0302@gmail.com>
-
Carlosgg authored
Update expired certificate, increase time validity period to five years and fix command arguments typos in commentaries. Signed-off-by: Carlos Gil <carlosgilglez@gmail.com>
-
iabdalkader authored
Changes are: - Disable internal flash storage and use the external QSPI for storage. - Disable default bootloader entry mode. The bootloader entry function exists in board_init.c. - Remove OSC enable/disable macros (this board doesn't have an OSC). Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-
Jim Mussared authored
This was previously hard-coded to "Micropy" / "Mass Storage" / "1.0". Now allow it to be overridden by a board. Also change "Micropy" to "MicroPy" and "1.0" to "1.00" to match stm32. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
Jim Mussared authored
This was previously hard-coded to "MicroPy" / "pyboard Flash" / "1.00". Now allow it to be overridden by a board. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
dotnfc authored
This allows the MicroPython task stack size to be overridden by the mpconfigboard.h settings. Signed-off-by: dotnfc <dotnfc@163.com>
-
Glenn Moloney authored
Add "CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y" to ports/esp32/boards/sdkconfig.base so that all micropython esp32 images support OTA rollback in the bootloader. These images can then be converted to OTA-capable images as required by user tools. Also remove CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y from board-specific sdkconfig files as this is now the default. Signed-off-by: Glenn Moloney <glenn.moloney@gmail.com>
-
Angus Gratton authored
At one point it was possible to internal_bench CPython vs MicroPython, but seemingly not any more. Signed-off-by: Angus Gratton <angus@redyak.com.au>
-
Angus Gratton authored
Signed-off-by: Angus Gratton <angus@redyak.com.au>
-
Felix Dörre authored
While cyw43 is deinitialized, an interrupt occurs. That is handled with these lines: ports/rp2/mpnetworkport.c#L59-L61 and as pendsv is disabled while in network code, the poll function then just waits there. When deinit has finished, the poll func is executed, but skipped: src/cyw43_ctrl.c#L222-L225 this skips the `CYW43_POST_POLL_HOOK` which would re-enable interrupts, but also reset `cyw43_has_pending`. And in that state, the lightsleep code, will skip sleeping as it thinks there is a network packet pending to be handled. With this change applied, lightsleep works as expected when the wifi chip is enabled, and when it's powered off.
-
Peter Harper authored
The DHCP server broadcasts messages. They are being sent via the default netif which might be completely the wrong network. We want to send messages to the netif we got the original message from. Original author: [Peter Harper](https://github.com/peterharperuk) Source: https://github.com/raspberrypi/pico-examples/pull/392Signed-off-by: Samveen <samveen@samveen.in>
-
Jos Verlinde authored
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
-
Jim Mussared authored
Defines the list of standard features and ensures that each board.json only uses those ones. This list can be extended, but needs to be a deliberate decision. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
Jim Mussared authored
Applies to newly-added ARDUINO_PORTENTA_C33 and UM_NANOS3. Makes the list match the standard features defined in 24a6e951. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
Jim Mussared authored
This was copied from minimal/mpconfigport.h, but it doesn't make sense for general ports. Add a comment to minimal/mpconfigport.h to explain why it specifically overrides it. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
Seon Rozenblum authored
Signed-off-by: Seon Rozenblum <seon@unexpectedmaker.com>
-
Jim Mussared authored
This was missed in 692d36d7. Probably never noticed because everything enables `MICROPY_GC_CONSERVATIVE_CLEAR`, but found via ASAN thanks to @gwangmu & @chibinz. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
Ihor Nehrutsa authored
Signed-off-by: Ihor Nehrutsa <Ihor.Nehrutsa@gmail.com>
-
Angus Gratton authored
This provides a way to build a non-DEBUG host binary that still has symbols and debug information. Document this for the unix port, and update a comment in the unix port Makefile. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
-
Damien George authored
To match the behaviour of the mbedtls implementation, and pass the ssl_basic.py test. 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
Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
The axtls bindings don't support this. Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
This test doesn't pass on builds with 30-bit floats (object repr C). Signed-off-by: Damien George <damien@micropython.org>
-
Jim Mussared authored
The PYBD_SF2 is right on the limit of being able to run this test and so it succeeds the first two cases and fails the next two with MemoryError. This causes it to SKIP, but that only works if it's the first thing printed. So reverse the order of the tests so it fails on the biggest one first. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
- 28 Sep, 2023 4 commits
-
-
Damien George authored
This was added by mistake in 9e0f934cSigned-off-by: Damien George <damien@micropython.org>
-
Damien George authored
This gets the calculation working properly for H5 MCUs, and fixes the switch statement to switch on csel&7 instead of csel&3. Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
The include of HAL headers should come after the HAL configuration defines, so that the headers can see whether the defines were made or not, to provide defaults and configure various things. Signed-off-by: Damien George <damien@micropython.org>
-
Rene Straub authored
Integrate DAC support for STM32H5. Implement STM32H5 GPDMA driver. The DMA driver is largely different from other STM32 variants. To support the DAC circular mode, memory based linked list DMA descriptors are used. Signed-off-by: Rene Straub <rene@see5.ch>
-
- 27 Sep, 2023 4 commits
-
-
Rene Straub authored
Changes are: - Run ADC on PCLK/16. - Verify and optimize timings (ADC_STAB_DELAY_US, ADC_SAMPLETIME_DEFAULT). - Add support for STM32H5 VBAT and COREVDD channels on ADC2. - Replace ADC constants in machine_adc_locals_dict_table. - Convert STM32 literal to channel numbers in adc_config_channel with corresponding STM32 LL library functions (__LL_ADC_IS_CHANNEL_INTERNAL(), __LL_ADC_CHANNEL_TO_DECIMAL_NB()). Reasoning for the second last point: the STM32 driver literals are uint32_t that don't work with MP_ROM_INT() which handles signed 31 bit integers only. Introduce enumerator machine_adc_internal_ch_t to define external channels (0..19), internal channels (256..) and the special channel VREF (0xffff). Values are converted to STM32 literals with adc_ll_channel() when required in adc_config_and_read_u16(). Signed-off-by: Rene Straub <rene@see5.ch>
-
Rene Straub authored
Signed-off-by: Rene Straub <rene@see5.ch>
-
Rene Straub authored
Select ADC instance based on pin information to support ADC2 inputs. Display ADC instance number similar to machine_adc (STM32H5 only): <ADC2 on Pin(Pin.cpu.F14, mode=Pin.ANALOG) channel=6> Signed-off-by: Rene Straub <rene@see5.ch>
-
Rene Straub authored
Fixed the preliminary STM32H5 ADC support for pyb.ADC: - Run ADC on PCLK/16. - Use STM32 ADC library channel literals (__HAL_ADC_DECIMAL_NB_TO_CHANNEL). - Use correct temperature conversion for H5 (30C, 130C calibration points). Signed-off-by: Rene Straub <rene@see5.ch>
-
- 21 Sep, 2023 1 commit
-
-
Luca Burelli authored
To simulate a partial erase, the code reads a native block, erases it, and writes back the data before and after the erased area. However, the current logic was filling the area after the erased block with data from the beginning of the native block-aligned data, instead of applying the proper offset. Fixes #12474. Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
-
- 20 Sep, 2023 2 commits
-
-
Damien George authored
If a board needs these outputs then it can define MICROPY_HW_CLK_PLLQ/R. It saves power to not enable them if they are not needed. Signed-off-by: Damien George <damien@micropython.org>
-
Angus Gratton authored
Supported from GCC 8 and up, and Compiler Explorer suggests it works as expected with Clang since 3.6 (2014). - Fixes situation where building embedded MicroPython with -O0 and MICROPY_NLR_X64 crashes at runtime (due to nlr_push pushing the frame pointer register EBP). Closes #12421. - Allows removing the macOS tweak to undo pushing EBP onto the stack in the generated function prelude. Signed-off-by: Angus Gratton <angus@redyak.com.au>
-