-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
PIO: open-drain/multi-driver support #32
base: development
Are you sure you want to change the base?
Conversation
@tmplt this PR is a draft that doesn't even pass CI. Any chance this could be finished? |
I'll see about alloting some time for a fixup the coming weeks. |
CI passes, but I don't have hardware access at the moment for a test, at the time. |
This patch implements the open drain ("multi-driver") mode with pull-up and pull-down for each pin. I could not find any information indicating that the modes are not supported for any specific pins and have as such followed the same patterns of implementation as for the other pin modes. Additionally, the InputPin and OutputPin traits are implemented for OpenDrain pins. This permits using crates like onewire to quickly implement software 1-wire support for Dallas-style sensors (ds18b20 for instance).
Commits cleaned up. |
@martinmortsell, are you able to test this? If not, objections to merging as-is to evade eventual stagnation? CC @michalfita |
IIRC: this didn't work as expected when we started trying it out, so you definitely want to test/fix this before merging. |
Copied from an internal Gitlab instance. By @axel-grepit: