sys/auto_init: Updated sht1x auto_init#11872
Conversation
8e43c36 to
ba103cb
Compare
|
Rebased on top of #11871 |
haukepetersen
left a comment
There was a problem hiding this comment.
In general, I think this could be a way to move the device descriptor allocation into the context of the drivers themselves. But lets first elaborate a little more on #11871 before looking at how to put this into the driver code.
75fd510 to
bd19cb0
Compare
|
@haukepetersen are your comments addressed? |
bd19cb0 to
cb21b2b
Compare
|
Rebased on top of #11871 |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
|
It would be awesome to see this go forward. |
|
Rebased to solve merge conflicts. Also changed indent in |
|
I split the cleanup of I will do the same for the style fixes. |
- Added module auto_init_actuators_sensors to auto-initialize actuator
and sensor drivers
- Auto-initialization for actuator/sensor driver `foo` will be
implemented in submodule `auto_init_actuators_sensors_foo`
- SAUL registration is also performed by that hook, if
`auto_init_saul` is used
- Pseudo-module `auto_init_sensors_actuators_default` is used to pull in
sensor and actuator auto_init submodules for all drivers used
- Made `auto_init_saul` depend on `auto_init_sensors_actuators_default`
By default, auto initialize all used sensor and actuator drivers.
- Moved auto initialization of the SHT1X driver to module auto_init_actuators_sensors - Added sht1x_get_dev() helper to retrieve auto-initialized device - Adapted shell commands of the SHT1X to depend on auto_init_actuators_sensors_sht1x and use sht1x_get_dev()
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
|
We could still gets this if you want @maribu |
|
I was aiming for a rewrite based on XFA :) So I keep this one here for reference and hopefully create a new try with XFA as new PR. |
Contribution description
This PR adapts the SHT1X auto init code to match the new API suggested in #11871.
Testing procedure
/examples/saul.Issues/PRs references