Commit Graph

27416 Commits

Author SHA1 Message Date
KurtE
2a3eb49da7 Update the pins.c
I fixed a couple issues in the pin name definitions.

The pin names are sort of Teensy centric in that the priority is given
to the pin names you would use in Arduino like D0, D1, ...

But also added names for the MicroMod names in particular the names
on the front of the ATP carrier board

Also updated manufacturer to be both PJRC and Sparkfun
2022-04-08 07:41:51 -07:00
KurtE
93e9e3ad90 Fix end of line 2022-04-07 15:52:01 -07:00
KurtE
03e0acde94 Trying to cleanup the pre build messages 2022-04-07 14:11:22 -07:00
KurtE
83ffc617ba Merge branch 'teensyMM' of https://github.com/kurte/circuitpython into teensyMM 2022-04-07 14:08:31 -07:00
KurtE
2cb422fb19 Create W25Q128JV.ld
Add flash file needed for Teensy MicroMod,
2022-04-07 12:09:56 -07:00
KurtE
a74ec22aa4 Start setting up a Teensy MicroMod port
I have done a first pass through the files
this also includes a new VID/PID from sparkfun
2022-04-06 17:58:22 -07:00
KurtE
ef9f9c8bf0 Update PID/VID and Flash 2022-04-06 15:22:24 -07:00
KurtE
a69738c592 Start setting up a Teensy MicroMod port 2022-04-06 14:19:38 -07:00
Dan Halbert
7ad35bf67d
Merge pull request #6239 from ReeceRobinson/reecer-hid-usage-fix
Enable support for extended HID usage page and usage. Related to Supp…
2022-04-05 12:40:18 -04:00
Dan Halbert
47d3d0d7f8
Merge pull request #6202 from jepler/issue5985
samd: Don't rely on RTC interrupt
2022-04-05 09:16:40 -04:00
Dan Halbert
c3539f0948
bump espressif CI cache id 2022-04-05 09:12:02 -04:00
Dan Halbert
259e56062f
Update mpy-cross/mpy-cross.mk 2022-04-05 09:10:25 -04:00
Reece Robinson
4b0f80f081 Enable support for extended HID usage page and usage. Related to Support HID Usage Pages and Usages >255 #5529 2022-04-05 13:54:07 +12:00
Dan Halbert
87e59a4448
Merge pull request #6224 from dhalbert/revert-pin-typer-click
revert pins of click and typer
2022-04-02 09:22:28 -04:00
Dan Halbert
e31d84d890
Merge pull request #6222 from todbot/main
espressif_esp32s3_usb_otg_n8 add board.DISPLAY since already set up by CirPy
2022-04-01 23:49:04 -04:00
Dan Halbert
d20ae5ab24 revert pins of click and typer 2022-04-01 20:51:11 -04:00
Tod Kurt
390a473dda add board.DISPLAY since display already set up by CirPy 2022-04-01 15:08:43 -07:00
Dan Halbert
d9418fb7a3
Merge pull request #6184 from PontusO/main
Added Challenger 840 board.
2022-03-30 21:18:43 -04:00
Dan Halbert
ec5c9507b9
Merge pull request #6187 from prplz/espressif-uart-workflow-fixes
Espressif: Fix interrupts in UART workflow
2022-03-30 21:18:02 -04:00
Dan Halbert
6fd968fc12
Merge pull request #6199 from erongd/muselab-wrover-spiram-fix
enable SPIRAM support on muselab nanoESP32S2 board
2022-03-30 21:14:59 -04:00
Dan Halbert
a4e6cba59b
Merge pull request #6196 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-03-30 21:12:37 -04:00
Hosted Weblate
66fc8af96a
Merge remote-tracking branch 'origin/main' 2022-03-30 19:35:53 +02:00
Dan Halbert
f059f7180c
Merge pull request #6208 from ZodiusInfuser/badger
Improvement to Badger 2040 operation on battery
2022-03-30 13:35:47 -04:00
ZodiusInfuser
336abdfbc7 Switch variable to extern 2022-03-30 17:44:36 +01:00
Pontus Oldberg
f2d10237d2
Merge branch 'adafruit:main' into main 2022-03-30 16:43:39 +02: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
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