-
Notifications
You must be signed in to change notification settings - Fork 8.2k
[TOPIC-GPIO] drivers: sensor: hts221: update to new GPIO API #19834
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
Conversation
|
All checks passed. Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
40747f1 to
f2c572a
Compare
|
@mnkp Updated to use the device-tree specified active level. As a best practice I'm also documenting in the device yaml file what the sensor-provided active level is, as deviations from that must be handled properly. Note that two existing boards specified the wrong active level in their devicetree nodes. |
Correct DRDY active level to default active-high, switch to new interrupt configuration. Also fix a common bug where an already-active DRDY signal is not properly handled. Signed-off-by: Peter Bigot <[email protected]>
Correct DRDY active level to default active-high, switch to new interrupt configuration.
Tested on nrf52_pca20020 (Thingy:52) and (after much pain unrelated to this change) frdm_k64f with the x_nucleo_iks01a2 shield.
NOTE: This PR also contains #19862 and #19870 on which it depends.