Commit Graph

17907 Commits

Author SHA1 Message Date
Scott Shawcroft ef42d6bb6c
Update USB PID 2020-10-07 16:12:07 -07:00
Scott Shawcroft 09bc415751
Unify iMX flash config and add Metro M7 1011
This unifies the flash config to the settings used by the Boot ROM.
This makes the config unique per board which allows for changing
quad enable and status bit differences per flash device. It also
allows for timing differences due to the board layout.

This change also tweaks linker layout to leave more ram space for
the CircuitPython heap.
2020-10-07 15:23:47 -07:00
Scott Shawcroft 66c25667d8
Merge pull request #3520 from gamblor21/merge_audio_fix
Update submodule to merge commit
2020-10-07 14:30:40 -07:00
gamblor21 085d2a2274 Update submodule to merge commit 2020-10-07 14:09:26 -05:00
microDev 8487a51995
Factor out code.py status messages 2020-10-07 23:53:08 +05:30
hathach b7ed18d622 change idf to espressif
fix hal includes
2020-10-08 00:52:00 +07:00
Scott Shawcroft 0775e2b20d
Merge pull request #3505 from jepler/canbus-stm
canio: implement for stm32f405
2020-10-07 10:22:00 -07:00
microDev d01b9ce933
Disable auto-reload in safe mode 2020-10-07 22:15:05 +05:30
Lucian Copeland 9ac0aae5a9 Merge remote-tracking branch 'upstream/main' into esp32-analogout 2020-10-07 12:21:04 -04:00
Lucian Copeland 7386a948bd Merge remote-tracking branch 'upstream/main' into esp32-analogin 2020-10-07 12:20:30 -04:00
Jeff Epler 16ed875f4e canio: remove unused fields
these relate to properties that were removed as well
2020-10-06 20:14:50 -05:00
Jeff Epler 81d7ef0256 stm: canio: remove stray optimization flag for debugging 2020-10-06 20:13:23 -05:00
Jeff Epler eed3387f4e stm32: canio: Fix message cancellation
.. it's necessary to wait for a cancellation request to actually free
the respective Tx mailbox
2020-10-06 20:12:10 -05:00
Jeff Epler abe0405d6e stm32: canio: Fix canio.CAN.restart() 2020-10-06 20:12:06 -05:00
Jeff Epler e5a0af9216 stm32: canio: When Tx mailboxes are full, cancel an old message
.. also add the 8ms wait for transmission that the atmel sam port
has
2020-10-06 20:11:58 -05:00
Jeff Epler a7dccb39a4 stm32: canio: remove unused functions 2020-10-06 20:11:51 -05:00
Jeff Epler 23bd2496de stm32: canio: remove some unneeded declarations 2020-10-06 20:11:43 -05:00
Jeff Epler 7df01d3fbd stm32: canio: enable on all stm32f405 boards 2020-10-06 20:11:39 -05:00
Jeff Epler 01e9e355ce canio: implement for stm32f405
The has successfully run my loopback self-test program for CAN,
which tests transmission, reception, and filtering.  The 1M baud rate setting
was also verified on saleae to be accurate.
2020-10-06 20:11:35 -05:00
Scott Shawcroft 8c428a3bdd
Merge pull request #3492 from hierophect/esp32-update-idf
ESP32S2: move to official IDF submodule
2020-10-06 16:53:32 -07:00
Scott Shawcroft 945f7f2a1c
Merge pull request #3512 from UnexpectedCircuitPython/UM_S2_Boards
Removed hardware APA settings from ESP32-S2 Feather mpconfigboard.h
2020-10-06 16:41:18 -07:00
Lucian Copeland 455cf654f3 Merge remote-tracking branch 'upstream/main' into esp32-analogin 2020-10-06 15:20:36 -04:00
Lucian Copeland d5c8e55769 Add AnalogIO 2020-10-06 15:13:50 -04:00
Lucian Copeland 68cb384f8f Remove logging from shared-bindings, fix translations, revert config target macro 2020-10-06 13:29:12 -04:00
Lucian Copeland f90eb23db1 Merge branch 'esp32-update-idf' into esp32-analogin 2020-10-06 12:52:40 -04:00
Lucian Copeland 0d7552b67e Update ESP-IDF to newer fixed fork 2020-10-06 12:48:28 -04:00
Seon Rozenblum 5c00ba8592 Removed hardware APA settings from mpconfigboard.h because they make the APA flicker on boot. I need to look into why, but I don't think they are being used for anything right now anyway. 2020-10-06 07:40:20 +11:00
Scott Shawcroft e7004af244
Merge pull request #3510 from jepler/update-protomatter
Update protomatter to 1.0.4 release tag
2020-10-05 12:50:20 -07:00
Jeff Epler 9ed7cbf7a0
Merge pull request #3509 from weblate/weblate-circuitpython-main
Translations update from Weblate
2020-10-05 12:26:59 -05:00
hierophect e93a274f2f
Merge branch 'main' into esp32-analogin 2020-10-05 13:02:42 -04:00
Lucian Copeland 0467a82880 Fix/remove various style issues 2020-10-05 13:00:42 -04:00
Michal Čihař 8e3ec3d520
Translated using Weblate (Korean)
Currently translated at 9.4% (78 of 829 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ko/
2020-10-05 14:12:56 +02:00
Jeff Epler 1cdc91dce6 Update protomatter
This brings in the following, and updates us to the 1.0.4 release tag:

Submodule lib/protomatter 2a1ba8fa4..5f07ec618:
  > Bumping version for release
  > Merge pull request #21 from makermelissa/master
  > Merge pull request #20 from makermelissa/master
  > Merge pull request #18 from jepler/fix-cpy-3184
  > Merge pull request #14 from hierophect/cpy-timer-allocator

We previously had the _changes_ of jepler/fix-cpy-3184 and
hierophect/cpy-timer-allocator but not their merge commits.

The only other changes in protomatter were one formatting change in the
core, plus several Arduino sketches.  So this should make no practical
difference for CPy.
2020-10-03 13:21:58 -05:00
Jonny Bergdahl cdf18885ee Translated using Weblate (Swedish)
Currently translated at 100.0% (829 of 829 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2020-10-03 04:16:41 +02:00
Wellington Terumi Uemura 23cd9fcdad Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (829 of 829 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2020-10-03 04:16:41 +02:00
Limor "Ladyada" Fried 9535edb8f4
Merge pull request #3507 from jepler/issue3506-matrixportal-crash
displayio: Fix matrixportal crash
2020-10-02 22:16:32 -04:00
Scott Shawcroft 62a7eced51
Merge pull request #3503 from pewpew-game/main
Bump circuitpython-stage to 1.1.1
2020-10-02 15:53:34 -07:00
Christian Walther be8092f4d3 When there is not enough free space, but a matching hole on the other side, use it. 2020-10-02 23:07:07 +02:00
Christian Walther 5bdb8c45dd Allow allocate_memory() to reuse holes when matching exactly.
This requires recovering the pointer of the allocation, which could be done by adding up neighbor lengths, but the simpler way is to stop NULLing it out in the first place and instead mark an allocation as freed by the client by setting the lowest bit of the length (which is always zero in a valid length).
2020-10-02 23:03:21 +02:00
Christian Walther d6d02c67d2 Fix inconsistent supervisor heap.
When allocations were freed in a different order from the reverse of how they were allocated (leaving holes), the heap would get into an inconsistent state, eventually resulting in crashes.

free_memory() relies on having allocations in order, but allocate_memory() did not guarantee that: It reused the first allocation with a NULL ptr without ensuring that it was between low_address and high_address. When it belongs to a hole in the allocated memory, such an allocation is not really free for reuse, because free_memory() still needs its length.

Instead, explicitly mark allocations available for reuse with a special (invalid) value in the length field. Only allocations that lie between low_address and high_address are marked that way.
2020-10-02 23:03:21 +02:00
Jeff Epler b1592564b2 displayio: Fix matrixportal crash
An RGBMatrix has no bus and no bus_free method.  It is always possible
to refresh the display.

This was not a problem before, but the fix I suggested (#3449) added
a call to core_bus_free when a FramebufferDisplay was being refreshed.
This was not caught during testing.

This is a band-aid fix and it brings to light a second problem in which
a SharpDisplay + FrameBuffer will not have a 'bus' object, and yet does
operate using a shared SPI bus.  This kind of display will need a
"bus-free" like function to be added, or it can have problems like
#3309.
2020-10-02 15:07:36 -05:00
Radomir Dopieralski c4e337e234 Bump pew-pewpew-standalone-10.x to 2.0.1 2020-10-02 12:47:31 +02:00
Radomir Dopieralski dd2b40fdf1 Bump circuitpython-stage to 1.1.1
This adds handling of GameOver exception as SystemExit in anticipation
of the new way of starting games from the menu.
2020-10-02 12:17:49 +02:00
Scott Shawcroft 551f78e10b
Merge pull request #3500 from weblate/weblate-circuitpython-main
Translations update from Weblate
2020-10-01 15:47:16 -07:00
Hosted Weblate d2d768a936
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-10-01 23:24:20 +02:00
Jonny Bergdahl b51a84d1f8 Translated using Weblate (Swedish)
Currently translated at 100.0% (827 of 827 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2020-10-01 23:24:18 +02:00
Alvaro Figueroa 7652b3046d Translated using Weblate (Spanish)
Currently translated at 100.0% (827 of 827 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2020-10-01 23:24:17 +02:00
Alvaro Figueroa abe98f13df Translated using Weblate (Spanish)
Currently translated at 99.8% (826 of 827 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2020-10-01 23:24:17 +02:00
Scott Shawcroft 92d15096d2
Merge pull request #3485 from jepler/framebuffer-zero-size
Framebuffer zero size
2020-10-01 14:24:10 -07:00
Lucian Copeland a8dfae58d9 Add ADC calibration module support 2020-10-01 17:17:39 -04:00