Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

jepler
Copy link

@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
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
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