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

support reexporting pio_asm! #70

Open
Dirbaio opened this issue Jan 15, 2025 · 0 comments
Open

support reexporting pio_asm! #70

Dirbaio opened this issue Jan 15, 2025 · 0 comments

Comments

@Dirbaio
Copy link
Member

Dirbaio commented Jan 15, 2025

I'd like to reexport pio, pio-proc from embassy-rp, so the user doesn't have to depend on them directly. It's nicer because it ensures the right version is used, so it avoids version mismatch errors of doom.

However, currently pio_asm! generates code that does ::pio::whatever. This doesn't work unless pio is in scope in the end user's crate. I'm not sure if this is fixable with proc macros though? With decl macros you'd use $crate, but that doesn't seem to exist for proc macros.

@Dirbaio Dirbaio changed the title support reexporting in pio_asm! support reexporting pio_asm! Jan 15, 2025
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

No branches or pull requests

1 participant