Commit Graph

27505 Commits

Author SHA1 Message Date
Jeff Epler 29eed5c21f also pin typer for windows builds 2022-03-29 10:46:58 -04:00
Dan Halbert d5868b42ff Pin typer and click to have compatible versions 2022-03-29 10:46:58 -04:00
ZodiusInfuser 7f3b3dd3af Empty-Commit 2022-03-29 11:36:39 +01:00
Hosted Weblate 92b1ec3874
Merge remote-tracking branch 'origin/main' 2022-03-29 04:42:27 +02:00
Dan Halbert 07f8ceb801
Merge pull request #6210 from dhalbert/pin-typer-and-click
Pin typer and click to have compatible versions
2022-03-28 22:42:22 -04:00
Jeff Epler 9a88c85657
also pin typer for windows builds 2022-03-28 19:37:18 -05:00
Dan Halbert 682b5cac2f Pin typer and click to have compatible versions 2022-03-28 19:45:42 -04:00
ZodiusInfuser f07cfdd80c Linting fixes 2022-03-28 18:34:39 +01:00
Hosted Weblate c398cbaa7e
Merge remote-tracking branch 'origin/main' 2022-03-28 19:29:33 +02:00
Dan Halbert c6bfe54dc8
Merge pull request #6209 from ZodiusInfuser/servo
Pin rename on Servo2040 to match schematic and C++/MP board defs
2022-03-28 13:29:27 -04:00
ZodiusInfuser c2fb44b36c Set enable pin to high during boot 2022-03-28 15:56:02 +01:00
ZodiusInfuser b44a2a0c8e Updated pin name to match schematic 2022-03-28 14:07:08 +01:00
Dominic Davis-Foster 6d025a239e
Add espressif rotaryio divisor support. 2022-03-28 09:04:02 +01:00
gamblor21 0d3f45bef8 Remove move DecompIO files 2022-03-27 16:18:56 -05:00
Michael Himing f96cd7361d Fix esp32s2 build 2022-03-27 10:09:23 +11:00
Hosted Weblate 36014c04f8
Merge remote-tracking branch 'origin/main' 2022-03-26 21:05:35 +01:00
Hosted Weblate b2d3fd7e48
Merge remote-tracking branch 'origin/main' 2022-03-26 21:05:33 +01:00
Jeff Epler dd73182441
Merge pull request #6190 from tannewt/esp32s3_usb_devkit
Add ESP32-S3-USB-OTG board
2022-03-26 15:05:30 -05:00
Jeff Epler 35aa32bec0
Merge pull request #6193 from tannewt/fix_empty_mdns
Fix MDNS crash on S2
2022-03-26 15:05:17 -05:00
Jeff Epler 372306411a
samd: Don't rely on RTC interrupt
I instrumented RTC_Handler and determined that on SAMD51 it was possible
for the interrupt to be delivered well before the actual overflow of the
RTC COUNT register (e.g., a value as small as 0xffff_fffd could be seen
at the time of overflow)

Rather than depending on the overflow interrupt coming in at the same time
as COUNT overflows (exactly), rely only on observed values of COUNT in
_get_count, overflowing when it wraps around from a high value to a low
one.

With this change, PLUS a second change so that it is possible to warp
the RTC counter close to an overflow and test in 20ms instead of 3 days,
there was no problem detected over 20000+ overflows. Before, a substantial
fraction (much greater than 10%) of overflows failed.

Fixes #5985

Change to common-hal/rtc/RTC.c for time warping (plus make rtc_old_count non-static):
```patch
 void common_hal_rtc_set_calibration(int calibration) {
+
+    common_hal_mcu_disable_interrupts();
+
+        RTC->MODE0.COUNT.reg = 0xffffff00;
+        rtc_old_count = 0;
+        do {
+        while ((RTC->MODE0.SYNCBUSY.reg & (RTC_MODE0_SYNCBUSY_COUNTSYNC | RTC_MODE0_SYNCBUSY_COUNT)) != 0) { }
+    }
+    while(RTC->MODE0.COUNT.reg < 0xffffff00);
+    common_hal_mcu_enable_interrupts();
+
+    mp_printf(&mp_plat_print, "Warping RTC in calibration setter count=%08x rtc_old_count=%08x\n", RTC->MODE0.COUNT.reg, rtc_old_count);
```

