Commit Graph

16226 Commits

Author SHA1 Message Date
Jeff Epler
37a7cf9934
Merge pull request #2941 from dunkmann00/pixelbuf-negative-step-slice
Implement negative step for pixelbuf slices
2020-05-23 22:23:43 -05:00
Jeff Epler
c09f0c888b
Merge pull request #2943 from jerryneedell/jerryn_esp32s2_make
allow PORT specification for esp32s2 flashing
2020-05-23 22:22:47 -05:00
Jeff Epler
5cffd7e88d trinket_m0_haxpress: disable RTC to make build fit with upcoming translations 2020-05-23 20:48:38 -05:00
Jeff Epler
eb85304d04 escornabot: disable RTC to make build fit with upcoming translations 2020-05-23 20:48:38 -05:00
Jeff Epler
03866c0598 meowmeow: disable modules to make build fit with upcoming translations 2020-05-23 20:41:25 -05:00
Jeff Epler
2ed40075a5 pyruler: disable RTC to make build fit with upcoming translations 2020-05-23 20:36:33 -05:00
Jeff Epler
285eb71db6
Merge pull request #2947 from jepler/disable-idf-cache
actions: Don't skip trying to (re)install idf tools
2020-05-23 11:13:17 -05:00
Jeff Epler
51bed1e7df do-nothing commit to retrigger CI 2020-05-23 09:53:46 -05:00
Jeff Epler
6a5eabaa26 actions: Don't skip trying to (re)install idf tools
We were seeing actions failures where the cache would be restored
"successfully" but then "Install CircuitPython deps" would fail:

    # Step "Fetch IDF tool cache"
    Cache Size: ~247 MB (259277989 B)
    /bin/tar -xz -f /home/runner/work/_temp/a990f24d-c365-4685-b739-10e052812c81/cache.tgz -C /home/runner/work/circuitpython/circuitpython/.idf_tools
    Cache restored from key: Linux-idf-tools-731ed12bcdfbfa8b5dd37e03703992271b3ce85dd629e45130f80f43b84ce3a8
    ...
    # Step "Install CircuitPython deps"
    Adding ESP-IDF tools to PATH...
    Not using an unsupported version of tool cmake found in PATH: 3.17.0.

