drivers/sensor: lsm6dso: Remove busy wait on bank change
It's not necessary to busy wait 150 µs after changing register banks. Nothing in the data sheet nor app note suggests this. ST's own HAL, which is used by this driver, does not delay when changing banks. It does a bank change around every function that accesses a non-user bank register (it's quite inefficient). So if it was necessary it would be broken now, as most of the bank changes have no delay. One of the few page changes that did have this delay are the those done before and after reading a sensor sample. Which is where the speed is significant and is limiting the update rate the driver is capable of. Signed-off-by: Trent Piepho <trent.piepho@igorinstitute.com>
This commit is contained in:
parent
0cfe9560d9
commit
c45bc68e5c
1 changed files with 0 additions and 2 deletions
|
@ -446,8 +446,6 @@ static inline void lsm6dso_shub_embedded_en(stmdev_ctx_t *ctx, bool on)
|
|||
};
|
||||
|
||||
lsm6dso_write_reg(ctx, LSM6DSO_FUNC_CFG_ACCESS, (uint8_t *)®, 1);
|
||||
|
||||
k_busy_wait(150);
|
||||
}
|
||||
|
||||
static int lsm6dso_shub_read_embedded_regs(stmdev_ctx_t *ctx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue