Commit graph

37873 commits

Author SHA1 Message Date
gamblor21
f5a8e3d138 Calculate current delay for a BlockInput correctly 2024-10-03 20:13:58 -05:00
d0e8030986 clear any pending interrupt flag
While debugging, I found that on RP2040 the first looped background
write on a StateMachine would be garbled: It the first few outputs
would be as expected, but then the data would go back to the start
of the buffer.

I realized that this could be due to there already being a pending
interrupt on this DMA channel that had occurred previously but never
been acknowledged. In fact, by printing the value of `dma_hw->intr`
before this, I could see that it was the case.

After this change, both my special case reproducer from the related
issue works, and the odd gaps in LED data transmission seen in the
WIP code for TM1814 LEDs was fixed.

I never saw this problem on Feather RP2350, only on Metro RP2040,
but I don't know why. It would depend on what had previously
happened to the DMA channel that ends up allocated to this PIO
state machine. Less likely, it could depend on details of the DMA
peripheral that changed between the chips.

Closes: #9678
2024-10-03 16:42:43 -05:00
Dan Halbert
d0dc144d4d fix ble_serial_connected() 2024-10-03 16:55:00 -04:00
Scott Shawcroft
a9e50e2661
Merge pull request #9677 from RetiredWizard/lmhostname
Optimize hostname variable size
2024-10-02 10:18:20 -07:00
Scott Shawcroft
29f64c7013
Merge pull request #9676 from dhalbert/bleio-char-empty-current-value
espressif/common-hal/_bleio/Characteristic.c: handle empty initial value
2024-10-02 10:11:40 -07:00
gamblor21
af9321777d Documentation 2024-10-01 19:44:55 -05:00
RetiredWizard
156d7a87d1 remove hostname from sdkconfig of newly added board 2024-10-01 19:55:02 -04:00
RetiredWizard
923741c07d pre-commit formatting 2024-10-01 19:00:38 -04:00
RetiredWizard
a7f700e2d6 Optimize hostname variable size 2024-10-01 18:50:39 -04:00
Dan Halbert
f030c37a14 espressif/common-hal/_bleio/Characteristic.c: handle empty initial value 2024-10-01 18:25:39 -04:00
Scott Shawcroft
66e289dd3c
Merge pull request #9656 from RetiredWizard/rmlwiphname
Remove CONFIG_LWIP_LOCAL_HOSTNAME from S3 boards
2024-10-01 13:46:10 -07:00
Scott Shawcroft
7e9e8b1dec
Merge pull request #9671 from dhalbert/esp-idf-new-i2c
Use new ESP-IDF I2C driver
2024-10-01 12:22:54 -07:00
gamblor21
3c204608f6 Fixed incorrectly updating sample remaining pointer 2024-09-30 21:23:45 -05:00
Dan Halbert
d62a9847e2 broadcom: restore reset_i2c() and special handling of two I2C ports 2024-09-30 21:52:24 -04:00
RetiredWizard
e1ca12269d Remove comment abount resetting concerns -thanks @anecdata 2024-09-30 15:41:11 -04:00
gamblor21
00a149a2c1 More comments and cleanup 2024-09-30 14:04:43 -05:00
gamblor21
70c0bf9254 8 bit unsigned samples working 2024-09-30 10:25:59 -05:00
RetiredWizard
0d5a234c98 precommit run -all :/ someday I'll remember 2024-09-30 11:21:29 -04:00
RetiredWizard
72052a4b5e Set default hostname proof of concept 2024-09-30 11:16:38 -04:00
sam blenny
280bbbe058 update translations for usb.core.Device
This is the result of a `pre-commit run --all-files` to fix the
translation file changes which were causing a CI check fail. I'm
not convinced this change is a good idea. I would prefer to set
USBError.errno, if possible, but I don't know how to do that.
2024-09-30 14:08:39 +00:00
Bernhard Bablok
3b07c3c7a7 support setups with all modules in src-directory 2024-09-30 09:08:10 +02:00
Dan Halbert
a023f926c9 address review 2024-09-29 22:37:11 -04:00
sam blenny
6cc41f0bf9 return early after raising USBError
This commit makes sure that functions in usb.core.Device return as
soon as they raise a MicroPython exception rather than continuing
on with whatever code would normally run. This will hopefully help
to avoid things like dereferencing null pointers.
2024-09-30 01:18:18 +00:00
Dan Halbert
e44504727e
Merge pull request #9668 from tannewt/feather_rp2350_pin_tweaks
Add IO4 and IO7 to Feather RP2350
2024-09-29 20:28:04 -04:00
Dan Halbert
3ed76982b5 shrink some builds 2024-09-29 19:31:10 -04:00
Dan Halbert
9116911a6c fix formatting 2024-09-29 17:07:50 -04:00
Dan Halbert
42db18ee51 merge from main 2024-09-29 17:00:02 -04:00
Dan Halbert
90053fe8ac bring esp32-camera up to date 2024-09-29 15:03:31 -04:00
sam blenny
154ef2e36d Change USB NULL errors to short strings
shared-module/usb/core/Device.c had several spots where it would
raise a MicroPython exception with a NULL argument. That made it
very difficult for CircuitPython code to attempt to recover from
fault conditions caused by quirky USB device behavior. This adds
short error strings to distinguish the different types of faults.
2024-09-29 18:20:11 +00:00
gamblor21
bbd3e01665 Comments and couple tweaks 2024-09-28 11:22:05 -05:00
gamblor21
a851f102fe Error message for sample note matching made consistent 2024-09-28 09:38:20 -05:00
Scott Shawcroft
14ddb6bdd5
Add IO4 and IO7 to Feather RP2350
These match the silkscreen but not the standard feather pin naming
D12 and D13 are left so code is compatible.

