Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PIO DMA when transfer size exceeds FIFO length #8700

Merged

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented Dec 6, 2023

As suggested in #8489 (comment), use DMA when the PIO transfer size exceeds the FIFO depth. Since the FIFOs might or might not be joined, figure out the FIFO depth in the constructor and remember it. (It's hard to retrieve the JOIN info from the config, so just use an extra byte to remember it.)

Tested using the test program in #8489 from 1-12 pixels. No jumping seen.

This is close to my first foray into PIO except for adjusting some NeoPixel timings, so careful review appreciated.

@dhalbert dhalbert linked an issue Dec 6, 2023 that may be closed by this pull request
Copy link
Member

@jepler jepler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

@dhalbert dhalbert merged commit c5c7d11 into adafruit:8.2.x Dec 6, 2023
98 checks passed
@dhalbert dhalbert deleted the 8.2.x-pio-dma-based-on-fifo-length branch December 6, 2023 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Weird NeoPixel "jumping" on PropMaker RP2040 when num_pixels=8
2 participants