Skip to content

Fix build and add support for both PIO hardware modules #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Timot05
Copy link

@Timot05 Timot05 commented Jul 26, 2024

Was running into issues with the wrong definition of PIO_INTR_SM0_TXNFULL_LSB being used. That was fixed by replacing it with pis_sm0_tx_fifo_not_full.

Also added the ability to use both pio0 and pio1 hardware.

@@ -27,9 +27,9 @@ void set_value_and_log(uint channel, uint value_usec) {

}
int main() {
setup_default_uart();
uint pin = 3;
Copy link
Owner

Choose a reason for hiding this comment

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

The file header still notes pin 3 and PIO0, and that should be in sync with the code

Probably it's better to add some macro or a piece of validation code to be sure that PIO, GPIO, and IRQ are in sync

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.

2 participants