Brought up on the forums:
https://forums.adafruit.com/viewtopic.php?p=1030324
2024-09-27 16:45:55 -07:00
Dan Halbert
8e171f19d8 Camera.c: remove unneeded #include logic 2024-09-27 18:16:55 -04:00
Scott Shawcroft
ec5cca6983
Merge pull request #9664 from samblenny/tinyusb_0_17_0
update tinyusb to v0.17.0 (5217cee5)
2024-09-27 09:37:55 -07:00
Dan Halbert
ca25c602a8
Merge pull request #9665 from SeanCline/main
Add a delay to KeyMatrix scan.
2024-09-26 19:52:49 -04:00
Dan Halbert
dc52fe3062
Update KeyMatrix.c: remove trailing spaces 2024-09-26 18:42:35 -04:00
Dan Halbert
7b1719783f turn CIRCUITPY_ESPCAMERA back on 2024-09-26 17:41:44 -04:00
Dan Halbert
50b2e40a54 ports/espressif/common-hal/espcamera/Camera.c: check for unspecified pins 2024-09-26 17:41:08 -04:00
sam blenny
0608932e63 update tinyusb to v0.17.0 (5217cee5) 2024-09-26 17:59:59 +00:00
Sean D. Cline
447cd1e02b Add a delay to KeyMatrix scan.
This gives the matrix columns time to discharge and settle down to
their resting state.
2024-09-26 09:27:33 -04:00
Scott Shawcroft
4ef4f50873
Merge pull request #9654 from RetiredWizard/envdoc
Environment Variables doc to note possible board specific keys
2024-09-25 10:51:52 -07:00
Scott Shawcroft
ca99b41d19
Merge pull request #9661 from sanhu88/sunton_esp32_8048S050
add Port of Sunton esp32 8048S050
2024-09-25 10:49:21 -07:00
Scott Shawcroft
cd5c9d2632
Merge pull request #9658 from jepler/floppyio-doc-markup
fix doc markup problem
2024-09-25 10:45:05 -07:00
Burt
b7f8a5a7a9
Merge branch 'adafruit:main' into sunton_esp32_8048S050 2024-09-25 23:00:39 +08:00
gamblor21
98b360a436 Double buffering 2024-09-24 21:25:43 -05:00
RetiredWizard
519832d57d Remove all LWIP_HOSTNAME lines 2024-09-24 18:04:25 -04:00
RetiredWizard
0d235d792e Additional rotation detail 2024-09-24 17:18:07 -04:00
RetiredWizard
df9b39f8c2 pre-commit run --all 2024-09-24 16:44:54 -04:00
RetiredWizard
d3d6a73ad9 Add board specific key documentation 2024-09-24 16:41:59 -04:00
068d4919bf fix doc markup problem 2024-09-24 12:11:15 -05:00