I checked locally, and (even when dist/* is removed) it is very quick to
run each of the `idf_tools install` steps, about 2s total.

Try doing this to see whether it fixes the CI problems.
2020-05-23 08:36:29 -05:00
George Waters
c592a2b4db
Simplify pixelbuf set_pixels function 2020-05-22 21:19:17 -04:00
George Waters
f078055f59
Use mp_int_t for setting pixelbuf slice indices
When handling negative steps, start and stop need to be mp_int_t so they
can be checked against a potential negative value during the for loop
used to set the slice values.
2020-05-22 16:28:09 -04:00
Lucian Copeland
d95022f7bb Merge remote-tracking branch 'upstream/master' into mimxrt-busio-cleanup 2020-05-22 13:33:08 -04:00
Radomir Dopieralski
4c01ddcbab Add support for Fluff M0 2020-05-22 18:51:12 +02:00
hierophect
fe10a45533
Merge branch 'master' into mimxrt-uart-oneway 2020-05-22 11:32:41 -04:00
Lucian Copeland
75b5142954 Minor style changes and translations 2020-05-22 11:31:52 -04:00
jerryneedell
93df3b89e8 allow PORT specifcation for esp32s2 flashing 2020-05-22 09:54:29 -04:00
George Waters
16ffc731f3
Implement negative step for pixelbuf slices 2020-05-21 21:57:45 -04:00
dherrada
67cb48acbf Added another except 2020-05-21 18:21:32 -04:00
Scott Shawcroft
eea01c32b8
Merge pull request #2868 from xobs/fix-usb-sleep-nrf
Fix usb sleep for NRF
2020-05-21 10:24:11 -07:00
DavePutz
2e05f628f0
Add an increment to tcc_refcount to allow deinits to work properly 2020-05-21 11:08:26 -05:00
DavePutz
1f40f9e04f
Merge pull request #5 from adafruit/master
update from adafruit
2020-05-21 11:05:24 -05:00
Scott Shawcroft
3bb6a32a20
Merge branch 'master' into esp32s2_digitalio 2020-05-21 08:52:39 -07:00
Sean Cross
67cf005ee5 nrf: nvm: assume sd is not enabled if interrupts are off
If interrupts are disabled, then calling sd_* functions will hardfault.
Instead, assume that it's safe to write if interrupts are disabled.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-21 22:04:20 +08:00
Sean Cross
fd4ef233c6 nrf: port: add memory barrier before wfi
ARM recommends issuing a DSB instruction propr to issuing WFI, as it is
required on many parts suchas Cortex-M7. This is effectively a no-op on
the Cortex-M4 used in most NRF parts, however it ensures that we won't
be surprised when new parts come out.

See
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0321a/BIHICBGB.html
for more information.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-21 21:46:37 +08:00
Sean Cross
77cf4dce8f nrf: disable interrupts before running wfi
In order to ensure we don't have any outstanding requests, disable
interrupts prior to issuing `WFI`.

As part of this process, check to see if there are any pending USB
requests, and only execute the `WFI` if there is no pending data.

This fixes #2855 on NRF.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-21 21:43:52 +08:00
Sean Cross
d1a7fdd9d4 supervisor: support debugging tinyusb
Allow for passing `-DCFG_TUSB_DEBUG=1` or `-DCFG_TUSB_DEBUG=2` on the
command line to enable debugging tinyusb within circuitpython.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-21 21:35:30 +08:00
Sean Cross
5ed4e4d0ab lib: tinyusb: update to get tud_task_is_queue_empty
This update gives us access to a function we can run with interrupts
disabled to determine if the queue is empty.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-21 21:34:44 +08:00
Dan Halbert
edc5d8938e
Merge pull request #2937 from jpecor/evo_m51
Add support for Alorium Technology Evo M51 board
2020-05-21 08:57:39 -04:00
jason
4f54514be4 Initial version 2020-05-20 21:11:06 -05:00
Jeff Epler
54a38fdf01
Merge pull request #2936 from dunkmann00/pixelbuf-slice-fix
Fix error when getting a pixelbuf slice
2020-05-20 19:15:10 -05:00
Jeff Epler
709d3230a5
Merge pull request #2935 from weblate/weblate-circuitpython-master
Translations update from Weblate
2020-05-20 19:12:08 -05:00
George Waters
02d0881fca
Fix error when getting a pixelbuf slice 2020-05-20 17:56:08 -04:00
Jonny Bergdahl
cee4286637 Translated using Weblate (Swedish)
Currently translated at 100.0% (747 of 747 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/sv/
2020-05-20 20:39:22 +02:00
Scott Shawcroft
c32214ccc7
Merge pull request #2932 from simmel-project/nrf-rtc-reset
nrf: reset rtc as part of port_reset()
2020-05-20 11:39:16 -07:00
Scott Shawcroft
a43876ad1e
Fix esp wrover 2020-05-20 11:37:29 -07:00
Scott Shawcroft
0af5dd59f2
Merge pull request #2898 from hierophect/mimxrt-claiming
MIMXRT: Implement pin claiming, pin reset, and pin protections
2020-05-20 11:32:22 -07:00
Scott Shawcroft
8a42c33dca
Add top level merge-translate target 2020-05-20 10:49:01 -07:00
Scott Shawcroft
ba724fffb4
Merge remote-tracking branch 'adafruit/master' into esp32s2_digitalio 2020-05-20 10:48:27 -07:00
Lucian Copeland
42baf0061b translations 2020-05-20 13:28:17 -04:00
Lucian Copeland
66c09efae2 Add UART one-way instance search, fix bugs in stm32 implementation 2020-05-20 12:48:01 -04:00
Scott Shawcroft
fd0420d432
Update digitalio api for other ports 2020-05-20 09:23:42 -07:00
Scott Shawcroft
0543a64dc1
Update translations 2020-05-20 08:55:32 -07:00
Sean Cross
4cca455c9b nrf: reset rtc as part of port_reset()
On NRF, the `rtc_reset()` function is never called.  As a result,
calls to `time.time()` return a cryptic error>

```
>>> import time
>>> time.time()
'' object has no attribute 'datetime'
>>>
```

This is because `MP_STATE_VM(rtc_time_source)` is not initialized
due to `rtc_reset()` never being called.

If `CIRCUITPY_RTC` is enabled, call `rtc_reset()` as part of the
`reset_port()` call. This ensures that `time.time()` works as expected.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-20 16:44:18 +08:00
Scott Shawcroft
80517c4cf6
First try at critical section support 2020-05-19 17:49:17 -07:00
Scott Shawcroft
49090d1378
Fully implement digitalio and pin-in-use tracking.
Fixes #2901
2020-05-19 17:46:29 -07:00
Scott Shawcroft
916ca9f8a6
Merge pull request #2910 from tannewt/esp32s2
Add initial ESP32S2 support
2020-05-19 12:53:23 -07:00
Lucian Copeland
38fd9c25f2 Re-add APA102 2020-05-19 15:33:34 -04:00
sommersoft
bdc5a6b7c0
Merge pull request #2928 from tannewt/fix_rtd_autoapi
Fix ReadTheDocs after switching to stubs + autoapi.
2020-05-19 14:19:52 -05:00
dherrada
58b07ecb43 Removed a 2020-05-19 14:50:47 -04:00
Scott Shawcroft
acf4b1bede
Remove reverse methods from per-board defs 2020-05-19 11:43:57 -07:00