Commit Graph

18275 Commits

Author SHA1 Message Date
Christian Walther
7ca36d45a4 Fix align32_size().
It not only caused crashes with requests larger than 64K (can happen with RGBMatrix), but also generated a lot longer code than necessary.
2020-11-28 17:54:34 +01:00
Christian Walther
a4b84cf0e1 Use movable allocation system for RGBMatrix allocations.
Hybrid allocation is now part of the infrastructure. Moving memory contents would not be necessary because displayio can recreate them, but does not hurt.
2020-11-28 17:54:34 +01:00
Christian Walther
ac91220361 Use movable allocation system for Sharp display framebuffer.
Hybrid allocation is now part of the infrastructure. Moving memory contents would not be necessary because displayio can recreate them, but does not hurt.
2020-11-28 17:54:34 +01:00
Christian Walther
2ba9805f84 Use movable allocation system for terminal tilegrid.
Moving memory is now done by the infrastructure and neither necessary nor correct here anymore.
2020-11-28 17:54:34 +01:00
Christian Walther
c7404a3ff8 Add movable allocation system.
This allows calls to `allocate_memory()` while the VM is running, it will then allocate from the GC heap (unless there is a suitable hole among the supervisor allocations), and when the VM exits and the GC heap is freed, the allocation will be moved to the bottom of the former GC heap and transformed into a proper supervisor allocation. Existing movable allocations will also be moved to defragment the supervisor heap and ensure that the next VM run gets as much memory as possible for the GC heap.

