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

Consider the case where a PORT register is only partly used #10

Open
dylanmckay opened this issue Nov 17, 2017 · 1 comment
Open

Consider the case where a PORT register is only partly used #10

dylanmckay opened this issue Nov 17, 2017 · 1 comment

Comments

@dylanmckay
Copy link
Member

I imagine that there are AVR devices which have IO ports where only half of the bits are actually connected to pins.

We might want to look into something like defining PB1, PB2, ... registers for each generated module. That way, if you're using the library and you try to use a pin that doesn't exist, it will hit a hard error.

@pusherofbrooms
Copy link

My favorite example of this is the attiny85 8 pin device: https://docs.rs/avrd/0.1.1/avrd/attiny85/index.html
attiny 4/5/9/10 six pin devices are other examples: https://docs.rs/avrd/0.1.1/avrd/attiny10/index.html

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

2 participants