| Age | Commit message (Collapse) | Author |
|
It's no longer needed because this macro is now processed after
preprocessing the source code via cpp (in the qstr extraction stage), which
means unused MP_REGISTER_MODULE's are filtered out by the preprocessor.
Signed-off-by: Damien George <damien@micropython.org>
|
|
This cleans up the parsing of MP_REGISTER_MODULE() and generation of
genhdr/moduledefs.h so that it uses the same process as compressed error
string messages, using the output of qstr extraction.
This makes sure all MP_REGISTER_MODULE()'s that are part of the build are
correctly picked up. Previously the extraction would miss some (eg if you
had a mod.c file in the board directory for an stm32 board).
Build speed is more or less unchanged.
Thanks to @stinos for the ports/windows/msvc/genhdr.targets changes.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
This gives more information to the user when doing updates from SPI flash.
Signed-off-by: Damien George <damien@micropython.org>
|
|
The following changes are made:
- Use software SPI for external SPI flash access when building mboot.
- Enable the mboot filesystem-loading feature, with FAT FS support.
- Increase the frequency of the CPU when in mboot to 96MHz, to increase the
speed of SPI flash accesses and programming.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
This allows a board to modify initial_r0 if needed.
Also make default board behaviour functions always available, named as
mboot_get_reset_mode_default and mboot_state_change_default.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
In case the elements should not be passed directly to machine.bootloader.
Signed-off-by: Damien George <damien@micropython.org>
|
|
This was missed in b2deea67628b7069ed4e5d0cde84005738463514
Signed-off-by: Damien George <damien@micropython.org>
|
|
And allow it to be configured externally, if needed.
Signed-off-by: Damien George <damien@micropython.org>
|
|
|
|
I2C transfers are much more efficient if they are combined, instead of
doing separate writes and reads.
Fixes issue #7134.
Signed-off-by: Damien George <damien@micropython.org>
|
|
This option is useful for ports where it's more efficient to do a full I2C
transfer in one go.
Signed-off-by: Damien George <damien@micropython.org>
|
|
|
|
|
|
The procedure given here will work whether or not the DevKit motherboard is
used and is equipped with the support MCU. It is laborious but works.
|
|
This shortens the quickref. Also change the note about the hardware SPI
frequeny limits.
|
|
|
|
And make it so this test can run on any target.
LED and time testing has been removed from this test, that can now be
tested using: ./run-tests.py --via-mpy --emit native.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
This allows mpy-cross to dynamically select whether ARMv7-M float
instructions are supported in @micropython.asm_thumb functions.
Signed-off-by: Damien George <damien@micropython.org>
|
|
This follows on from a5324a10747dfba921bb363ed904f05ebb6de010 and allows
mpy-cross to dynamically select whether ARMv7-M instructions are supported
in @micropython.asm_thumb functions.
The config option MICROPY_EMIT_INLINE_THUMB_ARMV7M is no longer needed, it
is now controlled by MICROPY_EMIT_THUMB_ARMV7M.
Signed-off-by: Damien George <damien@micropython.org>
|
|
This was removed in c49d5207e9437755be364639632be31c001955a8
Signed-off-by: Damien George <damien@micropython.org>
|
|
|
|
|
|
* Firmware 1.5.0 introduces a new BSD-like sockets ABI,
which improves the integration with MicroPython.
|
|
|
|
* Internal errno can't be used with Nina module due to an issue
with esp-idf config.
|
|
|
|
|
|
For ports with MICROPY_VFS and MICROPY_PY_IO enabled their configuration
can now be simplified to use the defaults for mp_import_stat and
mp_builtin_open.
This commit makes no functional change, except for the following minor
points:
- the built-in "open" is removed from the minimal port (it previously did
nothing)
- the duplicate built-in "input" is removed from the esp32 port
- qemu-arm now delegates to VFS import/open
Signed-off-by: Damien George <damien@micropython.org>
|
|
The following changes are made:
- If MICROPY_VFS is enabled then mp_vfs_import_stat and mp_vfs_open are
automatically used for mp_import_stat and mp_builtin_open respectively.
- If MICROPY_PY_IO is enabled then "open" is automatically included in the
set of builtins, and points to mp_builtin_open_obj.
This helps to clean up and simplify the most common port configuration.
Signed-off-by: Damien George <damien@micropython.org>
|
|
This reverts commit 2668337f36deef7fdd97f35e2efc68a5d2102192.
The issue with potential breaking of the BLE RX path in the radio is fixed
since WS v1.12.0.
Signed-off-by: Damien George <damien@micropython.org>
|
|
|
|
|
|
|
|
Add support for the special sockopt 20.
|
|
|
|
Drivers should ensure a positive errcode is returned from read/write.
|
|
Bind socket to default NIC if setsockopt is called before the socket is
bound, to allow setting SO_REUSEADDR before calling socket_bind().
Fixes issue #8653.
|
|
New sockets should return HUP and WR when polled, following modlwip.
|
|
Fix the issue that umachine is not available.
Signed-off-by: Takeo Takahashi <takeo.takahashi.xv@renesas.com>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
This allows running the test on boards with just a LAN interface.
Fixes issue #8681.
|
|
If a port is not using internal error numbers, which match both lwIP and
Linux error numbers, ENTOCONN from standard libraries errno.h equals 128,
not 107.
|
|
The password was not being set when running in foreground mode. Duplicate
code has been removed.
|