| Age | Commit message (Collapse) | Author |
|
Add a new function to control whether held pins will retain their function
through deep-sleep.
Also document this function and explain how to use this in quickref to
retain pin configuration during deep-sleep.
|
|
The current pull=Pin.PULL_HOLD argument doesn't make a lot of sense in the
context of what it actually does vs what the ESP32 quickref document says
it does.
This commit removes PULL_HOLD and adds a new hold=True|False keyword
argument to Pin()/Pin.init(). Setting this to True will cause the ESP32 to
lock the configuration of the pin – including direction, output value,
drive strength, pull-up/-down – such that it can't be accidentally changed
and will be retained through a watchdog or internal reset.
Fixes issue #8283, and see also #8284.
|
|
This attempts to better explain how pull-ups and pull-downs operate in
deep-sleep mode.
|
|
Signed-off-by: Peter Züger <zueger.peter@icloud.com>
|
|
According to the C standard the free(void *ptr) function: if ptr is a null
pointer, no action occurs.
Signed-off-by: Peter Züger <zueger.peter@icloud.com>
|
|
Following on from 35e70c1698047170f9fb8b1edc65a7f7125f267f.
Fixes issue #8390.
|
|
Fixes issue #8402.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Otherwise a repeated sub/split will continue to match ^ to the start of
that search.
Signed-off-by: Damien George <damien@micropython.org>
|
|
The bytecode state variables mp_showbc_code_start and mp_showbc_constants
have been removed and made local variables passed into the various
functions.
As part of this, the DECODE_PTR macro is fixed so it extracts the relevant
pointer from the child_table (a regression introduced in
f2040bfc7ee033e48acef9f289790f3b4e6b74e5).
Signed-off-by: Damien George <damien@micropython.org>
|
|
This means that all constants for EMIT_ARG(load_const_obj, obj) are created
in the parser (rather than some in the compiler).
Signed-off-by: Damien George <damien@micropython.org>
|
|
Instead of as an intermediate qstr, which may unnecessarily intern the data
of the bytes object.
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 change is a no-op in terms of functionality.
Signed-off-by: Damien George <damien@micropython.org>
|
|
This change is a no-op in terms of functionality.
Signed-off-by: Damien George <damien@micropython.org>
|
|
This allows customising the REPL prompt strings.
Signed-off-by: Damien George <damien@micropython.org>
|
|
With behaviour as per CPython.
Signed-off-by: Damien George <damien@micropython.org>
|
|
To be enabled when needed by specific sys attributes.
Signed-off-by: Damien George <damien@micropython.org>
|
|
This commit adds generic support for mutable module attributes on built in
modules, by adding support for an optional hook function for module
attribute lookup. If a module wants to support additional attribute load/
store/delete (beyond what is in the constant, globals dict) then it should
add at the very end of its globals dict MP_MODULE_ATTR_DELEGATION_ENTRY().
This should point to a custom function which will handle any additional
attributes.
The mp_module_generic_attr() function is provided as a helper function for
additional attributes: it requires an array of qstrs (terminated in
MP_QSTRnull) and a corresponding array of objects (with a 1-1 mapping
between qstrs and objects). If the qstr is found in the array then the
corresponding object is loaded/stored/deleted.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Following the unix port.
Signed-off-by: Damien George <damien@micropython.org>
|
|
All variants now use extmod/moduos.c as their uos module implementation.
In particular this means they all have MICROPY_VFS enabled and use VfsPosix
for their filesystem.
As part of this, the available functions in uos become more consistent with
other ports:
- coverage variant gets uos.urandom
- minimal and standard variant get: unlink, chdir, getcwd, listdir
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>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
This also adds uos.unlink(), for all ports that use extmod/moduos.c.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Based on the rp2 port version, with the rp2 port converted to use this
module.
Signed-off-by: Damien George <damien@micropython.org>
|
|
It is currently not enabled by default on any board.
|
|
From RFC 1950 section 2.2: "CINFO is the base-2 logarithm of the LZ77
window size, minus eight (CINFO=7 indicates a 32K window size)"
Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
|
|
Ensure the symmetry of PWM: the duty rate of X and Q channels was not 50%,
when it should have been. That is evident at high frequencies, like 15Mhz
or 37.5 MHz. At low frequencies the deviation mattered less. The A/B
channels were fine.
Also round up or down non-integer division factors. Before, always the
floor value was used.
|
|
That caused Ethernet to lock up at high data rates after ~200MByte data
average in a row. Tested now with data bursts up to 10 GByte and overall
data rates of ~8MByte/s at the Eth100 port.
|
|
If the board directory contains a manifest.py file, it will be included.
File not found errors will be ignored.
|
|
Teensy 4.1 used different pins for SPI1 than Teensy 4.0, which made the
boards unnecessarily different.
|
|
Sometimes frames could not be sent immediately because the controller was
still busy with previous frames. Then, an error was returned to lwip.
This fix adds a limited number of retries for this busy state, waiting
100µs before the next attempt. Typically the transmit succeeds now at the
second attempt.
Second change: Reset the controller for a clean state after soft reset.
|
|
OCOTP_Init() has been removed from mphalport.c. The library files are
missing for the MIMXRT1015, and for just reading the OCOTP the Init is not
required.
|
|
The method was changed, but not for the CSx pins. No functional change.
|
|
Updated DRIVE_x constants representing pin drive strength.
Signed-off-by: Philipp Ebensberger
|
|
Update documents with new common names for the drive strength constants.
|
|
Add brief documentation of the new `drive` keyword argument.
|
|
Add support for configuring drive strength of output pins with `drive`
keyword argument and `DRIVE_*` constants.
|
|
To not rely on sets, which are an optional feature.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
The .hex file contains more information than .bin, useful for flashing.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Updates the Zephyr port build instructions and CI to use the latest
Zephyr release tag.
Signed-off-by: Maureen Helm <maureen.helm@intel.com>
|
|
The disk_access header was moved to a different path in Zephyr v2.6.0.
The old path was deprecated for two releases (v2.6.0 and v2.7.0) and
will no longer be supported after Zephyr v2.7.0.
Signed-off-by: Maureen Helm <maureen.helm@intel.com>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|