Damien George
0256e1ab8b
tools/autobuild: Use separate IDF version to build newer esp32 SoCs.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-07-22 22:42:37 +10:00
Damien George
7f69246895
docs/library/uasyncio.rst: Document stream readexactly() method.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-07-22 22:39:04 +10:00
Damien George
a5ac3d5645
samd: Add support for building with user C modules.
...
Fixes issue #7545 .
Signed-off-by: Damien George <damien@micropython.org>
2021-07-22 22:22:03 +10:00
iabdalkader
7649f5fbd2
stm32/sdram: Make SDRAM test cache aware, and optional failure with msg.
...
* Make SDRAM test cache-aware for newer MCUs.
* Use the defined data bus width (instead of the fixed 8-bits).
* Allow optional failure on error with verbose error messages.
* Test speed is now inverted (test accepts exhaustive instead fast).
2021-07-22 16:47:49 +10:00
Jeff Epler
02b094b638
make translate
2021-07-21 19:38:58 -05:00
Scott Shawcroft
f84cb94819
Remove OSError(0) and old network modules
...
The newer modules are `socketpool` and `ssl`.
Fixes #3924 , related to #2021 , closes #1880 , closes #2273 , closes #2274
2021-07-21 17:33:40 -07:00
Dan Halbert
10645bf538
Merge pull request #5035 from tannewt/correct_a2040_flash
...
Fix Arduino RP2040 flash size
7.0.0-alpha.5
2021-07-21 15:53:50 -04:00
Scott Shawcroft
109bd2886b
Fix Arduino RP2040 flash size
...
For RP2040 boards, we now change the default flash size based on
the configured flash. We will still try to read the size from the
flash first.
Fixes #4874
2021-07-21 11:02:55 -07:00
Scott Shawcroft
8723a0335f
Merge pull request #5032 from DavePutz/multi_pulseout
...
Moved global variables to support multiple RP2040 PulseOuts
2021-07-21 10:26:17 -07:00
Dan Halbert
626b06f8a7
Merge pull request #5031 from dhalbert/keymatrix-scan-false-readings
...
Make KeyMatrix row output switch faster
2021-07-21 12:03:17 -04:00
Scott Shawcroft
e14923028f
Merge pull request #5030 from dhalbert/update-to-raspberrypi-pico-sdk-1.2.0
...
Update pico-sdk to 1.2.0, using raspberrypi repo
2021-07-21 08:14:13 -07:00
root
b2d6203c63
fix formatting
2021-07-21 10:05:09 -05:00
root
0559fcd1c0
Moved global variables to support multiple PulseOuts
2021-07-21 09:52:17 -05:00
Damien George
6214fa3f9e
esp32/mphalport: Always yield at least once in delay_ms.
...
This helps the OS switch to and give other threads processing time during
the sleep. It also ensures that pending events are handled, even when
sleeping for 0ms.
Fixes issue #5344 .
Signed-off-by: Damien George <damien@micropython.org>
2021-07-22 00:20:53 +10:00
Damien George
2cfbe5bc0f
esp32/modmachine: Release the GIL in machine.idle().
...
So that other threads get a chance to run when taskYIELD() is called.
See issue #5344 .
Signed-off-by: Damien George <damien@micropython.org>
2021-07-22 00:17:59 +10:00
Josh Lloyd
6bc50c4fa9
stm32/systick: Always POLL_HOOK when delaying for milliseconds.
...
Call MICROPY_EVENT_POLL_HOOK even on very short delays so that busy loops
that call sleep_ms still yield to events and other threads.
See related issue #5344 .
2021-07-22 00:15:36 +10:00
Damien George
a5221c47eb
docs/library/utime.rst: Clarify behaviour and precision of sleep ms/us.
...
This description is based on the existing bare-metal ports implementations.
Signed-off-by: Damien George <damien@micropython.org>
2021-07-22 00:07:37 +10:00
Josh Lloyd
db6d60b079
extmod/utime: Always invoke mp_hal_delay_ms when >= to 0ms.
...
This makes sleep_ms(0) useful as a "yield" so event processing and thread
switching can take place.
Fixes issue #5345 .
2021-07-22 00:05:17 +10:00
Dan Halbert
f1d2eee58f
Make KeyMatrix row output switch faster
2021-07-21 09:08:32 -04:00
Jeff Epler
9c38fb4377
Merge pull request #5029 from weblate/weblate-circuitpython-main
...
Translations update from Weblate
2021-07-21 07:52:48 -05:00
Hosted Weblate
1e9789f29d
Merge remote-tracking branch 'origin/main' into main
2021-07-21 05:07:05 +02:00
microDev
8386b77194
Merge pull request #5027 from tannewt/main_s3
...
Only push `main` builds to S3
2021-07-21 08:36:59 +05:30
Hosted Weblate
cca9ce74c4
Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2021-07-21 05:05:05 +02:00
microDev
68070318f0
Merge pull request #5026 from tannewt/samd_uart
...
Fix crash when UART construct fails
2021-07-21 08:34:50 +05:30
Jeff Epler
7dfb999391
_typing: ulab.ndarray is moving
2021-07-20 19:49:43 -05:00
Jeff Epler
755caddc89
extract_py: Import Dict if needed
2021-07-20 19:49:25 -05:00
Scott Shawcroft
ec6e432f23
Only push main
builds to S3
...
That will ensure it is always the latest instead of a .x or feature
branch.
Fixes #4632
2021-07-20 17:30:10 -07:00
Scott Shawcroft
db0adf1253
Merge pull request #5025 from DavePutz/issue_5016
...
Turn off PWM pin during PulseOut construct
2021-07-20 17:25:10 -07:00
Scott Shawcroft
fece0fb432
Fix crash when UART construct fails
...
After the script stops with the exception thrown the final gc_sweep
will call any finalizers and they usually call deinit. deinit on
invalid objects can wreak havoc by changing random memory or
(hopefully) crashing. This fixes ensures the object is deinited
until initialization succeeds and the object is valid.
Do the same fix for I2C and SPI too.
Fixes #4700 and fixes #5005
2021-07-20 17:15:19 -07:00
root
8fe4fa0114
Turn off PWN pin during PulseOut construct
2021-07-20 17:17:41 -05:00
Dan Halbert
0293ec261a
Update pico-sdk to 1.2.0, using raspberrypi repo
2021-07-20 17:31:29 -04:00
Dan Halbert
ce7301527a
Merge pull request #5024 from tannewt/rp2_ble_wait
...
Don't blink blue on non-BLE workflow boards
2021-07-19 23:51:27 -04:00
Scott Shawcroft
f8290e746b
Don't blink blue on non-BLE workflow boards
...
This includes any boards that have _bleio implemented via HCI.
Fixes #4969
2021-07-19 18:40:37 -07:00
Dan Halbert
5e773b863f
Merge pull request #4793 from kmatch98/funhouse_spi_speed
...
reduce SPI display baudrate from 60 MHz to 5 MHz to eliminate display glitch
2021-07-19 18:24:48 -04:00
Dan Halbert
b8fba2dd6f
Merge pull request #5022 from dhalbert/2021-07-19-update-frozen-libs
...
update frozen libs, especially CircuitPlayground
2021-07-19 18:21:59 -04:00
Dan Halbert
128bedae7e
Merge pull request #5019 from DavePutz/issue_5016
...
Ensure RP2040 pin is left low after PulseOut
2021-07-19 17:57:42 -04:00
Dan Halbert
24d3fced2f
update frozen libs, especially CP
2021-07-19 17:06:41 -04:00
Dan Halbert
d2f2afe57b
Merge pull request #4925 from microDev1/update-run-mode
...
Add RunMode.UF2 and update esp32s2 run-modes
2021-07-19 16:37:46 -04:00
Dan Halbert
b228891682
Merge pull request #5017 from jepler/ondiskbitmap
...
OnDiskBitmap improvements
2021-07-19 15:55:39 -04:00
Jeff Epler
9a373c4fb9
Merge pull request #4961 from dhalbert/restore-1970-epoch
...
Restore default epoch to 1970
2021-07-19 14:51:08 -05:00
root
8d79d4e5ee
Ensure pin is left low after PulseOut
2021-07-19 11:46:09 -05:00
Jeff Epler
7896bf7fa3
fix stubs
2021-07-19 10:35:17 -05:00
Jeff Epler
1bbe7282e0
OnDiskBitmap: Allow a filename to be passed to the constructor
...
.. eventually we'll phase out the old way of constructing with an
open file, but this allows for compatibility between 6.x and 7.0.
2021-07-19 10:08:40 -05:00
NitiKaur
6a9133a8b5
docs/rp2: Update general section to give a brief technical overview.
2021-07-20 00:26:37 +10:00
Jeff Epler
2556fce862
OnDiskBitmap: Fix memory corruption when using palette image
...
The number of palette entries set was accidentally 4x too much,
because the wrong looping variable was used.
2021-07-19 09:25:26 -05:00
NitiKaur
da74ef6615
docs/rp2: Enhance quickref and change image to Pico pinout.
2021-07-20 00:21:06 +10:00
Jim Mussared
0e3752e82a
py/emitnative: Ensure stack settling is safe mid-branch.
...
And add a test for the case where REG_RET could be in use.
Fixes #7523 .
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-07-19 23:18:59 +10:00
Damien George
d0227d5862
py/emitnative: Reuse need_reg_all func in need_stack_settled.
...
To reduce code size and code duplication.
Signed-off-by: Damien George <damien@micropython.org>
2021-07-19 23:18:13 +10:00
Mike Causer
cc77b30639
rp2/machine_spi: Allow boards to configure SPI pins using new macros.
2021-07-19 23:16:11 +10:00
Mike Causer
79da7757cc
rp2/machine_i2c: Allow boards to configure I2C pins using new macros.
2021-07-19 23:16:11 +10:00