Skip to content

Correcting order of sideset parameters in function call #5984

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

Merged
merged 1 commit into from
Feb 6, 2022

Conversation

DavePutz
Copy link
Collaborator

@DavePutz DavePutz commented Feb 6, 2022

Issue #5967 - PDMIn (and I2SOut) had the sideset enable parameter to common_hal_rp2pio_statemachine_construct() incorrectly positioned at the end of the parameter list. This would be where it goes if calling rp2pio_statemachine_construct(), but for common_hal_rp2pio_statemachine_construct() it needs to be just above the jmp_pin parameter. Tested the fix with a PDM mic using the script provided, and now correctly getting values.

@dhalbert
Copy link
Collaborator

dhalbert commented Feb 6, 2022

Should we make the order be the same for the two routines?

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Thanks for figuring this out!

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.

Thank you for figuring this out! Sorry I swapped the order. I should have left them the same.

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.

3 participants