zephyr/drivers/sensor
Hans Wilmers 5b1a524348 sensor: tmp116: Add support for tmp117, fix calculation issues
- Added support for TMP117 in existing driver for TMP116
  The Texas Instruments TMP117 is a higher precision upgrade
   from TMP116. It shares most functionality, but has a
   differing device ID.
   This patch will run with the hardware IDs of both devices.

- Fixed an int promote issue in tmp116_channel_get
  Negative temperature values in drv_data->sample were not
  processed correctly.
  The error occured during integer promotion from u16_t to s32_t
  in this code line:
     tmp = (s32_t)drv_data->sample * TMP116_RESOLUTION;

  By first promoting to s16_t, the correct result is obtained:
     tmp = (s16_t)drv_data->sample * (s32_t)TMP116_RESOLUTION;

- Made temperature resolution compatible to sensor API
  The fractional part of the temperature was returned as a
  multiple of 10^-7 deg.Celsius.
  This differs from the resolution sugegsted by the sensor API,
  which is 10^-6.

  The driver is now returning temperature readings with
  a resolution of 10^-6 deg. Celsius.

- The changed driver was tested using following hardware:
  TMP117 attached to disco_l475_iot1 via i2c1

Signed-off-by: Hans Wilmers <hans@wilmers.no>
2019-12-20 20:18:25 -05:00
..
adt7420 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
adxl362 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
adxl372 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
ak8975 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
amg88xx drivers: amg88xx: check i2c write return value 2019-11-21 07:48:35 -06:00
ams_iAQcore kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
apds9960 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
bma280 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
bmc150_magn sensor: bmc150_magn: Convert to DTS 2019-11-08 07:44:54 -06:00
bme280 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
bme680 global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
bmg160 sensor: bmg160: Convert to DTS 2019-11-08 07:44:54 -06:00
bmi160 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
bmm150 sensor: bmm150: Convert to DTS 2019-11-08 07:44:54 -06:00
ccs811 sensor: ccs811: Convert GPIOs to device tree 2019-11-06 11:13:04 +01:00
dht sensor: dht: convert from Kconfig to devicetree 2019-12-19 06:43:37 -06:00
ens210 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
fxas21002 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
fxos8700 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
grove kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
hmc5883l sensor: hmc5883l: convert to device tree 2019-11-08 12:12:38 -06:00
hp206c sensor: hp206c: Convert to DTS 2019-11-08 07:44:54 -06:00
hts221 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
iis3dhhc kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
isl29035 sensor: isl29035: Convert to DTS 2019-11-08 07:44:54 -06:00
lis2dh sensors: lis2dh: use proper scale factor for lsm303agr 2019-11-13 14:43:25 -06:00
lis2ds12 global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
lis2dw12 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
lis2mdl driver/sensor: lis2mdl: handle SPI 4-wires mode selection 2019-11-05 15:42:00 -06:00
lis3mdl sensors: lis3mdl: Fix warning when TIGGER_OWN_THREAD is enabled 2019-11-06 17:10:49 +01:00
lps22hb kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
lps22hh sensors: lps2hh: Fix misspelled GPIOS_CONTROLLER references 2019-12-19 06:41:25 -06:00
lps25hb kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
lsm6ds0 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
lsm6dsl kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
lsm6dso include: Fix use of <gpio.h> -> <drivers/gpio.h> 2019-12-10 08:39:37 -05:00
lsm9ds0_gyro kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
lsm9ds0_mfd kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
lsm303dlhc_magn kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
max30101 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
max44009 sensor: max44009: Convert to DTS 2019-11-08 07:44:54 -06:00
mcp9808 drivers: sensor: mcp9808: clean up I2C API usage 2019-11-13 15:16:54 -06:00
mpu6050 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
ms5607 sensor: add ms5607 sensor 2019-12-09 12:22:25 -06:00
ms5837 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
nrf5 drivers: clock_control: nrf: Switch to single clock device 2019-12-17 14:38:19 +01:00
opt3001 include: Fix use of <misc/FOO.h> -> <sys/FOO.h> 2019-12-10 08:39:37 -05:00
pms7003 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
qdec_nrfx kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
sht3xd kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
si7006 include: Fix use of <i2c.h> -> <drivers/i2c.h> 2019-12-10 08:39:37 -05:00
si7060 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
stts751 include: Fix use of <gpio.h> -> <drivers/gpio.h> 2019-12-10 08:39:37 -05:00
sx9500 sensor: sx9500: Convert to DTS 2019-11-08 07:44:54 -06:00
th02 sensor: th02: Convert to DTS 2019-11-08 07:44:54 -06:00
ti_hdc kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
tmp007 sensor: tmp007: Convert to DTS 2019-11-08 07:44:54 -06:00
tmp112 sensor: tmp112: Convert to DTS 2019-11-08 07:44:54 -06:00
tmp116 sensor: tmp116: Add support for tmp117, fix calculation issues 2019-12-20 20:18:25 -05:00
vl53l0x global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
CMakeLists.txt subsys/shell: Introduce the Sensor Shell Module 2019-12-19 15:54:04 -05:00
Kconfig subsys/shell: Introduce the Sensor Shell Module 2019-12-19 15:54:04 -05:00
sensor_handlers.c kernel: Port remaining syscalls to new API 2019-09-12 11:31:50 +08:00
sensor_shell.c subsys/shell: Introduce the Sensor Shell Module 2019-12-19 15:54:04 -05:00