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

rp2pio: Add sideset_pindirs parameter to StateMachine constructor #9849

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

jepler
Copy link
Member

@jepler jepler commented Dec 1, 2024

This allows use of PIO programs that need to control pin direction from the side set portion of the instruction.

Closes #9630

Will need an associated update to rp2pio to enable the assembler directive

This allows use of PIO programs that need to control pin *direction*
from the side set portion of the instruction.
@jepler
Copy link
Member Author

jepler commented Dec 1, 2024

ping @jchawks -- I wrote this but didn't test it. Please test if you have a chance.

@jepler
Copy link
Member Author

jepler commented Dec 1, 2024

pio/i2c/i2c.pio:.side_set 1 opt pindirs
pio/onewire/onewire_library/onewire_library.pio:.side_set 1 pindirs

pico-examples uses this for i2c and onewire implementations fwiw

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thank you!

@tannewt tannewt merged commit 4e3cd7d into adafruit:main Dec 2, 2024
142 checks passed
@jchawks
Copy link

jchawks commented Dec 2, 2024 via email

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.

RP2040 - PIO sideset for pin direction
3 participants