Jeff Epler
11288c1c28
esp32s2: Add rgbmatrix support
2021-05-26 11:21:59 -05:00
Jeff Epler
0d7f257eae
displayio: Pause rgbmatrix during soft-reset
...
We can't handle rgbmatrix's interrupts from here until the display is
reinitialized, so set the display as paused.
With this change, I can survive multiple cycles with wifi+rgbmatrix
on an esp32s2. Before, it usually failed.
2021-05-26 11:18:02 -05:00
Jeff Epler
4de8fa09ab
esp32s2: peripherals: store address of timer peripheral in its struct
...
.. this is helpful if we need to go down to the esp-idf low level
I/O routines
2021-05-26 11:18:02 -05:00
Jeff Epler
60c9a57815
esp32s2: Add pin_number, reset_pin_number needed by rgbmatrix
2021-05-26 11:18:02 -05:00
Jeff Epler
6750d3feab
esp32s2: Introduce, use NO_PIN
...
GPIO_NUM_NC is -1 so it's equivalent to the existing code.
2021-05-26 11:18:02 -05:00
Damien George
6a127810c0
extmod/moduhashlib: Put hash obj in final state after digest is called.
...
If digest is called then the hash object is put in a "final" state and
calling update() or digest() again will raise a ValueError (instead of
silently producing the wrong result).
See issue #4119 .
Signed-off-by: Damien George <damien@micropython.org>
2021-05-26 21:44:46 +10:00
Damien George
0abf6f830c
esp8266/boards/GENERIC_512K: Add custom manifest without FS modules.
...
The 512k build does not have a filesystem so there is no reason to include
the filesystem-related modules. This commit provides a custom manifest.py
for this board which no longer includes: _boot.py, flashbdev.py,
inisetup.py, upip.py, upip_utarfile.py. This cuts the build down by about
9k of flash.
Signed-off-by: Damien George <damien@micropython.org>
2021-05-26 21:41:40 +10:00
Damien George
ef16834887
github/workflows: Add workflow to build and run unix port on MIPS.
...
This adds a coverage build and running of the test suite on a MIPS 32-bit
big endian architecture. It uses the feature of qemu to execute foreign
code as though it were native to the system (using qemu user mode). The
code compiled for MIPS will run under the qemu VM, but all syscalls made by
this code go to the host (Linux) system.
See related #7268 and #7273 .
Signed-off-by: Damien George <damien@micropython.org>
2021-05-26 16:33:18 +10:00
Damien George
dc86e04476
tests: Make float and framebuf tests skip or run on big-endian archs.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-05-26 16:33:18 +10:00
Damien George
e7c0a8bca3
tools/ci.sh: Build Cortex-A9 sabrelite board as part of qemu-arm CI.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-05-26 16:24:00 +10:00
Damien George
b84406f313
qemu-arm: Add support for Cortex-A9 via sabrelite board.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-05-26 16:24:00 +10:00
Damien George
f5cba77e50
tools/tinytest-codegen.py: Add command-line option to exclude tests.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-05-26 16:24:00 +10:00
Damien George
2c1a6a237d
tools/mpy-tool.py: Support relocating ARMv6 arch.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-05-26 16:24:00 +10:00
Damien George
4ee8ec6931
py/asmarm: Use builtin func to flush I- and D-cache on ARM 7 archs.
...
The inline assembler code does not work for __ARM_ARCH == 7.
Signed-off-by: Damien George <damien@micropython.org>
2021-05-26 16:24:00 +10:00
Scott Shawcroft
f26528dfa6
Merge pull request #4808 from weblate/weblate-circuitpython-main
...
Translations update from Weblate
2021-05-25 19:18:06 -07:00
Hosted Weblate
d78467dd47
Merge remote-tracking branch 'origin/main' into main
2021-05-25 23:13:26 +02:00
Scott Shawcroft
7190b3ee6a
Merge pull request #4798 from dhalbert/hid_devices-gc
...
gc all pointers in hid_devices properly
2021-05-25 14:13:19 -07:00
root
24e641a834
Fix for Issue #4266
2021-05-25 16:06:00 -05:00
robert-hh
c732b80f05
mimxrt: Extend the Pin module for SoftI2C, SoftSPI support.
...
This change consists mostly of changing and extending the required
definitions in mphalport.h.
2021-05-25 20:43:52 +02:00
Hosted Weblate
cb6b834d26
Merge remote-tracking branch 'origin/main' into main
2021-05-25 19:41:43 +02:00
hexthat
323b8b7edd
Translated using Weblate (Chinese (Pinyin))
...
Currently translated at 100.0% (993 of 993 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2021-05-25 19:41:43 +02:00
Wellington Terumi Uemura
0e10244f2b
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (993 of 993 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-05-25 19:41:42 +02:00
Dan Halbert
d79d68705b
Merge pull request #4763 from jepler/esp32s2-build-memory-info
...
Add build_memory_info for esp32s2
2021-05-25 13:41:35 -04:00
Jeff Epler
f21eec5fe1
Work for non-psram builds
...
This is more or less a complete re-organization of the code.
* Use the actual byte size of the .bin file as the flash size,
as the algorithm for packing sections into the flash is complicated
* Match each section to a data region & find the high water mark in the
region
* Report on all the RAM regions, separately
Note that elftools is a requirement of esp-idf and so does not need to
be listed in our requirements.txt.
2021-05-25 10:06:31 -05:00
Philipp Ebensberger
5f68f0d08a
github/workflows: Add CI workflow for mimxrt port.
2021-05-26 00:12:45 +10:00
Philipp Ebensberger
c326d9a67b
mimxrt: Enable built-in help.
2021-05-26 00:12:45 +10:00
Philipp Ebensberger
ff5d39529c
mimxrt: Implement machine.Pin class.
...
- modified pin type from pin_obj_t to machine_pin_obj_t
- created machine_pin.c
- implemented basic version of make-pins.py to genertate pins.c/.h files
automatically; the only alternate function currently supported is GPIO
- added af.csv files for all supported MCUs
- replaced pins.c/pins.h files with pin.csv for all boards
- implemented on/off/high/low/value/init methods
- Implemented IN/OUT/OPEN_DRAIN modes
- modified LDFLAGS for DEBUG build to get usefull .elf file for debugging
Signed-off-by: Philipp Ebensberger
2021-05-26 00:12:42 +10:00
Dan Halbert
0f66832829
Merge branch 'main' into hid_devices-gc
2021-05-24 18:17:52 -04:00
Hosted Weblate
665950c9f6
Merge remote-tracking branch 'origin/main' into main
2021-05-24 23:26:45 +02:00
Scott Shawcroft
0d92558012
Merge pull request #4800 from dhalbert/too-many-hid-devices
...
Handle too many HID devices properly
2021-05-24 14:26:41 -07:00
Hosted Weblate
a84998adb4
Merge remote-tracking branch 'origin/main' into main
2021-05-24 23:25:09 +02:00
Jonny Bergdahl
cd2530401c
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (993 of 993 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-05-24 23:25:08 +02:00
Jose David M
9895fae66e
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (993 of 993 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2021-05-24 23:25:08 +02:00
Scott Shawcroft
de89fc7011
Merge pull request #4801 from dhalbert/unlock-board-i2c-on-reset
...
unlock board.I2C() on reset
2021-05-24 14:25:03 -07:00
Hosted Weblate
3b986e65c4
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-05-24 22:32:57 +02:00
Scott Shawcroft
533a84fe80
Merge pull request #4804 from bergdahl/errormessages-ip
...
Removed 'raw' from error message 'raw int'
2021-05-24 13:32:50 -07:00
Scott Shawcroft
038c9d6194
Merge pull request #4796 from Neradoc/nera-pwmrgb-status-pimoroni
...
Enable the PWM status LED on Pimoroni Tiny 2040 and PicoSystem
2021-05-24 13:30:55 -07:00
Scott Shawcroft
cc6f493da2
Merge pull request #4806 from lesamouraipourpre/patch-3
...
Update comment in persistentcode.c
2021-05-24 13:28:08 -07:00
Scott Shawcroft
6546d1330f
Merge pull request #4805 from lesamouraipourpre/patch-2
...
Docs: Incompatible .mpy file
2021-05-24 13:27:22 -07:00
Scott Shawcroft
186d382a61
Merge pull request #4795 from weblate/weblate-circuitpython-main
...
Translations update from Weblate
2021-05-24 13:19:33 -07:00
Damien George
0aa01b0205
lib/mbedtls: Switch to currently latest commit of LTS branch v2.16.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-05-25 00:04:01 +10:00
James Carr
61a7212b28
Update comment in persistentcode.c
...
Update comment in mp_raw_code_save so that it matches the code.
2021-05-23 08:57:41 +01:00
James Carr
c665eb9bb5
Incompatible .mpy file
...
Update the *ValueError: Incompatible .mpy file* section for the upcoming 6 to 7 transition.
2021-05-23 08:51:35 +01:00
Hosted Weblate
21d5b0096e
Merge remote-tracking branch 'origin/main' into main
2021-05-22 19:58:37 +02:00
Jonny Bergdahl
9d017ae883
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (993 of 993 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-05-22 19:58:37 +02:00
Wellington Terumi Uemura
34c2701e5d
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (993 of 993 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-05-22 19:58:36 +02:00
Alvaro Figueroa
262ad3dce0
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (993 of 993 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2021-05-22 19:58:36 +02:00
Limor "Ladyada" Fried
7df5d74d95
Merge pull request #4802 from BlitzCityDIY/main
...
Adding Arduino Nano RP2040 Connect
2021-05-22 13:58:28 -04:00
lady ada
2e90d5ed07
clang a bit
2021-05-22 12:39:42 -04:00
lady ada
d52f149e84
add ESP CS pin to make wifi demos easier
2021-05-22 12:22:28 -04:00