| Age | Commit message (Collapse) | Author |
|
This fixes a bug introduced in 851ecb2da178fff0b60aefdb5af502f28787a7ec
Signed-off-by: Damien George <damien@micropython.org>
|
|
This fixes a bug introduced in a76604afba109d990e466cdcd5a69a82077a7f56
Signed-off-by: Damien George <damien@micropython.org>
|
|
|
|
|
|
For an extended state socket, if settimeout() is called before a NIC is
bound, save the timeout until the NIC is bound.
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
|
|
|
|
|
|
|
|
* Fix missing call to connect to configure module in AP mode.
* Use enum for config/connect args indices.
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
|
|
Allow cancellation of in-progress peripheral connections.
|
|
|
|
Don't force the 'HAL' string to be part of the platform string because
it doesn't have a sensible meaning for all possible platforms, and
swap it with the PLATFORM_ARCH string so the strings which most platforms
have come first.
|
|
|
|
Fixes issue #5882.
|
|
- Add WiFi/BT drivers for ublox Nina-W10 (esp32 based) module.
- Add ublox Nina-W10 Python module in extmod.
|
|
This was fixed in NimBLE 1.4.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
|
|
We're using the MicroPython fork of NimBLE, which on the
`micropython_1_4_0` branch re-adds support for 64-bit targets and fixes
initialisation of g_msys_pool_list.
Also updates modbluetooth_nimble.c to suit v1.4.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
|
|
This forwards through directly to the NimBLE and BTStack connect functions.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
|
|
Allows asyncio reading of sys.stdin when MICROPY_PY_USELECT is used in the
build configuration.
|
|
Fix identification of 32/64 bit and of the Windows platform and add a
platform string mimicking CPython for the latter.
|
|
It contains the compiler version, and underlying system HAL/SDK version.
|
|
MICROPY_PY_NETWORK and MICROPY_PY_USOCKET need to be enabled by a board to
get networking. No NICs have yet been defined.
|
|
|
|
This allows drivers to use mpbthciport functions to read/write/poll UART.
|
|
To simplify the socket state.
The CC3K driver (see drivers/cc3000/inc/socket.h and src/socket.c) has
socket() returning an INT16 so there is now enough room to store it
directly in the fileno member.
|
|
|
|
The network.STA_IF and network.AP_IF constants are now independent to the
CYW43_ITF_STA and CYW43_ITF_AP constants.
Signed-off-by: Damien George <damien@micropython.org>
|
|
So this network implementation becomes more generic.
|
|
Following other socket implementations.
|
|
|
|
|
|
So they can be used by other ports.
|
|
This commit refactors machine.PWM and creates extmod/machine_pwm.c. The
esp8266, esp32 and rp2 ports all use this and provide implementations of
the required PWM functionality. This helps to reduce code duplication and
keep the same Python API across ports.
This commit does not make any functional 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>
|
|
The zephyr port doesn't support SoftI2C so it's not enabled, and the legacy
I2C constructor check can be removed.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Otherwise the Python network object continues to report that it is
attempting to connect.
Also make the return error code consistent with wifi scan.
Signed-off-by: Damien George <damien@micropython.org>
|
|
This achieves a substantial performance improvement when rendering glyphs
to color displays, the benefit increasing proportional to the number of
pixels in the glyph.
|
|
This is a generic API for synchronously bit-banging data on a pin.
Initially this adds a single supported encoding, which supports controlling
WS2812 LEDs.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
|
|
This allows the write to trigger a notification or indication, but only to
subscribed clients. This is different to gatts_notify/gatts_indicate,
which will unconditionally notify/indicate.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
|
|
The correct callback-deregister functions must be called dependent on the
socket type, otherwise resources may not be freed correctly.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Optionally enabled via MICROPY_PY_UJSON_SEPARATORS. Enabled by default.
For dump, make sure mp_get_stream_raise is called after
mod_ujson_separators since CPython does it in this order (if both
separators and stream are invalid, separators will raise an exception
first).
Add separators argument in the docs as well.
Signed-off-by: Peter Züger <zueger.peter@icloud.com>
Signed-off-by: Damien George <damien@micropython.org>
|
|
Rudimentary support for various address families.
Signed-off-by: oclyke <oclyke@gmail.com>
|
|
When l2cap_send detects that the sys mempool is running low (used to store
the outgoing HCI payloads), it will report stalled back to the application,
and then only unstall once these HCI payloads have been sent.
This prevents a situation where a remote receiver with very large MTU can
cause NimBLE to queue up more than MYNEWT_VAL_MSYS_1_BLOCK_COUNT (i.e. 12)
payloads, causing further attempts to send to fail with ENOMEM (even though
the channel is not stalled and we have room in the channel mbufs). The
regular credit/stall flow control is not effective here because the
receiver's MTU is large enough that it will not activate (i.e. there are
lots of credits available).
Thresholds of 1/2 (stall) and 1/4 (unstall) chosen to allow headroom for
other payloads (e.g. notifications) and that when a regular stall occurs it
might keep sending (and creating more payloads) in the background.
|
|
|
|
|