zephyr/samples/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 samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
adxl362 samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
adxl372 samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
amg88xx samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
ams_iAQcore samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
apds9960 samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
bme280 cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
bme680 samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
bmg160 timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
bmm150 cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
ccs811 timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
dht samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
ens210 samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
fxas21002 samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
fxos8700 samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
fxos8700-hid samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
grove_light timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
grove_temperature timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
hmc5883l samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
hts221 cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
isl29035 cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
lis2dh samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
lps22hb samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
lps22hh cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
lsm6dsl samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
lsm303dlhc samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
magn_polling cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
max30101 samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
max44009 cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
mcp9808 samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
mpu6050 samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
ms5837 samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
sensor_shell cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
sht3xd cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
sx9500 cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
th02 cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
thermometer cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
ti_hdc samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
tmp112 cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
tmp116 samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
vl53l0x samples: sensor: Convert to new DT_INST macros 2020-03-31 07:09:33 -05:00
sensor.rst