zephyr/drivers/sensor
Andy Ross 32bb2395c2 timeout: Fix up API usage
Kernel timeouts have always been a 32 bit integer despite the
existence of generation macros, and existing code has been
inconsistent about using them.  Upcoming commits are going to make the
timeout arguments opaque, so fix things up to be rigorously correct.
Changes include:

+ Adding a K_TIMEOUT_EQ() macro for code that needs to compare timeout
  values for equality (e.g. with K_FOREVER or K_NO_WAIT).

+ Adding a k_msleep() synonym for k_sleep() which can continue to take
  integral arguments as k_sleep() moves away to timeout arguments.

+ Pervasively using the K_MSEC(), K_SECONDS(), et. al. macros to
  generate timeout arguments.

+ Removing the usage of K_NO_WAIT as the final argument to
  K_THREAD_DEFINE().  This is just a count of milliseconds and we need
  to use a zero.

This patch include no logic changes and should not affect generated
code at all.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2020-03-31 19:40:47 -04:00
..
adt7420 sensor: adt7420: update for new GPIO API 2020-02-05 12:00:36 +01:00
adxl345 Sensor: ADXL345: Add ADXL345 driver 2020-03-13 08:53:43 -05:00
adxl362 gpio: rename typedef for devicetree flags 2020-02-05 12:00:36 +01:00
adxl372 gpio: rename typedef for devicetree flags 2020-02-05 12:00:36 +01:00
ak8975 sensor: ak8975: Convert to DTS 2020-03-10 14:13:40 -05:00
amg88xx gpio: rename typedef for devicetree flags 2020-02-05 12:00:36 +01:00
ams_iAQcore kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
apds9960 drivers: apds9960: convert to new GPIO API 2020-02-05 12:00:36 +01:00
bma280 drivers: sensor: bma280: convert to new GPIO API 2020-02-05 12:00:36 +01:00
bmc150_magn gpio: rename typedef for devicetree flags 2020-02-05 12:00:36 +01:00
bme280 drivers: sensor: BME280: add forced sampling mode 2020-03-25 14:52:07 -05:00
bme680 kconfig: Remove some redundant single-item menus and ifs 2019-12-21 10:26:54 -05:00
bmg160 gpio: rename typedef for devicetree flags 2020-02-05 12:00:36 +01:00
bmi160 gpio: rename typedef for devicetree flags 2020-02-05 12:00:36 +01:00
bmm150 sensor: bmm150: Convert to DTS 2019-11-08 07:44:54 -06:00
ccs811 timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
dht gpio: rename typedef for devicetree flags 2020-02-05 12:00:36 +01:00
ens210 drivers: sensor: ENS210: add single shot mode 2020-03-31 15:11:43 +02:00
fxas21002 gpio: rename typedef for devicetree flags 2020-02-05 12:00:36 +01:00
fxos8700 drivers: sensor: fxos8700: convert to new DT API 2020-03-24 10:11:20 -05:00
grove sensors: grove_light: convert to devicetree bindings 2020-02-12 10:31:26 -06:00
hmc5883l drivers: hmc5883l: update to new GPIO API 2020-02-05 12:00:36 +01:00
hp206c timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
hts221 drivers: sensor: hts221: cleanup related to devicetree and trigger idiom 2020-02-05 12:00:36 +01:00
iis2dlpc drivers/sensor: add support to IIS2DLPC accelerometer sensor 2020-03-16 10:42:28 -05:00
iis2mdc drivers/sensor: add support to IIS2MDC magnetometer sensor 2020-03-20 14:53:42 -05:00
iis3dhhc driver/sensor: iis3dhhc: update to use new GPIO API 2020-02-05 12:00:36 +01:00
isl29035 drivers: sensor: isl29035: update to new GPIO API 2020-02-05 12:00:36 +01:00
ism330dhcx drivers/sensor: add support to ISM330DHCX IMU sensor 2020-03-18 16:14:47 -05:00
lis2dh driver/sensors: lis2dh: Fix I2C and SPI bus communication 2020-03-10 14:52:59 +02:00
lis2ds12 gpio: rename typedef for devicetree flags 2020-02-05 12:00:36 +01:00
lis2dw12 driver/sensor: lis2dw12: update to use new GPIO API 2020-02-05 12:00:36 +01:00
lis2mdl driver/sensor: lis2mdl: update to use new GPIO API 2020-02-05 12:00:36 +01:00
lis3mdl driver/sensor: lis3mdl: Fix DRDY interrupt 2020-02-25 11:40:17 +01:00
lps22hb kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
lps22hh driver/sensor: lps22hh: update to use new GPIO API 2020-02-05 12:00:36 +01:00
lps25hb kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
lsm6ds0 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
lsm6dsl timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
lsm6dso timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
lsm9ds0_gyro gpio: rename typedef for devicetree flags 2020-02-05 12:00:36 +01: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 driver: sensor: Add i2c_label and i2c_addr in the max30101_config struct 2020-03-12 13:12:35 +02:00
max44009 sensor: max44009: Convert to DTS 2019-11-08 07:44:54 -06:00
mchp_tach_xec drivers: sensors: Add tachometer driver for MEC family 2020-03-13 08:49:21 -05:00
mcp9808 drivers: sensor: mcp9808: update to new GPIO API 2020-02-05 12:00:36 +01:00
mpu6050 drivers: sensor: mpu6050: convert to new GPIO API 2020-02-05 12:00:36 +01:00
ms5607 timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
ms5837 timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
nrf5 drivers: clock_control: Add subsys argument to the callback 2020-02-05 17:07:01 +01:00
nxp_kinetis_temp global: Replace BUILD_ASSERT_MSG() with BUILD_ASSERT() 2020-03-31 07:18:06 +02:00
opt3001 include: Fix use of <misc/FOO.h> -> <sys/FOO.h> 2019-12-10 08:39:37 -05:00
pms7003 sensor: pms7003: Convert to DTS 2020-03-10 14:15:22 -05:00
qdec_nrfx global: Replace BUILD_ASSERT_MSG() with BUILD_ASSERT() 2020-03-31 07:18:06 +02:00
sht3xd kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
si7006 treewide: use full path to sensor.h header 2020-01-26 17:52:12 +01:00
si7060 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
stts751 driver/sensor: stts751: update to use new GPIO API 2020-02-05 12:00:36 +01:00
sx9500 drivers: sensor: sx9500: convert to new GPIO API 2020-02-05 12:00:36 +01:00
th02 sensor: th02: Convert to DTS 2019-11-08 07:44:54 -06:00
ti_hdc timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
tmp007 drivers: sensor: tmp007: convert to new GPIO API 2020-02-05 12:00:36 +01: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 kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
CMakeLists.txt drivers/sensor: add support to IIS2MDC magnetometer sensor 2020-03-20 14:53:42 -05:00
Kconfig drivers/sensor: add support to IIS2MDC magnetometer sensor 2020-03-20 14:53:42 -05:00
sensor_handlers.c
sensor_shell.c sensor: shell: return -ENODEV on binding errors 2020-03-10 19:05:03 -04:00