| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
Closes #1483
|
|
|
|
|
|
|
|
This also changes the build script to python with better output.
|
|
|
|
This started while adding USB MIDI support (and descriptor support is
in this change.) When seeing that I'd have to implement the MIDI class
logic twice, once for atmel-samd and once for nrf, I decided to refactor
the USB stack so its shared across ports. This has led to a number of
changes that remove items from the ports folder and move them into
supervisor.
Furthermore, we had external SPI flash support for nrf pending so I
factored out the connection between the usb stack and the flash API as
well. This PR also includes the QSPI support for nRF.
|
|
|
|
|
|
|
|
|
|
|
|
Fixes and translate more strings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
It's a core feature, in particular required for user-streams with uasyncio.
|
|
This calls finalisers of things like files and sockets to cleanly close
them.
|
|
|
|
circuitpython-nickzoic-716-pulseio-esp8266
|
|
|
|
Add stub for common_hal_pulseio_pulsein_get_paused to make ESP8266 build compatible with PR #901
|
|
Switch to ets_delay_us but the PWM is still way too slow to be useful.
|
|
|
|
|
|
|
|
They are now efficient (in runtime performance) and provide a useful
feature that's hard to obtain without them enabled.
See issue #3644 and PR #3826 for background.
|
|
So they don't clash with other VFS implementations.
|
|
It should be up to the user if they want to print the new time out or not.
Fixes issue #3766.
|
|
|
|
This patch makes it so that UART(0) can by dynamically attached to and
detached from the REPL by using the uos.dupterm function. Since WebREPL
uses dupterm slot 0 the UART uses dupterm slot 1 (a slot which is newly
introduced by this patch). UART(0) must now be attached manually in
boot.py (or otherwise) and inisetup.py is changed to provide code to do
this. For example, to attach use:
import uos, machine
uart = machine.UART(0, 115200)
uos.dupterm(uart, 1)
and to detach use:
uos.dupterm(None, 1)
When attached, all incoming chars on UART(0) go straight to stdin so
uart.read() will always return None. Use sys.stdin.read() if it's needed
to read characters from the UART(0) while it's also used for the REPL (or
detach, read, then reattach). When detached the UART(0) can be used for
other purposes.
If there are no objects in any of the dupterm slots when the REPL is
started (on hard or soft reset) then UART(0) is automatically attached.
Without this, the only way to recover a board without a REPL would be to
completely erase and reflash (which would install the default boot.py which
attaches the REPL).
|
|
I2C costs about 3000 bytes of code, and SPI costs about 4400 bytes.
|
|
Instead of crashing due to out-of-bounds array access. Fixes #3348.
|
|
Instead of crashing due to NULL pointer dereference. Fixes issue #3341.
|
|
To make it easier/simpler to write code that can run under both CPython and
on an ESP8266 board.
|
|
fix compile error
|
|
this renames symbols in modutime.c so that it no longer conflicts with
the time module. This commit does not enable the utime module; it
simply makes it easier for a local developer to do so.
|
|
esp8266/modnetwork: Allow to get ESSID of AP that STA is connected to.
|
|
This patch enables iface.config('essid') to work for both AP and STA
interfaces.
(cherry picked from commit d8fdb77ac91b578d851b873a004b530b42313cf1)
|
|
in recent circuitpython builds, `ubinascii` is available as
`binascii`. This modifies `modules/inisetup.py` to use the same
import semantics as `modules/websocket_helper.py`: first try importing
`ubinascii`, and if that fails, fall back to importing `binascii`.
Closes adafruit/circuitpython#795
|
|
This commit replaces the literal calls to `esptool.py` with the
`$(ESPTOOL)` Makefile variable. This allows one to set the esptool
invocation on the Make command line:
make ESPTOOL="python2 $(which esptool.py)"
(or via the environment, an include file, etc)
Closes #793
|
|
Disabling this saves around 6000 bytes of code space and gets the 512k
build fitting in the available flash again (it increased lately due to an
increase in the size of the ESP8266 SDK).
|