- 21 Dec, 2021 3 commits
-
-
Damien George authored
To improve coverage of mpz_cmp and mpn_cmp. Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
This commit makes sure that the value zero is always encoded in an mpz_t as neg=0 and len=0 (previously it was just len=0). This invariant is needed for some of the bitwise operations that operate on negative numbers, because they cannot handle -0. For example (-((1<<100)-(1<<100)))|1 was being computed as -65535, instead of 1. Fixes issue #8042. Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
These removed ones are either unused by MicroPython or provided by osapi.h in the SDK. In particular ets_delay_us() has different signatures for different versions of the SDK, so best to let it provide the declaration. Fixes issue #8095. Signed-off-by: Damien George <damien@micropython.org>
-
- 20 Dec, 2021 1 commit
-
-
Matt Trentini authored
Appears incorrectly as E407 in the download manager.
-
- 19 Dec, 2021 3 commits
-
-
iabdalkader authored
If ADCx pins are hidden, print an empty table to prevent linker errors.
-
iabdalkader authored
-
iabdalkader authored
The vfs flags could have any random value from stack. This bug was introduced back in 7723dac3
-
- 18 Dec, 2021 1 commit
-
-
Damien George authored
The mp_sys_path_obj and mp_sys_argv_obj objects are only used by the runtime and accessible from Python if MICROPY_PY_SYS is enabled. So exclude them from the runtime state if this option is disabled. Signed-off-by: Damien George <damien@micropython.org>
-
- 17 Dec, 2021 9 commits
-
-
Damien George authored
If MICROPY_PY_SYS_PATH_ARGV_DEFAULTS is enabled (which it is by default) then sys.path and sys.argv will be initialised and populated with default values. This keeps all bare-metal ports aligned. Signed-off-by: Damien George <damien@micropython.org>
-
Jim Mussared authored
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
Jim Mussared authored
Frozen modules will be searched preferentially, but gives the user the ability to override this behavior. This matches the previous behavior where "" was implicitly the frozen search path, but the frozen list was checked before the filesystem. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
Jim Mussared authored
This ensures MICROPY_QSTR_EXTRA_POOL and MICROPY_MODULE_FROZEN_MPY are set if necessary before the CFLAGS are extracted for QSTR generation. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
Jim Mussared authored
This changes makemanifest.py & mpy-tool.py to merge string and mpy names into the same list (now mp_frozen_names). The various paths for loading a frozen module (mp_find_frozen_module) and checking existence of a frozen module (mp_frozen_stat) use a common function that searches this list. In addition, the frozen lookup will now only take place if the path starts with ".frozen", which needs to be added to sys.path. This fixes issues #1804, #2322, #3509, #6419. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
Jim Mussared authored
Takes the functionality from tools/make-frozen.py, adds support for multiple frozen directories, and moves it to tools/makemanifest.py. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
Jim Mussared authored
These have been deprecated for over two years in favour of FROZEN_MANIFEST and manifest.py. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
Jim Mussared authored
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-
Jim Mussared authored
This feature is not enabled on any port, it's not in CPython's io module, and functionality is better suited to the micropython-lib implementation of pkg_resources.
-
- 15 Dec, 2021 9 commits
-
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-
Tomas Vanek authored
Default SPI pins are now correctly assigned by machine_hw_spi.c even for S2 and S3. mpconfigboard.h files define defaults with flipped SPI(1) and SPI(2) to workaround a bug in machine_hw_spi.c - the bug is fixed. Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
-
Tomas Vanek authored
Use IO_MUX pins as defined by ESP IDF in soc/esp32/include/soc/spi_pins.h ESP32S2 and S3 don't have IO_MUX pins for SPI3, GPIO matrix is always used. Choose suitable defaults for S2 and S3. ESP32C3 does not have SPI3 at all. Don't define pin mappings for it. Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
-
Tomas Vanek authored
Use IO_MUX pins as defined by ESP IDF in soc/esp32*/include/soc/spi_pins.h Alternatively use now deprecated HSPI_IOMUX_PIN_NUM_xxx (or FSPI_IOMUX_PIN_NUM_xxx for ESP32S2) for compatibility with IDF 4.2 and older. Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
-
Tomas Vanek authored
The index of machine_hw_spi_obj and machine_hw_spi_default_pins arrays is assigned to 0 for ARG_id==HSPI_HOST and 1 for another SPI. On ESP32S2 and S3 HSPI_HOST=2 so the first set (idx=0) of default pins is used for SPI(id=2) aka HSPI/SPI3 and the second set (idx=1) for SPI(id=1) aka FSPI/SPI2. This makes a misleading mess in MICROPY_HW_SPIxxxx definitions and it is also in contradiction to the comments around the definitions. Change the test of ARG_id to fix the order of machine_hw_spi_default_pins. This change might require adjusting MICROPY_HW_SPIxxxx definitions in mpconfigboard.h of S2/S3 based boards. Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
-
Tomas Vanek authored
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
-
Christian Decker authored
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-
- 14 Dec, 2021 12 commits
-
-
robert-hh authored
- Move the qspi_xxxx_flash_config.c files to hal. It turned out that they are less board than flash type specific. - Change to a common flexspi_flash_config.h header file.
-
robert-hh authored
Thanks for the hint, Damien. The DEBUG build got very large recently. The major difference is, that inline function are now inlined and not included as a function. That's good and maybe bad. The good thing is, that the code speed si now close to the final code. It could be worse in single step debugging. I'll see. Setting this option caused a new warning and a formatting error to pop up at different places. Fixed as well.
-
robert-hh authored
Otherwise, it get's in trouble with a Debugger. Reason to be found. Also: Increase code segment to 2 MB for the MIMXRT1050_EVK build.
-
robert-hh authored
The ID is read in a single function and used for: - machine.unique_id() - Ethernet MAC addresses. - ... That facilitates use of other MCU using a different access method for the ID (e.g. i.MX RT1176).
-
robert-hh authored
Just another choice for the PHY interface. Added: Keyword option phy_clock=LAN.IN or LAN.OUT to define the source of the 50MHZ clock for the PHY interface. The RMII clock is not enabled if it is generated by a PYH board. Constants: LAN.IN The clock is provided by the PHY board. LAN.OUT The clock is provided by the MCU board. The default is LAN.OUT or the value set in mpconfigboard.h, which is currently set to IN only for the SEEED ARCH MIX board. Usage etc: lan = LAN(phy_type=LAN.PHY_DP83848, phy_clock=LAN.IN)
-
robert-hh authored
This code line will hardly ever be compiled and executed, but since it is there, it must be correct.
-
robert-hh authored
The initial problem with a wrong ICMP checksum was caused by the test code setting a checksum and the HW taking that probably as the start value and ending up with 0xffff. With a checksum field of 0 set by the test code the HW creates the proper checksum.
-
robert-hh authored
Useful for boards without a PHY interface, where that has to be attached. Like the Seed ARCH MIX board or Vision SOM. Phy drivers supported so far are: - KSZ8081 - DP83825 - LAN8720 More to come. Usage e.g.: lan = LAN(phy_type=LAN.PHY_LAN8720, phy_addr=1) The default values are those set in mpconfigboard.h.
-
robert-hh authored
UART 0 is attached to the Debug USB port. The settings are 115200 Baud, 8N1. For MIMXRT1010_EVK this is identical to UART1. For the other boards, this is an additional UART.
-
iabdalkader authored
* Fix missing call to connect to configure module in AP mode. * Use enum for config/connect args indices.
-
iabdalkader authored
The pico-sdk 1.3.0 update in 97a7cc24 introduced a change that broke RP2 Bluetooth UART, and possibly UART in general, which stops working right after UART is initialized. The commit raspberrypi/pico-sdk@2622e9b enables the UART receive timeout (RTIM) IRQ, which is asserted when the receive FIFO is not empty, and no more characters are received for a period of time. This commit makes sure the RTIM IRQ is handled and cleared in uart_service_interrupt.
-
Damien George authored
Following on from a previous fix for the same problem made in 3a431fba. Fixes issue #8052. Signed-off-by: Damien George <damien@micropython.org>
-
- 13 Dec, 2021 2 commits
-
-
Damien George authored
The current ST HAL does not support reading the extended CSD so cannot correctly detect the capacity of high-capacity cards. As a workaround, the capacity can be forced via the MICROPY_HW_MMCARD_LOG_BLOCK_NBR config option. Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-