zephyr/drivers/sensor/lis2dh
Armando Visconti 282a644b0e drivers/sensor: lis2dh: use gpio_dt_spec oriented macros
Use gpio_dt_spec structure and related macros for both drdy
and AnyMotion interrupts, to have a more compat, readable and
safe code. Moreover, skip setting DRDY or AnyMotion trigger
from application if the corresponding irq-gpios has not been set.

(This commit also fixes #34794)

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2021-06-02 08:51:14 -05:00
..
CMakeLists.txt
Kconfig dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lis2dh_i2c.c drivers: sensor: lis2dh: make the driver multi-instance 2020-09-14 13:28:45 -05:00
lis2dh_spi.c drivers: sensor: lis2dh: make the driver multi-instance 2020-09-14 13:28:45 -05:00
lis2dh_trigger.c drivers/sensor: lis2dh: use gpio_dt_spec oriented macros 2021-06-02 08:51:14 -05:00
lis2dh.c drivers/sensor: lis2dh: use gpio_dt_spec oriented macros 2021-06-02 08:51:14 -05:00
lis2dh.h drivers/sensor: lis2dh: use gpio_dt_spec oriented macros 2021-06-02 08:51:14 -05:00