icm42688: Interrupt pulse for 4khz+ sampling

Always set the interrupt pulse settings when sampling at greater than 4khz
to better ensure the interrupt line is toggled and caught correctly.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
This commit is contained in:
Tom Burdick 2023-04-29 14:36:20 -05:00 committed by Maureen Helm
parent da5030eae1
commit dba487e480

View file

@ -182,8 +182,8 @@ int icm42688_configure(const struct device *dev, struct icm42688_cfg *cfg)
uint8_t int_config1 = 0;
if (cfg->fifo_en && (cfg->accel_odr <= ICM42688_ACCEL_ODR_4000 ||
cfg->gyro_odr <= ICM42688_GYRO_ODR_4000)) {
if ((cfg->accel_odr <= ICM42688_ACCEL_ODR_4000 ||
cfg->gyro_odr <= ICM42688_GYRO_ODR_4000)) {
int_config1 = FIELD_PREP(BIT_INT_TPULSE_DURATION, 1) |
FIELD_PREP(BIT_INT_TDEASSERT_DISABLE, 1);
}