zephyr/drivers/sensor/lis2dh
Benjamin Lindqvist 0ab1bf42b3 drivers: sensor: lis2dh: Level triggered interrupts
Both DRDY and motion interrupts behaves like level signals since they
remain asserted until they're cleared. Configuring them as edge
interrupts is dangerous because if we ever miss an interrupt, it may
never get cleared and thus will never trigger again.

Treating them as edge signals seems to have no advantages, other than
being marginally simpler to implement.

The patch has gotten many hours of run-time on real hardware using a
nRF52-based board and a LIS3DH with both interrupts connected and
heavily utilized.

Signed-off-by: Benjamin Lindqvist <benjamin.lindqvist@endian.se>
2021-11-08 15:37:57 -06:00
..
CMakeLists.txt drivers: sensor: clean up zephyr_library calls 2021-06-30 09:36:33 -04:00
Kconfig drivers: sensors: lis2dh: Add ability to read temperature 2021-11-02 22:23:39 -04:00
lis2dh.c drivers: sensors: lis2dh: Add ability to read temperature 2021-11-02 22:23:39 -04:00
lis2dh.h drivers: sensors: lis2dh: Add ability to read temperature 2021-11-02 22:23:39 -04: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: Level triggered interrupts 2021-11-08 15:37:57 -06:00