By itself this breaks terminalio because it violates the assumption that supervisor_display_move_memory() still has access to an undisturbed heap to copy the tilegrid from. It will work in many cases, but if you're unlucky you will get garbled terminal contents after exiting from the vm run that created the display. This will be fixed in the following commit, which is separate to simplify review.
2020-11-28 17:50:23 +01:00
Limor "Ladyada" Fried
bd87201c4f
Merge pull request #3764 from weblate/weblate-circuitpython-main
Translations update from Weblate
2020-11-27 15:01:43 -05:00
Hosted Weblate
a4e310cfc2
Merge branch 'origin/main' into Weblate. 2020-11-27 19:34:07 +01:00
sporeball
884028c748
Translated using Weblate (Japanese)
Currently translated at 69.2% (598 of 864 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ja/
2020-11-27 19:34:06 +01:00
Iván Montiel Cardona
518328c71e
Translated using Weblate (Spanish)
Currently translated at 100.0% (864 of 864 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2020-11-27 19:34:06 +01:00
Limor "Ladyada" Fried
9b2eae49f9
Merge pull request #3766 from ehershey/patch-1
fix README typos
2020-11-27 13:33:53 -05:00
Ernie Hershey
3cde6c3fdc
README typos 2020-11-27 12:07:49 -05:00
Hosted Weblate
9c779c7ab7
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/
2020-11-26 04:11:29 +01:00
Hosted Weblate
c1be2c0c19
Merge branch 'origin/main' into Weblate. 2020-11-26 04:11:27 +01:00
Daniel Bravo Darriba
cb14a2a824
Translated using Weblate (Spanish)
Currently translated at 100.0% (864 of 864 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2020-11-26 04:11:26 +01:00
Daniel Bravo Darriba
715b09bff2
Translated using Weblate (German)
Currently translated at 85.8% (742 of 864 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/de/
2020-11-26 04:11:26 +01:00
Jeff Epler
7923aa0a62
Merge pull request #3708 from hierophect/esp32s2-udp
ESP32-S2: Add UDP with recvfrom_into and sendto
2020-11-25 21:11:20 -06:00
Jeff Epler
6fd123a5c4
Merge pull request #3758 from tannewt/update_connect_doc
Update wifi.Radio.connect doc
2020-11-25 21:09:56 -06:00
Scott Shawcroft
abff2615cb
Merge pull request #3754 from hierophect/esp-spi-pinclaim
ESP32S2: fix pin claiming bugs
2020-11-25 15:11:29 -08:00
Scott Shawcroft
015ba00212
Merge pull request #3760 from arturo182/colorconverter_fix
displayio: Fix ColorConverter make_* methods
2020-11-25 15:03:24 -08:00
Scott Shawcroft
904fadbb5c
Merge pull request #3761 from arturo182/update_requests
Update the requests frozen library
2020-11-25 14:52:52 -08:00
Scott Shawcroft
c284a57a99
Merge pull request #3757 from jamesbowman/main
Fix opcode typo in EVE VertexFormat()
2020-11-25 14:50:03 -08:00
Scott Shawcroft
35086587aa
Merge pull request #3756 from weblate/weblate-circuitpython-main
Translations update from Weblate
2020-11-25 14:49:31 -08:00
Hosted Weblate
5e38716817
Merge branch 'origin/main' into Weblate. 2020-11-25 22:41:00 +01:00
Scott Shawcroft
e7bab9e86b
Merge pull request #3759 from tannewt/recv_exit
Exit faster on recv when TLS connection closed
2020-11-25 13:40:52 -08:00
Lucian Copeland
a854da35d3 Fix masking issue causing pin claim problems 2020-11-25 12:14:56 -05:00
Lucian Copeland
c9bc877683 Merge remote-tracking branch 'upstream/main' into esp-spi-pinclaim 2020-11-25 10:43:35 -05:00
arturo182
0d9a0235a2 Update the requests frozen library 2020-11-25 03:48:50 +01:00
arturo182
ca1a85c47f displayio: Fix ColorConverter make_* methods 2020-11-25 03:39:14 +01:00
Scott Shawcroft
9a692c3222
Exit faster on recv when TLS connection closed
When a TLS connection is closed by the server it usually sends a
notice. We see this incoming byte with lwip_ioctl and try to read
it. The read returns 0 but we keep trying anyway. Now, we quit
trying when we get zero back. If the connection was still alive
it'd either read a byte or delay until a byte could be read.
2020-11-24 18:14:22 -08:00
Scott Shawcroft
4ac11c8d31
Update wifi.Radio.connect doc
Now it includes bssid info.
2020-11-24 17:54:39 -08:00
James Bowman
fc344bc818 Fix opcode typo in VertexFormat() 2020-11-24 17:26:39 -08:00
Hosted Weblate
8e76fce60a
Merge branch 'origin/main' into Weblate. 2020-11-25 02:11:53 +01:00
Mitsuharu Aoyama
be44c16e25
Translated using Weblate (Japanese)
Currently translated at 69.0% (597 of 864 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ja/
2020-11-25 02:11:52 +01:00
Jeff Epler
e778fc1f87
Merge pull request #3741 from hathach/fix-cdc-connection-race
update tinyusb to fix cdc connection race
2020-11-24 19:11:41 -06:00
hierophect
510f464234
Merge branch 'main' into esp32s2-udp 2020-11-24 18:28:10 -05:00
Hosted Weblate
fcafeb1766
Merge branch 'origin/main' into Weblate. 2020-11-25 00:22:30 +01:00
Wellington Terumi Uemura
4ca50982b7
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (864 of 864 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2020-11-25 00:22:30 +01:00
Scott Shawcroft
8364734ba3
Merge pull request #3749 from skerr92/add-cpsapling-spiflash
Add cpsapling spiflash
2020-11-24 15:22:21 -08:00
Jeff Epler
c451b22255 Disable 3-arg pow() function on m0 boards
`pow(a, b, c)` can compute `(a ** b) % c` efficiently (in time and memory).
This can be useful for extremely specific applications, like implementing
the RSA cryptosystem.  For typical uses of CircuitPython, this is not an
important feature.  A survey of the bundle and learn system didn't find
any uses.

Disable it on M0 builds so that we can fit in needed upgrades to the USB
stack.
2020-11-24 16:54:33 -06:00
Hosted Weblate
ff7bab12aa
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/
2020-11-24 23:45:47 +01:00
Hosted Weblate
7ca1cf6e22
Merge branch 'origin/main' into Weblate. 2020-11-24 23:45:45 +01:00
Wellington Terumi Uemura
241d920757
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (863 of 863 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2020-11-24 23:45:45 +01:00
Antonin ENFRUN
966e0b256c
Translated using Weblate (French)
Currently translated at 98.2% (848 of 863 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2020-11-24 23:45:44 +01:00
Scott Shawcroft
669f17e5bf
Merge pull request #3678 from microDev1/nvm-s2
ESP32S2: Support for NVM
2020-11-24 14:45:35 -08:00
Lucian Copeland
59458a9013 Add pin claiming to SPI construct 2020-11-24 16:46:11 -05:00
Lucian Copeland
e83c481f0f translations 2020-11-24 15:40:27 -05:00
hierophect
d0e75e635a
Merge pull request #3714 from microDev1/ps2io-S2
ESP32S2: Support for PS/2-IO
2020-11-24 14:56:09 -05:00
Lucian Copeland
0c5e0954db Add closed socket identification 2020-11-24 14:51:06 -05:00
Lucian Copeland
1031fe2992 correct submodule 2020-11-24 14:46:43 -05:00
Lucian Copeland
ba6e15b070 Fix stubs 2020-11-24 11:32:18 -05:00