zephyr/drivers/sensor
Marcin Niestroj 74fc8fe071 sensor: lis2dh: fix SPI burst transfers
After switching to new SPI API there is no need to reserve first dummy
byte in buffer and ignore that in application later on. Instead two
buffers can be specified, which is how it is done already in lis2dh
driver. The problem is that dummy byte is still part of the buffer, but
it clearly should no longer be. As an example we write 0x7 (bits to
enable XYZ axes) into CTRL2 instead of CTRL1 register. When reading
measurements on the other hand we have filled buffer starting from 0,
instead of 1 as the driver code has expected.

Fix driver in all places that use burst transfers by removing first
dummy byte from input/output buffer.

Fixes: 2f7e6b6d42 ("drivers/sensors: Switch lis2dh driver to new SPI
  API")
Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
2019-10-14 17:16:03 -05:00
..
adt7420 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
adxl362 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
adxl372 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
ak8975 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
amg88xx drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
ams_iAQcore drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
apds9960 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
bma280 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
bmc150_magn drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
bme280 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
bme680 cleanup: include/: move misc/byteorder.h to sys/byteorder.h 2019-06-27 22:55:49 -04:00
bmg160 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
bmi160 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
bmm150 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
ccs811 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
dht drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
ens210 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
fxas21002 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
fxos8700 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
grove drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
hmc5883l drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
hp206c drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
hts221 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
iis3dhhc drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
isl29035 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
lis2dh sensor: lis2dh: fix SPI burst transfers 2019-10-14 17:16:03 -05:00
lis2ds12 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
lis2dw12 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
lis2mdl drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
lis3mdl drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
lps22hb drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
lps22hh drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
lps25hb drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
lsm6ds0 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
lsm6dsl drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
lsm6dso drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
lsm9ds0_gyro drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
lsm9ds0_mfd drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
lsm303dlhc_magn drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
max30101 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
max44009 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
mcp9808 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
mpu6050 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
ms5837 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
nrf5 drivers: clock_control: nrf: reimplementation including API updates 2019-10-04 17:15:39 +02:00
pms7003 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
qdec_nrfx drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
sht3xd drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
si7006 drivers: sensors: Add Si7006 temperature/humidity sensor driver 2019-08-06 15:05:25 -05:00
stts751 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
sx9500 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
th02 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
ti_hdc drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
tmp007 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
tmp112 drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
tmp116 drivers: sensor: Add TMP116 2019-10-04 15:31:56 -05:00
vl53l0x drivers: sensors: Fix log module registration 2019-10-11 07:33:08 -05:00
CMakeLists.txt drivers: sensor: Add TMP116 2019-10-04 15:31:56 -05:00
Kconfig drivers: sensor: Add TMP116 2019-10-04 15:31:56 -05:00
sensor_handlers.c kernel: Port remaining syscalls to new API 2019-09-12 11:31:50 +08:00