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

Set mux value back to default when pinsets are released from the Portmux #7

Open
G33KatWork opened this issue Dec 31, 2023 · 0 comments

Comments

@G33KatWork
Copy link
Owner

To avoid weird things happening, we should restore the default value in the portmux register for a pinset once the pins are released from the mux again.

It is debatable if this is necessary though: The GPIOs will still work and when a device that uses special function modes of pins like the UART is reinstatiated, a new Pinset that falls out of the Portmux-code needs to be passed into it which can only be created by calling mux() on it. This means the bits in the PORTMUX registers should always be set correctly no matter what happens.

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