mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-04 12:06:00 +00:00
Make this driver multi-instance and use the new API. Notes for sensorhub mode: In case of multiples devices it is possible that some of them has i2c slaves attached to it (sensorhub mode) but not the others. Since the driver is configured in the same way for all the instances (CONFIG_SENSORHUB=y), the routine that initialize the sensorhub part does not fail anymore in case no slaves are found for a particular instance. Instead, those non-sensorhub driver instances will set the shub_inited flag to false and will totally ignore the feature. Notes for triggers: In case of multiples devices the device pin the interrupt wire is attached to can be different (INT1 or INT2 pin). So, this information has been moved in DTS and then stored in the specific instance config structure. Currently the driver is able to handle a sngle interrupt line at a time attached to either INT1 or INT2. MOreover, the interrupt initialization for a driver instance proceed only if the drdy has been configured in its DT, else it returns ok. Signed-off-by: Armando Visconti <armando.visconti@st.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
lsm6dsl_i2c.c | ||
lsm6dsl_shub.c | ||
lsm6dsl_spi.c | ||
lsm6dsl_trigger.c | ||
lsm6dsl.c | ||
lsm6dsl.h |