Test program:
```python
import time
from rtc import RTC

i = 0
while True:
    RTC().calibration = 1 # Warps to ~16ms before overflow, with patch to RTC code
    t0 = time.monotonic_ns()
    et = t0 + 20_000_000 # 20ms
    while (t1 := time.monotonic_ns()) < et: pass
    i += 1
    print(f"{i:6d}: duration {t1-t0}")
    if t1-t0 > 200_000_000: break
    print()
```
2022-03-25 14:48:03 -05:00
Michael Himing 686012426d Espressif: Fix interrupts in UART workflow 2022-03-25 16:20:04 +11:00
Eric Rong 7ad6fa8df5 enable SPIRAM support on muselab nanoESP32S2 board 2022-03-24 16:46:13 -07:00
Hosted Weblate 7b085682ea
Merge remote-tracking branch 'origin/main' 2022-03-24 22:57:53 +01:00
Scott Shawcroft fcde108d03
Merge pull request #6194 from jepler/revamp-duplicate-usb-check
Improve the USB vid:pid duplicate checker
2022-03-24 14:57:48 -07:00
Hosted Weblate 665e345802
Merge remote-tracking branch 'origin/main' 2022-03-24 22:53:17 +01:00
Scott Shawcroft 39d856fb1a
Merge pull request #6192 from gamblor21/is31fl3741_fix
Fix no scaled framebuffer display
2022-03-24 14:53:12 -07:00
Hosted Weblate c77493661e
Merge remote-tracking branch 'origin/main' 2022-03-24 22:51:21 +01:00
Scott Shawcroft ac7977ba75
Merge pull request #6191 from tannewt/esp_3_wire_spi
Fix 3-wire SPI on ESP
2022-03-24 14:51:16 -07:00
Hosted Weblate f747d2e13a
Merge remote-tracking branch 'origin/main' 2022-03-24 22:44:47 +01:00
Scott Shawcroft 9d4c74a87e
Merge pull request #6197 from ZodiusInfuser/servo
Added board definition for upcoming Pimoroni servo driver.
2022-03-24 14:44:44 -07:00
Hosted Weblate 43a6fcc38d
Merge remote-tracking branch 'origin/main' 2022-03-24 22:42:28 +01:00
Scott Shawcroft e14663c946
Merge pull request #6198 from jerryneedell/jerryn_pca10059_led
add status LED to nrf pca10059 dongle
2022-03-24 14:42:19 -07:00
jerryneedell bcec1e44f0 add status LED to nrf pca10059 dongdle 2022-03-24 15:05:02 -04:00
ZodiusInfuser 8e98be2704 Added additional constants 2022-03-24 18:32:39 +00:00
ZodiusInfuser 9c81ea86e9 Added board definition for upcoming Pimoroni servo driver. 2022-03-24 16:07:04 +00:00
Fabian Affolter b36ef7afb6
Translated using Weblate (German)
Currently translated at 100.0% (1053 of 1053 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/de/
2022-03-24 16:57:18 +01:00
Jeff Epler d91ca7369c
Merge remote-tracking branch 'origin/main' into revamp-duplicate-usb-check 2022-03-24 09:44:41 -05:00
Jeff Epler a07ac72cc5
Improve the USB vid:pid duplicate checker
To me, it made more sense to track which boards go together in a cluster;
when reviewing a request to actually use a duplicate vid/pid, you want
to know what board(s) it is aliasing.

I also revamped the detection of non-USB boards so that a board .mk file
that couldn't be parsed by the code here would raise a problem instead
of just being skipped for the purposes of checking.

There were some lines with comments on the end, and some variation in
capitalization of the IDs. These are all normalized and a (sometimes
unfriendly!) error printed when it's incorrect.

Before this, here were some ways to trick the duplicate vid/pid checker:
```
USB_PID = 0XABCD
USB_PID = 0xAbCd
USB_PID = 0xABCD # harmless comment?
```
None of these things were ever done on purpose.
2022-03-24 09:42:11 -05:00
Scott Shawcroft 8642dc4aa7
Fix MDNS crash on S2
Fixes #6186
2022-03-23 17:17:48 -07:00
gamblor21 7d7e66f60f Fix no scaled framebuffer display 2022-03-23 17:37:56 -05:00
gamblor21 f9d7f46d67 Removing DecompIO 2022-03-23 17:02:58 -05:00
Scott Shawcroft 380a7087d4
Fix 3-wire SPI on ESP
Simplifying the checks fixed it.

Fixes #6141
2022-03-23 14:53:46 -07:00
Scott Shawcroft 8ebab7625e
Merge pull request #6181 from tannewt/c3_serial_jtag
Add USB to Serial/JTAG support for REPL
2022-03-23 14:20:23 -07:00
Scott Shawcroft e13d32b832
Add ESP32-S3-USB-OTG board
This board has both types of USB connectors, a display and buttons
to select items on the display. It also has a micro-B connector for
the UART output.
2022-03-23 14:10:26 -07:00
Scott Shawcroft ee4c501936
Merge remote-tracking branch 'adafruit/main' into c3_serial_jtag 2022-03-23 12:17:02 -07:00
Pontus Oldberg c7b28eb2ef
Update ports/nrf/boards/challenger_840/pins.c
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-03-23 17:14:49 +01:00
Pontus Oldberg d26297ae98
Update ports/nrf/boards/challenger_840/pins.c
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-03-23 17:14:40 +01:00
Pontus Oldberg 7901850bb8
Update ports/nrf/boards/challenger_840/pins.c
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-03-23 17:14:28 +01:00
Dan Halbert c1b05ce918
Merge pull request #6189 from Neradoc/patch-1
Enable rgb status LED on MakerDiary USB Dongle
2022-03-23 11:07:35 -04:00
Dan Halbert 94bbcf8efe
Merge pull request #6188 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-03-23 08:27:26 -04:00